Zum Inhalt springen
GET /v1/sector

One sector performance by name or ETF

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/sectors-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "etf": "XLK",
        "name": "Technology",
        "as_of": "2026-06-08T20:00:00.000Z",
        "price": 184.18,
        "change": 3.88,
        "sector": "technology",
        "day_low": 183.17,
        "day_high": 186.71,
        "change_pct": 2.15,
        "week52_low": 119.15,
        "week52_high": 198.73,
        "previous_close": 180.3
    },
    "meta": {
        "timestamp": "2026-06-09T03:02:03.374Z",
        "request_id": "b247f22a-cb8d-482f-858e-a83ecf2951e4"
    },
    "status": "ok",
    "message": "Sector retrieved successfully",
    "success": true
}