Zum Inhalt springen
GET /v1/meta

Service metadata

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "metric is current_streak (default, most extended now), reversal or longest. window is 120-2000 trading days (default 504, ~2 years, for robust base rates). class filters to index/sector/commodity/bond/stock/crypto (default all). An up day is a close at or above the prior close. Read fresh per call, nothing cached.",
        "source": "Yahoo Finance daily closes, live",
        "classes": [
            "index",
            "sector",
            "commodity",
            "bond",
            "stock",
            "crypto"
        ],
        "metrics": [
            "current_streak",
            "reversal",
            "longest"
        ],
        "service": "streak-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/asset": "Full streak profile with reversal tables and today's odds (symbol=SPY, window=504).",
            "GET /v1/screener": "Rank the universe by current streak length, reversal odds or longest streak (metric=current_streak, window=504, class=all).",
            "GET /v1/universe": "The universe and its classes."
        },
        "description": "Streak analysis & reversal odds — the consecutive up- and down-day runs swing-traders fade, with the historical probability a run reverses, live from Yahoo Finance daily closes (no key, nothing stored). For each instrument it returns the current streak (direction and length), the longest up/down streaks, the average run length, the run-length distribution, and the reversal table (after k consecutive up/down days, how often the next day reversed). If a name is on a streak, it also returns the odds tomorrow reverses it. asset returns one instrument's full streak profile; screener ranks the universe by how extended each is right now. The consecutive-run / reversal-odds cut — distinct from the Hurst persistence API, the multi-timeframe momentum API, the candlestick-pattern API and the price feeds.",
        "universe_size": 20,
        "upstream_status": "ok",
        "most_extended_symbol": "XLU",
        "streak_lengths_tracked": "5+"
    },
    "meta": {
        "timestamp": "2026-06-12T10:34:43.282Z",
        "request_id": "dccfcc7e-39cb-4eec-95cd-078adab553a0"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}