delete https://api-glb.sim.hashkeydev.com/api/v1/spot/cancelAllOpenOrders
Cancel all open orders (Max 200 orders per request).
If requesting via main trading account API Key, only orders from main trading account will be canceled, but not the ones from sub trading account.
Each batch cancel has a upper limit of 200 orders
Frequency Limit Type: Weight 1
Request Parameters
PARAMETER | TYPE | Req'd | Example values | DESCRIPTION |
---|---|---|---|---|
symbol | STRING | BTCUSDT | Currency pair name. Return results for all Symbols if not specified. | |
side | ENUM | BUY | BUY or SELL | |
timestamp | LONG | Y | 1714311403031 | Timestamp |
fromOrderId | LONG | 1470930457684189696 | From Order ID, from which order Id will the results be generated. | |
limit | INTEGER | 20 | Default 100, Max 200. Will only return 200 results even if limit being set greater than 200. |
Response Content
PARAMETER | TYPE | Example values | DESCRIPTION |
---|---|---|---|
code | STRING | 0 | Return code of cancellation request. |
message | STRING | success | Return message of cancellation request. Reflecting whether the request is successfully accepted (does not indicate the task is successfully completed) |
timestamp | LONG | 1541161088303 | Timestamp when returning |
lastOrderId | LONG | 1470930457684189696 | Last Order ID to be canceled |