View as markdown
Concepts › SignalsPrice Latest bars

previous_close

Official prior-session close.

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

At a glance

Typenumeric
GroupPrice
CategoryLatest bars
UnitUSD
Update cadence1 min · mkt hrs
Intervals1d
Universeall tickers
Historyfull · since 2003
Nullableyes — NULL where not applicable

OHLC of the latest minute bar and the prior session's daily bar.

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 previous_close above a cutoff
curl -G "https://api.tickerbot.io/v2/signals/previous_close" \
  --data-urlencode "condition=> 457.57" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:25:19.669Z",
 "signal": "previous_close",
 "condition": "> 457.57",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "value": 755570.01
  },
  {
   "ticker": "NVR",
   "name": "NVR, Inc.",
   "value": 6307.93
  }
 ]
}
As-of — the same read at a past date
curl -G "https://api.tickerbot.io/v2/signals/previous_close" \
  --data-urlencode "condition=> 457.57" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-05-20",
 "signal": "previous_close",
 "condition": "> 457.57",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "value": 720600
  },
  {
   "ticker": "X:BTCUSD",
   "name": "Bitcoin",
   "value": 77475.99
  }
 ]
}
Subscribe — webhook when a ticker starts matching
curl -X POST "https://api.tickerbot.io/v2/signals/previous_close/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"condition": "> 457.57", "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=previous_close IS NOT NULL" \
  -d "order=previous_close" -d "columns=previous_close" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:25:22.795Z",
 "query": {
  "q": "previous_close IS NOT NULL",
  "limit": 2,
  "order": "previous_close",
  "dir": "desc",
  "fields": [
   "previous_close"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 747658.72,
   "day_change_pct": -0.0105,
   "gap_pct": 0,
   "relative_volume": null,
   "market_cap": 1078304184071,
   "previous_close": 755570.01
  },
  {
   "ticker": "NVR",
   "name": "NVR, Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 6241,
   "day_change_pct": -0.0106,
   "gap_pct": -0.0037,
   "relative_volume": null,
   "market_cap": 16809750339,
   "previous_close": 6307.93
  }
 ]
}
As-of — the same scan at a past date
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=previous_close IS NOT NULL" \
  -d "order=previous_close" -d "columns=previous_close" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-05-20",
 "query": {
  "q": "previous_close IS NOT NULL",
  "asof": "2026-05-20",
  "interval": "auto",
  "limit": 2,
  "order": "previous_close",
  "dir": "desc",
  "fields": [
   "previous_close"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 720840,
   "day_change_pct": 0.03330557868442965,
   "gap_pct": 0.05550929780738274,
   "relative_volume": 1.7831074035453596,
   "market_cap": null,
   "previous_close": 720600
  },
  {
   "ticker": "X:BTCUSD",
   "name": "Bitcoin",
   "asset_class": "crypto",
   "asset_type": null,
   "price": 77547.62,
   "day_change_pct": 0.09245444943651589,
   "gap_pct": -0.000012907224559909754,
   "relative_volume": 0.937883233067203,
   "market_cap": null,
   "previous_close": 77475.99
  }
 ]
}
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": "previous_close > 457.57", "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,previous_close" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-08-18, trimmed)
{
 "as_of": "2026-08-18T00:25:25.379Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "previous_close"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-08-12",
    "close": 302.25,
    "previous_close": 304.91
   },
   {
    "t": "2026-08-13",
    "close": 305.26,
    "previous_close": 302.25
   },
   {
    "t": "2026-08-14",
    "close": 305.93,
    "previous_close": 305.26
   }
  ],
  "MSFT": [
   {
    "t": "2026-08-12",
    "close": 492.43,
    "previous_close": 503.81
   },
   {
    "t": "2026-08-13",
    "close": 496.88,
    "previous_close": 492.43
   },
   {
    "t": "2026-08-14",
    "close": 495.4,
    "previous_close": 496.88
   }
  ]
 }
}

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

Related signals — Latest bars