Get the latest candlestick data for V1 pool by id
curl --request GET \
--url https://api.saucerswap.finance/pools/conversionRates/latest/{poolId}const options = {method: 'GET'};
fetch('https://api.saucerswap.finance/pools/conversionRates/latest/{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/latest/{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: Latest V1 pool candlestick
Retrieve the latest candlestick conversion rate for a V1 pool at a chosen interval, with open, high, low, close, volume, and liquidity fields.
GET
/
pools
/
conversionRates
/
latest
/
{poolId}
Get the latest candlestick data for V1 pool by id
curl --request GET \
--url https://api.saucerswap.finance/pools/conversionRates/latest/{poolId}const options = {method: 'GET'};
fetch('https://api.saucerswap.finance/pools/conversionRates/latest/{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/latest/{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?