← tickerbot.io
View as markdown
Concepts › Signals › Technicals › Trend & direction

trend_long

Long-term trend classification from `sma_200` slope. One of `uptrend`, `downtrend`, `sideways`.

metadata
typetext
cadencepost-close daily
intervals1m/1h/1d
universeall tickers
historyfull · since 2004
nullableyes — NULL where not applicable

Swap YOUR_KEY for a key from /dashboard/keys. Responses are real captures from 2026-09-18, trimmed.

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": "trend_long IS NOT NULL", "order": "trend_long", "columns": "trend_long" }'
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-09-18T14:42:23.655Z",
 "query": {
  "q": "trend_long IS NOT NULL",
  "limit": 2,
  "order": "trend_long",
  "dir": "desc",
  "fields": [
   "trend_long"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "A",
   "name": "Agilent Technologies Inc.",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 156.296,
   "change_1d_pct": -0.028143789177440925,
   "gap_pct": -0.2175,
   "relative_volume": 0.2753,
   "market_cap": 43329645571,
   "trend_long": "up"
  },
  {
   "ticker": "AAA",
   "name": "Alternative Access First Priority CLO Bond ETF",
   "asset_class": "stocks",
   "asset_type": "ETF",
   "price": 24.987,
   "change_1d_pct": 0.04804804804803564,
   "gap_pct": 0.02,
   "relative_volume": 0.0044,
   "market_cap": null,
   "trend_long": "up"
  }
 ]
}
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": "trend_long IS NOT NULL", "order": "trend_long", "columns": "trend_long", "asof": "2026-07-04" }'
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-06-20",
 "query": {
  "q": "trend_long IS NOT NULL",
  "asof": "2026-06-20",
  "interval": "auto",
  "limit": 2,
  "order": "trend_long",
  "dir": "desc",
  "fields": [
   "trend_long"
  ],
  "full": false,
  "universe": null,
  "asset_class": null
 },
 "count": 2,
 "results": [
  {
   "ticker": "AA",
   "name": "Alcoa Corporation",
   "asset_class": "stocks",
   "asset_type": "CS",
   "price": 59.37,
   "change_1d_pct": -3.823100599384415,
   "gap_pct": -0.8585776769803889,
   "relative_volume": 1.4007651960571452,
   "market_cap": 15485913000,
   "trend_long": "up"
  },
  {
   "ticker": "AAAA",
   "name": "Amplius Aggressive Asset Allocation ETF",
   "asset_class": "stocks",
   "asset_type": "ETF",
   "price": 30.6752,
   "change_1d_pct": 1.2907678235917568,
   "gap_pct": 1.0424543410281883,
   "relative_volume": 0.40260250320496194,
   "market_cap": null,
   "trend_long": "up"
  }
 ]
}

Its history /v2/series

History — the column on an aligned time grid
curl "https://api.tickerbot.io/v2/series?tickers=AAPL,MSFT&columns=close,trend_long" \
  -H "Authorization: Bearer YOUR_KEY"
Response (sampled 2026-09-18, trimmed)
{
 "as_of": "2026-09-18T14:42:28.808Z",
 "interval": "1d",
 "tickers": [
  "AAPL",
  "MSFT"
 ],
 "columns": [
  "close",
  "trend_long"
 ],
 "count": 6,
 "series": {
  "AAPL": [
   {
    "t": "2026-09-15",
    "close": 331.34,
    "trend_long": "up"
   },
   {
    "t": "2026-09-16",
    "close": 332.41,
    "trend_long": "up"
   },
   {
    "t": "2026-09-17",
    "close": 337.002,
    "trend_long": "up"
   }
  ],
  "MSFT": [
   {
    "t": "2026-09-15",
    "close": 497.12,
    "trend_long": "up"
   },
   {
    "t": "2026-09-16",
    "close": 490.3,
    "trend_long": "up"
   },
   {
    "t": "2026-09-17",
    "close": 497.75,
    "trend_long": "up"
   }
  ]
 }
}

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

Related signals — Trend & direction