Aller au contenu
GET /v1/history

Daily OHLC time series

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/stockhistory-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/stockhistory-api/v1/history" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stockhistory-api/v1/history", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stockhistory-api/v1/history");
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/stockhistory-api/v1/history",
    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": {
        "to": "2026-03-01",
        "from": "2026-01-01",
        "count": 39,
        "range": "custom",
        "source": "Nasdaq",
        "symbol": "AAPL",
        "company": "Apple Inc. Common Stock",
        "history": [
            {
                "low": 269,
                "date": "2026-01-02",
                "high": 277.84,
                "open": 272.255,
                "close": 271.01,
                "volume": 37838050
            },
            {
                "low": 266.14,
                "date": "2026-01-05",
                "high": 271.51,
                "open": 270.64,
                "close": 267.26,
                "volume": 45647190
            },
            {
                "low": 262.12,
                "date": "2026-01-06",
                "high": 267.55,
                "open": 267,
                "close": 262.36,
                "volume": 52352090
            },
            {
                "low": 259.81,
                "date": "2026-01-07",
                "high": 263.68,
                "open": 263.2,
                "close": 260.33,
                "volume": 48309800
            },
            {
                "low": 255.7,
                "date": "2026-01-08",
                "high": 259.29,
                "open": 257.02,
                "close": 259.04,
                "volume": 50419340
            },
            {
                "low": 256.22,
                "date": "2026-01-09",
                "high": 260.21,
                "open": 259.075,
                "close": 259.37,
                "volume": 39996970
            },
            {
                "low": 256.8,
                "date": "2026-01-12",
                "high": 261.3,
                "open": 259.16,
                "close": 260.25,
                "volume": 45263770
            },
            {
                "low": 258.39,
                "date": "2026-01-13",
                "high": 261.81,
                "open": 258.72,
                "close": 261.05,
                "volume": 45730850
            },
            {
                "low": 256.71,
                "date": "2026-01-14",
                "high": 261.82,
                "open": 259.49,
                "close": 259.96,
                "volume": 40019420
            },
            {
                "low": 257.05,
                "date": "2026-01-15",
                "high": 261.04,
                "open": 260.65,
                "close": 258.21,
                "volume": 39388560
            },
            {
                "low": 254.93,
                "date": "2026-01-16",
                "high": 258.9,
                "open": 257.9,
                "close": 255.53,
                "volume": 72142770
            },
            {
                "low": 243.42,
                "date": "2026-01-20",
                "high": 254.79,
                "open": 252.73,
                "close": 246.7,
                "volume": 80267520
            },
        
…