Skip to content
StatAlphaDocumentation

INTRADAY — Time Slot Analysis

The Intraday Statistics module analyzes how returns, volume, and direction behave within fixed intraday time slots.
It helps identify statistically favorable windows for entries or exits based on historical intraday performance.


  • Each trading day is divided into fixed-length slots (e.g. 15 minutes).
  • For every slot, the system calculates:
    • Average & median return (%)
    • Average volume
    • Positive rate (how often the slot closes green)
    • Absolute return (%) — a proxy for volatility
  • The analysis highlights which time periods tend to perform best or worst for a given symbol.

Parameter Type Description
symbol string Asset symbol (e.g. AAPL, BTCUSD)
start_date / end_date string Optional date range (YYYY-MM-DD)
time_window string Predefined relative range (e.g. 1M, 3M, 6M, 12M, 24M, 5Y)
resolution_minutes int Slot duration in minutes (default 15, min 1, max 240)
start_time / end_time string UTC session range; by default the US equity session follows New York market hours
include_extended_hours bool Include pre-/post-market data
sort_by string Sorting field for summary/top (avg_return_pct or median_return_pct)
direction string For /top: 'top' (best slots) or 'bottom' (worst slots)
limit int Number of slots returned by /top (default 5, max 100)

Endpoint Description
GET /stats/intraday/slots Returns average metrics per intraday time slot (e.g. every 15 minutes)
GET /stats/intraday/summary Returns the best and worst slot by average or median return
GET /stats/intraday/top Returns ranked list of top or bottom slots
GET /stats/intraday/doc Returns documentation of all intraday fields

Terminal window
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
"https://api.statalpha.io/stats/intraday/slots?symbol=AAPL&time_window=6M&resolution_minutes=15"
Terminal window
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
"https://api.statalpha.io/stats/intraday/summary?symbol=AAPL&sort_by=median_return_pct"
Terminal window
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
"https://api.statalpha.io/stats/intraday/top?symbol=AAPL&direction=top&limit=5"

{
"symbol": "AAPL",
"sort_by": "median_return_pct",
"best_slot": {
"slot": "15:15:00",
"median_return_pct": 0.043,
"avg_volume": 1230000
},
"worst_slot": {
"slot": "19:00:00",
"median_return_pct": -0.026,
"avg_volume": 1010000
},
"time_window": "12M"
}

Metric Meaning
avg_return_pct / median_return_pct Average or median return for each slot
absolute_return_pct Average magnitude of price movement (volatility indicator)
positive_rate_pct Percentage of sessions where the slot closed positive
avg_volume Mean traded volume during this slot
count Number of data points used for that slot
best_slot / worst_slot Slots with the highest and lowest performance metrics

  • All intraday analyses use aggregated bar data (minute to hourly resolutions).
  • Session times and slot lengths can be customized depending on your subscription plan.