Cancel Order
DELETE🔒 Trading
Cancel a pending order. If neither orderID nor clOrderID is provided, all orders in the specified market are cancelled. When cancelling by clOrderID, all orders with the same ID are cancelled.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | String | Yes | Market symbol |
| orderID | String | No | Order ID to cancel |
| clOrderID | String | No | Custom order ID to cancel |
Response Content
| Name | Type | Description |
|---|---|---|
| symbol | String | Market symbol |
| orderID | String | Internal order ID |
| clOrderID | String | Custom order ID |
| side | String | BUY or SELL |
| price | Double | Order price |
| orderType | Integer | 76: Limit · 77: Market · 80: Peg/Algo |
| status | Integer | Order status code: 2 (ORDER_INSERTED) · 4 (FULLY_MATCHED) · 5 (PARTIAL_FILL) · 6 (CANCELLED) · 9 (TRIGGER_INSERTED) · 10 (TRIGGER_ACTIVATED) · 15 (REJECTED) |
| averageFillPrice | Double | Average fill price |
| originalOrderBaseSize | Double | Original order quantity expressed in base currency |
| originalOrderQuoteSize | Double | Original order quantity expressed in quote currency |
| currentOrderBaseSize | Double | Latest order quantity in base currency (after amendments / partial fills) |
| currentOrderQuoteSize | Double | Latest order quantity in quote currency |
| remainingOrderBaseSize | Double | Unfilled quantity in base currency |
| remainingOrderQuoteSize | Double | Unfilled quantity in quote currency |
| filledBaseSize | Double | Most recent fill quantity in base currency |
| totalFilledBaseSize | Double | Cumulative filled quantity in base currency |
| orderCurrency | String | Currency the order size is denominated in: base or quote |
| size | Double | Deprecated in v3.3. Use originalOrderBaseSize / originalOrderQuoteSize |
| fillSize | Double | Deprecated in v3.3. Use filledBaseSize / totalFilledBaseSize |
| remainingSize | Double | Deprecated in v3.3. Use remainingOrderBaseSize / remainingOrderQuoteSize |
| originalSize | Double | Deprecated in v3.3. Use originalOrderBaseSize / originalOrderQuoteSize |
| triggerPrice | Double | Trigger price (0 if not a trigger order) |
| stopPrice | Double | Stop price |
| time_in_force | String | Time in force: GTC · IOC · FOK · HALFMIN · FIVEMIN · HOUR · TWELVEHOUR · DAY · WEEK · MONTH |
| timestamp | Long | Order timestamp |
| trigger | Boolean | Whether the order is a trigger order |
| postOnly | Boolean | Whether post-only |
| stealth | Double | Stealth value |
| deviation | Double | Deviation value |
example
DELETE
https://api.btse.com/spot/api/v3.3/order