Method Signature
Parameters
The market application ID on Algorand
The escrow app ID of the order to cancel. This is returned from
createLimitOrder or createMarketOrder.The Algorand address of the order owner. Must match the signer’s address.
Return Type
Whether the cancellation succeeded. Always
true if the method completes without throwing an error.Array of transaction IDs from the cancellation
The confirmed round number on the blockchain
Example
Behavior Notes
- Refunds: The escrow app returns all escrowed collateral (USDC for buy orders, outcome tokens for sell orders) to the order owner.
- MBR Recovery: The ~957,000 microAlgos used for the escrow app’s minimum balance requirement is returned to the owner.
- Partially Filled Orders: You can cancel orders that have been partially filled. Only the unfilled quantity’s collateral is returned.
- Fully Filled Orders: Once an order is 100% filled, its escrow is automatically deleted by the matching transaction. You cannot cancel a fully filled order.
- Transaction Fees: Cancellation costs ~7,000 microAlgos in transaction fees.
- Authorization: Only the order owner can cancel their orders. The
orderOwnerparameter must match the active signer’s address.
