WsPositionChange
StockSharp.Ws
Wire DTO for PositionChangeMessage — server→client only. The per-field updates (balance, leverage, variation margin, etc.) are flattened into the changes dictionary keyed by (int)PositionChangeTypes (the underlying enum value).
Properties
Changes
public Dictionary<int, object> Changes { get; set; }
value = wsPositionChange.Changes
wsPositionChange.Changes = value
Wire field changes. Keys are (int)PositionChangeTypes.
ClientCode
public string ClientCode { get; set; }
value = wsPositionChange.ClientCode
wsPositionChange.ClientCode = value
Wire field client.
DepoName
public string DepoName { get; set; }
value = wsPositionChange.DepoName
wsPositionChange.DepoName = value
Wire field depo.
LimitType
public TPlusLimits? LimitType { get; set; }
value = wsPositionChange.LimitType
wsPositionChange.LimitType = value
Wire field limit.
LocalTime
public DateTime LocalTime { get; set; }
value = wsPositionChange.LocalTime
wsPositionChange.LocalTime = value
Wire field l.
OriginalTransactionId
public long? OriginalTransactionId { get; set; }
value = wsPositionChange.OriginalTransactionId
wsPositionChange.OriginalTransactionId = value
Wire field originalTransactionId.
PortfolioName
public string PortfolioName { get; set; }
value = wsPositionChange.PortfolioName
wsPositionChange.PortfolioName = value
Wire field acc.
SecurityId
public WsSecurityId SecurityId { get; set; }
value = wsPositionChange.SecurityId
wsPositionChange.SecurityId = value
Wire field securityId.
ServerTime
public DateTime ServerTime { get; set; }
value = wsPositionChange.ServerTime
wsPositionChange.ServerTime = value
Wire field s.
Side
public Sides? Side { get; set; }
value = wsPositionChange.Side
wsPositionChange.Side = value
Wire field side.
StrategyId
public string StrategyId { get; set; }
value = wsPositionChange.StrategyId
wsPositionChange.StrategyId = value
Wire field strategyId.
Methods
From
public static WsPositionChange From(PositionChangeMessage msg)
result = WsPositionChange.From(msg)
From.