Get historical HBAR price data (minutely)
curl --request GET \
--url https://api.saucerswap.finance/stats/hbarHistoricalPricesconst options = {method: 'GET'};
fetch('https://api.saucerswap.finance/stats/hbarHistoricalPrices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/stats/hbarHistoricalPrices"
response = requests.get(url)
print(response.text)[
{
"priceUsd": 0.04830379666666667,
"timestampSeconds": 1697599980
}
]Stats
REST API: Historical HBAR prices
Query minutely historical HBAR prices in USD between two unix-second timestamps, for charting, backtesting, and converting tinybar values to dollars.
GET
/
stats
/
hbarHistoricalPrices
Get historical HBAR price data (minutely)
curl --request GET \
--url https://api.saucerswap.finance/stats/hbarHistoricalPricesconst options = {method: 'GET'};
fetch('https://api.saucerswap.finance/stats/hbarHistoricalPrices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/stats/hbarHistoricalPrices"
response = requests.get(url)
print(response.text)[
{
"priceUsd": 0.04830379666666667,
"timestampSeconds": 1697599980
}
]Was this page helpful?