Vai al contenuto
GET /v1/symbols

All supported symbols

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "count": 21,
        "source": "tgju.org",
        "symbols": [
            {
                "name": "US Dollar",
                "unit": "IRR",
                "symbol": "usd",
                "category": "currency"
            },
            {
                "name": "Euro",
                "unit": "IRR",
                "symbol": "eur",
                "category": "currency"
            },
            {
                "name": "British Pound",
                "unit": "IRR",
                "symbol": "gbp",
                "category": "currency"
            },
            {
                "name": "UAE Dirham",
                "unit": "IRR",
                "symbol": "aed",
                "category": "currency"
            },
            {
                "name": "Turkish Lira",
                "unit": "IRR",
                "symbol": "try",
                "category": "currency"
            },
            {
                "name": "Canadian Dollar",
                "unit": "IRR",
                "symbol": "cad",
                "category": "currency"
            },
            {
                "name": "Australian Dollar",
                "unit": "IRR",
                "symbol": "aud",
                "category": "currency"
            },
            {
                "name": "Swiss Franc",
                "unit": "IRR",
                "symbol": "chf",
                "category": "currency"
            },
            {
                "name": "Chinese Yuan",
                "unit": "IRR",
                "symbol": "cny",
                "category": "currency"
            },
            {
                "name": "Japanese Yen (100)",
                "unit": "IRR",
                "symbol": "jpy",
                "category": "currency"
            },
            {
                "name": "Russian Ruble",
                "unit": "IRR",
                "symbol": "rub",
                "category": "currency"
            },
            {
                "name": "Gold Ounce (global)",
                "unit": "USD",
                "symbol": "ounce",
                "category": "gold"
            },
            {
                "name": "Gold 18k (gram)",
                "unit": "IRR",
                "symbol": "gram_18k",
                "category": "gold"
            },
            {
                "name": "Gold 24k (gram)",
                "unit": "IRR",
                "symbol": "gram_24k",
                "category": "gold"
            },
            {
                "name": "Gold Mesghal",
                "unit": "IRR",
                "symbol": "mesghal",
                "category": "gold"
            },
            {
                "name": "Emami Gold Coin",
                "unit": "IRR",
                "symbol": "coin_emami",
                "category": "coin"
            },
            {
                "name": "Bahar Azadi Gold Coin",
                "unit": "IRR",
                "symbol": "coin_bahar",
     
…