This allows users to sell a portion of their leveraged position while keeping the rest active.
How It Works:
The partial sell feature uses two API endpoints, which can be bundled together using Jito on the front-end:
Split Position - Divides a position into two separate positions
Sell Manual Build - Sells one of the split positions
API Endpoints:
1. Split Position
POST /positions/split
Request Body:
{"positionId": string,// Position address to split"userPubKey": string,// User's wallet public key"splitRatioBps": number,// Split ratio in basis points (2500 = 25%)"quoteToken": string// Quote token mint address}