Skip to main content
Cancels a specific open order. If the order was partially filled before cancellation, the filled portion remains as a position — only the unfilled remainder is cancelled. Returns the order’s final state. Calling cancel on an order that has already filled, been cancelled, or expired returns the order’s terminal state without error — cancel is idempotent against terminal states. Cancel applies to limit orders that have not yet fully filled. Market orders fill atomically and are not cancellable. Response
The example shows a fully-unfilled limit-BUY cancelled before any matches arrived — filled is "0" and there are no fills. If the order had been partially filled, filled would be the matched share count, averagePrice would reflect those fills, and metadata.fills would record where the partial fills happened.