Skip to main content

BindTpSlRequest

symbolstringrequired

Market symbol

sidestringrequired

Required in HEDGE mode — closes the specified position side

Possible values: [BUY, SELL]

takeProfitPricenumber

Take profit trigger price. At least one of takeProfitPrice or stopLossPrice must be set

takeProfitTriggerstring

markPrice (default) · lastPrice

Possible values: [markPrice, lastPrice]

stopLossPricenumber

Stop loss trigger price. At least one of takeProfitPrice or stopLossPrice must be set

stopLossTriggerstring

markPrice (default) · lastPrice

Possible values: [markPrice, lastPrice]

positionModestring

ONE_WAY (default) · HEDGE · ISOLATED

Possible values: [ONE_WAY, HEDGE, ISOLATED]

positionIdstring

Required when positionMode is ISOLATED

BindTpSlRequest
{
"symbol": "string",
"side": "BUY",
"takeProfitPrice": 0,
"takeProfitTrigger": "markPrice",
"stopLossPrice": 0,
"stopLossTrigger": "markPrice",
"positionMode": "ONE_WAY",
"positionId": "string"
}