Skip to Content
Symmio Trading-SDK — the SDK surface for builders on HyperEVM
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 (1 = market).

conditionalPricestring

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

conditionalPriceType"market" | "last_close"

Wire form of TpSlPriceTypemarket 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