Skip to main content
POST
Close Clmm Position

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request to CLOSE a CLMM position completely (removes all liquidity and closes position)

connector
string
required

CLMM connector (e.g., 'meteora', 'raydium', 'uniswap')

network
string
required

Network ID in 'chain-network' format (e.g., 'solana-mainnet-beta')

position_address
string
required

Position address to close

slippage_pct

Maximum acceptable slippage percentage for the withdrawal. Enforced by orca, uniswap and pancakeswap; meteora, raydium and pancakeswap-sol close with no minimum-amount check at all, so it changes nothing there. Omit to use the connector's configured slippagePct. An executor widening this across retries is what it exists for: a narrow in-range close can fail on slippage at the configured value with no way to say "accept more to get out".

pool_address
string | null

Pool the position belongs to. Informational only — neither Gateway's call nor the fee snapshot needs it, and unrecorded positions work without it

wallet_address
string | null

Wallet address (optional, uses default if not provided)

Response

Successful Response

Response after closing a position: fees collected plus what the close returned.

The removed amounts and rent refund come from Gateway's confirmed transaction data, so they are None for submitted-not-confirmed transactions.

transaction_hash
string
required

Transaction hash

position_address
string
required

Position address

base_fee_collected
string | null

Base token fees collected

Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
quote_fee_collected
string | null

Quote token fees collected

Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
status
string
default:submitted

Transaction status

base_token_amount_removed
string | null

Base liquidity actually withdrawn on-chain

Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
quote_token_amount_removed
string | null

Quote liquidity actually withdrawn on-chain

Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
position_rent_refunded
string | null

Native token rent refunded when the position account closed

Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$