get https://api-glb.sim.hashkeydev.com/api/v1/spot/tradeOrders
Retrieve all traded orders
Frequency Limit Type: WEIGHT: 5
In regards to master API key. The request parameters of "side" and "accountId". If "accountId" is passed, it will only query the orders under the current account. If not passed, it will first query the main account, and if the results are less than 500, it will then query the sub-accounts.
Request Parameters
PARAMETER | TYPE | Req 'd | DESCRIPTION |
---|---|---|---|
accountId | STRING | Account ID | |
fromOrderId | LONG | From Order ID | |
symbol | STRING | Y | 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 |