WsUnsubscribeCommand

StockSharp.Ws

Wire DTO for the "type": "unsubscribe" command. It names the kind the same way WsSubscribeCommand does: "Transactions" leaves an OrderStatusMessage subscription, "PositionChanges" a PortfolioLookupMessage one, and anything else - including a request that names no kind - a MarketDataMessage one. The server matches originalTransactionId to the subscription it owns.

Properties

DataType
public string DataType { get; set; }
value = wsUnsubscribeCommand.DataType
wsUnsubscribeCommand.DataType = value

Wire field dataType - the kind of subscription being left.

OriginalTransactionId
public long OriginalTransactionId { get; set; }
value = wsUnsubscribeCommand.OriginalTransactionId
wsUnsubscribeCommand.OriginalTransactionId = value

Wire field originalTransactionId.

SecurityId
public WsSecurityId SecurityId { get; set; }
value = wsUnsubscribeCommand.SecurityId
wsUnsubscribeCommand.SecurityId = value

Wire field securityId.

TransactionId
public long TransactionId { get; set; }
value = wsUnsubscribeCommand.TransactionId
wsUnsubscribeCommand.TransactionId = value

Wire field transactionId.

Type
public string Type { get; set; }
value = wsUnsubscribeCommand.Type
wsUnsubscribeCommand.Type = value

Wire field type.

Methods

ToMessage
public Message ToMessage()
result = wsUnsubscribeCommand.ToMessage()

ToMessage.