cURL
curl --request GET \
--url https://api.relay.link/currencies/token/priceconst options = {method: 'GET'};
fetch('https://api.relay.link/currencies/token/price', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/currencies/token/price"
response = requests.get(url)
print(response.text){
"price": 123
}{
"error": "<string>"
}API Reference
Get Token Price
This API returns the price of a token on a specific chain.
GET
/
currencies
/
token
/
price
cURL
curl --request GET \
--url https://api.relay.link/currencies/token/priceconst options = {method: 'GET'};
fetch('https://api.relay.link/currencies/token/price', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/currencies/token/price"
response = requests.get(url)
print(response.text){
"price": 123
}{
"error": "<string>"
}Was this page helpful?