Cancel an order
cancel_orderCancel a single order by clientId. For SHORT_TERM pass goodTilBlock; for LONG_TERM/CONDITIONAL pass goodTilTimeSeconds (the original good-til value, available from get_open_orders). Returns confirmation with the verified result (canceled / still_open / filled / pending): code: 0 only means the cancel was broadcast. If still_open, the goodTil value likely did not match the original — retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | ||
| confirm | No | Verify the cancel actually took via the indexer (default true). | |
| clientId | Yes | ||
| orderFlags | Yes | ||
| goodTilBlock | No | ||
| goodTilTimeSeconds | No |