← tickerbot.io
View as markdown

ema_21

21-day EMA. Often paired with `ema_9` for short-trend bias; also serves as a dynamic-support reference.

metadata
typenumeric
unitUSD
cadencepost-close daily
intervals1d
universeall tickers
historyfull · since 2003
nullableyes — NULL where not applicable

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 with ema_21 above a cutoff
curl -G "https://api.tickerbot.io/v2/signals/ema_21" \
  --data-urlencode "condition=> 432.5217" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-09-18T14:38:32.560Z",
 "signal": "ema_21",
 "condition": "> 432.5217",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "value": 762764.6478
  },
  {
   "ticker": "X:BTCUSD",
   "name": "Bitcoin",
   "value": 77078.363
  }
 ]
}
As-of — the same read at a past date
curl -G "https://api.tickerbot.io/v2/signals/ema_21" \
  --data-urlencode "condition=> 432.5217" \
  -d "asof=2026-07-04" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-06-20",
 "signal": "ema_21",
 "condition": "> 432.5217",
 "universe": null,
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "value": 727250.6309874693
  },
  {
   "ticker": "X:BTCUSD",
   "name": "Bitcoin",
   "value": 65821.80369565201
  }
 ]
}
Subscribe — webhook when a ticker starts matching
curl -X POST "https://api.tickerbot.io/v2/signals/ema_21/subscribe" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{"condition": "> 432.5217", "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, ranked by this column
curl -X POST "https://api.tickerbot.io/v2/scan" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_KEY" \
  -d '{ "q": "ema_21 IS NOT NULL", "order": "ema_21", "columns": "ema_21" }'
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-09-18T14:38:35.806Z",
 "query": {
  "q": "ema_21 IS NOT NULL",
  "limit": 2,
  "order": "ema_21",
  "dir": "desc",
  "fields": [
   "ema_21"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 760698.18,
   "change_1d_pct": -0.42382741642148175,
   "gap_pct": -0.1289,
   "relative_volume": 0.3262,
   "market_cap": 1113593331736,
   "ema_21": 762764.6478
  },
  {
   "ticker": "X:BTCUSD",
   "name": "Bitcoin",
   "asset_class": "crypto",
   "asset_type": null,
   "price": 80598.01,
   "change_1d_pct": 5.637669986433297,
   "gap_pct": null,
   "relative_volume": 2.1274,
   "market_cap": null,
   "ema_21": 77078.363
  }
 ]
}
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": "ema_21 IS NOT NULL", "order": "ema_21", "columns": "ema_21", "asof": "2026-07-04" }'
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-06-20",
 "query": {
  "q": "ema_21 IS NOT NULL",
  "asof": "2026-06-20",
  "interval": "auto",
  "limit": 2,
  "order": "ema_21",
  "dir": "desc",
  "fields": [
   "ema_21"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "BRK.A",
   "name": "Berkshire Hathaway Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 733609.77,
   "change_1d_pct": -0.5005058999050566,
   "gap_pct": 0.1665536416655364,
   "relative_volume": 1.9825114678899083,
   "market_cap": 1060165881900,
   "ema_21": 727250.6309874693
  },
  {
   "ticker": "X:BTCUSD",
   "name": "Bitcoin",
   "asset_class": "crypto",
   "asset_type": null,
   "price": 64222.99,
   "change_1d_pct": 1.1780821486186746,
   "gap_pct": -0.00018905021172890105,
   "relative_volume": 0.4125663243882887,
   "market_cap": null,
   "ema_21": 65821.80369565201
  }
 ]
}
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": "ema_21 > 432.5217", "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,ema_21" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-09-18T14:38:38.230Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "ema_21"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-09-15",
    "close": 331.34,
    "ema_21": 321.1488
   },
   {
    "t": "2026-09-16",
    "close": 332.41,
    "ema_21": 322.1847
   },
   {
    "t": "2026-09-17",
    "close": 337.002,
    "ema_21": 323.4578
   }
  ],
  "MSFT": [
   {
    "t": "2026-09-15",
    "close": 497.12,
    "ema_21": 492.2205
   },
   {
    "t": "2026-09-16",
    "close": 490.3,
    "ema_21": 492.0877
   },
   {
    "t": "2026-09-17",
    "close": 497.75,
    "ema_21": 492.4888
   }
  ]
 }
}

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

Related signals — Moving averages & VWAP