curl --request POST \
--url https://ca.raze.sh/perp/sol/modify \
--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",
"side": "long",
"size_usd_delta_e6": 50000000,
"trigger_price_e6": 235000000,
"client_order_id": "ui-modify-20260506-m1"
}
'{
"success": true,
"data": [
{
"wallet": "<string>",
"tx_b64": "<string>",
"status": "<string>"
}
],
"error": "<string>"
}Modify an existing pending trigger order (limit / TP / SL) by rewriting
the partial-close size and/or trigger price on its position_request
PDA via updateDecreasePositionRequest2.
Both size_usd_delta_e6 and trigger_price_e6 are required on the
wire — the on-chain ix overwrites unconditionally — so callers must
pass the previous value through for whichever field they aren’t
changing.
Idempotent on client_order_id (60s window).
curl --request POST \
--url https://ca.raze.sh/perp/sol/modify \
--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",
"side": "long",
"size_usd_delta_e6": 50000000,
"trigger_price_e6": 235000000,
"client_order_id": "ui-modify-20260506-m1"
}
'{
"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.
long, short New sizeUsdDelta in USDC micros. The on-chain ix overwrites
unconditionally — pass the existing value through when only the
trigger price is changing.
New trigger price in USDC micros. Pass the existing value through
when only the size is changing. 0 is rejected.