# top_gainer

Among the session's top 20 gainers.

A boolean signal (flag) 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.

Definition: `Ranks in the top 20 by day_change_pct among active tickers with price above $1 and session volume above 100k shares.`

- Group: Price action
- Category: Performance & change
- Type: state
- Update cadence: 1 min · mkt hrs
- Universe: all tickers
- History: intraday state only (as-of by timestamp at interval=1m; no daily history)
- Firing: continuous

## 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 where it fires now

```bash
curl "https://api.tickerbot.io/v2/signals/top_gainer" \
  -H "Authorization: Bearer YOUR_KEY"
```

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

```json
{
 "as_of": "2026-08-18T00:25:59.806Z",
 "signal": "top_gainer",
 "condition": null,
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "AGPU",
   "name": "Axe Compute Inc. Common Stock",
   "value": true
  },
  {
   "ticker": "AXTL",
   "name": "Leverage Shares 2X Long AXTI Daily ETF",
   "value": true
  }
 ]
}
```

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

```bash
curl -X POST "https://api.tickerbot.io/v2/signals/top_gainer/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.

### 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, filtered on this signal

```bash
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=top_gainer" \
  -H "Authorization: Bearer YOUR_KEY"
```

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

```json
{
 "as_of": "2026-08-18T00:25:59.997Z",
 "query": {
  "q": "top_gainer",
  "limit": 2,
  "order": "day_change_pct",
  "dir": "desc",
  "fields": [],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "WETO",
   "name": "Wetour Robotics Limited Ordinary Shares",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 35.36,
   "day_change_pct": 3.3017,
   "gap_pct": 0.236,
   "relative_volume": 3.2667,
   "market_cap": 6746976
  },
  {
   "ticker": "IPST",
   "name": "IP Strategy Holdings, Inc. Common Stock",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 7.965,
   "day_change_pct": 2.6203,
   "gap_pct": 2.5998,
   "relative_volume": null,
   "market_cap": 1587543
  }
 ]
}
```

#### As-of — a past intraday moment (minute state)

```bash
curl -G "https://api.tickerbot.io/v2/scan" \
  --data-urlencode "q=top_gainer" \
  -d "asof=2026-05-20T17:45:00Z" -d "interval=1m" \
  -H "Authorization: Bearer YOUR_KEY"
```

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

```json
{
 "as_of": "2026-05-20T17:45:00Z",
 "query": {
  "q": "top_gainer",
  "asof": "2026-05-20T17:45:00Z",
  "interval": "1m",
  "limit": 2,
  "order": "day_change_pct",
  "dir": "desc",
  "fields": [],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 0,
 "results": []
}
```

#### 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": "top_gainer", "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 events — `/v2/events`

The flag as a timeline: each edge as a point event, and the spans it stayed true. (https://tickerbot.io/docs/endpoints/events.md)

#### Firings — every enter edge as a point event

```bash
curl -G "https://api.tickerbot.io/v2/events" \
  -d "kind=signal" -d "signal=top_gainer" -d "transition=enter" -d "since=2026-01-10" \
  -H "Authorization: Bearer YOUR_KEY"
```

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

```json
{
 "as_of": "2026-08-18T00:26:01.013Z",
 "query": {
  "kind": "signal",
  "tickers": null,
  "universe": null,
  "since": "2026-01-10T00:00:00.000Z",
  "until": null,
  "limit": 2,
  "signal": "top_gainer",
  "transition": "enter"
 },
 "count": 0,
 "results": []
}
```

#### Spans — when it was true for one ticker (AAPL)

```bash
curl "https://api.tickerbot.io/v2/signals/top_gainer/AAPL/events" \
  -H "Authorization: Bearer YOUR_KEY"
```

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

```json
{
 "as_of": "2026-08-18T00:26:01.152Z",
 "ticker": "AAPL",
 "signal": "top_gainer",
 "count": 0,
 "events": []
}
```

## Related signals (Performance & change)

- [change_1m](https://tickerbot.io/docs/signals/change_1m.md)
- [change_1w](https://tickerbot.io/docs/signals/change_1w.md)
- [change_1y](https://tickerbot.io/docs/signals/change_1y.md)
- [change_3m](https://tickerbot.io/docs/signals/change_3m.md)
- [change_6m](https://tickerbot.io/docs/signals/change_6m.md)
- [change_ytd](https://tickerbot.io/docs/signals/change_ytd.md)
- [day_change](https://tickerbot.io/docs/signals/day_change.md)
- [day_change_pct](https://tickerbot.io/docs/signals/day_change_pct.md)
- [days_down](https://tickerbot.io/docs/signals/days_down.md)
- [days_up](https://tickerbot.io/docs/signals/days_up.md)
- [from_open_pc](https://tickerbot.io/docs/signals/from_open_pc.md)
- [price_down_3pct](https://tickerbot.io/docs/signals/price_down_3pct.md)
- [price_up_3pct](https://tickerbot.io/docs/signals/price_up_3pct.md)
- [top_loser](https://tickerbot.io/docs/signals/top_loser.md)

---

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