Get daily volume and liquidity for pools
curl --request GET \
--url https://api.saucerswap.finance/pools/daily \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/pools/daily', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/pools/daily"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"poolId": 502,
"timestampSeconds": 1697760000,
"liquidity": "1268297620467",
"volume": "178297285042"
}
]Pools V1
REST API: Daily metrics for all V1 pools
Retrieve daily volume and liquidity datapoints for all SaucerSwap V1 pools, in each pool’s smallest unit, keyed by pool id and unix timestamp.
GET
/
pools
/
daily
Get daily volume and liquidity for pools
curl --request GET \
--url https://api.saucerswap.finance/pools/daily \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/pools/daily', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/pools/daily"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"poolId": 502,
"timestampSeconds": 1697760000,
"liquidity": "1268297620467",
"volume": "178297285042"
}
]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
Was this page helpful?