cURL
curl --request POST \ --url https://api.lpagent.io/open-api/v1/position/decrease-quotes \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "id": "<string>", "bps": 5000 } '
{ "status": "success", "data": {} }
Returns quotes for converting position tokens to different output combinations (token0 to token1, token1 to token0, to base token, etc.) before executing a zap-out
API key for authentication
The encrypted position ID
The percentage of position to close in basis points (0-10000)
0 <= x <= 10000
Quotes for different token combinations
success
error