Skip to main content
POST
/
position
/
decrease-quotes
Zap-Out — Get quotes for withdrawing liquidity
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": {}
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
id
string
required

The encrypted position ID

bps
integer
required

The percentage of position to close in basis points (0-10000)

Required range: 0 <= x <= 10000

Response

Quotes for different token combinations

status
enum<string>
Available options:
success,
error
data
object