Get historical candlestick data for token by id
curl --request GET \
--url https://api.saucerswap.finance/tokens/prices/{tokenId}const options = {method: 'GET'};
fetch('https://api.saucerswap.finance/tokens/prices/{tokenId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens/prices/{tokenId}"
response = requests.get(url)
print(response.text)[
{
"tokenId": "0.0.731861",
"open": 36358807,
"openUsd": 0.017246927356274498,
"high": 36370090,
"highUsd": 0.017248478665373164,
"low": 36334867,
"lowUsd": 0.0169388611613325,
"close": 36353193,
"closeUsd": 0.0169388611613325,
"avg": 36347000.92028988,
"avgUsd": 0.017085609229304164,
"volume": "4484168318250",
"liquidity": "5976854242691456",
"volumeUsd": 2110.33,
"liquidityUsd": 2784930.18,
"timestampSeconds": 1697681880,
"startTimestampSeconds": 1697673600
}
]Tokens
REST API: Token price history (candlesticks)
Query historical OHLCV candlestick data for a token between two unix-second timestamps at five-minute, hourly, daily, or weekly interval sizes.
GET
/
tokens
/
prices
/
{tokenId}
Get historical candlestick data for token by id
curl --request GET \
--url https://api.saucerswap.finance/tokens/prices/{tokenId}const options = {method: 'GET'};
fetch('https://api.saucerswap.finance/tokens/prices/{tokenId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens/prices/{tokenId}"
response = requests.get(url)
print(response.text)[
{
"tokenId": "0.0.731861",
"open": 36358807,
"openUsd": 0.017246927356274498,
"high": 36370090,
"highUsd": 0.017248478665373164,
"low": 36334867,
"lowUsd": 0.0169388611613325,
"close": 36353193,
"closeUsd": 0.0169388611613325,
"avg": 36347000.92028988,
"avgUsd": 0.017085609229304164,
"volume": "4484168318250",
"liquidity": "5976854242691456",
"volumeUsd": 2110.33,
"liquidityUsd": 2784930.18,
"timestampSeconds": 1697681880,
"startTimestampSeconds": 1697673600
}
]Query Parameters
Response
200 - application/json
Successful response
Was this page helpful?