sma_20
20-day simple moving average.
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 sma_20 above a cutoff
curl -G "https://api.tickerbot.io/v2/signals/sma_20" \
--data-urlencode "condition=> 426.5911" \
-H "Authorization: Bearer YOUR_KEY"Response (sampled 2026-09-18, trimmed)
{
"as_of": "2026-09-18T14:42:10.518Z",
"signal": "sma_20",
"condition": "> 426.5911",
"universe": null,
"count": 2,
"results": [
{
"ticker": "BRK.A",
"name": "Berkshire Hathaway Inc.",
"value": 760506.8182
},
{
"ticker": "X:BTCUSD",
"name": "Bitcoin",
"value": 78059.282
}
]
}As-of — the same read at a past date
curl -G "https://api.tickerbot.io/v2/signals/sma_20" \
--data-urlencode "condition=> 426.5911" \
-d "asof=2026-07-04" \
-H "Authorization: Bearer YOUR_KEY"Response (sampled 2026-09-18, trimmed)
{
"as_of": "2026-06-20",
"signal": "sma_20",
"condition": "> 426.5911",
"universe": null,
"count": 2,
"results": [
{
"ticker": "BRK.A",
"name": "Berkshire Hathaway Inc.",
"value": 724634.5344999995
},
{
"ticker": "X:BTCUSD",
"name": "Bitcoin",
"value": 64061.628500000035
}
]
}Subscribe — webhook when a ticker starts matching
curl -X POST "https://api.tickerbot.io/v2/signals/sma_20/subscribe" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_KEY" \
-d '{"condition": "> 426.5911", "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": "sma_20 IS NOT NULL", "order": "sma_20", "columns": "sma_20" }'Response (sampled 2026-09-18, trimmed)
{
"as_of": "2026-09-18T14:42:16.407Z",
"query": {
"q": "sma_20 IS NOT NULL",
"limit": 2,
"order": "sma_20",
"dir": "desc",
"fields": [
"sma_20"
],
"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,
"sma_20": 760506.8182
},
{
"ticker": "X:BTCUSD",
"name": "Bitcoin",
"asset_class": "crypto",
"asset_type": null,
"price": 80545.69,
"change_1d_pct": 5.497078275293078,
"gap_pct": null,
"relative_volume": 2.1617,
"market_cap": null,
"sma_20": 78059.282
}
]
}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": "sma_20 IS NOT NULL", "order": "sma_20", "columns": "sma_20", "asof": "2026-07-04" }'Response (sampled 2026-09-18, trimmed)
{
"as_of": "2026-06-20",
"query": {
"q": "sma_20 IS NOT NULL",
"asof": "2026-06-20",
"interval": "auto",
"limit": 2,
"order": "sma_20",
"dir": "desc",
"fields": [
"sma_20"
],
"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,
"sma_20": 724634.5344999995
},
{
"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,
"sma_20": 64061.628500000035
}
]
}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": "sma_20 > 426.5911", "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,sma_20" \
-H "Authorization: Bearer YOUR_KEY"Response (sampled 2026-09-18, trimmed)
{
"as_of": "2026-09-18T14:42:21.726Z",
"interval": "1d",
"tickers": [
"AAPL",
"MSFT"
],
"columns": [
"close",
"sma_20"
],
"count": 6,
"series": {
"AAPL": [
{
"t": "2026-09-15",
"close": 331.34,
"sma_20": 319.268
},
{
"t": "2026-09-16",
"close": 332.41,
"sma_20": 320.394
},
{
"t": "2026-09-17",
"close": 337.002,
"sma_20": 321.3619
}
],
"MSFT": [
{
"t": "2026-09-15",
"close": 497.12,
"sma_20": 495.7566
},
{
"t": "2026-09-16",
"close": 490.3,
"sma_20": 496.2146
},
{
"t": "2026-09-17",
"close": 497.75,
"sma_20": 496.824
}
]
}
}Same grammar on scan, series, and webhooks; state reads take ?asof= for point-in-time answers.