Skip to content
GET /v1/stats

Min/max/avg/volatility + best & worst day over a range

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/fxhistory-api

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "max": 0.96256,
        "min": 0.89318,
        "base": "USD",
        "days": 257,
        "stdev": 0.01493221,
        "source": "ECB (Frankfurter)",
        "symbol": "EUR",
        "average": 0.924053,
        "best_day": {
            "date": "2024-11-06",
            "change_pct": 1.8895
        },
        "end_date": "2024-12-31",
        "worst_day": {
            "date": "2024-08-05",
            "change_pct": -1.194
        },
        "start_date": "2023-12-29",
        "annualized_volatility": 0.06008
    },
    "meta": {
        "timestamp": "2026-06-10T22:56:19.471Z",
        "request_id": "7e3828a5-7f83-463b-9c91-1d12bf4f5b14"
    },
    "status": "ok",
    "message": "Stats computed",
    "success": true
}