Get Recurring Orders
note
- Lite URL: https://lite-api.jup.ag/recurring/v1/getRecurringOrders
- Pro URL: https://api.jup.ag/recurring/v1/getRecurringOrders
To upgrade to Pro or understand our rate limiting, please refer to this section.
This is a GET request to /getRecurringOrders endpoint. The response is paginated for every 10 orders and you can view different pages using the page parameter.
Get Recurring Orders
note
- orderStatus can be either activeorhistory
- recurringType can be either timeorpriceorall
- includeFailedTx can be either trueorfalse
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/recurring/v1/getRecurringOrders?user=replaceWithPublicKey&orderStatus=active&recurringType=time'
    )
).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/recurring/v1/getRecurringOrders?user=replaceWithPublicKey&orderStatus=history&recurringType=price'
    )
).json();