getRecurringOrders
GEThttps://lite-api.jup.ag/recurring/v1/getRecurringOrders
Request for the active or historical orders associated to the provided account
note
recurringType
is used to denote the type of recurring order, can betime
orprice
- Do note that each recurring type's data format is different, make sure you handle both accordingly
- Refer to Recurring API doc for more information
Request
Path Parameters
recurringType RecurringOrderTyperequired
Possible values: [time
, price
, all
]
orderStatus OrderStaterequired
Possible values: [active
, history
]
user stringrequired
page int64required
Possible values: >= 0
mint stringnull
includeFailedTx booleanrequired
Responses
- 200
- 400
- 500
Successfully retrieved recurring orders
- application/json
- Schema
- Example (auto)
Schema
- oneOf
- MOD1
- MOD2
- MOD3
orderStatusOrderState (string)required
Possible values: [active
, history
]
pageint64required
Possible values: >= 0
time object[]required
totalPagesint64required
Possible values: >= 0
userstringrequired
orderStatusOrderState (string)required
Possible values: [active
, history
]
pageint64required
Possible values: >= 0
price object[]required
totalPagesint64required
Possible values: >= 0
userstringrequired
all object[]required
orderStatusOrderState (string)required
Possible values: [active
, history
]
pageint64required
Possible values: >= 0
totalPagesint64required
Possible values: >= 0
userstringrequired
{
"orderStatus": "active",
"page": 0,
"time": [
{
"closeTx": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"cycleFrequency": "string",
"inAmountPerCycle": "string",
"inDeposited": "string",
"inUsed": "string",
"inWithdrawn": "string",
"inputMint": "string",
"maxOutAmount": "string",
"minOutAmount": "string",
"openTx": "string",
"orderKey": "string",
"outReceived": "string",
"outWithdrawn": "string",
"outputMint": "string",
"rawInAmountPerCycle": "string",
"rawInDeposited": "string",
"rawInUsed": "string",
"rawInWithdrawn": "string",
"rawMaxOutAmount": "string",
"rawMinOutAmount": "string",
"rawOutReceived": "string",
"rawOutWithdrawn": "string",
"trades": [
{
"action": "string",
"confirmedAt": "2024-07-29T15:51:28.071Z",
"feeAmount": "string",
"feeMint": "string",
"inputAmount": "string",
"inputMint": "string",
"keeper": "string",
"orderKey": "string",
"outputAmount": "string",
"outputMint": "string",
"rawFeeAmount": "string",
"rawInputAmount": "string",
"rawOutputAmount": "string",
"txId": "string"
}
],
"updatedAt": "2024-07-29T15:51:28.071Z",
"userClosed": true,
"userPubkey": "string"
}
],
"totalPages": 0,
"user": "string"
}
Bad request
Internal server error
- curl
- nodejs
- python
- rust
- CURL
curl -L 'https://lite-api.jup.ag/recurring/v1/getRecurringOrders' \
-H 'Accept: application/json'
ResponseClear