Naar de inhoud
GET /v1/history

A currency official rate on a specific past date

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/bnm-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/bnm-api/v1/history" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bnm-api/v1/history", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bnm-api/v1/history");
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/bnm-api/v1/history",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "base": "MDL",
        "date": "2026-05-15",
        "name": "US Dollar",
        "source": "National Bank of Moldova",
        "nominal": 1,
        "currency": "USD",
        "mdl_per_unit": 17.2084,
        "unit_per_mdl": 0.05811116
    },
    "meta": {
        "timestamp": "2026-06-10T13:59:59.773Z",
        "request_id": "f8a22203-fa60-4593-988c-4c686f0e0172"
    },
    "status": "ok",
    "message": "History retrieved successfully",
    "success": true
}