Order Transactions

post/orders/txns/prepare

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

Changed in 1 of the 2 revisions of this API.4

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

      response-media-type-added

    • added the non-success response with the status

      response-non-success-status-added

    • added the optional property / to the response with the status

      response-optional-property-added

    • added the optional property to the response with the status

      response-optional-property-added