TpSlConditionalOrderLeg
One leg of a conditional-order message body. Built by buildConditionalOrderLeg and carried as the takeProfit / stopLoss field of a TpSlConditionalOrderMessage.
Fields
quantitystringQuote quantity (decimal string).
pricestringSlippage-shifted fill price (decimal string, rounded to market precision).
orderTypenumberWire order_type (1 = market).
conditionalPricestringTrigger price (decimal string, rounded to market precision).
conditionalPriceType"market" | "last_close"Wire form of TpSlPriceType — market for mark price, last_close for last-close.
Related
buildConditionalOrderLeg— builds this.TpSlPriceType— the SDK-facing price type mapped ontoconditionalPriceType.- The
ZERO_LEGconstant is a zero-value leg of this shape used to padnulllegs before signing.
Last updated on