Skip to main content

Trailing

Trailing stop order β€” the trigger price follows the market at a fixed distance

orderType stringrequired

Trailing stop order β€” the trigger price follows the market at a fixed distance

Possible values: []

symbolstringrequired

Trading pair, e.g. BTC-USDT

orderSidestringrequired

BUY or SELL

Possible values: [BUY, SELL]

trailValuedoublerequired

Distance the trigger price trails the extreme price; must be positive

trailValueTypestringrequired

Whether trailValue is an absolute distance (DISTANCE) or a percentage (PERCENTAGE)

Possible values: [DISTANCE, PERCENTAGE]

triggerPriceTypestring

Reference price used to update the trailing trigger (LAST_PRICE, MARK_PRICE, or INDEX_PRICE)

Possible values: [INDEX_PRICE, LAST_PRICE, MARK_PRICE]

Default value: LAST_PRICE
clOrderIdstring

Client-supplied order identifier, echoed in the response (max 64 characters)

orderSizedouble

Order quantity in base currency; only for SELL side

quoteOrderSizedouble

Order amount in quote currency; only for BUY side

activationTriggerPricedouble

Only arm the trailing stop after the market price reaches this level

activationTriggerPriceTypestring

Reference price for the activation trigger (LAST_PRICE, MARK_PRICE, or INDEX_PRICE)

Possible values: [INDEX_PRICE, LAST_PRICE, MARK_PRICE]

Trailing
{
"orderType": "LIMIT",
"symbol": "string",
"orderSide": "BUY",
"trailValue": 0,
"trailValueType": "DISTANCE",
"triggerPriceType": "LAST_PRICE",
"clOrderId": "string",
"orderSize": 0,
"quoteOrderSize": 0,
"activationTriggerPrice": 0,
"activationTriggerPriceType": "INDEX_PRICE"
}