Class MarketDataMessage
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
Market-data message (uses as a subscribe/unsubscribe in outgoing case, confirmation event in incoming case).
[DataContract]
public class MarketDataMessage : SecurityMessage, ISubscriptionIdMessage, ISecurityIdMessage, ISubscriptionMessage, ITransactionIdMessage, IOriginalTransactionIdMessage, IMessage, ILocalTimeMessage, ICloneable, IGeneratedMessage
- Inheritance
-
MarketDataMessage
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
MarketDataMessage()
Initializes a new instance of the MarketDataMessage.
public MarketDataMessage()
MarketDataMessage(MessageTypes)
Initialize MarketDataMessage.
protected MarketDataMessage(MessageTypes type)
Parameters
type
MessageTypesMessage type.
Properties
AllowBuildFromSmallerTimeFrame
Allow build candles from smaller timeframe.
[DataMember]
public bool AllowBuildFromSmallerTimeFrame { get; set; }
Property Value
Remarks
Available only for TimeFrameCandleMessage.
Arg
Additional argument for market data request.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Argument", Description = "ArgumentDesc", GroupName = "General")]
[Obsolete("Use DataType2 property.")]
public object Arg { get; set; }
Property Value
BoardCode
Board code.
[DataMember]
public string BoardCode { get; set; }
Property Value
BuildField
Extra info for the BuildFrom.
[DataMember]
public Level1Fields? BuildField { get; set; }
Property Value
BuildFrom
Determines the message is generated from the specified DataType.
[DataMember]
public DataType BuildFrom { get; set; }
Property Value
BuildMode
Build mode.
[DataMember]
public MarketDataBuildModes BuildMode { get; set; }
Property Value
Count
Max count.
[DataMember]
public long? Count { get; set; }
Property Value
- long?
DataType
Market data type.
[Browsable(false)]
[DataMember]
public MarketDataTypes DataType { get; set; }
Property Value
DataType2
Market data type.
[DataMember]
public DataType DataType2 { get; set; }
Property Value
DepthBuilder
Order log to market depth builder.
public IOrderLogMarketDepthBuilder DepthBuilder { get; set; }
Property Value
DoNotBuildOrderBookIncrement
Pass through incremental QuoteChangeMessage.
[DataMember]
public bool DoNotBuildOrderBookIncrement { get; set; }
Property Value
Fields
Market data fields, which will be received with subscribed to Level1 messages.
[Display(ResourceType = typeof(LocalizedStrings), Name = "MarketDataFields", Description = "MarketDataFieldsDesc", GroupName = "General", Order = 3)]
public IEnumerable<Level1Fields> Fields { get; set; }
Property Value
FillGaps
[DataMember]
public FillGapsDays? FillGaps { get; set; }
Property Value
From
Start date, from which data needs to be retrieved.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "From", Description = "StartDateDesc", GroupName = "General")]
public DateTimeOffset? From { get; set; }
Property Value
IsCalcVolumeProfile
To perform the calculation PriceLevels. By default, it is disabled.
[DataMember]
public bool IsCalcVolumeProfile { get; set; }
Property Value
IsFinishedOnly
Request Finished only candles.
[DataMember]
public bool IsFinishedOnly { get; set; }
Property Value
IsRegularTradingHours
Use only the regular trading hours for which data will be requested.
[DataMember]
public bool? IsRegularTradingHours { get; set; }
Property Value
- bool?
IsSubscribe
The message is subscription.
[DataMember]
public bool IsSubscribe { get; set; }
Property Value
MaxDepth
Max depth of requested order book. Uses in case DataType2 = MarketDepth.
[DataMember]
public int? MaxDepth { get; set; }
Property Value
- int?
NewsId
News id. Uses in case of request news text.
[DataMember]
public string NewsId { get; set; }
Property Value
RefreshSpeed
Interval for data refresh.
[DataMember]
public TimeSpan? RefreshSpeed { get; set; }
Property Value
Skip
Skip count.
[DataMember]
public long? Skip { get; set; }
Property Value
- long?
To
End date, until which data needs to be retrieved.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Until", Description = "ToDateDesc", GroupName = "General")]
public DateTimeOffset? To { get; set; }
Property Value
TransactionId
Request identifier.
[DataMember]
public long TransactionId { get; set; }
Property Value
Methods
Clone()
Create a copy of MarketDataMessage.
public override Message Clone()
Returns
- Message
Copy.
CopyTo(MarketDataMessage)
Copy the message into the destination
.
public void CopyTo(MarketDataMessage destination)
Parameters
destination
MarketDataMessageThe object, to which copied information.
ToString()
public override string ToString()