curl --request POST \
--url https://ca.raze.sh/perp/sol/cancel \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"wallet_addresses": [
"62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm"
],
"market_id": "jup:SOL-PERP",
"position_pubkey": "PoSLk3hQrTtUKn1ePNKczqJsZbftrxCzpEuhKdzS5sM",
"order_id": "ReQQ2ksgqBPmQEHuRsupbZbe6kDhQVo4QAGCfRCYiKE",
"client_order_id": "ui-cancel-20260506-c1"
}
'{
"success": true,
"data": [
{
"wallet": "<string>",
"tx_b64": "<string>",
"status": "<string>"
}
],
"error": "<string>"
}Cancel a pending Jupiter Perps trigger order (limit / TP / SL) by
closing its position_request PDA. Idempotent on client_order_id.
request_mint defaults to USDC — safe for TP/SL (always USDC) but
limit-order cancels must pass the actual input mint, otherwise the
on-chain closePositionRequest rejects with ConstraintTokenMint.
curl --request POST \
--url https://ca.raze.sh/perp/sol/cancel \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"wallet_addresses": [
"62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm"
],
"market_id": "jup:SOL-PERP",
"position_pubkey": "PoSLk3hQrTtUKn1ePNKczqJsZbftrxCzpEuhKdzS5sM",
"order_id": "ReQQ2ksgqBPmQEHuRsupbZbe6kDhQVo4QAGCfRCYiKE",
"client_order_id": "ui-cancel-20260506-c1"
}
'{
"success": true,
"data": [
{
"wallet": "<string>",
"tx_b64": "<string>",
"status": "<string>"
}
],
"error": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.raze.bot/llms.txt
Use this file to discover all available pages before exploring further.
1position_request PDA — the order's stable identifier from
/api/sol/perp/wallets/{addr}/perp-orders on the History API.
Mint the request was funded with. Required because
closePositionRequest closes the request ATA back to the user;
the wrong mint triggers Anchor ConstraintTokenMint. Defaults
to USDC when omitted — safe for TP/SL (always USDC), but
limit-order cancels must explicitly pass the input mint.