Get detailed data for all SaucerSwap V2 pools
curl --request GET \
--url https://api.saucerswap.finance/v2/pools/full \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.saucerswap.finance/v2/pools/full"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.saucerswap.finance/v2/pools/full', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.saucerswap.finance/v2/pools/full",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.saucerswap.finance/v2/pools/full"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.saucerswap.finance/v2/pools/full")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.saucerswap.finance/v2/pools/full")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"contractId": "0.0.3948521",
"tokenA": {
"decimals": 6,
"icon": "/images/tokens/usdc.png",
"id": "0.0.456858",
"name": "USD Coin",
"price": "1678944894",
"priceUsd": 1.00375771,
"symbol": "USDC",
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false,
"description": "USDC is a fully collateralized U.S. dollar stablecoin. USDC is the bridge between dollars and trading on cryptocurrency exchanges...",
"website": "https://www.circle.com/en/usdc-multichain/hedera",
"twitterHandle": "circle"
},
"tokenB": {
"decimals": 6,
"icon": "/images/tokens/usdc.png",
"id": "0.0.1055459",
"name": "USD Coin",
"price": "1681384187",
"priceUsd": 1.00521604,
"symbol": "USDC[hts]",
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false,
"description": "USDC is a fully collateralized U.S. dollar stablecoin...",
"website": "https://www.circle.com/en/usdc-multichain/ethereum",
"twitterHandle": "circle"
},
"amountA": "6313040",
"amountB": "6313042",
"fee": 500,
"sqrtRatioX96": "79228162514992909706099547250",
"tickCurrent": 0,
"liquidity": "10878982596"
}
]Pools and Positions (V2)
Get detailed data for all SaucerSwap V2 pools
GET
/
v2
/
pools
/
full
Get detailed data for all SaucerSwap V2 pools
curl --request GET \
--url https://api.saucerswap.finance/v2/pools/full \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.saucerswap.finance/v2/pools/full"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.saucerswap.finance/v2/pools/full', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.saucerswap.finance/v2/pools/full",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.saucerswap.finance/v2/pools/full"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.saucerswap.finance/v2/pools/full")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.saucerswap.finance/v2/pools/full")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 1,
"contractId": "0.0.3948521",
"tokenA": {
"decimals": 6,
"icon": "/images/tokens/usdc.png",
"id": "0.0.456858",
"name": "USD Coin",
"price": "1678944894",
"priceUsd": 1.00375771,
"symbol": "USDC",
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false,
"description": "USDC is a fully collateralized U.S. dollar stablecoin. USDC is the bridge between dollars and trading on cryptocurrency exchanges...",
"website": "https://www.circle.com/en/usdc-multichain/hedera",
"twitterHandle": "circle"
},
"tokenB": {
"decimals": 6,
"icon": "/images/tokens/usdc.png",
"id": "0.0.1055459",
"name": "USD Coin",
"price": "1681384187",
"priceUsd": 1.00521604,
"symbol": "USDC[hts]",
"dueDiligenceComplete": true,
"isFeeOnTransferToken": false,
"description": "USDC is a fully collateralized U.S. dollar stablecoin...",
"website": "https://www.circle.com/en/usdc-multichain/ethereum",
"twitterHandle": "circle"
},
"amountA": "6313040",
"amountB": "6313042",
"fee": 500,
"sqrtRatioX96": "79228162514992909706099547250",
"tickCurrent": 0,
"liquidity": "10878982596"
}
]| Hedera Network | Base URL |
|---|---|
| Mainnet | https://api.saucerswap.finance |
| Testnet | https://test-api.saucerswap.finance |
| Previewnet | Not supported |
Headers
API key for authentication. The demo api key provided is globally rate limited. Do not use in production.
Response
200 - application/json
Successful response
Pool id
Example:
1
Contract id (shard.realm.num)
Example:
"0.0.3948521"
Show child attributes
Show child attributes
Example:
{ "decimals": 6, "icon": "/images/tokens/usdc.png", "id": "0.0.456858", "name": "USD Coin", "price": "1678944894", "priceUsd": 1.00375771, "symbol": "USDC", "dueDiligenceComplete": true, "isFeeOnTransferToken": false, "description": "USDC is a fully collateralized U.S. dollar stablecoin. USDC is the bridge between dollars and trading on cryptocurrency exchanges...", "website": "https://www.circle.com/en/usdc-multichain/hedera", "twitterHandle": "circle" }
Show child attributes
Show child attributes
Example:
{ "decimals": 6, "icon": "/images/tokens/usdc.png", "id": "0.0.1055459", "name": "USD Coin", "price": "1681384187", "priceUsd": 1.00521604, "symbol": "USDC[hts]", "dueDiligenceComplete": true, "isFeeOnTransferToken": false, "description": "USDC is a fully collateralized U.S. dollar stablecoin...", "website": "https://www.circle.com/en/usdc-multichain/ethereum", "twitterHandle": "circle" }
Total amount for token A
Example:
"6313040"
Total amount for token B
Example:
"6313042"
Swap fee tier for the pool, denoted in basis points
Example:
500
Encoded square root of price ratio between tokens in the pool as a Q64.96 number
Example:
"79228162514992909706099547250"
Current active tick index, representing a specific price point in the pool
Example:
0
Total liquidity for the pool
Example:
"10878982596"
Was this page helpful?
⌘I