/v1/asset
Full streak profile with reversal tables and today's odds
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/streak-api/v1/asset" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/streak-api/v1/asset", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/streak-api/v1/asset");
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/asset",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"name": "S&P 500 ETF",
"note": "An up day is a close at or above the prior close. The reversal tables give, for each run length, the empirical share of times the next day reversed the run. current_reversal_prob_pct applies that to the current streak. Base rates need >=4 occurrences or are null. Read fresh per call, nothing cached.",
"read": "on a 1-day up streak; historically 46% of streaks this long reversed down the next day",
"class": "index",
"source": "Yahoo Finance",
"symbol": "SPY",
"window_days": 504,
"observations": 504,
"avg_up_streak": 2.32,
"current_streak": {
"length": 1,
"direction": "up"
},
"avg_down_streak": 1.71,
"longest_overall": 9,
"longest_up_streak": 9,
"up_reversal_table": {
"1": {
"occurrences": 124,
"reversal_prob_pct": 46
},
"2": {
"occurrences": 67,
"reversal_prob_pct": 44.8
},
"3": {
"occurrences": 37,
"reversal_prob_pct": 32.4
},
"4": {
"occurrences": 25,
"reversal_prob_pct": 32
},
"5+": {
"occurrences": 36,
"reversal_prob_pct": 47.2
}
},
"down_reversal_table": {
"1": {
"occurrences": 125,
"reversal_prob_pct": 58.4
},
"2": {
"occurrences": 52,
"reversal_prob_pct": 51.9
},
"3": {
"occurrences": 25,
"reversal_prob_pct": 60
},
"4": {
"occurrences": 10,
"reversal_prob_pct": 80
},
"5+": {
"occurrences": 2,
"reversal_prob_pct": null
}
},
"longest_down_streak": 5,
"up_streak_distribution": {
"1": 58,
"2": 30,
"3": 12,
"4": 8,
"5+": 17
},
"down_streak_distribution": {
"1": 73,
"2": 27,
"3": 15,
"4": 8,
"5+": 2
},
"current_reversal_prob_pct": 46
},
"meta": {
"timestamp": "2026-06-12T10:34:42.901Z",
"request_id": "79473f03-7485-41b8-89fb-31507c5fa72c"
},
"status": "ok",
"message": "Asset streak profile retrieved successfully",
"success": true
}