BindTpSlRequest
symbolstring必填
市场交易对
sidestring必填
BUY 或 SELL。在双向持仓时为必填项,买方 BUY 绑定至空头仓位,卖方 SELL 则绑定至多头仓位
可选值: [BUY, SELL]
takeProfitPricenumber
创建带有止盈订单时强制执行。指示触发价格。必须至少设置 takeProfitPrice 或 stopLossPrice。
takeProfitTriggerstring
用于创建带有止盈订单的选项。有效选项:markPrice(默认)或 lastPrice
可选值: [markPrice, lastPrice]
stopLossPricenumber
创建带有止损订单时强制执行。指示触发价格。必须至少设置 takeProfitPrice 或 stopLossPrice 其中之一
stopLossTriggerstring
用于创建带有止损订单的选项。有效选项:markPrice(默认)或 lastPrice
可选值: [markPrice, lastPrice]
positionModestring
单向持仓 ONE_WAY(默认)或双向持仓 HEDGE 或逐仓保证金模式 ISOLATED,在非单向持仓时为必填项
可选值: [ONE_WAY, HEDGE, ISOLATED]
positionIdstring
想要设置的仓位 ID。在逐仓保证金模式为必填项
BindTpSlRequest
{
"symbol": "string",
"side": "BUY",
"takeProfitPrice": 0,
"takeProfitTrigger": "markPrice",
"stopLossPrice": 0,
"stopLossTrigger": "markPrice",
"positionMode": "ONE_WAY",
"positionId": "string"
}