Skip to main content

Get Trigger Orders

note

Base URL: https://lite-api.jup.ag/trigger/v1/getTriggerOrders

For higher rate limits, refer to the API Key Setup doc.

This is a GET request to /getTriggerOrders endpoint.

The response is paginated for every 10 orders and you can view different pages using the page parameter. The hasMoreData boolean will indicate if you have more data in the next page.

Change of Response Format

The /getTriggerOrders endpoint does not provide the same data format as the old orderHistory or openOrders endpoint.

Active Orders

To get the active orders, you can pass in the orderStatus parameter as active.

tip

You can optionally pass in the input and output token mint addresses to filter the open orders.

const openOrdersResponse = await (
await fetch(
'https://lite-api.jup.ag/trigger/v1/getTriggerOrders?user=jdocuPgEAjMfihABsPgKEvYtsmMzjUHeq9LX4Hvs7f3&orderStatus=active'
)
).json();

Order History

To get the order history, you can pass in the orderStatus parameter as history.

const orderHistoryResponse = await (
await fetch(
'https://lite-api.jup.ag/trigger/v1/getTriggerOrders?user=ErJKdNoarixqGGQTHbBtvHtg2nkcCqcKtYjGbVKUxY7D&orderStatus=history'
)
).json();