Skip to main content
POST
Zap-Out — Generate transaction to withdraw liquidity

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
position_id
string
required

The position ID

bps
integer
required

Basis points for the amount to decrease (0-10000)

Required range: 0 <= x <= 10000
owner
string
required

The owner's wallet address

slippage_bps
integer
required

Slippage tolerance in basis points (0-10000)

Required range: 0 <= x <= 10000
output
enum<string>

The output token for the swap

Available options:
allToken0,
allToken1,
both,
allBaseToken
provider
enum<string>

The swap provider to use

Available options:
OKX,
JUPITER_ULTRA
type
enum<string>
default:meteora

The pool type

Available options:
meteora,
meteora_damm_v2
fromBinId
number

Starting bin ID

toBinId
number

Ending bin ID

Response

Transaction data prepared successfully

data
object