Vai al contenuto
GET /v1/universe

The cross-asset universe and its classes

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "note": "The cross-asset universe the screener ranks. Pass class= to a screener call to rank within one class.",
        "count": 19,
        "assets": [
            {
                "name": "S&P 500 ETF",
                "class": "index",
                "symbol": "SPY"
            },
            {
                "name": "Nasdaq 100 ETF",
                "class": "index",
                "symbol": "QQQ"
            },
            {
                "name": "US Small Caps",
                "class": "index",
                "symbol": "IWM"
            },
            {
                "name": "Developed ex-US",
                "class": "index",
                "symbol": "EFA"
            },
            {
                "name": "Emerging Markets",
                "class": "index",
                "symbol": "EEM"
            },
            {
                "name": "Technology Sector",
                "class": "sector",
                "symbol": "XLK"
            },
            {
                "name": "Financials Sector",
                "class": "sector",
                "symbol": "XLF"
            },
            {
                "name": "Energy Sector",
                "class": "sector",
                "symbol": "XLE"
            },
            {
                "name": "Utilities Sector",
                "class": "sector",
                "symbol": "XLU"
            },
            {
                "name": "Gold ETF",
                "class": "commodity",
                "symbol": "GLD"
            },
            {
                "name": "Silver ETF",
                "class": "commodity",
                "symbol": "SLV"
            },
            {
                "name": "Crude Oil ETF",
                "class": "commodity",
                "symbol": "USO"
            },
            {
                "name": "Broad Commodities",
                "class": "commodity",
                "symbol": "DBC"
            },
            {
                "name": "20Y+ Treasuries",
                "class": "bond",
                "symbol": "TLT"
            },
            {
                "name": "High-Yield Credit",
                "class": "bond",
                "symbol": "HYG"
            },
            {
                "name": "EUR/USD",
                "class": "fx",
                "symbol": "EURUSD=X"
            },
            {
                "name": "USD/JPY",
                "class": "fx",
                "symbol": "USDJPY=X"
            },
            {
                "name": "Bitcoin",
                "class": "crypto",
                "symbol": "BTC-USD"
            },
            {
                "name": "Ethereum",
                "class": "crypto",
                "symbol": "ETH-USD"
            }
        ],
        "source": "Yahoo Finance",
        "classes": [
            "index",
            "sector",
            "commodity",
            "bond",
            "fx",
            "crypto"
        ]
    },
  
…