All Orders
GET
/api/v1/gateway/user/history/orderAll Orders provides comprehensive details about all historical orders for a specific trading pair on our platform. This includes both filled, expired and canceled orders.
请求参数
The trading pair symbol for the order.
Default 500; max 1000.
The start of the time range for the claim history in Unix milliseconds.
Specifies the ending time (Unix timestamps in milliseconds & UTC) for retrieving deposit history. Only deposits made before or at this timestamp will be included in the result.
Specifies the order side, either "BUY" for a buy order or "SELL" for a sell order.
Specifies the order type. either "LIMIT" for a limit order or "Market" for a market order.
The ID from which to start fetching records. In this API, since the order is descending (backwards), if fromId is set to 100, the system will return records starting from the ID just before 100 and continue moving backwards. The retrieval will proceed until the limit is reached.
示例代码
Responses
Indicates whether the API request encountered any errors.
An array containing details for each historical order.
The trading pair symbol for the order.
A unique identifier for the order.
The unique identifier assigned by the client to the order.
The price specified for the order.
The original quantity of the asset in the order.
The quantity of the asset that has been executed.
The cumulative amount in the quote currency that has been traded.
The current status of the order. Possible values include:
NEW: The order has been created and is awaiting processing.
PARTIALLY_FILLED: The order has been partially filled.
FILLED: The order has been completely filled.
CANCELED: The order has been canceled.
REJECTED: The order has been rejected.
EXPIRED: The order has expired.
The time in force for the order. "GTC" for Good Til Canceled, "FOK" for Fill Or Kill, and "IOC" Immediate Or Cancel.
The type of the order (e.g., "LIMIT" or "MARKET").
The side of the order, indicating whether it's a "BUY" or "SELL" order.
The last time that the order was processed by the match engine (Unix timestamps in milliseconds & UTC).
The time that the order was placed (Unix timestamps in milliseconds & UTC).
{
"error": false,
"orders": [
{
"symbol": "WBTCUSDT",
"orderId": 91314,
"clientOrderId": "1703223681782",
"price": 36000,
"origQty": 0.1,
"executedQty": 0,
"cumulativeQuoteQty": 0,
"status": "NEW",
"timeInForce": "GTC",
"type": "LIMIT",
"side": "BUY",
"workingTime": 1703223719815,
"orderTime": 1703223719814
}
]
}