跳到主要内容

查询条件订单 (USER_DATA)

接口描述

查询条件订单状态

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

HTTP请求

GET /fapi/v1/algoOrder

请求权重

1

请求参数

名称类型是否必需描述
algoIdLONGNO系统订单号
clientAlgoIdSTRINGNO用户自定义的订单号
recvWindowLONGNO
timestampLONGYES

注意:

  • 至少需要发送 algoIdclientAlgoId中的一个
  • algoIdsymbol维度是自增的

响应示例

{
"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
}