/v1/exchange-rates
All BNM FX reference rates
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/malaysia-fx-api/v1/exchange-rates" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/malaysia-fx-api/v1/exchange-rates", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/malaysia-fx-api/v1/exchange-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/malaysia-fx-api/v1/exchange-rates",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"base": "MYR",
"date": "2026-06-15",
"count": 3,
"rates": [
{
"base": "MYR",
"date": "2026-06-15",
"unit": 1,
"currency": "EUR",
"buying_rate": 4.6953,
"middle_rate": 4.699,
"myr_per_unit": 4.699,
"selling_rate": 4.7027
},
{
"base": "MYR",
"date": "2026-06-15",
"unit": 1,
"currency": "SGD",
"buying_rate": 3.1578,
"middle_rate": 3.1604,
"myr_per_unit": 3.1604,
"selling_rate": 3.1629
},
{
"base": "MYR",
"date": "2026-06-15",
"unit": 1,
"currency": "USD",
"buying_rate": 4.048,
"middle_rate": 4.0505,
"myr_per_unit": 4.0505,
"selling_rate": 4.053
}
]
},
"meta": {
"timestamp": "2026-06-15T11:15:25.988Z",
"request_id": "8075ce73-bcb5-4e09-8696-f7f1234da7d2"
},
"status": "ok",
"message": "Rates retrieved successfully",
"success": true
}