Skip to main content
POST
/
gateway
/
clmm
/
close
Close Clmm Position
curl --request POST \
  --url http://localhost:8000/gateway/clmm/close \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "connector": "<string>",
  "network": "<string>",
  "position_address": "<string>",
  "wallet_address": "<string>"
}
'
{
  "transaction_hash": "<string>",
  "position_address": "<string>",
  "base_fee_collected": "<string>",
  "quote_fee_collected": "<string>",
  "status": "submitted"
}

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

wallet_address
string | null

Wallet address (optional, uses default if not provided)

Response

Successful Response

Response after collecting fees

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