Aller au contenu
GET /v1/sector

One sector performance by name or ETF

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/sectors-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}