Edit position collateral
Add or withdraw margin on an existing Jupiter Perps position without changing its size — the venue’s “Edit Collateral” operation.
action: "add" deposits in the side’s native collateral mint at the live
oracle price; action: "withdraw" pays out in USDC like a close. The
position PDA is derived server-side per wallet and is never
client-supplied.
Idempotent on client_order_id for 60s, like every other /perp/sol/*
write. When the fleet’s shared idempotency cache is configured, a request
already served by another edge answers 409 instead of rebuilding.
Authorizations
Body
1"jup:SOL-PERP"
Side of the open position — picks the collateral custody account.
long, short add deposits margin in the side's native collateral mint at the live
oracle price; withdraw pays out in USDC like a close.
add, withdraw USD value to move, in USDC micros. Must be > 0.
Must be < 10000.
Caller-supplied idempotency key (60s window), same contract as /perp/sol/order.
