TpSlConditionalOrderMessage
The create/edit conditional-order message body (pre-signature). Built by buildConditionalOrderMessage and signed by signTpSlRequest. A null leg means “no order on that side”; toSignableTpSlMessage pads any null with ZERO_LEG before hashing.
Fields
virtualAccountAddressPartyA (the VA address) that owns the quote.
subAccountAddressSubAccount that owns the VA.
saltstringRandom uint256 salt (decimal string) for replay protection.
quoteIdnumber | nullOn-chain quote id (or tempQuoteId); null for a pre-chain order with no id yet.
symbolIdnumberSolver market id.
positionType0 | 1Quote direction — 0 = long, 1 = short.
affiliateAddressAffiliate bound to the order.
takeProfitTpSlConditionalOrderLeg | nullThe TP leg, or null.
stopLossTpSlConditionalOrderLeg | nullThe SL leg, or null.
sendQuotenullAlways null for a TP/SL message.
Related
buildConditionalOrderMessage— builds this.TpSlConditionalOrderLeg— the leg shape.toSignableTpSlMessage— padsnullfields before signing.
Last updated on