跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://developer.wooxpro.com/llms.txt

Use this file to discover all available pages before exploring further.

合约跟踪委托下单 (SIGNED)

适用于用户进行合约跟踪委托订单下单

请求URL

POST https://cloud-api.wooxpro.com/contract/private/submit-trail-order

请求限制

参见 速率限制详细

请求参数

请求
curl 
 -H 'X-BM-KEY:{{AccessKey}}'
 -H 'X-BM-TIMESTAMP:{{currentTime}}'
 -H 'X-BM-SIGN:{{SIGN}}' 
 -X POST -d '{
  "symbol":"ETHUSDT",
  "side":1,
  "leverage":"1",
  "open_type":"isolated",
  "size":10,
  "activation_price":"2000",
  "callback_rate":"1",
  "activation_price_type":1
}'
https://cloud-api.wooxpro.com/contract/private/submit-trail-order
参数类型是否必填描述
symbolString必填合约交易对(如BTCUSDT)
sideInt必填订单方向
双向持仓
-1=开多
-2=平空
-3=平多
-4=开空
单向持仓
-1=买入
-2=买入(只减仓)
-3=卖出(只减仓)
-4=卖出
leverageString必填杠杆下单倍数
open_typeString必填开仓类型
-cross=全仓
-isolated=逐仓
sizeInt必填订单数量 张数
activation_priceString必填激活价格,跟踪委托单必填
callback_rateString必填回调幅度,跟踪委托单必填,最小值为0.1,最大值为5,其中1表示1%
activation_price_typeInt必填激活价格类型,跟踪委托单必填
-1=最新成交价
-2=标记价格

响应详情

响应
{
  "code": 1000,
  "message": "Ok",
  "data": {
    "order_id": 220609666322019,
  },
  "trace": "13f7fda9-9543-4e11-a0ba-cbe117989988"
}
字段类型描述
order_idInt订单编号