跳到主要内容

获取计划委托订单列表

响应示例

{
"success": true,
"code": 0,
"data": [
{
"id": "739114860879304259",
"symbol": "DOGE_USD",
"leverage": 2,
"side": 1,
"triggerPrice": 0.00001,
"price": 0.00001,
"vol": 1,
"openType": 1,
"triggerType": 2,
"state": 1,
"executeCycle": 87600,
"trend": 1,
"orderType": 1,
"errorCode": 0,
"priceProtect": 0,
"createTime": 1761889115000,
"updateTime": 1761889115000,
"positionMode": 1,
"lossTrend": 1,
"profitTrend": 1,
"reduceOnly": false
}
]
}
  • GET /api/v1/private/planorder/list/orders

需要权限: 读取订单信息

请求参数:

参数名类型是否必填说明
symbolstringfalse合约名
statesstringfalse状态,1:未触发,2:已取消,3:已执行,4:已失效,5:执行失败;多个用 ',' 隔开
sideintfalse订单方向,1:开多,2:平空,3:开空,4:平多
start_timelongtrue开始时间(Unix毫秒时间戳)
end_timelongtrue结束时间(Unix毫秒时间戳)
page_numinttrue当前页数,默认为1
page_sizeinttrue每页大小,默认20,最大100

响应参数:

参数名类型说明
idint订单id
symbolstring合约名
leveragedecimal杠杆倍数
sidestring订单方向, 1开多,3开空
triggerPricedecimal触发价
pricedecimal执行价格
voldecimal下单数量
openTypeint开仓类型,1:逐仓,2:全仓
triggerTypeint触发类型,1:大于等于,2:小于等于
stateint状态,1:未触发,2:已取消,3:已执行,4:已失效,5:执行失败
executeCycleint执行周期,单位:小时
trendint触发价格类型,1:最新价,2:合理价,3:指数价
errorCodeint执行失败时错误码,0:正常
orderIdlong订单id,执行成功时返回
orderTypeint订单类型,1:限价单,2:Post Only只做Maker,3:立即成交或立即取消,4:全部成交或者全部取消,5:市价单
createTimelong创建时间
updateTimelong修改时间
priceProtectint价差保护 1开启0关闭
positionModeint用户设置持仓类型 默认0:历史订单无记录 2:单向 1:双向
lossTrendint止损参考价格类型 1 最新价 2合理价 3 指数价
profitTrendint止盈参考价格类型 1 最新价 2合理价 3 指数价
stopLossPricedecimal止损价
takeProfitPricedecimal止盈价
reduceOnlyboolean只减仓