Zum Inhalt springen
GET /v1/fx

Official daily FX rates vs CAD

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/bankofcanada-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}