Get a mapping of tokenId to 24-hours price change percentage
curl --request GET \
--url https://api.saucerswap.finance/tokens/price-change \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/tokens/price-change', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens/price-change"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"0.0.731861": -2.5351798847046836,
"0.0.786931": 4.047875243039449,
"0.0.629591": -12.223518441429796
}Tokens
REST API: 24-hour price change map
Retrieve a mapping from Hedera token id to 24-hour price change percentage for tokens on SaucerSwap, suited to fast dashboard and ticker updates.
GET
/
tokens
/
price-change
Get a mapping of tokenId to 24-hours price change percentage
curl --request GET \
--url https://api.saucerswap.finance/tokens/price-change \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.saucerswap.finance/tokens/price-change', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/tokens/price-change"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"0.0.731861": -2.5351798847046836,
"0.0.786931": 4.047875243039449,
"0.0.629591": -12.223518441429796
}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 operation
24-hours price change percentage for the given tokenId
Was this page helpful?