用户强平单历史(USER_DATA)
接口描述
用户强平单历史
HTTP请求
GET /dapi/v1/forceOrders
请求权重
带symbol20, 不带symbol50
请求参数
名称 | 类型 | 是否必需 | 描述
------------- | ------ | -------- | ---------------------------------------- symbol | STRING | NO | autoCloseType | ENUM | NO | "LIQUIDATION": 强平单, "ADL": ADL 减仓单. startTime | LONG | NO | endTime | LONG | NO | limit | INT | NO | Default 50; max 100. recvWindow | LONG | NO | timestamp | LONG | YES |
- 如果没有传 "autoCloseType", 强平单和 ADL 减仓单都会被返回
- 如果没有传"startTime", 只会返回"endTime"之前 200 天内的数据
响应示例
[
{
orderId: 165123080,
symbol: "BTCUSD_200925",
pair: "BTCUSD",
status: "FILLED",
clientOrderId: "autoclose-1596542005017000006",
price: "11326.9",
avgPrice: "11326.9",
origQty: "1",
executedQty: "1",
cumBase: "0.00882854",
timeInForce: "IOC",
type: "LIMIT",
reduceOnly: false,
closePosition: false,
side: "SELL",
positionSide: "BOTH",
stopPrice: "0",
workingType: "CONTRACT_PRICE",
priceProtect: false,
origType: "LIMIT",
time: 1596542005019,
updateTime: 1596542005050,
},
{
orderId: 207251986,
symbol: "BTCUSD_200925",
pair: "BTCUSD",
status: "FILLED",
clientOrderId: "autoclose-1597307316020000006",
price: "11619.4",
avgPrice: "11661.2",
origQty: "1",
executedQty: "1",
cumBase: "0.00857544",
timeInForce: "IOC",
type: "LIMIT",
reduceOnly: false,
closePosition: false,
side: "SELL",
positionSide: "LONG",
stopPrice: "0",
workingType: "CONTRACT_PRICE",
priceProtect: false,
origType: "LIMIT",
time: 1597307316022,
updateTime: 1597307316035,
},
]