Skip to main content

BindPositionTpSlReq

symbolstringrequired

Market symbol of the position to attach TP/SL to (e.g. BTC-PERP).

orderSidestringrequired

Side of the closing trigger order; the opposite of the position direction (SELL for LONG, BUY for SHORT).

Possible values: [BUY, SELL]

positionModestring

Position mode of the target position (ONE_WAY or HEDGE). Required in hedge mode to disambiguate.

Possible values: [ONE_WAY, HEDGE, ISOLATED]

positionIdstringrequired

Identifier of the position to attach TP/SL to.

takeProfitTriggerTypestring

Reference price type used to evaluate the take-profit trigger (INDEX_PRICE, LAST_PRICE, or MARK_PRICE).

Possible values: [INDEX_PRICE, LAST_PRICE, MARK_PRICE]

takeProfitTriggerPricedouble

Take-profit trigger price. Required if stopLossTriggerPrice is not provided.

stopLossTriggerTypestring

Reference price type used to evaluate the stop-loss trigger (INDEX_PRICE, LAST_PRICE, or MARK_PRICE).

Possible values: [INDEX_PRICE, LAST_PRICE, MARK_PRICE]

stopLossTriggerPricedouble

Stop-loss trigger price. Required if takeProfitTriggerPrice is not provided.

BindPositionTpSlReq
{
"symbol": "string",
"orderSide": "BUY",
"positionMode": "ONE_WAY",
"positionId": "string",
"takeProfitTriggerType": "INDEX_PRICE",
"takeProfitTriggerPrice": 0,
"stopLossTriggerType": "INDEX_PRICE",
"stopLossTriggerPrice": 0
}