Order Transactions

POST /orders/txns/prepare

Changed on

Request

Request body

subaccountApprovalRecordStringAny

Construct a type with a set of properties K of type T

subaccountAddressstring
fromstring
mode'express' | 'classic' required
uiFeeReceiverstring
referralCodestring
autoCancelboolean
gasPaymentTokenstring
manualSwapPathstring[]
keepLeverageboolean
receiveTokenstring
executionFeeBufferBpsnumber double
acceptablePriceImpactBpsstring
slippagenumber double
collateralTokenstring
triggerPricestring
sizestring
orderType'market' | 'limit' | 'stop-market' | 'take-profit' | 'stop-loss' | 'twap' required
direction'long' | 'short'
symbolstring
kind'increase' | 'decrease' | 'swap' required

Response

Success

traceIdstring
warningsstring[]
expiresAtnumber double
payloadRecordStringAny required

Construct a type with a set of properties K of type T

requestIdstring required
mode'express' | 'classic' required
payloadType'transaction' | 'typed-data' required

Changes

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property to the response with the status