Skip to main content
POST
/
gateway
/
clmm
/
open
Open Clmm Position
curl --request POST \
  --url http://localhost:8000/gateway/clmm/open \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "connector": "<string>",
  "network": "<string>",
  "pool_address": "<string>",
  "lower_price": 123,
  "upper_price": 123,
  "base_token_amount": 123,
  "quote_token_amount": 123,
  "slippage_pct": 1,
  "wallet_address": "<string>",
  "extra_params": {}
}
'
{
  "transaction_hash": "<string>",
  "position_address": "<string>",
  "trading_pair": "<string>",
  "pool_address": "<string>",
  "lower_price": "<string>",
  "upper_price": "<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 open a new CLMM position with initial liquidity

connector
string
required

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

network
string
required

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

pool_address
string
required

Pool contract address

lower_price
required

Lower price for position range

upper_price
required

Upper price for position range

base_token_amount

Amount of base token to add

quote_token_amount

Amount of quote token to add

slippage_pct
default:1

Maximum slippage percentage (default: 1.0)

wallet_address
string | null

Wallet address (optional, uses default if not provided)

extra_params
Extra Params · object

Additional connector-specific parameters

Response

Successful Response

Response after opening a new CLMM position

transaction_hash
string
required

Transaction hash

position_address
string
required

Address of the newly created position

trading_pair
string
required

Trading pair

pool_address
string
required

Pool address

lower_price
string
required

Lower price bound

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

Upper price bound

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

Transaction status