createOrder
POSThttps://lite-api.jup.ag/recurring/v1/createOrder
Request for a base64-encoded unsigned recurring order creation transaction to be used in POST /recurring/v1/execute
note
- Pass in the correct recurring type in the
params
field, can betime
orprice
- Refer to Recurring API doc for more information
Request
- application/json
Bodyrequired
inputMintstringrequired
outputMintstringrequired
params objectrequired
userstringrequired
Responses
- 200
- 400
- 500
Recurring order created successfully
- application/json
- Schema
- Example (auto)
Schema
requestIdstringrequired
Required to make a request to /execute
transactionstringrequired
Unsigned base-64 encoded transaction
{
"requestId": "string",
"transaction": "string"
}
Bad request
Internal server error
- curl
- nodejs
- python
- rust
- CURL
curl -L 'https://lite-api.jup.ag/recurring/v1/createOrder' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"user": "jdocuPgEAjMfihABsPgKEvYtsmMzjUHeq9LX4Hvs7f3",
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"params": {
"time": {
"inAmount": 1000000000,
"numberOfOrders": 10,
"interval": 86400
}
}
}'
ResponseClear