Get compact data for all pools
curl --request GET \
--url https://api.saucerswap.finance/pools \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/pools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/pools"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 213,
"contractId": "0.0.1465865",
"lpToken": {
"id": "0.0.1465866",
"name": "SS-LP SAUCE - XSAUCE",
"symbol": "SAUCE - XSAUCE",
"decimals": 8,
"priceUsd": 3.7760690082569948
},
"lpTokenReserve": "23490447137584",
"tokenA": {
"id": "0.0.731861",
"symbol": "SAUCE",
"decimals": 6,
"priceUsd": 0.01760954
},
"tokenReserveA": "25185652046087",
"tokenB": {
"id": "0.0.1460200",
"symbol": "XSAUCE",
"decimals": 6,
"priceUsd": 0.01959459
},
"tokenReserveB": "22634187941347"
}
]Pools V1
REST API: List V1 pools (compact)
List all SaucerSwap V1 liquidity pools in compact form, with pool and contract ids, paired token summaries, current reserves, and LP token metadata.
GET
/
pools
Get compact data for all pools
curl --request GET \
--url https://api.saucerswap.finance/pools \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/pools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/pools"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 213,
"contractId": "0.0.1465865",
"lpToken": {
"id": "0.0.1465866",
"name": "SS-LP SAUCE - XSAUCE",
"symbol": "SAUCE - XSAUCE",
"decimals": 8,
"priceUsd": 3.7760690082569948
},
"lpTokenReserve": "23490447137584",
"tokenA": {
"id": "0.0.731861",
"symbol": "SAUCE",
"decimals": 6,
"priceUsd": 0.01760954
},
"tokenReserveA": "25185652046087",
"tokenB": {
"id": "0.0.1460200",
"symbol": "XSAUCE",
"decimals": 6,
"priceUsd": 0.01959459
},
"tokenReserveB": "22634187941347"
}
]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].
Example:
"YOUR_API_KEY"
Response
200 - application/json
Successful response
Pool id
Example:
213
Contract id (shard.realm.num)
Example:
"0.0.1465865"
Show child attributes
Show child attributes
Example:
{
"id": "0.0.1465866",
"name": "SS-LP SAUCE - XSAUCE",
"symbol": "SAUCE - XSAUCE",
"decimals": 8,
"priceUsd": 3.7760690082569948
}
LP token reserve in its smallest unit
Example:
"23490447137584"
Show child attributes
Show child attributes
Example:
{
"id": "0.0.731861",
"symbol": "SAUCE",
"decimals": 6,
"priceUsd": 0.01760954
}
Token A reserve in its smallest unit
Example:
"25185652046087"
Show child attributes
Show child attributes
Example:
{
"id": "0.0.1460200",
"symbol": "XSAUCE",
"decimals": 6,
"priceUsd": 0.01959459
}
Token B reserve in its smallest unit
Example:
"22634187941347"
Was this page helpful?