get https://api-pro.sim.hashkeydev.com/api/v1/spot/openOrders
Query current active orders
Weight: 1
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 | Example values | DESCRIPTION |
---|---|---|---|---|
orderId | LONG | 1470930457684189696 | Order ID | |
symbol | STRING | BTCUSD | Currency pair. Return all if not specified. | |
side | STRING | BUY | Side | |
limit | INTEGER | 20 | Default 500, Maximum 1000 | |
timestamp | LONG | Y | 1714311403031 | Timestamp |
Response Content
PARAMETER | TYPE | Example values | DESCRIPTION |
---|---|---|---|
No | Object Array | Query result array | |
- accountId | LONG | 1471090223379184384 | Account number |
- exchangeId | LONG | 301 | Exchange Number |
- symbol | STRING | BTCUSD | Trading pair |
- symbolName | STRING | BTCUSD | Trading pair name |
- clientOrderId | STRING | 123456 | An ID defined by the client for the order, it will be automatically generated if it is not sent in the request |
- orderId | LONG | 1470930457684189696 | System generated order ID |
- price | STRING (decimal) | 28000 | Price |
- origQty | STRING (decimal) | 0.01 | Quantity |
- executedQty | STRING (decimal) | 0 | Traded volume |
- cumulativeQuoteQty | STRING (decimal) | 0 | Cumulative volume |
- avgPrice | STRING (decimal) | 0 | Average traded price |
- status | ENUM | NEW | Order status |
- timeInForce | ENUM | GTC | Duration of the order before expiring |
- type | ENUM | LIMIT | Order Type |
- side | ENUM | BUY | BUY or SELL |
- stopPrice | STRING (decimal) | 0.0 | Not used |
- icebergQty | STRING (decimal) | 0.0 | Not used |
- time | LONG | 1690084574839 | Order created timestamp |
- updateTime | LONG | 1690084574843 | Order last updated timestamp |
- isWorking | BOOLEAN | TRUE | Not used |
- reqAmount | STRING | 0 | Requested cash amount |