跳转到主要内容

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.

查询合约委托订单记录 (KEYED)

适用于查询某合约委托订单记录

请求URL

GET https://cloud-api.wooxpro.com/contract/private/get-open-orders

请求限制

参见 速率限制详细

请求参数

请求
curl -H 'X-BM-KEY:{{AccessKey}}'
https://cloud-api.wooxpro.com/contract/private/get-open-orders?symbol=BTCUSDT&order_state=partially_filled&type=market&limit=10
参数类型是否必填描述
symbolString选填合约交易对(如BTCUSDT)
typeString选填订单类型
-limit=限价单
-market=市价单
-trailing=跟踪委托
默认返回全部
order_stateString选填订单状态
-all=全部(默认)
-partially_filled=部分成交
limitint选填返回结果的数量,最大为100,默认100条

响应详情

响应
{
  "code": 1000,
  "message": "Ok",
  "data": [
    {
      "order_id": "220908185908509",
      "client_order_id": "BM123",
      "price": "14277",
      "size": "7216",
      "symbol": "BTCUSDT",
      "state": 4,
      "side": 3,
      "type": "limit",
      "position_mode": "hedge_mode",
      "leverage": "0",
      "open_type": "isolated",
      "deal_avg_price": "14277",
      "deal_size": "7216",
      "preset_take_profit_price_type": 1,
      "preset_stop_loss_price_type": 2,
      "preset_take_profit_price": "68000",
      "preset_stop_loss_price": "60000",
      "create_time": 1662368173000,
      "update_time": 1662368173000
    }
  ],
  "trace": "80ba1f07-1b6f-46ad-81dd-78ac7e9bbccd"
}
字段类型描述
symbolString合约交易对(如BTCUSDT)
order_idString订单编号
client_order_idString用户自定义ID(如果该字段未定义,则返回空)
sideInt订单方向
双向持仓
-1=开多
-2=平空
-3=平多
-4=开空
单向持仓
-1=买入
-2=买入(只减仓)
-3=卖出(只减仓)
-4=卖出
typeString订单类型
-limit=限价单
-market=市价单
-trailing=跟踪委托单
position_modeString持仓模式
-hedge_mode=双向持仓
-one_way_mode=单向持仓
sizeString订单数量
leverageString杠杆下单倍数
open_typeString开仓类型
-cross=全仓
-isolated=逐仓
deal_avg_priceString成交均价
deal_sizeString成交数量
priceString委托价格
sizeString委托数量
stateInt订单状态
-2=委托中
activation_priceString激活价格,跟踪委托单返回
callback_rateString回调幅度,跟踪委托单返回
activation_price_typeInt激活价格类型,跟踪委托单返回
-1=最新成交价
-2=标记价格
preset_take_profit_price_typeInt预设止盈委托价格类型
-1=最新成交价
-2=标记价格
preset_stop_loss_price_typeInt预设止损委托价格类型
-1=最新成交价
-2=标记价格
preset_take_profit_priceString预设止盈价格
preset_stop_loss_priceString预设止损价格
create_timeLong订单创建时间(ms)
update_timeLong订单更新时间(ms)