Get currency conversion rates
curl --request GET \
--url https://my.server.express/api/v1/fx/ratesconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/fx/rates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/fx/rates"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"base": "GBP",
"rates": {
"GBP": 1,
"EUR": 123,
"USD": 123
},
"fetchedAt": "2023-11-07T05:31:56Z",
"stale": true
}
}Public
Get currency conversion rates
Foreign units per £1, for quoting GBP catalogue prices in EUR and USD. Rates come from XE or the ECB (cached 24 hours upstream) and this response is cached for 60 seconds (Cache-Control: public, max-age=60). If a source fails, the missing legs fall back to a fixed table and stale is true. Never errors.
GET
/
v1
/
fx
/
rates
Get currency conversion rates
curl --request GET \
--url https://my.server.express/api/v1/fx/ratesconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/fx/rates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/fx/rates"
response = requests.get(url)
print(response.text){
"success": true,
"data": {
"base": "GBP",
"rates": {
"GBP": 1,
"EUR": 123,
"USD": 123
},
"fetchedAt": "2023-11-07T05:31:56Z",
"stale": true
}
}