Naar de inhoud
GET /v1/universe

The universe and its classes

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/gapstats-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "The universe the screener ranks — liquid index/sector/commodity/bond ETFs and large-cap stocks. Pass class= to a screener call to rank within one class.",
        "count": 20,
        "assets": [
            {
                "name": "S&P 500 ETF",
                "class": "index",
                "symbol": "SPY"
            },
            {
                "name": "Nasdaq 100 ETF",
                "class": "index",
                "symbol": "QQQ"
            },
            {
                "name": "Russell 2000 ETF",
                "class": "index",
                "symbol": "IWM"
            },
            {
                "name": "Dow Jones ETF",
                "class": "index",
                "symbol": "DIA"
            },
            {
                "name": "Technology Sector",
                "class": "sector",
                "symbol": "XLK"
            },
            {
                "name": "Financials Sector",
                "class": "sector",
                "symbol": "XLF"
            },
            {
                "name": "Energy Sector",
                "class": "sector",
                "symbol": "XLE"
            },
            {
                "name": "Gold ETF",
                "class": "commodity",
                "symbol": "GLD"
            },
            {
                "name": "Silver ETF",
                "class": "commodity",
                "symbol": "SLV"
            },
            {
                "name": "Crude Oil ETF",
                "class": "commodity",
                "symbol": "USO"
            },
            {
                "name": "20Y+ Treasuries ETF",
                "class": "bond",
                "symbol": "TLT"
            },
            {
                "name": "Apple",
                "class": "stock",
                "symbol": "AAPL"
            },
            {
                "name": "Microsoft",
                "class": "stock",
                "symbol": "MSFT"
            },
            {
                "name": "Nvidia",
                "class": "stock",
                "symbol": "NVDA"
            },
            {
                "name": "Tesla",
                "class": "stock",
                "symbol": "TSLA"
            },
            {
                "name": "Amazon",
                "class": "stock",
                "symbol": "AMZN"
            },
            {
                "name": "Meta Platforms",
                "class": "stock",
                "symbol": "META"
            },
            {
                "name": "Alphabet",
                "class": "stock",
                "symbol": "GOOGL"
            },
            {
                "name": "AMD",
                "class": "stock",
                "symbol": "AMD"
            },
            {
                "name": "Netflix",
                "class": "stock",
                "symbol": "NFLX"
            }
        ],
        "source": "Yahoo Finance",
        "classes": [
        
…