/v1/fx
Rand exchange rates and nominal effective rate
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/sarb-api/v1/fx" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sarb-api/v1/fx", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sarb-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/sarb-api/v1/fx",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"bank": "South African Reserve Bank",
"base": "ZAR",
"note": "Values are rand per unit of the named foreign currency (e.g. rand per US dollar).",
"count": 5,
"source": "SARB",
"exchange_rates": [
{
"code": "EXCX135D",
"date": "2026-06-11",
"name": "Rand per US Dollar",
"trend": "up",
"value": 16.5422,
"section": "Exchange rates"
},
{
"code": "EXCZ001D",
"date": "2026-06-11",
"name": "Rand per British Pound",
"trend": "down",
"value": 22.1211,
"section": "Exchange rates"
},
{
"code": "EXCZ002D",
"date": "2026-06-11",
"name": "Rand per Euro",
"trend": "down",
"value": 19.0897,
"section": "Exchange rates"
},
{
"code": "EXCZ120D",
"date": "2026-06-11",
"name": "Rand per Japanese Yen",
"trend": "flat",
"value": 0.1031,
"section": "Exchange rates"
}
],
"nominal_effective": [
{
"code": "EER4504A",
"date": "2026-06-11",
"name": "Nominal effective exchange rate",
"trend": "up",
"value": 84.1762,
"section": "Nominal Effective"
}
]
},
"meta": {
"timestamp": "2026-06-11T16:46:58.366Z",
"request_id": "ec2d1e6f-660a-499d-8842-edd5e6668006"
},
"status": "ok",
"message": "FX retrieved successfully",
"success": true
}