WsSubscribeCommand

StockSharp.Ws

Wire DTO for the "type": "subscribe" command. A single JSON shape covers three distinct StockSharp lookup/subscribe messages, picked by the DataType field: "Transactions" → OrderStatusMessage, "PositionChanges" → PortfolioLookupMessage, anything else → MarketDataMessage with IsSubscribe = true. Not every property is meaningful in every branch — the DTO just carries them all and ToMessage picks the right subset.

Свойства

Count : long?

Wire field count.

DataType : string

Wire field dataType.

From : DateTime?

Wire field from (unix microseconds).

MaxDepth : int?

Wire field maxDepth.

PortfolioName : string

Wire field portfolioName.

SecurityId : WsSecurityId

Wire field securityId.

States : string

Wire field states.

TimeFrame : int?

Wire field timeFrame.

To : DateTime?

Wire field to (unix microseconds).

TransactionId : long

Wire field transactionId.

Type : string

Wire field type.

Методы

ToMessage() : Message

ToMessage.