WsOrderConditionFields
StockSharp.Ws
The condition of a stop, a take-profit or an algo parent, as an order command states it on the wire.
Properties
AlgoCode
public string AlgoCode { get; set; }
value = wsOrderConditionFields.AlgoCode
wsOrderConditionFields.AlgoCode = value
Wire field algoCode.
AlgoEndAt
public DateTime? AlgoEndAt { get; set; }
value = wsOrderConditionFields.AlgoEndAt
wsOrderConditionFields.AlgoEndAt = value
Wire field algoEndAt (unix microseconds).
AlgoParametersJson
public string AlgoParametersJson { get; set; }
value = wsOrderConditionFields.AlgoParametersJson
wsOrderConditionFields.AlgoParametersJson = value
Wire field algoParams.
AlgoStartAt
public DateTime? AlgoStartAt { get; set; }
value = wsOrderConditionFields.AlgoStartAt
wsOrderConditionFields.AlgoStartAt = value
Wire field algoStartAt (unix microseconds).
ConditionType
public string ConditionType { get; set; }
value = wsOrderConditionFields.ConditionType
wsOrderConditionFields.ConditionType = value
Wire field conditionType.
IsTrailing
public bool? IsTrailing { get; set; }
value = wsOrderConditionFields.IsTrailing
wsOrderConditionFields.IsTrailing = value
Wire field isTrailing.
LimitPrice
public decimal? LimitPrice { get; set; }
value = wsOrderConditionFields.LimitPrice
wsOrderConditionFields.LimitPrice = value
Wire field limitPrice.
StopPrice
public decimal? StopPrice { get; set; }
value = wsOrderConditionFields.StopPrice
wsOrderConditionFields.StopPrice = value
Wire field stopPrice.
TrailingOffset
public decimal? TrailingOffset { get; set; }
value = wsOrderConditionFields.TrailingOffset
wsOrderConditionFields.TrailingOffset = value
Wire field trailingOffset.
Methods
ReadCondition
public OrderCondition ReadCondition(OrderTypes? orderType, string command)
result = wsOrderConditionFields.ReadCondition(orderType, command)
The condition the command states for an order of the given type; none for an order that is not conditional.
- orderType
- The type of the order the command is about.
- command
- The command's name, for the refusal of one that states too little.
Returns: The condition, or .
StateCondition
public void StateCondition(OrderCondition condition)
wsOrderConditionFields.StateCondition(condition)
States the condition an order carries.
- condition
- The condition, or for an order that has none.
Fields
AlgoConditionType
public const string AlgoConditionType
value = WsOrderConditionFields.AlgoConditionType
The ConditionType of an algo parent.