Cancel a single order
Orders
Cancel an order
Cancel a single open order
POST
Cancel a single order
Cancel a single open order by id. Returns the unfilled and filled amounts at cancellation time.Documentation Index
Fetch the complete documentation index at: https://docs.4casters.io/llms.txt
Use this file to discover all available pages before exploring further.
Request
POST /session/cancel
Order id to cancel.
Response
Example
Errors
| Status | Meaning |
|---|---|
400 | Invalid order id. |
403 | Not your order. |
409 | Order could not be cancelled (e.g. already fully filled). |
Authorizations
Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.
Body
application/json
Order id to cancel.
Response
Cancel result