Skip to Content
Symmio Trading-SDK — the SDK surface for builders on Arbitrum
CoreTP/SLTpSlConditionalOrderLeg

TpSlConditionalOrderLeg

One leg of a conditional-order message body. Built by buildConditionalOrderLeg and carried as the takeProfit / stopLoss field of a TpSlConditionalOrderMessage.

Fields

quantitystring

Quote quantity (decimal string).

pricestring

Slippage-shifted fill price (decimal string, rounded to market precision).

orderTypenumber

Wire order_type: 2 = market-best-effort (the default), 0 = limit. The handler rejects 1 (market) for TP/SL.

conditionalPricestring

Trigger price (decimal string, rounded to market precision).

conditionalPriceType"market" | "last_close"

Wire form of TpSlPriceType — market for mark price, last_close for last-close.

  • buildConditionalOrderLeg — builds this.
  • TpSlPriceType — the SDK-facing price type mapped onto conditionalPriceType.
  • The ZERO_LEG constant is a zero-value leg of this shape used to pad null legs before signing.
Last updated on