View as markdown
Concepts › SignalsEvents Earnings

days_to_earnings

Calendar days until next earnings announcement. Negative after report.

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

At a glance

Typeinteger
GroupEvents
CategoryEarnings
Unitdays
Update cadencepost-close daily
Intervals1d
Universeall tickers
Historyfull · since 2003
Nullableyes — NULL where not applicable

The earnings calendar and its outcomes: dates, windows, surprises, streaks.

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_to_earnings above a cutoff
curl -G "https://api.tickerbot.io/v2/signals/days_to_earnings" \
  --data-urlencode "condition=> 71" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:23:21.380Z",
 "signal": "days_to_earnings",
 "condition": "> 71",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "HZO",
   "name": "MarineMax, Inc.",
   "value": 86
  },
  {
   "ticker": "NPB",
   "name": "Northpointe Bancshares, Inc.",
   "value": 86
  }
 ]
}
As-of — the same read at a past date
curl -G "https://api.tickerbot.io/v2/signals/days_to_earnings" \
  --data-urlencode "condition=> 71" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-05-20",
 "signal": "days_to_earnings",
 "condition": "> 71",
 "universe": null,
 "count": 0,
 "results": []
}
Subscribe — webhook when a ticker starts matching
curl -X POST "https://api.tickerbot.io/v2/signals/days_to_earnings/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"condition": "> 71", "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_to_earnings IS NOT NULL" \
  -d "order=days_to_earnings" -d "columns=days_to_earnings" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:23:25.521Z",
 "query": {
  "q": "days_to_earnings IS NOT NULL",
  "limit": 2,
  "order": "days_to_earnings",
  "dir": "desc",
  "fields": [
   "days_to_earnings"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "HZO",
   "name": "MarineMax, Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 52.111,
   "day_change_pct": 0.0017,
   "gap_pct": 0.0008,
   "relative_volume": null,
   "market_cap": 1148951954,
   "days_to_earnings": 86
  },
  {
   "ticker": "NPB",
   "name": "Northpointe Bancshares, Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 17.33,
   "day_change_pct": -0.0097,
   "gap_pct": 0.004,
   "relative_volume": null,
   "market_cap": 605182235,
   "days_to_earnings": 86
  }
 ]
}
As-of — the same scan at a past date
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=days_to_earnings IS NOT NULL" \
  -d "order=days_to_earnings" -d "columns=days_to_earnings" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-05-20",
 "query": {
  "q": "days_to_earnings IS NOT NULL",
  "asof": "2026-05-20",
  "interval": "auto",
  "limit": 2,
  "order": "days_to_earnings",
  "dir": "desc",
  "fields": [
   "days_to_earnings"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "FUL",
   "name": "H.B. Fuller Company",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 59.07,
   "day_change_pct": 3.795466526093839,
   "gap_pct": 0.22843085573713331,
   "relative_volume": 0.8271584381298173,
   "market_cap": 3258419340,
   "days_to_earnings": 35
  },
  {
   "ticker": "JEF",
   "name": "Jefferies Financial Group Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 51.6,
   "day_change_pct": 1.057579318448882,
   "gap_pct": 0.8617312965139007,
   "relative_volume": 0.9431851735360866,
   "market_cap": 11492094000,
   "days_to_earnings": 35
  }
 ]
}
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_to_earnings > 71", "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_to_earnings" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:23:27.420Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "days_to_earnings"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-08-12",
    "close": 302.25,
    "days_to_earnings": null
   },
   {
    "t": "2026-08-13",
    "close": 305.26,
    "days_to_earnings": null
   },
   {
    "t": "2026-08-14",
    "close": 305.93,
    "days_to_earnings": 75
   }
  ],
  "MSFT": [
   {
    "t": "2026-08-12",
    "close": 492.43,
    "days_to_earnings": null
   },
   {
    "t": "2026-08-13",
    "close": 496.88,
    "days_to_earnings": null
   },
   {
    "t": "2026-08-14",
    "close": 495.4,
    "days_to_earnings": null
   }
  ]
 }
}

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

Related signals — Earnings