Skip to main content

Trailing

Trailing stop order that follows the market by a fixed distance and triggers when the reference price retraces beyond that distance from the best reached level.

orderType stringrequired

Trailing stop order that follows the market by a fixed distance and triggers when the reference price retraces beyond that distance from the best reached level.

Possible values: []

clOrderIdstring

Client-assigned order identifier for tracking and idempotency.

symbolstringrequired

Trading pair symbol.

orderSidestringrequired

Order side: BUY or SELL.

Possible values: [BUY, SELL]

orderSizeint64required

Order size in number of contracts.

positionModestring

Position mode this order applies to (one-way or hedge).

Possible values: [ONE_WAY, HEDGE, ISOLATED]

Default value: ONE_WAY
reduceOnlyboolean

If true, the order can only reduce an existing position and cannot open or increase one.

trailValuedoublerequired

Trailing distance the stop price maintains from the best reached reference price.

trailValueTypestringrequired

How trailValue is interpreted (absolute price offset or percentage).

Possible values: [DISTANCE, PERCENTAGE]

trailTriggerPriceTypestringrequired

Reference price type used to evaluate the trailing trigger.

Possible values: [INDEX_PRICE, LAST_PRICE, MARK_PRICE]

activationTriggerPricedouble

Optional price at which the trailing logic starts. Trailing is inactive until this price is reached.

activationTriggerTypestring

Reference price type used to evaluate the activation price.

Possible values: [INDEX_PRICE, LAST_PRICE, MARK_PRICE]

Trailing
{
"orderType": "LIMIT",
"clOrderId": "string",
"symbol": "string",
"orderSide": "BUY",
"orderSize": 0,
"positionMode": "ONE_WAY",
"reduceOnly": true,
"trailValue": 0,
"trailValueType": "DISTANCE",
"trailTriggerPriceType": "INDEX_PRICE",
"activationTriggerPrice": 0,
"activationTriggerType": "INDEX_PRICE"
}