WsSubscribeCommand
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
public long? Count { get; set; }
value = wsSubscribeCommand.Count
wsSubscribeCommand.Count = value
Wire field count.
public string DataType { get; set; }
value = wsSubscribeCommand.DataType
wsSubscribeCommand.DataType = value
Wire field dataType.
public DateTime? From { get; set; }
value = wsSubscribeCommand.From
wsSubscribeCommand.From = value
Wire field from (unix microseconds).
public int? MaxDepth { get; set; }
value = wsSubscribeCommand.MaxDepth
wsSubscribeCommand.MaxDepth = value
Wire field maxDepth.
public long? PortfolioId { get; set; }
value = wsSubscribeCommand.PortfolioId
wsSubscribeCommand.PortfolioId = value
Wire field portfolioId — the portfolio primary key (broker PK). Optional and additive; see PortfolioId. Meaningful only for the portfolio-scoped lookups (Transactions / PositionChanges).
public string PortfolioName { get; set; }
value = wsSubscribeCommand.PortfolioName
wsSubscribeCommand.PortfolioName = value
Wire field portfolioName.
public WsSecurityId SecurityId { get; set; }
value = wsSubscribeCommand.SecurityId
wsSubscribeCommand.SecurityId = value
Wire field securityId.
public string States { get; set; }
value = wsSubscribeCommand.States
wsSubscribeCommand.States = value
Wire field states.
public int? TimeFrame { get; set; }
value = wsSubscribeCommand.TimeFrame
wsSubscribeCommand.TimeFrame = value
Wire field timeFrame.
public DateTime? To { get; set; }
value = wsSubscribeCommand.To
wsSubscribeCommand.To = value
Wire field to (unix microseconds).
public long TransactionId { get; set; }
value = wsSubscribeCommand.TransactionId
wsSubscribeCommand.TransactionId = value
Wire field transactionId.
public string Type { get; set; }
value = wsSubscribeCommand.Type
wsSubscribeCommand.Type = value
Wire field type.