Get yearly price, volume and liquidity for all tokens
curl --request GET \
--url https://api.saucerswap.finance/tokens/yearly \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/tokens/yearly', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens/yearly"
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: Yearly metrics for all tokens
Retrieve yearly price, volume, and liquidity datapoints for all SaucerSwap tokens, with prices in tinybar and amounts in each token’s smallest unit.
GET
/
tokens
/
yearly
Get yearly price, volume and liquidity for all tokens
curl --request GET \
--url https://api.saucerswap.finance/tokens/yearly \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/tokens/yearly', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens/yearly"
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"
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?