Skip to content
GET /v1/currency

One currency official rate + history

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/treasuryfx-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "code": "EUR",
        "source": "US Treasury (FiscalData)",
        "country": "Euro Zone",
        "history": [
            {
                "record_date": "2026-03-31",
                "rate_per_usd": 0.87
            },
            {
                "record_date": "2025-12-31",
                "rate_per_usd": 0.851
            },
            {
                "record_date": "2025-09-30",
                "rate_per_usd": 0.852
            },
            {
                "record_date": "2025-06-30",
                "rate_per_usd": 0.853
            }
        ],
        "currency": "Euro",
        "frequency": "quarterly",
        "record_date": "2026-03-31",
        "rate_per_usd": 0.87,
        "country_currency": "Euro Zone-Euro"
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:08.539Z",
        "request_id": "93133a29-f5f6-48f1-801b-d4bdb3abe44c"
    },
    "status": "ok",
    "message": "Currency retrieved successfully",
    "success": true
}