Vai al contenuto
GET /v1/rates

Every quoted currency vs the dong

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/vietnam-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "count": 20,
        "quote": "VND",
        "rates": [
            {
                "name": "Us Dollar",
                "sell": 26410,
                "quote": "VND",
                "cash_buy": 26100,
                "currency": "USD",
                "spread_pct": 1.0716,
                "transfer_buy": 26130
            },
            {
                "name": "Euro",
                "sell": 31151.89,
                "quote": "VND",
                "cash_buy": 29591.86,
                "currency": "EUR",
                "spread_pct": 4.2191,
                "transfer_buy": 29890.76
            },
            {
                "name": "Uk Pound Sterling",
                "sell": 35753.05,
                "quote": "VND",
                "cash_buy": 34297.2,
                "currency": "GBP",
                "spread_pct": 3.2023,
                "transfer_buy": 34643.64
            },
            {
                "name": "Japanese Yen",
                "sell": 168.51,
                "quote": "VND",
                "cash_buy": 158.45,
                "currency": "JPY",
                "spread_pct": 5.2858,
                "transfer_buy": 160.05
            },
            {
                "name": "Australian Dollar",
                "sell": 18769.82,
                "quote": "VND",
                "cash_buy": 18005.52,
                "currency": "AUD",
                "spread_pct": 3.2024,
                "transfer_buy": 18187.39
            },
            {
                "name": "Singapore Dollar",
                "sell": 20803.65,
                "quote": "VND",
                "cash_buy": 19916.65,
                "currency": "SGD",
                "spread_pct": 3.409,
                "transfer_buy": 20117.83
            },
            {
                "name": "Thai Baht",
                "sell": 816.26,
                "quote": "VND",
                "cash_buy": 704.76,
                "currency": "THB",
                "spread_pct": 4.2398,
                "transfer_buy": 783.06
            },
            {
                "name": "Canadian Dollar",
                "sell": 19171.04,
                "quote": "VND",
                "cash_buy": 18390.4,
                "currency": "CAD",
                "spread_pct": 3.2023,
                "transfer_buy": 18576.17
            },
            {
                "name": "Swiss Franc",
                "sell": 33468.37,
                "quote": "VND",
                "cash_buy": 32105.56,
                "currency": "CHF",
                "spread_pct": 3.2024,
                "transfer_buy": 32429.85
            },
            {
                "name": "Hong Kong Dollar",
                "sell": 3423.89,
                "quote": "VND",
                "cash_buy": 3264.81,
                "currency": "HKD",
                "spread_pct": 3.8238,
                "transfer_buy": 3297.79
            },
            {
                "name": "Chinese Yuan",
                "
…