Skip to main content
The market-detail endpoint returns one market’s complete profile in a single round-trip: live price, top of book and optional 5-level depth, SimpleFunctions indicators, regime label, cross-venue counterpart, attached thesis edges, follow-up nextActions, and canonical URLs. A sibling endpoint returns a 7-day rolling history of that market’s indicators and regime snapshots.

Endpoints

Auth: none. Both endpoints are public, cached at the edge.

Identifiers

UUIDs from the deprecated external_markets table return 410 Gone so search engines de-index those URLs faster than they would for a 404.

Detail

Query parameters

The endpoint streams a single response — there is no pagination. Cache: Cache-Control: public, s-maxage=60, stale-while-revalidate=120.

Response shape

Field reference

Indicators bundle

Returned in indicators when the ticker is in marketIndicators. All numeric fields are nullable.

Regime block

The regime block reports SimpleFunctions’s adverse-selection scoring (0–1) plus the label maker, taker, or neutral. The cached snapshot is served when fresh (≤15 min old). When stale or when the live spread differs from the cached spread by >50%, the server re-computes on demand and returns fresh: true. With ?refresh=true (auth required), the server always re-computes.

Errors

History

7-day rolling window of two parallel time-series for the ticker:
Both arrays are empty for tickers outside the warm-regime cron’s top-500 coverage. Frontends should handle the empty state — most non-top tickers return indicatorHistory: [] and a populated regimeHistory, or vice versa, depending on which cron has touched them. Cache: Cache-Control: s-maxage=600, stale-while-revalidate=1200. Errors return 400 ticker required or 500 history failed.

CLI equivalents

sf inspect calls /api/agent/inspect/{ticker} for an agent-shaped dossier; sf book hits /api/public/market/{ticker}?depth=true directly.

See also

Indicators

What iy, cri, ee, las, cvr, tauDays mean.

Market regime

Adverse-selection score, label, signal interpretation.

Inspect ticker

Agent-shaped variant: /api/agent/inspect/{ticker}.

Real-time data

Streaming orderbook / candles / trades for the same ticker over WS.