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