NOTE
- Lite URL:
https://lite-api.jup.ag/recurring/v1/cancelOrder - Pro URL:
https://api.jup.ag/recurring/v1/cancelOrder
Cancel Order
If you want to cancel order(s), you need to do these steps:1
Get a list of the order accounts you want to cancel via
/getRecurringOrders endpoint.2
Choose the order account to cancel by making a post request to the
/cancelOrder endpoint to get the transaction to cancel the order.3
Sign then send the transaction to the network either via
/execute endpoint or by yourself.GET RECURRING ORDERSRefer to the
/getRecurringOrders section to prepare the list of order accounts you want to cancel.NOTEThe
/cancelOrder endpoint only supports 1 cancellation per transaction.Cancel Order Response
Success Example ResponseExecute Cancel Order
To sign then send the transaction to the network to execute the cancellation, you can use the/execute endpoint or by yourself.
Refer to the Execute Order section for more details.