Get exchange rate
curl --request GET \
--url https://api.sand.etherfuse.com/lookup/exchange_rate/usd_to_{currency}const options = {method: 'GET'};
fetch('https://api.sand.etherfuse.com/lookup/exchange_rate/usd_to_{currency}', 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/usd_to_{currency}"
response = requests.get(url)
print(response.text){
"rate": "17.15",
"sources": {
"provider_1": {
"rate": "17.15",
"updated_at": 1709510400
}
},
"updated_at": 1709510400
}Lookup API
Get exchange rate
Returns the current USD-to-specified-currency exchange rate, with a
per-provider sources breakdown.
Public — no API key required.
GET
/
lookup
/
exchange_rate
/
usd_to_
{currency}
Get exchange rate
curl --request GET \
--url https://api.sand.etherfuse.com/lookup/exchange_rate/usd_to_{currency}const options = {method: 'GET'};
fetch('https://api.sand.etherfuse.com/lookup/exchange_rate/usd_to_{currency}', 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/usd_to_{currency}"
response = requests.get(url)
print(response.text){
"rate": "17.15",
"sources": {
"provider_1": {
"rate": "17.15",
"updated_at": 1709510400
}
},
"updated_at": 1709510400
}Path Parameters
The target currency code (e.g. "mxn", "brl", "eur")
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
Exchange rate with per-provider source breakdown