Get weekly volume and liquidity for a pool by id
curl --request GET \
--url https://api.saucerswap.finance/pools/weekly/{poolId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/pools/weekly/{poolId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/pools/weekly/{poolId}"
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: Weekly metrics for a V1 pool
Retrieve weekly volume and liquidity history for a single SaucerSwap V1 pool by pool id, in smallest units, with unix-second timestamps per point.
GET
/
pools
/
weekly
/
{poolId}
Get weekly volume and liquidity for a pool by id
curl --request GET \
--url https://api.saucerswap.finance/pools/weekly/{poolId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/pools/weekly/{poolId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/pools/weekly/{poolId}"
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"
Path Parameters
Saucerswap pool id
Example:
1
Response
200 - application/json
Successful response
Was this page helpful?