403 (see Eligibility & geo restrictions).
The whole flow
Step by step
- Create a group (
POST /groups) to open the idea in. - Pick a market (
GET /perps/markets/{symbol}) and readmarkPriceUsdto size your entry. - Open a position (
POST /perps/proposals) withside,collateralUsd,leverage, and an optionaltakeProfitPct/stopLossPctbracket (expressed as % of collateral ROI). You get back yourassignmentId— your position’s id. - Monitor (
GET /perps/positions?filter=active) for liveunrealizedPnlUsd,liquidationPriceUsd, and funding. For low-latency prices, use market data over WebSocket. - Close (
POST /perps/positions/{assignmentId}/reduce) withreduceFraction: "1"andisFullClose: true. Proceeds settle back to your wallet in USDC.
If your
takeProfitPct bracket fires before you close, the position closes automatically and becomes
claimable. In that case skip /reduce and call
POST /perps/positions/{assignmentId}/claim to drain the proceeds. See the
Perpetuals guide.