/v1/rates
NRB official buy/sell for every currency vs the rupee
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/nrb-api/v1/rates" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nrb-api/v1/rates", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nrb-api/v1/rates");
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/rates",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"base": "NPR",
"date": "2026-06-09",
"count": 22,
"rates": [
{
"name": "UAE Dirham",
"unit": 1,
"buy_raw": 41.61,
"currency": "AED",
"sell_raw": 41.77,
"npr_buy_per_unit": 41.61,
"npr_mid_per_unit": 41.69,
"npr_sell_per_unit": 41.77
},
{
"name": "Australian Dollar",
"unit": 1,
"buy_raw": 108.12,
"currency": "AUD",
"sell_raw": 108.54,
"npr_buy_per_unit": 108.12,
"npr_mid_per_unit": 108.33,
"npr_sell_per_unit": 108.54
},
{
"name": "Bahrain Dinar",
"unit": 1,
"buy_raw": 405.3,
"currency": "BHD",
"sell_raw": 406.89,
"npr_buy_per_unit": 405.3,
"npr_mid_per_unit": 406.095,
"npr_sell_per_unit": 406.89
},
{
"name": "Canadian Dollar",
"unit": 1,
"buy_raw": 109.7,
"currency": "CAD",
"sell_raw": 110.13,
"npr_buy_per_unit": 109.7,
"npr_mid_per_unit": 109.915,
"npr_sell_per_unit": 110.13
},
{
"name": "Swiss Franc",
"unit": 1,
"buy_raw": 192,
"currency": "CHF",
"sell_raw": 192.75,
"npr_buy_per_unit": 192,
"npr_mid_per_unit": 192.375,
"npr_sell_per_unit": 192.75
},
{
"name": "Chinese Yuan",
"unit": 1,
"buy_raw": 22.53,
"currency": "CNY",
"sell_raw": 22.62,
"npr_buy_per_unit": 22.53,
"npr_mid_per_unit": 22.575,
"npr_sell_per_unit": 22.62
},
{
"name": "Danish Kroner",
"unit": 1,
"buy_raw": 23.6,
"currency": "DKK",
"sell_raw": 23.69,
"npr_buy_per_unit": 23.6,
"npr_mid_per_unit": 23.645,
"npr_sell_per_unit": 23.69
},
{
"name": "European Euro",
"unit": 1,
"buy_raw": 176.39,
"currency": "EUR",
"sell_raw": 177.09,
"npr_buy_per_unit": 176.39,
"npr_mid_per_unit": 176.74,
"npr_sell_per_unit": 177.09
},
{
"name": "UK Pound Sterling",
"unit": 1,
"buy_raw": 204.26,
"currency": "GBP",
"sell_raw": 205.06,
"npr_buy_per_unit": 204.2
…