Field reference / trend
trend_ma8_price
8-period simple moving average (SMA) of closes: the mean of the last 8 daily closes on daily rows, of the last 8 weekly closes on weekly rows. Prices are adjusted for splits up to the row date, so they match that day's quoted prices; not adjusted for dividends. Null with fewer than 8 bars
| Level | Per stock, ETF and coin, one value per date |
| Type | number |
| Can be null | Yes |
| Category | trend |
| Returned by | /v1/history, /v1/search |
Getting it
Its history for one ticker:
curl -G "https://api.tickerdb.com/v1/history" \
--data-urlencode 'tickers=AAPL' \
--data-urlencode 'fields=trend_ma8_price' \
--data-urlencode 'start=2025-01-01' \
-H "Authorization: Bearer YOUR_API_KEY"
Stocks matching it today:
curl -G "https://api.tickerdb.com/v1/search" \
--data-urlencode 'filters=[{"field":"trend_ma8_price","op":"gte","value":0}]' \
--data-urlencode 'fields=["ticker","trend_ma8_price"]' \
-H "Authorization: Bearer YOUR_API_KEY"
Related fields
Every field, with its type and values, is also in /v1/schema/fields.