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": 123,
"wallet_address": "<string>",
"extra_params": {}
}
'import requests
url = "http://localhost:8000/gateway/clmm/open"
payload = {
"connector": "<string>",
"network": "<string>",
"pool_address": "<string>",
"lower_price": 123,
"upper_price": 123,
"base_token_amount": 123,
"quote_token_amount": 123,
"slippage_pct": 123,
"wallet_address": "<string>",
"extra_params": {}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
connector: '<string>',
network: '<string>',
pool_address: '<string>',
lower_price: 123,
upper_price: 123,
base_token_amount: 123,
quote_token_amount: 123,
slippage_pct: 123,
wallet_address: '<string>',
extra_params: {}
})
};
fetch('http://localhost:8000/gateway/clmm/open', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/gateway/clmm/open",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'connector' => '<string>',
'network' => '<string>',
'pool_address' => '<string>',
'lower_price' => 123,
'upper_price' => 123,
'base_token_amount' => 123,
'quote_token_amount' => 123,
'slippage_pct' => 123,
'wallet_address' => '<string>',
'extra_params' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/gateway/clmm/open"
payload := strings.NewReader("{\n \"connector\": \"<string>\",\n \"network\": \"<string>\",\n \"pool_address\": \"<string>\",\n \"lower_price\": 123,\n \"upper_price\": 123,\n \"base_token_amount\": 123,\n \"quote_token_amount\": 123,\n \"slippage_pct\": 123,\n \"wallet_address\": \"<string>\",\n \"extra_params\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:8000/gateway/clmm/open")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"connector\": \"<string>\",\n \"network\": \"<string>\",\n \"pool_address\": \"<string>\",\n \"lower_price\": 123,\n \"upper_price\": 123,\n \"base_token_amount\": 123,\n \"quote_token_amount\": 123,\n \"slippage_pct\": 123,\n \"wallet_address\": \"<string>\",\n \"extra_params\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/gateway/clmm/open")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connector\": \"<string>\",\n \"network\": \"<string>\",\n \"pool_address\": \"<string>\",\n \"lower_price\": 123,\n \"upper_price\": 123,\n \"base_token_amount\": 123,\n \"quote_token_amount\": 123,\n \"slippage_pct\": 123,\n \"wallet_address\": \"<string>\",\n \"extra_params\": {}\n}"
response = http.request(request)
puts response.read_body{
"transaction_hash": "<string>",
"trading_pair": "<string>",
"pool_address": "<string>",
"lower_price": "<string>",
"upper_price": "<string>",
"position_address": "<string>",
"base_token_amount_added": "<string>",
"quote_token_amount_added": "<string>",
"position_rent": "<string>",
"status": "submitted"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}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": 123,
"wallet_address": "<string>",
"extra_params": {}
}
'import requests
url = "http://localhost:8000/gateway/clmm/open"
payload = {
"connector": "<string>",
"network": "<string>",
"pool_address": "<string>",
"lower_price": 123,
"upper_price": 123,
"base_token_amount": 123,
"quote_token_amount": 123,
"slippage_pct": 123,
"wallet_address": "<string>",
"extra_params": {}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
connector: '<string>',
network: '<string>',
pool_address: '<string>',
lower_price: 123,
upper_price: 123,
base_token_amount: 123,
quote_token_amount: 123,
slippage_pct: 123,
wallet_address: '<string>',
extra_params: {}
})
};
fetch('http://localhost:8000/gateway/clmm/open', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/gateway/clmm/open",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'connector' => '<string>',
'network' => '<string>',
'pool_address' => '<string>',
'lower_price' => 123,
'upper_price' => 123,
'base_token_amount' => 123,
'quote_token_amount' => 123,
'slippage_pct' => 123,
'wallet_address' => '<string>',
'extra_params' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8000/gateway/clmm/open"
payload := strings.NewReader("{\n \"connector\": \"<string>\",\n \"network\": \"<string>\",\n \"pool_address\": \"<string>\",\n \"lower_price\": 123,\n \"upper_price\": 123,\n \"base_token_amount\": 123,\n \"quote_token_amount\": 123,\n \"slippage_pct\": 123,\n \"wallet_address\": \"<string>\",\n \"extra_params\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:8000/gateway/clmm/open")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"connector\": \"<string>\",\n \"network\": \"<string>\",\n \"pool_address\": \"<string>\",\n \"lower_price\": 123,\n \"upper_price\": 123,\n \"base_token_amount\": 123,\n \"quote_token_amount\": 123,\n \"slippage_pct\": 123,\n \"wallet_address\": \"<string>\",\n \"extra_params\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/gateway/clmm/open")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connector\": \"<string>\",\n \"network\": \"<string>\",\n \"pool_address\": \"<string>\",\n \"lower_price\": 123,\n \"upper_price\": 123,\n \"base_token_amount\": 123,\n \"quote_token_amount\": 123,\n \"slippage_pct\": 123,\n \"wallet_address\": \"<string>\",\n \"extra_params\": {}\n}"
response = http.request(request)
puts response.read_body{
"transaction_hash": "<string>",
"trading_pair": "<string>",
"pool_address": "<string>",
"lower_price": "<string>",
"upper_price": "<string>",
"position_address": "<string>",
"base_token_amount_added": "<string>",
"quote_token_amount_added": "<string>",
"position_rent": "<string>",
"status": "submitted"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
Request to open a new CLMM position with initial liquidity
CLMM connector (e.g., 'meteora', 'raydium', 'uniswap')
Network ID in 'chain-network' format (e.g., 'solana-mainnet-beta')
Pool contract address
Lower price for position range
Upper price for position range
Amount of base token to add
Amount of quote token to add
Maximum slippage percentage; omit to use the connector's configured slippagePct
Wallet address (optional, uses default if not provided)
Additional connector-specific parameters
Response
Successful Response
Response after opening a new CLMM position
Transaction hash
Trading pair
Pool address
Lower price bound
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$Upper price bound
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$Address of the newly created position. None when the transaction was submitted but not yet confirmed (Gateway only knows the address once the tx lands) — poll the transaction; the poller records the position once it appears on-chain
Base amount actually added on-chain (confirmed txs only; the requested amount otherwise)
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$Quote amount actually added on-chain (confirmed txs only; the requested amount otherwise)
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$Native token locked as rent for the position account (refunded on close)
^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$Transaction status
Was this page helpful?

