GroupTpSlChild
One child position offered to the grouped TP/SL helpers: the quote’s write identity, the sizing and pricing inputs the math needs, and its current confirmed TP/SL snapshot.
Build these from a grouped position’s child quotes with toGroupTpSlChildren. Every amount and price is 18-decimal wei bigint, matching UnifiedQuote; trigger prices inside tpsl stay decimal strings, matching the handler.
Properties
keystringrequiredStable child identity (UnifiedQuote.key) — the key every desired map and plan is addressed by.
quoteIdbigintoptionalOn-chain quote id. Absent while the child is still off-chain; no conditional order can be written against it yet.
virtualAccountAddressoptionalPartyA the conditional order is signed for: the child’s Virtual Account (vaAddress ?? partyA).
symbolIdbigintrequiredMarket identifier.
positionTypePositionTyperequiredTrade side.
openQuantitybigintrequiredRemaining open size (quantity − closedAmount), wei — what a TP/SL leg would close.
openPricebigintrequiredPrice the child is valued and diffed against (openedPrice when settled, else requestedOpenPrice), wei.
The child’s confirmed TP/SL snapshot. Both sides empty means “no orders”.
Related
toGroupTpSlChildren— builds these from quotes.planGroupTpSl— consumes them.