Get weekly price, volume and liquidity for token by id
curl --request GET \
--url https://api.saucerswap.finance/tokens/weekly/{tokenId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
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}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
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} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
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}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"timestampSeconds": 1697677200,
"tokenId": "0.0.731861",
"price": "36334886",
"liquidity": "5971792596548121",
"volume": "100169644699152"
}
]Authorizations
API key provisioned by the SaucerSwap team. Request one from [email protected] and send it in the x-api-key header with every request.
Headers
API key for authentication. Request a key from [email protected].
Example:
"YOUR_API_KEY"
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?