/v1/rates
SNB FX fixing (all currencies in CHF)
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/snb-api/v1/rates" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/snb-api/v1/rates", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/snb-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/snb-api/v1/rates",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"base": "CHF",
"note": "value_chf = CHF per `amount` units; unit_rate_chf = CHF per 1 unit of the currency",
"as_of": "2026-05",
"count": 26,
"rates": [
{
"code": "ARS",
"date": "2026-05",
"amount": 1,
"value_chf": 0.00056,
"unit_rate_chf": 0.00056
},
{
"code": "AUD",
"date": "2026-05",
"amount": 1,
"value_chf": 0.56248,
"unit_rate_chf": 0.56248
},
{
"code": "BRL",
"date": "2026-05",
"amount": 100,
"value_chf": 15.74908,
"unit_rate_chf": 0.157491
},
{
"code": "CAD",
"date": "2026-05",
"amount": 1,
"value_chf": 0.57107,
"unit_rate_chf": 0.57107
},
{
"code": "CNY",
"date": "2026-05",
"amount": 100,
"value_chf": 11.52706,
"unit_rate_chf": 0.115271
},
{
"code": "CZK",
"date": "2026-05",
"amount": 100,
"value_chf": 3.76308,
"unit_rate_chf": 0.037631
},
{
"code": "DKK",
"date": "2026-05",
"amount": 100,
"value_chf": 12.24504,
"unit_rate_chf": 0.12245
},
{
"code": "EUR",
"date": "2026-05",
"amount": 1,
"value_chf": 0.91503,
"unit_rate_chf": 0.91503
},
{
"code": "GBP",
"date": "2026-05",
"amount": 1,
"value_chf": 1.05676,
"unit_rate_chf": 1.05676
},
{
"code": "HKD",
"date": "2026-05",
"amount": 100,
"value_chf": 10.00526,
"unit_rate_chf": 0.100053
},
{
"code": "HUF",
"date": "2026-05",
"amount": 100,
"value_chf": 0.25534,
"unit_rate_chf": 0.002553
},
{
"code": "JPY",
"date": "2026-05",
"amount": 100,
"value_chf": 0.49554,
"unit_rate_chf": 0.004955
},
{
"code": "KRW",
"date": "2026-05",
"amount": 100,
"value_chf": 0.05261,
"unit_rate_chf": 0.000526
},
{
"code": "MXN",
"date": "2026-05",
"amount": 100,
…