Skip to main content

/limit-orders/cancel REST API Endpoint

Send a POST request to get the unsigned transactions needed to cancel Jupiter Limit Order(s).

Updated on
Dec 12, 2024

/limit-orders/cancel REST API Endpoint

Please note that this method is only available for paid subscribers of Metis - Jupiter V6 Swap API. This endpoint is currently in BETA. If you have any feedback or run into any issues, please reach out to support.
If no orders are specified, the API would return the unsigned transactions to cancel ALL open orders, batched in groups of 5 orders.

Query Parameters

maker
string
REQUIRED
The wallet address associated to the order(s) that are being cancelled
computeUnitPrice
string
Used to determine a transaction's prioritization fee. By default, it is set to auto if its not provided. Otherwise, you can set a custom fee i.e 500000
orders
array
The order(s) that are being cancelled. If it is empty, all orders associated to the maker will be cancelled
orderPubKey
string
The public key of the order that is being cancelled

Returns

txs
array
The array of transaction strings that should be signed and sent to the network to cancel
tx
string
The unsigned transaction to cancel the order(s)
Request
1
curl --location --request POST 'https://docs-demo.solana-mainnet.quiknode.pro/limit-orders/cancel' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"maker": "J2RNWdFBRbiVzjYukgzyStfYhpTHFoBFRHQjvDAsnPY9"
5
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free