ClickAPIs
Examples · 5-minute RSI extremes in SPY

Examples / Research

5-minute RSI extremes in SPY

Level 3 · ResearchPOST/v1/query5min bars

What it answers

Runs the expression language on 5-minute bars for the last 30 days and lists every bar where the 14-bar RSI was below 20 or above 80.

Request

Input POST /v1/query
{
  "symbol": "SPY",
  "interval": "5min",
  "select": [
    "close",
    "rsi(14) as rsi",
    "rvol(20) as rel_volume"
  ],
  "where": "rsi(14) < 20 or rsi(14) > 80",
  "limit": 20
}
Open in playground

Response

Output 200 OK
{
  "ok": true,
  "data": {
    "symbol": "SPY",
    "columns": [
      "date",
      "close",
      "rsi",
      "rel_volume"
    ],
    "rows_matched": 53,
    "sort": "date",
    "order": "desc",
    "rows": [
      {
        "date": "2026-11-12 09:30",
        "close": 755.35,
        "rsi": 19.154334,
        "rel_volume": 4.255485
      },
      {
        "date": "2026-11-11 09:35",
        "close": 756.8,
        "rsi": 84.095308,
        "rel_volume": 0.872245
      },
      {
        "date": "2026-11-11 09:30",
        "close": 756.74,
        "rsi": 84.006439,
        "rel_volume": 3.564487
      },
      {
        "date": "2026-11-09 10:55",
        "close": 751.69,
        "rsi": 84.503685,
        "rel_volume": 0.452729
      },
      {
        "date": "2026-11-09 10:50",
        "close": 750.94,
        "rsi": 83.065581,
        "rel_volume": 0.49257
      },
      "… 12 more items …",
      {
        "date": "2026-11-05 10:15",
        "close": 748.86,
        "rsi": 6.564067,
        "rel_volume": 0.32754
      },
      {
        "date": "2026-11-05 10:10",
        "close": 750.35,
        "rsi": 7.324859,
        "rel_volume": 0.31888
      },
      {
        "date": "2026-11-05 10:05",
        "close": 751.91,
        "rsi": 8.255037,
        "rel_volume": 1.612383
      }
    ],
    "interval": "5min"
  },
  "meta": {
    "op": "query",
    "units": 25,
    "cost_usd": 0.0,
    "billing": "internal",
    "free_call": false,
    "free_calls_left": 0,
    "balance_usd": 5.0,
    "ms": 297,
    "interval": "5min",
    "data_as_of": "2026-11-12 15:55",
    "partial_last_bar": false
  }
}

How to read it

Intraday calls cost five times the daily units and cover a limited history (30 days for 5min). Dates become timestamps in the exchange's time zone. meta.partial_last_bar is true while the latest bar is still forming.

Parameters and limits: Query reference. Analytics, not advice.