GroupTpSlOrder
One take-profit or stop-loss order row in a grouped position’s overview list. Produced by toGroupTpSlOrders.
Properties
keystringrequiredStable child identity.
quoteIdbigintoptionalOn-chain quote id, when the child is anchored.
conditionalOrderTypeTpSlConditionalOrderTyperequiredWhich side this row is.
triggerPricestringrequiredThe desired value when overridden, else the confirmed one.
Price type in force for this row.
sizePercentbigintrequiredThe child’s share of the group’s open notional, as an 18-decimal fixed-point percent.
sizeNotionalbigintrequiredThe child’s open notional (openQuantity × openPrice), wei.
Lifecycle of the side as the handler last reported it. A row that exists only as a local edit reports "canceled" —
branch on hasLiveOrder instead.
isPendingbooleanrequiredtrue while the side is mid-flight.
hasLiveOrderbooleanrequiredtrue when the handler already holds this order.
cohQuoteIdstringoptionalThe handler-issued conditional-order id, when live — the delete target.
Last updated on