Models
TickerDB's own trading models: rules, results, holdings and trades
TickerDB runs a few trading models of its own, built only from the data this API serves, and publishes everything they do: their rules, how they have performed, what they hold today, and every trade. Start with the list:
The current models are on the Models page, and /v1/models lists them. The model endpoints are on the Pro and Commercial plans, except a model's newest book (/v1/models/{slug}/holdings with no date), which is on every plan: what the model holds now, so anyone running it starts from the same position.
This is a record of what fixed rules did. It is not investment advice, and past results don't predict future ones.
What you can ask
| Question | Request |
|---|---|
| Which models exist, and how have they done? | GET /v1/models |
| What are one model's rules, and where does it stand? | GET /v1/models/garp-core-10 |
| How did it do over time? | GET /v1/models/btc-2050-momentum/history |
| What does it hold, and what will it buy or sell at the next open? | GET /v1/models/garp-core-10/holdings |
| Which of its trades won, and what was the market doing when it bought? | GET /v1/models/garp-core-10/trades |
| Which models hold a ticker? | GET /v1/models/holdings?ticker=NVDA |
Backtest and live
Every row, holding and trade says which kind of result it is, in model_segment:
backtest: the model's rules replayed over history, using only what was published on each date. A new replay replaces these rows.live: what the model decided on the day. Written once, never changed.
A model goes live on activated_on: rows before it are backtest, rows from it on are live. Both models went live on 2026-11-09. Statistics are kept per segment (stats.backtest, stats.live, stats.all), so you always know which one you're reading. The live segment starts again from 1.0, and stats.live is null until it has two rows.
How a model trades
- It decides at the close and trades at the next open. Orders waiting for that open show in holdings as
enteringorexiting. - Returns are after costs. Each trade pays
cost_bpson each side. Dividends are included, and cash earns the return of the model'scash_assetwhen it has one. - One row per day. Stock models have a row for every US trading session, crypto models for every day, from
inception_date. A model that decides weekly still has a row every session. - Windows are calendar days: 1m is 30 days, 6m is 182, 1y is 365. A window the model's history doesn't cover yet is
null. - Percentiles compare a model only with its own past: a row with the model's earlier rows (
nulluntil there are 30), a trade with its earlier closed trades (nulluntil there are 10). Never with later rows or other models.
Cost
Each request costs 1 credit. History, trades and holdings across models add 1 for every 100 rows beyond the first 100. Model responses always read the newest run, so they carry no ETag.
List models
Every model with its description, its newest row in latest (dated as_of) and its statistics.
| Parameter | Default | Description |
|---|---|---|
asset_class | all | stock or crypto |
filters | — | Up to 10 conditions on each model's newest row, as a JSON array of {"field", "op", "value"}, change markers included. Operators: eq, neq, in, and gt, gte, lt, lte for numbers |
sort_by | by slug | A numeric model field, such as model_return_1y_pct. Models without a value come last |
order | desc | With sort_by only: desc or asc |
The numbers in the examples on this page are illustrative.
One model
The same as one entry of the list, plus:
rules, the model's rules in plain sentences;params; andfields, the TickerDB fields it reads.repo_urllinks to its code when it's public.- Change markers for every band in
latest. yearsin each statistics segment: the model's and the benchmark's return for each calendar year.
History
A model's rows over time, one per date: the equity curve, its bands, and with the markers, the dates they changed.
| Parameter | Default | Description |
|---|---|---|
start, end | — | A date range, both included. Either one works alone. Without them, the newest rows |
fields | every field | Model fields, as a comma-separated list or a JSON array, change markers included. * adds the markers |
order | desc | desc for newest first, or asc. When a range holds more rows than limit, this decides which end you get |
limit | 100 | Up to 2,000 rows |
Holdings
A model's book on one date: what it held at the close, and what the decision made at that close will do at the next open. Largest position first.
| Parameter | Default | Description |
|---|---|---|
date | latest | YYYY-MM-DD. The model's row on that date, or the newest one in the 10 days before. date in the response is the row's own date, and requested_date is what you asked for |
state | all | held, entering or exiting |
| Field | Meaning |
|---|---|
position_state | held: in the book at the close. exiting: held now, sold at the next open. entering: bought at the next open |
cash_pct | The share of the model not in positions at the close, in percent |
side | long or short |
weight_pct | The position as a percent of the model. On an entering row, the weight it's bought at |
entry_date, entry_price | When and at what price the position was opened, as traded. null on an entering row |
price, return_pct, days_held | The close on the date, the return so far in percent, and calendar days since entry |
reason | Why the model bought it, or on an exiting row, why it's selling |
ticker, asset_id, asset_class, sector | The asset. sector is null for crypto and ETFs |
held and exiting rows also describe the position so far. These are null on entering rows:
| Field | Values | Meaning |
|---|---|---|
return_zone | big_loss, loss, scratch, win, big_win | Band of return_pct, the open position's return so far (the same labels as a trade's outcome_zone). |
age_zone | short, typical, long | Days held so far against the holding periods of the model's earlier closed trades. Null until 10 exist. |
weight_zone | underweight, on_target, overweight | The weight against an equal share of the model (100% divided by max_positions). |
max_gain_pct, max_loss_pct | number | The best and the worst return at a daily close since entry, in percent. |
Trades
Every trade the model made, open or closed, newest first. Prices are as traded. return_pct is after costs and includes dividends, and it's null while the trade is open.
| Parameter | Default | Description |
|---|---|---|
status | all | open, closed or all |
segment | all | backtest, live or all, by when the trade was entered |
ticker | — | Only trades in this ticker |
exit_type, outcome_zone, path_zone, relative_zone, duration_zone, entry_market_regime_zone | — | Only trades with this value, or one of a comma-separated list: outcome_zone=win,big_win. Values are in the table below. A trade without a value doesn't match, so open trades don't match outcome_zone |
start, end | — | Trades entered on or after start, on or before end |
order | desc | By entry date: desc or asc |
limit, offset | 100, 0 | Up to 1,000 trades a page. has_more says whether there's another |
A trade entered before the model went live and closed after has model_segment: "backtest" and exit_segment: "live".
What each trade carries
Each trade has its asset, side, entry and exit dates, prices and reasons, return_pct and days_held. A closed trade is also measured against the model's earlier trades and its benchmark. An open trade has only its entry context and max_gain_pct / max_loss_pct so far.
| Field | Values | Meaning |
|---|---|---|
exit_type | signal, pushed_out, thesis_broken, risk_off, take_profit, stopped_trading | Why the trade ended, in one vocabulary for every model. signal: the model's ordinary exit rule. pushed_out: replaced by a better candidate. thesis_broken: the reason for holding no longer holds. risk_off: the model's risk switch. take_profit. stopped_trading: no bar (delisted, acquired or halted). The model's own wording is in exit_reason. |
outcome_zone | big_loss, loss, scratch, win, big_win | Band of return_pct, the return after costs. |
return_percentile | number | Rank of return_pct among the model's earlier closed trades, 0-100 (90 = better than 90% of them). Null until 10 earlier closed trades exist. |
duration_zone | short, typical, long | Days held against the holding periods of the model's earlier closed trades. Null until 10 exist. |
days_held_percentile | number | Rank of days_held among the model's earlier closed trades, 0-100. Null until 10 exist. |
benchmark_return_pct | number | The benchmark's return from the open the trade was entered at to the open it was closed at, in percent. Null for shorts. |
excess_return_pct | number | return_pct minus benchmark_return_pct, in percentage points. Null for shorts. |
relative_zone | lagged, in_line, beat | Band of excess_return_pct: the trade against the benchmark over the same days. Null for shorts. |
max_gain_pct, max_loss_pct | number | The best and the worst return at a daily close while the trade was held, or at its exit, in percent. On an open trade, the best and worst so far. |
path_zone | never_underwater, recovered, gave_back, never_ahead | How the trade reached its result, from its best and worst daily close. never_underwater: won without a meaningful loss on the way. recovered: won after being down. gave_back: lost after being meaningfully ahead. never_ahead: lost without a meaningful gain on the way. |
entry_market_regime_zone | bull_broad, bull_narrow, correction, bear, recovery | market_regime_zone as published for the decision day the entry came from. |
entry_yield_curve_zone | deeply_inverted, inverted, flat, normal, steep | macro_yield_curve_zone as published for that decision day. |
entry_market_cap_tier | nano, micro, small, mid, large, mega, ultra_mega | The asset's market_cap_tier as published for that decision day. Null when the asset has none (crypto, ETFs). |
Holdings across models
Every model's holdings on its own newest date, ordered by model, then weight. Each row is a holding plus model and date. A model entirely in cash has no rows.
| Parameter | Default | Description |
|---|---|---|
ticker | — | Only models holding this ticker |
asset_class | all | The holding's: stock or crypto |
state | all | held, entering or exiting |
return_zone, weight_zone | — | Only holdings with this value, or one of a comma-separated list. entering rows have neither, so they don't match |
limit, offset | 250, 0 | Up to 2,000 holdings a page. has_more says whether there's another |
Errors
| Status | error.type | Cause | What to do |
|---|---|---|---|
400 | invalid_parameter | An unknown parameter or field, a malformed filter or date, an unknown value, or a slug that isn't lowercase letters, digits and single hyphens. | Read the message: it names the problem. Slugs come from /v1/models. |
403 | tier_restricted | A plan without models (Free and Plus may read only a model's newest book), or a date before 2019-01-01. | Upgrade at the upgrade_url in the response, or use a later date. |
404 | not_found | No model with that slug. | List the models with /v1/models. |
404 | no_data | Holdings: no row on date or in the 10 days before it. | Try a later date, or leave out date. |
Errors aren't charged. Authentication and rate-limit errors are on Authentication and Errors & Caching.
Statistics
stats.backtest, stats.live and stats.all have the same keys, and a segment without rows is null.
| Keys | Meaning |
|---|---|
start_date, end_date, days_count | First and last date of the segment and the calendar days between them |
roi_pct, cagr_pct | Total return and compound annual growth rate over the segment, after costs, in percent |
volatility_pct, sharpe_ratio, sortino_ratio | Annualised volatility of daily returns in percent, and the Sharpe and Sortino ratios |
max_drawdown_pct, max_drawdown_date, drawdown_pct | The deepest fall from a high in the segment (zero or negative, in percent), the date it bottomed, and the drawdown on the last date |
best_day_pct, worst_day_pct, positive_months_pct | The best and worst single-row return, and the percent of calendar months with a positive return |
time_invested_pct | Percent of rows on which the model was invested rather than in cash |
trades_count, open_positions_count | Closed trades in the segment, and positions open on its last date |
win_rate_pct, avg_trade_return_pct, avg_win_pct, avg_loss_pct | Percent of closed trades with a positive return, and the average return of all, winning and losing trades |
profit_factor_ratio, best_trade_pct, worst_trade_pct, avg_days_held | Gains divided by losses over closed trades, the best and worst trade, and the average holding time in days |
benchmark_roi_pct, benchmark_cagr_pct, benchmark_max_drawdown_pct, excess_cagr_pct | The same measures for the benchmark bought and held over the segment, and the model CAGR minus the benchmark CAGR |
years | Only on /v1/models/{slug}: one entry per calendar year with model_pct and benchmark_pct |
Finding what changed
Every band in a model's row has the same change markers as ticker bands (_prev, _periods, _stability, _flips_recent_count; see Search), counting the model's own rows. Use them in filters on the list, or in fields on history:
- “Which models just went to cash?”
/v1/modelswithmodel_exposure_zoneequal tocashandmodel_exposure_zone_periodsequal to1. - “When did this model change exposure?” The history rows where
model_exposure_zone_previsn'tnull.
Bands on trades and holdings describe one trade or position, so they have no markers. Model bands are versioned on their own: compare them only between responses with the same model_band_contract.
Fields
Every model row has these 63 fields. _pct is a percent (5.0 means 5%), and the difference between two percentages is in percentage points. _percentile runs from 0 to 100 against the model's own earlier rows. Every response also carries level, model_band_contract and knowledge_cutoff.
Segment and equity
| Field | Values | Meaning |
|---|---|---|
model_segment | backtest, live | Whether the row is a backtest or live. backtest = computed in a replay of history, dated before the model's activation, and replaced if the model is replayed; live = decided on the day, dated on or after activation, and never rewritten. |
model_equity_ratio | number | Value of 1.0 invested at the model's first row, after the model's trading costs, marked at the row date's close (2.5 = two and a half times the starting value). |
model_benchmark_equity_ratio | number | Value of 1.0 put into the model's benchmark on the model's first date and held, dividends included (1.8 = 1.8 times the starting value). |
Returns
| Field | Values | Meaning |
|---|---|---|
model_return_1d_pct | number | The model's return from its previous row to this one, in percent (1.2 = up 1.2%). |
model_return_1m_pct | number | The model's return over the 30 calendar days to the row date, in percent (5.0 = 5%). Null until the model has 30 days of history. |
model_return_6m_pct | number | The model's return over the 182 calendar days to the row date, in percent (5.0 = 5%). Null until the model has 182 days of history. |
model_return_1y_pct | number | The model's return over the 365 calendar days to the row date, in percent (5.0 = 5%). Null until the model has 365 days of history. |
model_return_since_inception_pct | number | The model's return from its first row to the row date, in percent (150.0 = up 150%): (model_equity_ratio - 1) x 100. |
model_return_1m_percentile | number | Rank of model_return_1m_pct among the model's own earlier 30-day returns, 0-100 (90 = higher than 90% of them). Uses earlier rows only; null with fewer than 30 of them. |
model_return_6m_percentile | number | Rank of model_return_6m_pct among the model's own earlier 182-day returns, 0-100 (90 = higher than 90% of them). Uses earlier rows only; null with fewer than 30 of them. |
model_return_1y_percentile | number | Rank of model_return_1y_pct among the model's own earlier 365-day returns, 0-100 (90 = higher than 90% of them). Uses earlier rows only; null with fewer than 30 of them. |
model_return_1m_zone | strong_loss, loss, flat, gain, strong_gain | Band of model_return_1m_pct, from worst to best: strong_loss, loss, flat, gain, strong_gain. Null when the return is null. |
model_return_6m_zone | strong_loss, loss, flat, gain, strong_gain | Band of model_return_6m_pct, from worst to best: strong_loss, loss, flat, gain, strong_gain. Null when the return is null. |
model_return_1y_zone | strong_loss, loss, flat, gain, strong_gain | Band of model_return_1y_pct, from worst to best: strong_loss, loss, flat, gain, strong_gain. Null when the return is null. |
Against the benchmark: excess return, correlation and beta
| Field | Values | Meaning |
|---|---|---|
model_benchmark_return_1m_pct | number | The benchmark's return over the 30 calendar days to the row date, dividends included, in percent (5.0 = 5%). Null until the window is covered. |
model_benchmark_return_6m_pct | number | The benchmark's return over the 182 calendar days to the row date, dividends included, in percent (5.0 = 5%). Null until the window is covered. |
model_benchmark_return_1y_pct | number | The benchmark's return over the 365 calendar days to the row date, dividends included, in percent (5.0 = 5%). Null until the window is covered. |
model_excess_return_1m_pct | number | model_return_1m_pct minus model_benchmark_return_1m_pct, in percentage points (3.0 = the model returned 3 points more than its benchmark). Null when either is null. |
model_excess_return_6m_pct | number | model_return_6m_pct minus model_benchmark_return_6m_pct, in percentage points (3.0 = the model returned 3 points more than its benchmark). Null when either is null. |
model_excess_return_1y_pct | number | model_return_1y_pct minus model_benchmark_return_1y_pct, in percentage points (3.0 = the model returned 3 points more than its benchmark). Null when either is null. |
model_relative_strength_zone | lagging, in_line, leading | Band of model_excess_return_6m_pct (the model's six-month return against its benchmark's): lagging, in_line, leading. Null when the excess return is null. |
model_benchmark_correlation_ratio | number | Correlation of the model's daily returns with its benchmark's daily returns over the 182 calendar days to the row date, from -1 to 1 (0.8 = the two mostly move together; 0 = no linear link; negative = they move in opposite directions). Null with fewer than 60 daily returns of both in the window. |
model_benchmark_beta_ratio | number | Beta of the model's daily returns to its benchmark's over the same 182 calendar days (1.0 = the model moved one for one with the benchmark on average; 0.5 = half as much; negative = opposite). Null with fewer than 60 daily returns of both in the window. |
model_market_link_zone | inverse, independent, partial, tied | Band of model_benchmark_correlation_ratio (six-month correlation of daily returns with the benchmark): inverse, independent, partial, tied. Null when the correlation is null. |
Drawdown
| Field | Values | Meaning |
|---|---|---|
model_drawdown_pct | number | The model's fall from its highest equity so far to the row date, in percent, zero or negative (-12.0 = 12% below the high; 0 = at the high). |
model_drawdown_percentile | number | Rank of the current drawdown among the model's own earlier rows, 0-100; higher = deeper than usual (90 = deeper than on 90% of earlier rows). Uses earlier rows only; null with fewer than 30 of them. |
model_drawdown_zone | at_high, shallow, moderate, deep, severe | Band of model_drawdown_pct, from none to deepest: at_high, shallow, moderate, deep, severe. |
model_max_drawdown_1m_pct | number | The deepest drawdown (model_drawdown_pct) within the 30 calendar days to the row date, in percent, zero or negative. Null until the window is covered. |
model_max_drawdown_6m_pct | number | The deepest drawdown (model_drawdown_pct) within the 182 calendar days to the row date, in percent, zero or negative. Null until the window is covered. |
model_max_drawdown_1y_pct | number | The deepest drawdown (model_drawdown_pct) within the 365 calendar days to the row date, in percent, zero or negative. Null until the window is covered. |
model_max_drawdown_pct | number | The deepest drawdown from the model's first row to the row date, in percent, zero or negative (-38.0 = the model was once 38% below its high). |
model_days_since_high_count | number | Calendar days from the model's most recent equity high to the row date (0 = the row date is a new high). |
model_drawdown_duration_zone | at_high, fresh, extended, prolonged | Band of model_days_since_high_count (how long since the model's last high), from shortest to longest: at_high, fresh, extended, prolonged. |
Trend of the equity curve
| Field | Values | Meaning |
|---|---|---|
model_trend_zone | downtrend, sideways, uptrend | The model's equity curve against its own 50-row and 200-row simple moving averages (SMAs): downtrend, sideways, uptrend. Rows are the model's own rows (sessions for stock models, days for crypto models). Null until the model has enough rows for the SMAs. |
Volatility
| Field | Values | Meaning |
|---|---|---|
model_volatility_1m_pct | number | Volatility of the model's daily returns over the 30 calendar days to the row date, annualised, in percent (25.0 = 25% a year). Null until the window is covered. |
model_volatility_percentile | number | Rank of model_volatility_1m_pct among the model's own earlier rows, 0-100 (90 = more volatile than on 90% of them). Uses earlier rows only; null with fewer than 30 of them. |
model_volatility_zone | low, normal, high | Band of model_volatility_percentile (one-month volatility against the model's own history): low, normal, high. Null when the percentile is null. |
The book: exposure and concentration
| Field | Values | Meaning |
|---|---|---|
model_cash_pct | number | Share of the model's equity not in positions at the row date's close, in percent (40.0 = 40% in cash or the model's cash asset). |
model_long_exposure_pct | number | Value of long positions at the row date's close as a percent of the model's equity (95.0 = 95% long). |
model_short_exposure_pct | number | Value of short positions at the row date's close as a percent of the model's equity, a positive number (100.0 = fully short). |
model_net_exposure_pct | number | model_long_exposure_pct minus model_short_exposure_pct, in percent of equity (negative = net short). |
model_exposure_zone | short, cash, light, partial, full | How much of the model is invested at the row date's close: short (net short), cash (almost nothing invested), then by invested share of equity: light, partial, full. |
model_risk_state | risk_on, risk_off | The model's own risk switch on the row date: risk_on or risk_off. Null for a model that has no such switch. |
model_positions_count | number | Positions held at the row date's close (orders waiting for the next open are not counted). |
model_top_position_weight_pct | number | Weight of the largest position at the row date's close, in percent of the model's equity (12.5 = 12.5%). Null with no positions. |
model_effective_positions_count | number | Effective number of positions: 1 / the sum of squared position weights (ten equal positions = 10.0; one dominant position pulls it toward 1). A decimal, not a whole count. Null with no positions. |
model_concentration_zone | single_position, concentrated, balanced, diversified | Band of model_effective_positions_count, from most to least concentrated: single_position, concentrated, balanced, diversified. Null with no positions. |
Sectors
| Field | Values | Meaning |
|---|---|---|
model_sectors_count | number | Distinct sectors among the positions held at the row date's close. Null when nothing held has a sector (crypto, or no positions). |
model_top_sector | text | The sector with the largest weight among the positions held at the row date's close, as named in the data (free text, not a band). Null when nothing held has a sector. |
model_top_sector_weight_pct | number | Weight of model_top_sector at the row date's close, in percent of the model's equity (30.0 = 30%). Null when nothing held has a sector. |
model_effective_sectors_count | number | Effective number of sectors: 1 / the sum of squared sector weights. A decimal, not a whole count. Null when nothing held has a sector. |
model_sector_concentration_zone | single_sector, concentrated, balanced, diversified | Band of model_effective_sectors_count, from most to least concentrated: single_sector, concentrated, balanced, diversified. Null when nothing held has a sector. |
Trading activity and turnover
| Field | Values | Meaning |
|---|---|---|
model_trades_count | number | Trades the model has closed from its first row to the row date. |
model_win_rate_pct | number | Percent of closed trades to the row date with a positive return after costs (60.0 = 60%). Null with no closed trade. |
model_trades_1m_count | number | Fills (entries plus exits) in the 30 calendar days to the row date. |
model_days_since_trade_count | number | Calendar days from the model's most recent fill to the row date (0 = it traded on the row date). Null when its last fill was more than 30 days ago. |
model_activity_zone | idle, quiet, active, busy | Band of model_trades_1m_count (fills over the last 30 days), from none to many: idle, quiet, active, busy. |
model_turnover_1y_pct | number | Value traded over the 365 calendar days to the row date, buys plus sells, as a percent of the model's equity (200.0 = the model traded twice its equity in a year). Null until the window is covered. |
model_turnover_zone | low, normal, high | Band of model_turnover_1y_pct: low, normal, high. Null when the turnover is null. |
Form: recent trades against the lifetime record
| Field | Values | Meaning |
|---|---|---|
model_recent_win_rate_pct | number | Percent of the model's last ten closed trades with a positive return after costs (60.0 = six of ten). Null before the model has ten closed trades. |
model_form_zone | deteriorating, steady, improving | model_recent_win_rate_pct (the last ten closed trades) against model_win_rate_pct (every closed trade): deteriorating, steady, improving. Null before the model has 20 closed trades. |
model_win_streak_count | number | Consecutive winning closed trades up to the row date, counting back from the model's most recent closed trade (0 when that trade was not a win). |
model_loss_streak_count | number | Consecutive losing closed trades up to the row date, counting back from the model's most recent closed trade (0 when that trade was a win). A trade with a return of zero or less counts as a loss. |