/v1/seasonality
One index 12-month seasonal profile with best/worst month and current bias
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/indexseasonality-api/v1/seasonality" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/indexseasonality-api/v1/seasonality", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/indexseasonality-api/v1/seasonality");
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/indexseasonality-api/v1/seasonality",
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": {
"name": "S&P 500",
"note": "Average month-over-month return in each calendar month over ~10 years, with win_rate_pct (share of years that month was positive) and the sample size (years). Captures effects like Sell-in-May and the year-end rally. Seasonal tendencies are statistical, not guarantees. Not financial advice.",
"index": "sp500",
"months": [
{
"month": "January",
"years": 10,
"month_num": 1,
"win_rate_pct": 70,
"avg_return_pct": 2.11
},
{
"month": "February",
"years": 10,
"month_num": 2,
"win_rate_pct": 40,
"avg_return_pct": -0.4
},
{
"month": "March",
"years": 10,
"month_num": 3,
"win_rate_pct": 50,
"avg_return_pct": -1.22
},
{
"month": "April",
"years": 10,
"month_num": 4,
"win_rate_pct": 70,
"avg_return_pct": 2.2
},
{
"month": "May",
"years": 10,
"month_num": 5,
"win_rate_pct": 90,
"avg_return_pct": 2.02
},
{
"month": "June",
"years": 11,
"month_num": 6,
"win_rate_pct": 73,
"avg_return_pct": 1.18
},
{
"month": "July",
"years": 9,
"month_num": 7,
"win_rate_pct": 100,
"avg_return_pct": 3.51
},
{
"month": "August",
"years": 10,
"month_num": 8,
"win_rate_pct": 70,
"avg_return_pct": 1.06
},
{
"month": "September",
"years": 10,
"month_num": 9,
"win_rate_pct": 50,
"avg_return_pct": -1.61
},
{
"month": "October",
"years": 10,
"month_num": 10,
"win_rate_pct": 50,
"avg_return_pct": 0.79
},
{
"month": "November",
"years": 10,
"month_num": 11,
"win_rate_pct": 90,
"avg_return_pct": 4.31
},
{
"month": "December",
"years": 10,
"month_num": 12,
"win_rate_pct": 60,
"avg_return_pct": -0.23
}
],
"region": "us",
"source": "Yahoo Finance",
"best_month": {
"month": "November",
"win_rate_pct": 90,
"avg_return_pct": 4.31
…