← tickerbot.io
View as markdown

recent_upgrade

At least one analyst upgraded the ticker in the last 7 days.

definition
EXISTS (SELECT 1 FROM analyst_events WHERE ticker = t.ticker AND action = 'upgrades' AND timestamp >= NOW() - INTERVAL '7 days')

Swap YOUR_KEY for a key from /dashboard/keys. Responses are real captures from 2026-09-18, trimmed.

Every ticker matching this signal /v2/signals/{signal}

Live — every ticker where it fires now
curl "https://api.tickerbot.io/v2/signals/recent_upgrade" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-09-18T14:41:15.626Z",
 "signal": "recent_upgrade",
 "condition": null,
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "ADNT",
   "name": "Adient plc Ordinary Shares",
   "value": true
  },
  {
   "ticker": "AFRM",
   "name": "Affirm Holdings, Inc. Class A Common Stock",
   "value": true
  }
 ]
}
As-of — the same read at a past date
curl "https://api.tickerbot.io/v2/signals/recent_upgrade?asof=2026-07-04" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-06-20",
 "signal": "recent_upgrade",
 "condition": null,
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "AJG",
   "name": "Arthur J. Gallagher & Co.",
   "value": true
  },
  {
   "ticker": "AMD",
   "name": "Advanced Micro Devices",
   "value": true
  }
 ]
}
Subscribe — webhook when a ticker starts matching
curl -X POST "https://api.tickerbot.io/v2/signals/recent_upgrade/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"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.

The whole market, filtered on it /v2/scan

Live — the whole market, filtered on this signal
curl -X POST "https://api.tickerbot.io/v2/scan" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{ "q": "recent_upgrade" }'
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-09-18T14:41:16.815Z",
 "query": {
  "q": "recent_upgrade",
  "limit": 2,
  "order": "change_1d_pct",
  "dir": "desc",
  "fields": [],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "FTCI",
   "name": "FTC Solar, Inc. Common Stock",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 2.617,
   "change_1d_pct": 22.86384976525822,
   "gap_pct": 12.6761,
   "relative_volume": 3.2772,
   "market_cap": 35190573
  },
  {
   "ticker": "COIN",
   "name": "Coinbase Global, Inc. Class A Common Stock",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 190.244,
   "change_1d_pct": 9.354486405702133,
   "gap_pct": 2.4056,
   "relative_volume": 0.6982,
   "market_cap": 43403812202
  }
 ]
}
As-of — the same scan at a past date
curl -X POST "https://api.tickerbot.io/v2/scan" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{ "q": "recent_upgrade", "asof": "2026-07-04" }'
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-06-20",
 "query": {
  "q": "recent_upgrade",
  "asof": "2026-06-20",
  "interval": "auto",
  "limit": 2,
  "order": "change_1d_pct",
  "dir": "desc",
  "fields": [],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "INTC",
   "name": "Intel Corp",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 133.99,
   "change_1d_pct": 10.64409578860447,
   "gap_pct": 8.83980181668044,
   "relative_volume": 1.6887685347960573,
   "market_cap": 681843786000
  },
  {
   "ticker": "FORM",
   "name": "FormFactor Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 149.55,
   "change_1d_pct": 6.85959271168276,
   "gap_pct": 6.473740621650592,
   "relative_volume": 1.0487250357639635,
   "market_cap": 11642376648
  }
 ]
}
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": "recent_upgrade", "target_url": "https://example.com/hooks/tickerbot"}'

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

Its history /v2/series

History — the column on an aligned time grid
curl "https://api.tickerbot.io/v2/series?tickers=AAPL,MSFT&columns=close,recent_upgrade" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-09-18T14:41:21.182Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "recent_upgrade"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-09-15",
    "close": 331.34,
    "recent_upgrade": false
   },
   {
    "t": "2026-09-16",
    "close": 332.41,
    "recent_upgrade": false
   },
   {
    "t": "2026-09-17",
    "close": 337.002,
    "recent_upgrade": false
   }
  ],
  "MSFT": [
   {
    "t": "2026-09-15",
    "close": 497.12,
    "recent_upgrade": false
   },
   {
    "t": "2026-09-16",
    "close": 490.3,
    "recent_upgrade": false
   },
   {
    "t": "2026-09-17",
    "close": 497.75,
    "recent_upgrade": false
   }
  ]
 }
}

Its firings /v2/events

Firings — every enter edge as a point event
curl -G "https://api.tickerbot.io/v2/events" \
  -d "kind=signal" -d "signal=recent_upgrade" -d "transition=enter" -d "from=2026-02-24" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-09-18T14:41:21.387Z",
 "query": {
  "kind": "signal",
  "tickers": null,
  "universe": null,
  "since": "2026-02-10T00:00:00.000Z",
  "until": null,
  "limit": 2,
  "signal": "recent_upgrade",
  "transition": "enter"
 },
 "count": 2,
 "results": [
  {
   "ticker": "TCOM",
   "ts": "2026-09-17T20:00:00.000Z",
   "kind": "signal",
   "payload": {
    "signal": "recent_upgrade",
    "transition": "enter",
    "price": 40.349,
    "definition_version": 6
   }
  },
  {
   "ticker": "SUNB",
   "ts": "2026-09-17T20:00:00.000Z",
   "kind": "signal",
   "payload": {
    "signal": "recent_upgrade",
    "transition": "enter",
    "price": 73.988,
    "definition_version": 6
   }
  }
 ]
}

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

Related signals — Upgrades & downgrades