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.
Properties
Count
public long? Count { get; set; }
value = wsSubscribeCommand.Count
wsSubscribeCommand.Count = value
Wire field count.
DataType
public string DataType { get; set; }
value = wsSubscribeCommand.DataType
wsSubscribeCommand.DataType = value
Wire field dataType.
From
public DateTime? From { get; set; }
value = wsSubscribeCommand.From
wsSubscribeCommand.From = value
Wire field from (unix microseconds).
MaxDepth
public int? MaxDepth { get; set; }
value = wsSubscribeCommand.MaxDepth
wsSubscribeCommand.MaxDepth = value
Wire field maxDepth.
PortfolioName
public string PortfolioName { get; set; }
value = wsSubscribeCommand.PortfolioName
wsSubscribeCommand.PortfolioName = value
Wire field portfolioName.
SecurityId
public WsSecurityId SecurityId { get; set; }
value = wsSubscribeCommand.SecurityId
wsSubscribeCommand.SecurityId = value
Wire field securityId.
States
public string States { get; set; }
value = wsSubscribeCommand.States
wsSubscribeCommand.States = value
Wire field states.
TimeFrame
public int? TimeFrame { get; set; }
value = wsSubscribeCommand.TimeFrame
wsSubscribeCommand.TimeFrame = value
Wire field timeFrame.
To
public DateTime? To { get; set; }
value = wsSubscribeCommand.To
wsSubscribeCommand.To = value
Wire field to (unix microseconds).
TransactionId
public long TransactionId { get; set; }
value = wsSubscribeCommand.TransactionId
wsSubscribeCommand.TransactionId = value
Wire field transactionId.
Type
public string Type { get; set; }
value = wsSubscribeCommand.Type
wsSubscribeCommand.Type = value
Wire field type.