ClickAPIs
Examples · How far does SPY move in an hour?

Examples / Research

How far does SPY move in an hour?

Level 3 · ResearchPOST/v1/distribution1hour bars

What it answers

The distribution of SPY's one-hour returns over the last 180 days, with the share of hours that moved more than 0.5% and 1%.

Request

Input POST /v1/distribution
{
  "symbol": "SPY",
  "interval": "1hour",
  "horizon_bars": 1,
  "thresholds": [
    0.005,
    0.01
  ]
}
Open in playground

Response

Output 200 OK
{
  "ok": true,
  "data": {
    "symbol": "SPY",
    "start": "2026-05-18 09:30",
    "end": "2026-11-12 15:30",
    "horizon_bars": 1,
    "observations": 874,
    "stats": {
      "mean": 3.2e-5,
      "median": -5.2e-5,
      "stdev": 0.003037,
      "annualized_volatility": 0.127547,
      "skew": -0.175576,
      "excess_kurtosis": 10.901272,
      "min": -0.025198,
      "max": 0.018698,
      "positive_pct": 0.490847
    },
    "percentiles": {
      "p1": -0.0081,
      "p5": -0.004352,
      "p10": -0.002804,
      "p25": -0.00115,
      "p50": -5.2e-5,
      "p75": 0.001106,
      "p90": 0.00306,
      "p95": 0.004669,
      "p99": 0.009804
    },
    "histogram": [
      {
        "from": -0.025198,
        "to": -0.023735,
        "count": 1,
        "pct": 0.001144
      },
      {
        "from": -0.023735,
        "to": -0.022272,
        "count": 0,
        "pct": 0.0
      },
      {
        "from": -0.022272,
        "to": -0.020809,
        "count": 0,
        "pct": 0.0
      },
      {
        "from": -0.020809,
        "to": -0.019345,
        "count": 0,
        "pct": 0.0
      },
      {
        "from": -0.019345,
        "to": -0.017882,
        "count": 0,
        "pct": 0.0
      },
      "… 22 more items …",
      {
        "from": 0.014308,
        "to": 0.015771,
        "count": 0,
        "pct": 0.0
      },
      {
        "from": 0.015771,
        "to": 0.017234,
        "count": 2,
        "pct": 0.002288
      },
      {
        "from": 0.017234,
        "to": 0.018698,
        "count": 1,
        "pct": 0.001144
      }
    ],
    "thresholds": [
      {
        "threshold": 0.005,
        "count_up": 34,
        "count_down": 33,
        "prob_up": 0.038902,
        "prob_down": 0.037757,
        "normal_prob_up": 0.050917,
        "normal_prob_down": 0.048772
      },
      {
        "threshold": 0.01,
        "count_up": 9,
        "count_down": 6,
        "prob_up": 0.010297,
        "prob_down": 0.006865,
        "normal_prob_up": 0.000514,
        "normal_prob_down": 0.000478
      }
    ],
    "latest": {
      "return": -0.000119,
      "percentile": 0.471396,
      "z_score": -0.049559
    },
    "notes": [],
    "interval": "1hour"
  },
  "meta": {
    "op": "distribution",
    "units": 10,
    "cost_usd": 0.0,
    "billing": "internal",
    "free_call": false,
    "free_calls_left": 0,
    "balance_usd": 5.0,
    "ms": 203,
    "interval": "1hour",
    "data_as_of": "2026-11-12 15:30",
    "partial_last_bar": false
  }
}

How to read it

Useful for sizing intraday stops: p5 and p95 give a typical one-hour range. Compare with the daily distribution to see how much of the day's range comes in single hours.

Parameters and limits: Return distribution reference. Analytics, not advice.