jupiter-perps
Jupiter perps
Return a Jupiter Perps account/position assessment using the deployed program's exact account schema. The official Perps overview still labels its REST API a work in progress; do not invent a live /perps/order API or infer support from the Swap API.
Resolve position identity
Collect cluster, owner, side, custody and collateral-custody accounts, Position address and any request signature. Resolve the official program and verified current account layout. Read the Position, relevant Custody and PositionRequest accounts at a recorded slot through configured Solana RPC or an existing supported official tool.
Position identity includes side and both custody identities; do not combine different collateral assets because they share a token symbol. sizeUsd and collateralUsd are distinct raw USD-scaled amounts; token collateralDelta uses its mint decimals. A zero sizeUsd is a closed position, but historical realized proceeds require transaction/history evidence because a closed account's displayed PnL can reset.
Read costs and contingent actions
Evaluate entry/mark, size, collateral, borrow accumulator and request state. Borrowing costs derive from the difference between custody cumulative interest and the position snapshot using current program math; do not label them interchangeable with signed cross-venue funding.
Read active trigger requests separately from current position exposure. For increases and decreases, inspect side-dependent priceSlippage direction, swap minimum, entirePosition flag and intended size delta. A newly created PositionRequest is an instruction waiting for execution, not a completed close. Its ATA can temporarily hold deposit/withdraw assets.
Return the unsigned decision
Show position/account identities, slot, leverage assumptions, cost sources, pending requests and missing evidence. Preparation must use the currently supported official UI or a verified program integration; the linked third-party IDL parsing example is community code, not a guaranteed maintained signing service. Keep signing and instruction submission outside research.