跳到主要内容

修改止盈止损计划委托

  • POST /capi/v2/order/modifyTpSlOrder

权重(IP): 2, 权重(UID): 5

请求参数

参数名类型是否必填说明
orderIdLong要修改的止盈止损计划委托订单ID
triggerPriceString新的触发价格
executePriceString新的执行价格。不传或者传0则市价执行,大于0为限价执行
triggerPriceTypeInteger触发价格类型:
1:最新价格
3:标记价格
默认最新价格

请求示例

curl -X POST "https://api-contract.weex.com/capi/v2/order/modifyTpSlOrder" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"orderId": 596471064624628269, "triggerPrice": "51000", "executePrice": "0", "triggerPriceType": 1}'

返回参数

参数名类型说明
codeString响应码,"00000"表示成功
msgString响应消息
requestTimeLong返回时间
Unix毫秒时间戳
dataObject响应数据(该接口返回null)

返回示例

{
"code": "00000",
"msg": "success",
"requestTime": 1765956639711,
"data": ""
}