/v1/fx
Official daily FX rates vs CAD
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/bankofcanada-api/v1/fx" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bankofcanada-api/v1/fx", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bankofcanada-api/v1/fx");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/bankofcanada-api/v1/fx",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"base": "CAD",
"date": "2026-06-08",
"count": 4,
"rates": [
{
"pair": "USDCAD",
"currency": "USD",
"cad_per_unit": 1.3947,
"unit_per_cad": 0.717
},
{
"pair": "EURCAD",
"currency": "EUR",
"cad_per_unit": 1.6094,
"unit_per_cad": 0.62135
},
{
"pair": "GBPCAD",
"currency": "GBP",
"cad_per_unit": 1.8615,
"unit_per_cad": 0.537201
},
{
"pair": "JPYCAD",
"currency": "JPY",
"cad_per_unit": 0.00871,
"unit_per_cad": 114.810563
}
],
"source": "Bank of Canada official daily rates"
},
"meta": {
"timestamp": "2026-06-09T11:39:48.744Z",
"request_id": "bc6e2934-3ca6-4c30-989e-9367ff5f26b2"
},
"status": "ok",
"message": "FX rates retrieved successfully",
"success": true
}