get https://api-glb.sim.hashkeydev.com/api/v1/spot/tradeOrders
Retrieve all traded orders
Frequency Limit Type: WEIGHT: 5
Request Parameters
| PARAMETER | TYPE | Req 'd | DESCRIPTION |
|---|---|---|---|
| fromOrderId | LONG | From Order Id, which is used to return orders whose orders' id are smaller than this orderId | |
| symbol | STRING | Currency pair | |
| startTime | LONG | Start Timestamp ( for order creation time at HashKey) | |
| endTime | LONG | End Timestamp. ( for order creation time at HashKey) Only supports the last 90 days timeframe | |
| side | STRING | Side | |
| limit | INTEGER | Default 500, max 1000 | |
| timestamp | LONG | Y | Timestamp |
Response Content
| PARAMETER | TYPE | Example values | DESCRIPTION |
|---|---|---|---|
| No | Object Array | Query result array | |
| accountId | LONG | 1464567707961719552 | Account ID |
| exchangeId | LONG | 301 | Account number |
| symbol | STRING | ETHUSD | Trading pair |
| symbolName | STRING | ETHUSD | Trading pair name |
| clientOrderId | STRING | 9999999998000 | An ID defined by the client for the order, it will be automatically generated if it is not sent in the request |
| orderId | LONG | 1484664263574306816 | System generated order ID |
| price | STRING(value) | 1860 | Price |
| origQty | STRING(value) | 10 | Quantity |
| executedQty | STRING(value) | 10 | Traded volume |
| cumulativeQuoteQty | STRING(value) | 18600 | Cumulative volume |
| avgPrice | STRING(value) | 1860 | Average traded price |
| status | ENUM | FILLED | Order status |
| timeInForce | ENUM | GTC | Duration of the order before expiring |
| type | ENUM | LIMIT | Order Type |
| side | ENUM | SELL | BUY or SELL |
| stopPrice | STRING(value) | 0.0 | Not used |
| icebergQty | STRING(value) | 0.0 | Not used |
| time | STRING(value) | 1691721772082 | Current Timestamp |
| updateTime | STRING(value) | 1691721796685 | Update Timestamp |
| isWorking | BOOLEAN | true | Not used |
| reqAmount | STRING | 0 | Requested cash amount |
| stpMode | ENUM | EXPIRE_TAKER | Self Trade Prevention Mode. Enum: EXPIRE_TAKER, EXPIRE_MAKER Default EXPIRE_TAKER if not specified. |