curl --request GET \
--url https://api.saucerswap.finance/v2/pools \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/v2/pools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/v2/pools"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 1,
"contractId": "0.0.3948521",
"tokenA": {
"decimals": 6,
"icon": "/images/tokens/usdc.png",
"id": "0.0.456858",
"price": "1678944894",
"priceUsd": 1.00375771,
"symbol": "USDC",
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false
},
"tokenB": {
"decimals": 6,
"icon": "/images/tokens/usdc.png",
"id": "0.0.1055459",
"price": "1681384187",
"priceUsd": 1.00521604,
"symbol": "USDC[hts]",
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false
},
"amountA": "6313040",
"amountB": "6313042",
"fee": 500,
"sqrtRatioX96": "79228162514992909706099547250",
"tickCurrent": 0,
"liquidity": "10878982596"
}
]REST API: List V2 pools (compact)
List all SaucerSwap V2 concentrated-liquidity pools in compact form, with fee tier, current tick, sqrt price ratio, liquidity, and token amounts.
curl --request GET \
--url https://api.saucerswap.finance/v2/pools \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/v2/pools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/v2/pools"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 1,
"contractId": "0.0.3948521",
"tokenA": {
"decimals": 6,
"icon": "/images/tokens/usdc.png",
"id": "0.0.456858",
"price": "1678944894",
"priceUsd": 1.00375771,
"symbol": "USDC",
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false
},
"tokenB": {
"decimals": 6,
"icon": "/images/tokens/usdc.png",
"id": "0.0.1055459",
"price": "1681384187",
"priceUsd": 1.00521604,
"symbol": "USDC[hts]",
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false
},
"amountA": "6313040",
"amountB": "6313042",
"fee": 500,
"sqrtRatioX96": "79228162514992909706099547250",
"tickCurrent": 0,
"liquidity": "10878982596"
}
]Authorizations
API key provisioned by the SaucerSwap team. Request one from [email protected] and send it in the x-api-key header with every request.
Headers
API key for authentication. Request a key from [email protected].
"YOUR_API_KEY"
Response
Successful response
Pool id
1
Contract id (shard.realm.num)
"0.0.3948521"
Show child attributes
Show child attributes
{
"decimals": 6,
"icon": "/images/tokens/usdc.png",
"id": "0.0.456858",
"price": "1678944894",
"priceUsd": 1.00375771,
"symbol": "USDC",
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false
}
Show child attributes
Show child attributes
{
"decimals": 6,
"icon": "/images/tokens/usdc.png",
"id": "0.0.1055459",
"price": "1681384187",
"priceUsd": 1.00521604,
"symbol": "USDC[hts]",
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false
}
Total amount for token A
"6313040"
Total amount for token B
"6313042"
Fee tier in hundredths of a basis point. Divide by 100 for basis points or by 10,000 for percent; for example, 3000 = 30 bps = 0.30%.
500
Encoded square root of price ratio between tokens in the pool as a Q64.96 number
"79228162514992909706099547250"
Current active tick index, representing a specific price point in the pool
0
Total liquidity for the pool
"10878982596"
Was this page helpful?