Cancel a Limit Order
These are the basic functions for to cancel a 0x Limit orders by interacting with the Exchange Proxy:
- cancelLimitOrder
- Cancels a single 0x Limit Order created by the caller
- batchCancelLimitOrders
- Cancels multiple limit orders created by the caller
- cancelPairLimitOrders
- Cancels limit orders in s specific market pair
- cancelPairLimitOrdersWithSigner
- Same functionality to
cancelPairLimitOrders
, butmsg.sender
is a registered order signer instead of the maker itself
- Same functionality to
- batchCancelPairLimitOrders
- A batch call to
cancelPairLimitOrders
- A batch call to
- batchCancelPairLimitOrdersWithSIgner
- Same functionality to
batchCancelPairLimitOrders
but with a registered order signer instead of the maker itself.
- Same functionality to
Code Examples​
Typescript - 0x Starter Project comes with a number of limit order scenarios including the Cancel ERC20 limit order scenario.
Python - Python RFQ Guide covers how to create, hash, sign, fill, get state, and cancel a 0x RFQ Order. Note that the code can be modified by making minor modifications, to also work for 0x Limit Orders.