Retrieve a market reference rate
curl --request GET \
--url https://api.example.com/rates \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/rates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/rates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"fromCurrency": "<string>",
"toCurrency": "<string>",
"rate": "500.00",
"indicative": true
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Catalog
Retrieve a market reference rate
Convert one currency or token into another at the current market rate, before any transfer exists. Use it to show a price; the rate a transfer settles at comes from its own quote.
GET
/
rates
Retrieve a market reference rate
curl --request GET \
--url https://api.example.com/rates \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/rates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/rates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"fromCurrency": "<string>",
"toCurrency": "<string>",
"rate": "500.00",
"indicative": true
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Authorizations
Query Parameters
Response
Successful Response
Was this page helpful?