/v1/history
A currency's daily buy/sell rate over a date range
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/nrb-api/v1/history" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nrb-api/v1/history", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nrb-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/nrb-api/v1/history",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"to": "2026-06-08",
"base": "NPR",
"from": "2026-06-01",
"count": 8,
"source": "Nepal Rastra Bank",
"history": [
{
"date": "2026-06-01",
"npr_buy_per_unit": 151.71,
"npr_mid_per_unit": 152.01,
"npr_sell_per_unit": 152.31
},
{
"date": "2026-06-02",
"npr_buy_per_unit": 151.69,
"npr_mid_per_unit": 151.99,
"npr_sell_per_unit": 152.29
},
{
"date": "2026-06-03",
"npr_buy_per_unit": 152.13,
"npr_mid_per_unit": 152.43,
"npr_sell_per_unit": 152.73
},
{
"date": "2026-06-04",
"npr_buy_per_unit": 152.84,
"npr_mid_per_unit": 153.14,
"npr_sell_per_unit": 153.44
},
{
"date": "2026-06-05",
"npr_buy_per_unit": 152.96,
"npr_mid_per_unit": 153.26,
"npr_sell_per_unit": 153.56
},
{
"date": "2026-06-06",
"npr_buy_per_unit": 151.62,
"npr_mid_per_unit": 151.92,
"npr_sell_per_unit": 152.22
},
{
"date": "2026-06-07",
"npr_buy_per_unit": 151.62,
"npr_mid_per_unit": 151.92,
"npr_sell_per_unit": 152.22
},
{
"date": "2026-06-08",
"npr_buy_per_unit": 151.62,
"npr_mid_per_unit": 151.92,
"npr_sell_per_unit": 152.22
}
],
"currency": "USD"
},
"meta": {
"timestamp": "2026-06-10T13:59:07.991Z",
"request_id": "1a2dc192-bb60-4974-acfe-498e0be3e2d4"
},
"status": "ok",
"message": "History retrieved successfully",
"success": true
}