Get weekly price, volume and liquidity for token by id
curl --request GET \
--url https://api.saucerswap.finance/tokens/weekly/{tokenId}const options = {method: 'GET'};
fetch('https://api.saucerswap.finance/tokens/weekly/{tokenId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens/weekly/{tokenId}"
response = requests.get(url)
print(response.text)[
{
"timestampSeconds": 1697677200,
"tokenId": "0.0.731861",
"price": "36334886",
"liquidity": "5971792596548121",
"volume": "100169644699152"
}
]Tokens
REST API: Weekly metrics for a token
Retrieve weekly price, volume, and liquidity history for a single token by Hedera token id, with prices in tinybar and unix-second timestamps.
GET
/
tokens
/
weekly
/
{tokenId}
Get weekly price, volume and liquidity for token by id
curl --request GET \
--url https://api.saucerswap.finance/tokens/weekly/{tokenId}const options = {method: 'GET'};
fetch('https://api.saucerswap.finance/tokens/weekly/{tokenId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens/weekly/{tokenId}"
response = requests.get(url)
print(response.text)[
{
"timestampSeconds": 1697677200,
"tokenId": "0.0.731861",
"price": "36334886",
"liquidity": "5971792596548121",
"volume": "100169644699152"
}
]Path Parameters
Token id (shard.realm.num)
Example:
"0.0.731861"
Response
200 - application/json
Successful response
Unix seconds
Example:
1697677200
Token id (shard.realm.num)
Example:
"0.0.731861"
Token price in tinybar
Example:
"36334886"
Token liquidity in its smallest unit
Example:
"5971792596548121"
Token volume in its smallest unit
Example:
"100169644699152"
Was this page helpful?