跳到主要内容

查询订单修改历史 (USER_DATA)

接口描述

查询订单修改历史

HTTP请求

GET /fapi/v1/orderAmendment

请求权重

1

请求参数

名称类型是否必需描述
symbolSTRINGYES交易对
orderIdLONGNO系统订单号
origClientOrderIdSTRINGNO用户自定义的订单号
startTimeLONGNO起始时间
endTimeLONGNO结束时间
limitINTNO返回的结果集数量 默认值:50 最大值:100
recvWindowLONGNO
timestampLONGYES
  • 至少需要发送 orderIdorigClientOrderId中的一个,同时发送则以 orderId 为准

响应示例

[
{
"amendmentId": 5363, // 修改记录号
"symbol": "BTCUSDT",
"pair": "BTCUSDT",
"orderId": 20072994037,
"clientOrderId": "LJ9R4QZDihCaS8UAOOLpgW",
"time": 1629184560899, // 修改时间
"amendment": {
"price": {
"before": "30004",
"after": "30003.2"
},
"origQty": {
"before": "1",
"after": "1"
},
"count": 3 // 修改记数,代表该修改记录是这笔订单第几次修改
}
},
{
"amendmentId": 5361,
"symbol": "BTCUSDT",
"pair": "BTCUSDT",
"orderId": 20072994037,
"clientOrderId": "LJ9R4QZDihCaS8UAOOLpgW",
"time": 1629184533946,
"amendment": {
"price": {
"before": "30005",
"after": "30004"
},
"origQty": {
"before": "1",
"after": "1"
},
"count": 2
}
},
{
"amendmentId": 5325,
"symbol": "BTCUSDT",
"pair": "BTCUSDT",
"orderId": 20072994037,
"clientOrderId": "LJ9R4QZDihCaS8UAOOLpgW",
"time": 1629182711787,
"amendment": {
"price": {
"before": "30002",
"after": "30005"
},
"origQty": {
"before": "1",
"after": "1"
},
"count": 1
}
}
]