Order Manipulation
Cancel Orders(s)
Multiple endpoints to cancel a single order, multiple orders, all orders or all orders from a single market.
Cancel an single Order
This endpoint requires a L2 Header.
Cancel an order.
HTTP REQUEST
DELETE /<clob-endpoint>/order
Request Payload Parameters
Name | Required | Type | Description |
---|---|---|---|
orderID | yes | string | ID of order to cancel |
Response Format
Name | Type | Description |
---|---|---|
canceled | string[] | list of canceled orders |
not_canceled | a order id -> reason map that explains why that order couldn’t be canceled |
Cancel Multiple Orders
This endpoint requires a L2 Header.
HTTP REQUEST
DELETE /<clob-endpoint>/orders
Request Payload Parameters
Name | Required | Type | Description |
---|---|---|---|
null | yes | string[] | IDs of the orders to cancel |
Response Format
Name | Type | Description |
---|---|---|
canceled | string[] | list of canceled orders |
not_canceled | a order id -> reason map that explains why that order couldn’t be canceled |
Cancel ALL Orders
This endpoint requires a L2 Header.
Cancel all open orders posted by a user.
HTTP REQUEST
DELETE /<clob-endpoint>/cancel-all
Response Format
Name | Type | Description |
---|---|---|
canceled | string[] | list of canceled orders |
not_canceled | a order id -> reason map that explains why that order couldn’t be canceled |
Cancel orders from market
This endpoint requires a L2 Header.
Cancel orders from market.
HTTP REQUEST
DELETE /<clob-endpoint>/cancel-market-orders
Request Payload Parameters
Name | Required | Type | Description |
---|---|---|---|
market | no | string | condition id of the market |
asset_id | no | string | id of the asset/token |
Response Format
Name | Type | Description |
---|---|---|
canceled | string[] | list of canceled orders |
not_canceled | a order id -> reason map that explains why that order couldn’t be canceled |