Aller au contenu
GET /v1/fx

Rand exchange rates and nominal effective rate

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/sarb-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}