Get historical candlestick data for V1 pool by id
curl --request GET \
--url https://api.saucerswap.finance/pools/conversionRates/{poolId}const options = {method: 'GET'};
fetch('https://api.saucerswap.finance/pools/conversionRates/{poolId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/pools/conversionRates/{poolId}"
response = requests.get(url)
print(response.text)[
{
"poolId": 1,
"open": 0.0482115316666979,
"high": 0.0482115316666979,
"low": 0.04819650172584323,
"close": 0.04819650172584323,
"avg": 118.56339424557434,
"volume": "0",
"liquidity": "9668737245792",
"volumeUsd": "0",
"liquidityUsd": "4653.53",
"timestampSeconds": 1697618460,
"startTimestampSeconds": 1697616000
}
]Pools V1
REST API: V1 pool price history (candlesticks)
Query historical candlestick conversion rates for a V1 pool between two unix-second timestamps, with optional pair inversion and four interval sizes.
GET
/
pools
/
conversionRates
/
{poolId}
Get historical candlestick data for V1 pool by id
curl --request GET \
--url https://api.saucerswap.finance/pools/conversionRates/{poolId}const options = {method: 'GET'};
fetch('https://api.saucerswap.finance/pools/conversionRates/{poolId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/pools/conversionRates/{poolId}"
response = requests.get(url)
print(response.text)[
{
"poolId": 1,
"open": 0.0482115316666979,
"high": 0.0482115316666979,
"low": 0.04819650172584323,
"close": 0.04819650172584323,
"avg": 118.56339424557434,
"volume": "0",
"liquidity": "9668737245792",
"volumeUsd": "0",
"liquidityUsd": "4653.53",
"timestampSeconds": 1697618460,
"startTimestampSeconds": 1697616000
}
]Query Parameters
Response
200 - application/json
Successful response
Was this page helpful?