Skip to main content
Function:
ABI Object:
Parameters:
  • auth - The account signer
  • subaccount - The Trading Account object
  • market - The SpotMarket object
  • order_id - The spot order ID to cancel `<u128>`
Spot has no client-assigned order IDs, so cancellation is by order_id only. There is no spot equivalent of cancel_client_order.
Canceling releases the order’s escrowed funds — quote for a bid, base for an ask — back to the account it was funded from. To cancel an order placed directly from a wallet, use cancel_spot_order, which takes the same arguments without the subaccount parameter. Example: