WsSubscribeCommand
Подключите DTO для команды «type»: «subscribe». Одна форма JSON охватывает три отдельных сообщения StockSharp поиска/подписки, выбранных полем DataType: «Транзакции» → OrderStatusMessage, «PositionChanges» → PortfolioLookupMessage, все остальное → MarketDataMessage с IsSubscribe = true. Не каждое свойство имеет смысл в каждой ветке — DTO просто переносит их все, а ToMessage выбирает правильное подмножество.
Свойства
public long? Count { get; set; }
value = wsSubscribeCommand.Count
wsSubscribeCommand.Count = value
Счет проводов.
public string DataType { get; set; }
value = wsSubscribeCommand.DataType
wsSubscribeCommand.DataType = value
Проводное поле dataType.
public DateTime? From { get; set; }
value = wsSubscribeCommand.From
wsSubscribeCommand.From = value
Проводное поле (unix микросекунды).
public int? MaxDepth { get; set; }
value = wsSubscribeCommand.MaxDepth
wsSubscribeCommand.MaxDepth = value
Проводное поле 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
Проводное поле portfolioName.
public WsSecurityId SecurityId { get; set; }
value = wsSubscribeCommand.SecurityId
wsSubscribeCommand.SecurityId = value
Проводное поле securityId.
public string States { get; set; }
value = wsSubscribeCommand.States
wsSubscribeCommand.States = value
Проводное поле штатов.
public int? TimeFrame { get; set; }
value = wsSubscribeCommand.TimeFrame
wsSubscribeCommand.TimeFrame = value
Проводное поле timeFrame.
public DateTime? To { get; set; }
value = wsSubscribeCommand.To
wsSubscribeCommand.To = value
Проводное поле до (unix микросекунд).
public long TransactionId { get; set; }
value = wsSubscribeCommand.TransactionId
wsSubscribeCommand.TransactionId = value
Проводное поле transactionId.
public string Type { get; set; }
value = wsSubscribeCommand.Type
wsSubscribeCommand.Type = value
Тип проводного поля.