Get hourly, daily and weekly price change for default listed tokens
curl --request GET \
--url https://api.saucerswap.finance/tokens/default \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/tokens/default', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens/default"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "0.0.731861",
"symbol": "SAUCE",
"priceUsd": 0.0177,
"liquidityUsd": 2880053.73,
"priceChangeHour": 0.01,
"priceChangeDay": 0.04,
"priceChangeWeek": 0.11
}
]Tokens
REST API: Price changes for default listed tokens
Retrieve hourly, daily, and weekly price change percentages plus USD price and liquidity for every default listed token on SaucerSwap in one call.
GET
/
tokens
/
default
Get hourly, daily and weekly price change for default listed tokens
curl --request GET \
--url https://api.saucerswap.finance/tokens/default \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/tokens/default', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens/default"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "0.0.731861",
"symbol": "SAUCE",
"priceUsd": 0.0177,
"liquidityUsd": 2880053.73,
"priceChangeHour": 0.01,
"priceChangeDay": 0.04,
"priceChangeWeek": 0.11
}
]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
Token id (shard.realm.num)
Example:
"0.0.731861"
Token symbol
Example:
"SAUCE"
Token price in USD
Example:
0.0177
Token liquidity in USD
Example:
2880053.73
Price change % for the past hour
Example:
0.01
Price change % for the past day
Example:
0.04
Price change % for the past week
Example:
0.11
Was this page helpful?