Skip to main content

Query Option Order History (TRADE)

API Description

Query all finished orders within 5 days, finished status: CANCELLED FILLED REJECTED.

HTTP Request

GET /eapi/v1/historyOrders

Request Weight

3

Request Parameters

NameTypeMandatoryDescription
symbolSTRINGYESOption trading pair
orderIdLONGNOReturns the orderId and subsequent orders, the most recent order is returned by default
startTimeLONGNOStart Time, e.g 1593511200000
endTimeLONGNOEnd Time, e.g 1593512200000
limitINTNONumber of result sets returned Default:100 Max:1000
recvWindowLONGNO
timestampLONGYES

Response Example

[
{
"orderId": 4611922413427359795,
"symbol": "BTC-220715-2000-C",
"price": "18000.00000000",
"quantity": "-0.50000000",
"executedQty": "-0.50000000",
"fee": "3.00000000",
"side": "SELL",
"type": "LIMIT",
"timeInForce": "GTC",
"reduceOnly": false,
"postOnly": false,
"createTime": 1657867694244,
"updateTime": 1657867888216,
"status": "FILLED",
"reason": "0",
"avgPrice": "18000.00000000",
"source": "API",
"clientOrderId": "",
"priceScale": 2,
"quantityScale": 2,
"optionSide": "CALL",
"quoteAsset": "USDT",
"mmp": false
}
]