Skip to main content

cancelOrders

POST 

https://lite-api.jup.ag/trigger/v1/cancelOrders

Request for a base64-encoded unsigned trigger order cancellation transaction(s) to be used in POST /trigger/v1/execute

note

Request

Body

    makerstringrequired
    computeUnitPricestring

    In microlamports, defaults to 95th percentile of priority fees

    Default value: auto
    ordersstring[]

    Array of orders to cancel, if none is provided, the API will generate cancel instructions for all open orders belonging to the maker

Responses

Returns the base64-encoded unsigned transaction(s) of all open orders associated to the provided "maker"

note
  • If no orders were specified, batching 5 cancel order instructions in 1 transaction.
  • Refer to Trigger API doc for more information :::
Schema
    requestIdstringrequired

    Required to make a request to /execute

    transactionsstring[]required

    Array of unsigned base-64 encoded transaction(s)

curl -L 'https://lite-api.jup.ag/trigger/v1/cancelOrders' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"maker": "jdocuPgEAjMfihABsPgKEvYtsmMzjUHeq9LX4Hvs7f3",
"orders": [
"6fe8ByaiFHisjnYnH5qdpyiNtkn89mMBQUemRkVmKhro",
"9jwzPKHxcrSozdrTYzPnTqy7psRvNGxaYUAiiyxwZKjj"
],
"computeUnitPrice": "auto"
}'
Request Collapse all
Base URL
https://lite-api.jup.ag/trigger/v1
Body
{
  "maker": "jdocuPgEAjMfihABsPgKEvYtsmMzjUHeq9LX4Hvs7f3",
  "orders": [
    "6fe8ByaiFHisjnYnH5qdpyiNtkn89mMBQUemRkVmKhro",
    "9jwzPKHxcrSozdrTYzPnTqy7psRvNGxaYUAiiyxwZKjj"
  ],
  "computeUnitPrice": "auto"
}
ResponseClear

Click the Send API Request button above and see the response here!