Schema

Every field: its name, type, values and meaning

GET https://api.tickerdb.com/v1/schema/fields

Schema tells you what every field means and which values it can take. Before you filter on a field or read one you haven't seen, look it up here. It's free on every plan.

curl
curl -G "https://api.tickerdb.com/v1/schema/fields" \ --data-urlencode 'search=bull flag' \ --data-urlencode 'compact=true' \ -H "Authorization: Bearer YOUR_API_KEY"
Response
{ "total_fields": 1177, "matched_fields": 3, "categories": ["metadata", "momentum", "trend", "patterns" /* ... */], "markers": "Marker fields are omitted. Every band listed with tracked: true in the full schema also has <band>_stability, <band>_periods, <band>_flips_recent_count, <band>_flips_lookback and <band>_prev; pass markers=true to list them.", "fields": [ { "name": "pattern_bull_flag_state", "type": "text", "category": "patterns", "level": "ticker", "values": ["not_detected", "immature", "mature", "invalidated"], "description": "Bull flag ending on this bar: a short, steep, mostly one-directional advance (the pole) that clears the prior range, followed by a tight, sideways-to-slightly-…", "tracked": true }, { "name": "pattern_bull_flag_breakout", "type": "boolean", "category": "patterns", "level": "ticker", "description": "True when a bull flag that was mature (see pattern_bull_flag_state) broke out within the last 3 bars: a close above the highest high of the flag's consolidatio…" }, { "name": "pattern_bear_flag_state", "type": "text", "category": "patterns", "level": "ticker", "values": ["not_detected", "immature", "mature", "invalidated"], "description": "Bear flag ending on this bar: a short, steep, mostly one-directional decline (the pole) that breaks below the prior range, followed by a tight, sideways-to-sli…", "tracked": true } ] }

The names it returns are the ones every endpoint takes: in Search filters, in Universe and History fields, and in Summary event lookups. Summary's own responses nest them (trend_direction is trend.direction there).

Finding a field

By words

search keeps the fields whose name, category or description contains all your words, with name matches first. Add compact=true for the first sentence of each description, as above.

When more than 25 fields match, you get only their names, in field_names. Search again with more words, or with one of the names.

By exact name

A field's exact name returns that field alone, with its full description:

curl
curl -G "https://api.tickerdb.com/v1/schema/fields" \ --data-urlencode 'search=trend_direction' \ -H "Authorization: Bearer YOUR_API_KEY"

By category or level

category returns a group of related fields. The categories are listed in every response.

Every insider field
curl -G "https://api.tickerdb.com/v1/schema/fields" \ --data-urlencode 'category=insider' \ --data-urlencode 'compact=true' \ -H "Authorization: Bearer YOUR_API_KEY"

level picks the kind of row a field belongs to: ticker (one row per asset and date), market (one per date, see Market & Macro) or model (one per model and date, see Models).

Every market and economy field
curl -G "https://api.tickerdb.com/v1/schema/fields" \ --data-urlencode 'level=market' \ --data-urlencode 'compact=true' \ -H "Authorization: Bearer YOUR_API_KEY"

Change markers

Every band you can track over time has five more fields: _prev, _periods, _stability, _flips_recent_count and _flips_lookback (see Search). A lookup leaves them out and marks those bands tracked: true. Add markers=true to list them.

Reading a field name

Every name follows one pattern, <group>_<name>[_<unit>], so you can usually tell what a field holds without looking it up.

  • The first word is the group: trend, momentum, volume, fundamentals, analyst, insider, and so on. ticker, asset_class and data_status are the only fields without one.
  • fundamentals_ fields come from reported filings; analyst_ fields come from analysts' estimates and recommendations.
  • Bands end in a word such as _zone, _trend, _state or _direction. Their values are listed in values, and explained on Categorical Bands.
  • Numbers end in their unit: trend_distance_ma50_pct is the number behind the band trend_distance_ma50_zone.
Ends inMeansExample
_pctPercent: 5.0 means 5%trend_distance_ma50_pct
_percentileRank from 0 to 100volume_percentile
_ratioA plain multiplefundamentals_pe_ratio, volume_ratio
_usdUS dollarsmarket_cap_usd
_priceA pricetrend_ma200_price, support_level_price
_countA countsupport_touch_count
_periodsBars: trading days on daily, weeks on weeklytrend_duration_periods
_sharesSharesinsider_bought_shares
_scoreA score from 0 to 100fear_greed_score, garp_core_score
_pointsA change in a score or percentile, in pointsgarp_core_score_change_4w_points
_positionsA change in rank, in positions (positive means up)garp_core_rank_change_4w_positions

momentum_rsi, momentum_stochastic_k and momentum_stochastic_d keep their usual names: they're indicator values from 0 to 100. Every field has one name, the one listed here, in every endpoint; older spellings are rejected as unknown fields.

Parameters

ParameterExampleDescription
searchbull flagWords that must all appear in the field's name, category or description. Not case sensitive, and _ counts as a space. An exact field name returns that field alone
categorypatterns,volumeOne or more categories, comma-separated
levelmarketticker, market or model
compacttrueOnly the first sentence of each description, up to 160 characters
markerstrueInclude the change-marker fields. On by default only when you ask for everything

With no parameters you get every field, markers included, plus the naming rules and the list of filter operators. It's large, so agents should look fields up instead.

Response fields

FieldTypeDescription
fieldsobject[]The fields that matched, described below
field_namesstring[]Instead of fields, when more than 25 match. note says how to narrow it
total_fields, matched_fieldsintegerEvery field there is, and how many matched
categoriesstring[]Every category
markersstringWhen change markers were left out: how to get them
operators, naming, levelsobjectWith no parameters only: the filter operators, the naming rules, and what each level is

Each field

FieldTypeDescription
namestringThe name to use in every request
typestringtext, integer, bigint, numeric or boolean
levelstringticker, market or model: where the field can be used
categorystringIts group
valuesstring[]For bands: every value it can take
nullablebooleantrue when the field can be null. Left out of compact lookups
trackedbooleantrue on a band with change markers, when the markers were left out
descriptionstringWhat it means, how it's measured, and when it's null

Errors

Statuserror.typeCauseWhat to do
400invalid_parameterAn unknown parameter, category or level, or compact / markers that isn't true or false.Read the message: an unknown category lists the valid ones.

Schema needs an API key like every endpoint, and costs no credits. Authentication and rate-limit errors are on Authentication and Errors & Caching.