# gap

Overnight gap as percent: `(today_open − prev_close) / prev_close`. Signed — positive = gap up, negative = gap down. Use this for custom gap thresholds; the boolean shortcuts `gap_up` (≥3%) and `gap_up_extreme` (≥10%) cover the canonical levels.

A numeric signal column on the Tickerbot computed state table (20,798+ ticker rows) — computed by the platform, queryable by bare name across the API. Values are NULL on rows the signal doesn't apply to.

- Group: Price action
- Category: Gaps
- Type: numeric
- Unit: %
- Update cadence: 1 min · mkt hrs
- Intervals: 1m/1h/1d
- Universe: all tickers
- History: full · since 2003
- Nullable: yes

## Query it

Every applicable form factor, grouped by endpoint family. 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. (https://tickerbot.io/docs/endpoints/signals.md)

#### Live — every ticker with gap above a cutoff

```bash
curl -G "https://api.tickerbot.io/v2/signals/gap" \
  --data-urlencode "condition=> 2.63" \
  -H "Authorization: Bearer YOUR_KEY"
```

Response (sampled 2026-08-18, trimmed):

```json
{
 "as_of": "2026-08-18T00:23:54.370Z",
 "signal": "gap",
 "condition": "> 2.63",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "ARGX",
   "name": "argenx SE American Depositary Shares",
   "value": 76.04
  },
  {
   "ticker": "SNDK",
   "name": "Sandisk Corporation Common Stock",
   "value": 59.635
  }
 ]
}
```

#### As-of — the same read at a past date

```bash
curl -G "https://api.tickerbot.io/v2/signals/gap" \
  --data-urlencode "condition=> 2.63" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
```

Response (sampled 2026-08-18, trimmed):

```json
{
 "as_of": "2026-05-20",
 "signal": "gap",
 "condition": "> 2.63",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "value": 400
  },
  {
   "ticker": "SNDK",
   "name": "Sandisk Corporation Common Stock",
   "value": 54.690000000000055
  }
 ]
}
```

#### Subscribe — webhook when a ticker starts matching

```bash
curl -X POST "https://api.tickerbot.io/v2/signals/gap/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"condition": "> 2.63", "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. (https://tickerbot.io/docs/endpoints/scan.md)

#### Live — the whole market, ranked by this column

```bash
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=gap IS NOT NULL" \
  -d "order=gap" -d "columns=gap" \
  -H "Authorization: Bearer YOUR_KEY"
```

Response (sampled 2026-08-18, trimmed):

```json
{
 "as_of": "2026-08-18T00:23:58.356Z",
 "query": {
  "q": "gap IS NOT NULL",
  "limit": 2,
  "order": "gap",
  "dir": "desc",
  "fields": [
   "gap"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "ARGX",
   "name": "argenx SE American Depositary Shares",
   "asset_class": "stocks",
   "asset_type": "ADRC",
   "price": 993.843,
   "day_change_pct": 0.1675,
   "gap_pct": 0.0893,
   "relative_volume": null,
   "market_cap": 53257547730,
   "gap": 76.04
  },
  {
   "ticker": "SNDK",
   "name": "Sandisk Corporation Common Stock",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 1805.054,
   "day_change_pct": 0.0999,
   "gap_pct": 0.0363,
   "relative_volume": 1.0823,
   "market_cap": 239602060000,
   "gap": 59.635
  }
 ]
}
```

#### As-of — the same scan at a past date

```bash
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=gap IS NOT NULL" \
  -d "order=gap" -d "columns=gap" \
  -d "asof=2026-05-20" \
  -H "Authorization: Bearer YOUR_KEY"
```

Response (sampled 2026-08-18, trimmed):

```json
{
 "as_of": "2026-05-20",
 "query": {
  "q": "gap IS NOT NULL",
  "asof": "2026-05-20",
  "interval": "auto",
  "limit": 2,
  "order": "gap",
  "dir": "desc",
  "fields": [
   "gap"
  ],
  "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,
   "gap": 400
  },
  {
   "ticker": "SNDK",
   "name": "Sandisk Corporation Common Stock",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 1392.56,
   "day_change_pct": 0.6701414743112422,
   "gap_pct": 3.9536178241728095,
   "relative_volume": 0.5867784560813467,
   "market_cap": 207491440000,
   "gap": 54.690000000000055
  }
 ]
}
```

#### Subscribe — webhook on a market-wide condition

```bash
curl -X POST "https://api.tickerbot.io/v2/scan/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"q": "gap > 2.63", "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. (https://tickerbot.io/docs/endpoints/series.md)

#### History — the column on an aligned time grid

```bash
curl "https://api.tickerbot.io/v2/series?tickers=AAPL,MSFT&columns=close,gap" \
  -H "Authorization: Bearer YOUR_KEY"
```

Response (sampled 2026-08-18, trimmed):

```json
{
 "as_of": "2026-08-18T00:24:01.156Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "gap"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-08-12",
    "close": 302.25,
    "gap": 0.18999999999999773
   },
   {
    "t": "2026-08-13",
    "close": 305.26,
    "gap": 1.9599999999999795
   },
   {
    "t": "2026-08-14",
    "close": 305.93,
    "gap": 0.7400000000000091
   }
  ],
  "MSFT": [
   {
    "t": "2026-08-12",
    "close": 492.43,
    "gap": -3.819999999999993
   },
   {
    "t": "2026-08-13",
    "close": 496.88,
    "gap": 0.8349999999999795
   },
   {
    "t": "2026-08-14",
    "close": 495.4,
    "gap": -0.5249999999999773
   }
  ]
 }
}
```

## Related signals (Gaps)

- [gap_down](https://tickerbot.io/docs/signals/gap_down.md)
- [gap_down_extreme](https://tickerbot.io/docs/signals/gap_down_extreme.md)
- [gap_filled_today](https://tickerbot.io/docs/signals/gap_filled_today.md)
- [gap_pct](https://tickerbot.io/docs/signals/gap_pct.md)
- [gap_up](https://tickerbot.io/docs/signals/gap_up.md)
- [gap_up_extreme](https://tickerbot.io/docs/signals/gap_up_extreme.md)

---

Full catalog: https://tickerbot.io/docs/signals.md · Schema: https://tickerbot.io/docs/schema.md · Interactive: https://tickerbot.io/explore?signal=gap · HTML: https://tickerbot.io/docs/signals/gap/
