cancelOrder
POSThttps://lite-api.jup.ag/recurring/v1/cancelOrder
Request for a base64-encoded unsigned recurring order cancellation transaction to be used in POST /recurring/v1/execute
note
recurringType
is used to denote the type of recurring order, can betime
orprice
- Refer to Recurring API doc for more information
Request
- application/json
Bodyrequired
orderstringrequired
Base-58 account which is the Recurring Order account
recurringTypeCloseRecurringType (string)required
Possible values: [time
, price
]
userstringrequired
Responses
- 200
- 400
- 500
Recurring order closed 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/cancelOrder' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"order": "string",
"recurringType": "time",
"user": "string"
}'
ResponseClear