List exchange rates
curl --request GET \
--url https://api.sand.etherfuse.com/lookup/exchange_rateconst options = {method: 'GET'};
fetch('https://api.sand.etherfuse.com/lookup/exchange_rate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sand.etherfuse.com/lookup/exchange_rate"
response = requests.get(url)
print(response.text){
"usd_to_brl": {
"rate": "4.97",
"sources": {
"provider_1": {
"rate": "4.97",
"updated_at": 1709510400
}
},
"updated_at": 1709510400
},
"usd_to_mxn": {
"rate": "17.15",
"sources": {
"provider_1": {
"rate": "17.15",
"updated_at": 1709510400
}
},
"updated_at": 1709510400
}
}Lookup API
List exchange rates
Returns current USD exchange rates for all supported currencies, each keyed by
usd_to_<currency> with a per-provider sources breakdown.
Public — no API key required.
GET
/
lookup
/
exchange_rate
List exchange rates
curl --request GET \
--url https://api.sand.etherfuse.com/lookup/exchange_rateconst options = {method: 'GET'};
fetch('https://api.sand.etherfuse.com/lookup/exchange_rate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sand.etherfuse.com/lookup/exchange_rate"
response = requests.get(url)
print(response.text){
"usd_to_brl": {
"rate": "4.97",
"sources": {
"provider_1": {
"rate": "4.97",
"updated_at": 1709510400
}
},
"updated_at": 1709510400
},
"usd_to_mxn": {
"rate": "17.15",
"sources": {
"provider_1": {
"rate": "17.15",
"updated_at": 1709510400
}
},
"updated_at": 1709510400
}
}Query Parameters
Maximum age of a source in seconds. Sources whose updated_at timestamp
is older than now - max_age are excluded from the sources map.
When omitted, all sources are returned regardless of age.
Required range:
x >= 0Response
200 - application/json
All exchange rates keyed by usd_to_<currency>