/v1/rates
Policy rate + CORRA
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/bankofcanada-api/v1/rates" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bankofcanada-api/v1/rates", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bankofcanada-api/v1/rates");
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/rates",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"corra": {
"date": "2026-05-27",
"name": "Canadian Overnight Repo Rate Average",
"rate_pct": 2.25
},
"source": "Bank of Canada",
"policy_rate": {
"date": "2026-05-27",
"name": "Target for the overnight rate",
"rate_pct": 2.25
},
"policy_rate_history": [
{
"date": "2026-06-05",
"rate": 2.25
},
{
"date": "2026-06-04",
"rate": 2.25
},
{
"date": "2026-06-03",
"rate": 2.25
},
{
"date": "2026-06-02",
"rate": 2.25
},
{
"date": "2026-06-01",
"rate": 2.25
},
{
"date": "2026-05-29",
"rate": 2.25
},
{
"date": "2026-05-28",
"rate": 2.25
},
{
"date": "2026-05-27",
"rate": 2.25
}
]
},
"meta": {
"timestamp": "2026-06-09T11:39:49.275Z",
"request_id": "d831422c-4575-456a-93f0-cdf28d255f7d"
},
"status": "ok",
"message": "Policy rates retrieved successfully",
"success": true
}