View as markdown
Concepts › SignalsPrice Highs & lows

days_since_52w_high

Trading days since the most recent 52-week high.

Watch this signal live on real tickers: Open in Explore →

At a glance

Typeinteger
GroupPrice
CategoryHighs & lows
Unitdays
Update cadencepost-close daily
Intervals1m/1h/1d
Universeall tickers
Historyfull · since 2003
Nullableyes — NULL where not applicable

Rolling-window highs and lows (5-day, 20-day, 52-week), their dates and distances, and the at/approaching/breaking signals those levels own.

Query it

Every applicable form factor, grouped by endpoint family. Swap YOUR_KEY for the value from /dashboard/keys. Response payloads are real captures, sampled 2026-08-18 and trimmed — your run's values and dates will differ.

Use signals /v2/signals/{signal}

One signal across the market: who matches now, who matched then, and a push when someone starts. Docs →

Live — every ticker with days_since_52w_high above a cutoff
curl -G "https://api.tickerbot.io/v2/signals/days_since_52w_high" \
  --data-urlencode "condition=> 634" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:23:20.706Z",
 "signal": "days_since_52w_high",
 "condition": "> 634",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "GTM",
   "name": "ZoomInfo Technologies Inc Common Stock",
   "value": 7992
  },
  {
   "ticker": "FFF",
   "name": "Founders 100 ETF",
   "value": 7833
  }
 ]
}
As-of — the same read at a past date
curl -G "https://api.tickerbot.io/v2/signals/days_since_52w_high" \
  --data-urlencode "condition=> 634" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-05-20",
 "signal": "days_since_52w_high",
 "condition": "> 634",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "BVC",
   "name": "BitVentures Limited Ordinary Shares",
   "value": 7327
  },
  {
   "ticker": "NBP",
   "name": "NovaBridge Biosciences American Depositary Shares",
   "value": 7315
  }
 ]
}
Subscribe — webhook when a ticker starts matching
curl -X POST "https://api.tickerbot.io/v2/signals/days_since_52w_high/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"condition": "> 634", "target_url": "https://example.com/hooks/tickerbot"}'

Returns 201 with the created webhook — the same shape as GET /v2/webhooks/{id}, plus a one-time signing_secret for HMAC verification.

Use scan /v2/scan

The whole market through a WHERE clause — this signal composed freely with any other column. Docs →

Live — the whole market, ranked by this column
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=days_since_52w_high IS NOT NULL" \
  -d "order=days_since_52w_high" -d "columns=days_since_52w_high" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:23:23.565Z",
 "query": {
  "q": "days_since_52w_high IS NOT NULL",
  "limit": 2,
  "order": "days_since_52w_high",
  "dir": "desc",
  "fields": [
   "days_since_52w_high"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "GTM",
   "name": "ZoomInfo Technologies Inc Common Stock",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 3.77,
   "day_change_pct": -0.0691,
   "gap_pct": -0.0099,
   "relative_volume": null,
   "market_cap": 1178995686,
   "days_since_52w_high": 7992
  },
  {
   "ticker": "FFF",
   "name": "Founders 100 ETF",
   "asset_class": "stocks",
   "asset_type": "ETF",
   "price": 26.405,
   "day_change_pct": -0.0129,
   "gap_pct": 0.0003,
   "relative_volume": null,
   "market_cap": null,
   "days_since_52w_high": 7833
  }
 ]
}
As-of — the same scan at a past date
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=days_since_52w_high IS NOT NULL" \
  -d "order=days_since_52w_high" -d "columns=days_since_52w_high" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-05-20",
 "query": {
  "q": "days_since_52w_high IS NOT NULL",
  "asof": "2026-05-20",
  "interval": "auto",
  "limit": 2,
  "order": "days_since_52w_high",
  "dir": "desc",
  "fields": [
   "days_since_52w_high"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "BVC",
   "name": "BitVentures Limited Ordinary Shares",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 10.67,
   "day_change_pct": 8.215010141987836,
   "gap_pct": 8.519269776876266,
   "relative_volume": 0.38966544589550045,
   "market_cap": null,
   "days_since_52w_high": 7327
  },
  {
   "ticker": "NBP",
   "name": "NovaBridge Biosciences American Depositary Shares",
   "asset_class": "stocks",
   "asset_type": "ADRC",
   "price": 1.76,
   "day_change_pct": 4.761904761904766,
   "gap_pct": 4.1666666666666705,
   "relative_volume": 1.0590800190739713,
   "market_cap": null,
   "days_since_52w_high": 7315
  }
 ]
}
Subscribe — webhook on a market-wide condition
curl -X POST "https://api.tickerbot.io/v2/scan/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"q": "days_since_52w_high > 634", "target_url": "https://example.com/hooks/tickerbot"}'

Returns 201 with the created webhook object; deliveries carry the tickers matching the condition at each evaluation.

Use series /v2/series

Its history over time, on one aligned grid. Docs →

History — the column on an aligned time grid
curl "https://api.tickerbot.io/v2/series?tickers=AAPL,MSFT&columns=close,days_since_52w_high" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:23:25.747Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "days_since_52w_high"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-08-12",
    "close": 302.25,
    "days_since_52w_high": 14
   },
   {
    "t": "2026-08-13",
    "close": 305.26,
    "days_since_52w_high": 15
   },
   {
    "t": "2026-08-14",
    "close": 305.93,
    "days_since_52w_high": 16
   }
  ],
  "MSFT": [
   {
    "t": "2026-08-12",
    "close": 492.43,
    "days_since_52w_high": 288
   },
   {
    "t": "2026-08-13",
    "close": 496.88,
    "days_since_52w_high": 289
   },
   {
    "t": "2026-08-14",
    "close": 495.4,
    "days_since_52w_high": 290
   }
  ]
 }
}

Same grammar on scan, series, and webhooks; state reads take ?asof= for point-in-time answers.

Related signals — Highs & lows