跳到主要内容

查询所有条件订单(包括历史订单) (USER_DATA)

接口描述

查询所有条件订单(包括历史订单)

  • 请注意,如果订单满足如下条件,不会被查询到:
    • 订单的最终状态为 CANCELED 或者 EXPIRED 并且 订单没有任何的成交记录 并且 订单生成时间 + 3天 < 当前时间
    • 订单创建时间 + 90天 < 当前时间

HTTP请求

GET /fapi/v1/allAlgoOrders

请求权重

5

请求参数

名称类型是否必需描述
symbolSTRINGYES
algoIdLONGNO只返回此orderID及之后的订单,缺省返回最近的订单
startTimeLONGNO
endTimeLONGNO
pageINTNO
limitINTNO返回的结果集数量 默认值:500 最大值:1000
recvWindowLONGNO
timestampLONGYES
  • 查询时间范围最大不得超过7天
  • 默认查询最近7天内的数据

响应示例

[
{
"algoId": 2146760,
"clientAlgoId": "6B2I9XVcJpCjqPAJ4YoFX7",
"algoType": "CONDITIONAL",
"orderType": "TAKE_PROFIT",
"symbol": "BNBUSDT",
"side": "SELL",
"positionSide": "BOTH",
"timeInForce": "GTC",
"quantity": "0.01",
"algoStatus": "CANCELED",
"actualOrderId": "",
"actualPrice": "0.00000",
"triggerPrice": "750.000",
"price": "750.000",
"icebergQuantity": null,
"tpTriggerPrice": "0.000",
"tpPrice": "0.000",
"slTriggerPrice": "0.000",
"slPrice": "0.000",
"tpOrderType": "",
"selfTradePreventionMode": "EXPIRE_MAKER",
"workingType": "CONTRACT_PRICE",
"priceMatch": "NONE",
"closePosition": false,
"priceProtect": false,
"reduceOnly": false,
"createTime": 1750485492076,
"updateTime": 1750514545091,
"triggerTime": 0,
"goodTillDate": 0
}
]