Skip to content

Public documentation

Product version
2.0.1
Docs revision
r0
State
Current · released
Deployment
not-deployed
Source
v2.0.1 · 07cbe86e8447

Documented release is not yet live

Market Data

Market Data tool operations and options

v2.0.107cbe86

This page lists every operation and every option of every tool the Market Data MCP server serves: the parameters with their types, defaults and limits, what each operation returns, the fields of each result, and the refusals a call can meet. The tool reference lists the parameters of the nine canonical tools in one compact, generated table. Use this page when you need the meaning of an option, the limit on a list, or the exact refusal for a request that cannot be answered. For which tool answers which question, start from Using Market Data. Your MCP client's own tool list is always the authority for the exact schema it is talking to.

The eleven tools

The server registers eleven tools in three groups: the nine canonical tools, the operating-guidance tool, and the studies tool.

GroupTools
Nine canonical product toolsdiscover_market_data, query_market, query_volatility, query_correlations, query_rates, query_options, query_candles, query_profiles, check_market_data_health
One operating-guidance toolget_market_data_guide
One studies toolquery_studies

The third group is one tool. query_studies serves stored quantitative studies; it is registered on the server, it is not one of the nine canonical tools, and its own section at the end of this page states what it reads and what it refuses.

Rules that apply to every tool

  • A query tool takes one request object. Its operation field selects the view, and each operation has its own parameters. discover_market_data and get_market_data_guide take a section. check_market_data_health takes nothing.
  • A tool refuses a parameter that its schema does not define. No tool has a format switch: every result is a typed structured object.
  • A symbol is a futures root with the =F suffix, for example ES=F. An operation that accepts an explicit contract symbol says so.
  • Every time bound of a range (start, end) is a timezone-aware ISO 8601 timestamp. Trade-date parameters (trade_date, start_date, end_date) are plain calendar dates. A range must have its start before its end, and each history operation caps the length of a range.
  • A list operation has a limit with a stated maximum. When more rows exist, the result carries meta.page.next_cursor. Pass it back as cursor with the same other parameters to read the next page. A cursor is opaque and bound to the request that produced it.

The shape of every result

A result has two blocks, meta and data. check_market_data_health is the one tool that returns its own small meta block (see its section).

FieldMeaning
meta.generated_at_utcWhen the server produced the result.
meta.source_asof_utcThe data time of the result. For a collection it is the oldest row, so a value is never presented as fresher than it is.
meta.freshness_secThe age of the data in seconds when the result was produced.
meta.degradationAbsent when the result is complete. Otherwise an object with status (always degraded) and a reason.
meta.scopedomain, operation and universe of the answer.
meta.pagereturned, total (or null) and next_cursor (or null).
meta.warningsA list of typed warnings, each with a code and a message. A missing or stale value stays empty and is explained here.
meta.next_callsPresent only on Market Card results: typed follow-up calls.
dataThe operation result, or a typed error.

A request that is well formed but cannot be answered returns the error inside data.error instead of failing the call. discover_market_data is the exception: its only error result is payload_too_large. The error has a code, a message, retryable and retry_after_seconds. The invalid-argument error of the Market Card also names the offending parameter, its invalid value and the valid values.

Error codeMeaning
invalid_argumentA parameter value is not accepted. The error names the parameter and the invalid value, and lists the valid values where the set is closed (query_market Market Card).
no_dataNothing is stored for the requested pair (query_correlations detail). The other operations with nothing stored return success with a warning.
no_data_in_rangeNothing is stored inside the requested time range. Narrow or move the range.
data_limitA query_candles answer holds no bar inside the requested range while the root's own data limit is known: a 1-day range that opens before the root's first stored day, or an empty answer that names why the window held no bar. The message names the first stored day and the authority behind it when an authority names one, and says so plainly when none does; a served answer carries the same facts in data_limit.
invalid_cursorThe cursor is malformed or belongs to another request. Restart paging.
cursor_staleThe series or pricing pass that the cursor pages over was superseded. Restart the request.
scope_unavailableThe scope cannot be served now. This is a permanent condition until the service changes, so do not retry the same request unchanged.
series_unavailableThe requested price series cannot be built for this scope.
provider_unavailableA transient failure. retryable is true and retry_after_seconds is set when the failure was a timeout. Retry later.
expiry_not_foundThe expiry selector matched no expiry (query_options).
options_unavailableThe options scope is not served. The reason is methodology_not_served, root_not_certified or no_served_state (query_options).
unknown_guide_sectionThe section is not one of the thirteen guide sections. valid_sections lists them (get_market_data_guide).

A result that would exceed its size limit is never truncated. It becomes a payload_too_large error that names the payload_class, the limit_bytes and the actual_bytes. The limit is 128 KiB for a collection (default) and 256 KiB for a single detailed object (detail). Narrow the request and call again.

discover_market_data

Finds the right tool and scope before you query. It returns one typed, bounded section of metadata and never market data: prices come from query_market, bars from query_candles and profiles from query_profiles. The next_calls it returns name only tools that are registered.

The sections guide, domains, workflows, fields, formats, freshness and examples are static text. The sections symbols and sessions read which candle series exist (cached for 30 seconds), and asset_classes reads the instrument catalogue.

ParameterTypeRequiredDefaultLimitsMeaning
sectionstringnoguideone of guide, domains, workflows, symbols, asset_classes, fields, formats, freshness, sessions, examplesDiscovery section to return, default guide. The guide is static; symbols and sessions read live database state. One of: guide, domains, workflows, symbols, asset_classes, fields, formats, freshness, sessions, examples.

discover_market_data result fields

Every section returns data.section plus the fields below. A section never pages: paging tokens are not issued.

SectionFields in `data`
guideitems (GuideItem), next_calls
domainsitems (DomainItem), next_calls
workflowsitems (WorkflowItem), next_calls
symbolsitems (SymbolItem), next_calls
asset_classesitems (AssetClassItem), next_calls
fieldsitems (FieldItem), next_calls
formatsitems (FormatItem), next_calls
freshnessitems (FreshnessItem), next_calls
sessionsitems (SessionItem), next_calls
examplesitems (DiscoveryExampleItem or CanonicalMarketExampleItem), next_calls

Types used in the table above:

TypeFields
GuideItemstep, action, guidance
DomainItemdomain, status, summary
WorkflowItemworkflow, goal, when_not, calls
SymbolItemsymbol, name, asset_class, exchange, tick_size, candle_series_availability (CandleSeriesAvailability), volume_availability (VolumeAvailability)
CandleSeriesAvailabilityfive_minute (CandleIntervalAvailability), thirty_minute (CandleIntervalAvailability), one_hour (CandleIntervalAvailability), one_day (CandleIntervalAvailability)
CandleIntervalAvailabilityseries, evidence, status
VolumeAvailabilityfive_minute (VolumeIntervalAvailability), thirty_minute (VolumeIntervalAvailability), one_hour (VolumeIntervalAvailability), one_day (VolumeIntervalAvailability)
VolumeIntervalAvailabilitystatus, reason, volume_basis
AssetClassItemasset_class, symbol_count, symbols
FieldItemfield, meaning
FormatItemformat, status, authority
FreshnessItemfield, rule
SessionItemsymbol, asset_class, exchange_session (ConfiguredExchangeSession or UnsupportedExchangeSession), analytical_session (AnalyticalSession), candle_series_availability (CandleSeriesAvailability), volume_availability (VolumeAvailability)
ConfiguredExchangeSessionstatus, reason, exchange_session_profile_id, exchange, timezone, trade_date_rule, current_window_resolution (CurrentWindowResolution), current_window_state, current_trade_date, current_window_start_utc, current_window_end_utc, maintenance_breaks_local, source (SourceProvenance)
CurrentWindowResolutionstatus, reason
SourceProvenanceconfigured_url, evidence_class, reference_scope, product_scope_verified, fetched_at, evidence_cutoff, schedule_effective_from, audit_reference
UnsupportedExchangeSessionstatus, reason, exchange_session_profile_id, exchange, timezone, trade_date_rule, current_window_resolution (CurrentWindowResolution), current_window_state, current_trade_date, current_window_start_utc, current_window_end_utc, maintenance_breaks_local, source (SourceProvenance)
AnalyticalSessionstatus, reason, methodology_id, analytical_session_profile_id, phases, post_day_is_eth, day_ib (DayInitialBalance)
DayInitialBalanceduration_minutes, anchor
DiscoveryExampleItemexample, tool, arguments
CanonicalMarketExampleItemexample, tool, arguments

discover_market_data limits and refusals

  • The guide is capped at 128 KiB and an explicit section at 256 KiB. An oversized listing returns the typed payload_too_large result. Request one section at a time.
  • Sessions for ^VIX and FDAX=F are not supported.
  • Membership of a candle series does not prove that volume exists for it; the section says volume_not_inspected.
  • A value that is not one of the ten section names fails validation. prices is not a section.

get_market_data_guide

Serves the static operating guide for the Market Data MCP: how to operate the service correctly. It makes no market-data query and reads no database. Product discovery (domains, symbols, operations, next calls) belongs to discover_market_data. The tool list's input schemas stay the executable authority.

The guide has thirteen sections, with these identifiers: mental_model, tool_roles, retrieval_policy, workflows, freshness, series_and_rolls, curve_shape, sessions, profiles, options, failure_semantics, compatibility and examples. Omit section to receive the compact complete guide, which is the right first read for a cold agent. A section identifier that is not one of the thirteen returns the typed error unknown_guide_section, whose valid_sections field lists the valid identifiers.

ParameterTypeRequiredDefaultLimitsMeaning
sectionstring or nullnonull—Guidance section id; omit for the compact complete guide.

get_market_data_guide result fields

data.sections holds one entry per returned section, each with section, title and body.

OperationFields in `data`
guideguide_version, sections (GuideSectionContent)

Types used in the table above:

TypeFields
GuideSectionContentsection, title, body

query_market

Serves bounded, persisted market snapshots: current prices, returns, range position, session state and previous-session context. It does not serve bars, volatility or profiles; use query_candles, query_volatility and query_profiles for those.

Without a request the tool runs overview with the default values shown in the tables below.

OperationWhat it returns
overviewOne row per symbol of the chosen universe. This is the default: the core universe.
asset_classOne row per symbol of one of the nine asset classes.
symbolOne market in full. With the Market Card enabled, one card per symbol for symbol or for 1 to 8 symbols.

query_market operation overview

The core universe is ES=F, NQ=F, ZN=F, CL=F, GC=F, 6E=F and VX=F. The all universe has no limit and no cursor, so a large answer can reach the size limit.

ParameterTypeRequiredDefaultLimitsMeaning
universestringnocoreone of core, allSymbol scope. core returns the seven-symbol orientation set (ES=F, NQ=F, ZN=F, CL=F, GC=F, 6E=F, VX=F). all returns every covered symbol with no limit or cursor, so it can hit the payload guard.

query_market operation asset_class

The nine asset classes are equity_index, treasury, stir, energy, metals, fx, volatility, agriculture and eurex_rates. A large class has no limit and no cursor, so it can reach the size limit.

ParameterTypeRequiredDefaultLimitsMeaning
asset_classstringyes—one of equity_index, treasury, stir, energy, metals, fx, volatility, agriculture, eurex_ratesOne of nine classes: equity_index, treasury, stir, energy, metals, fx, volatility, agriculture, eurex_rates. Large classes have no cursor or limit, so they can hit the payload guard.

query_market operation symbol

Send exactly one of symbol and symbols. The Market Card is a server option; see the Market Card section below for what a server without it does.

ParameterTypeRequiredDefaultLimitsMeaning
includearray of string or nullnonullmax items 7; one of live, session, models, profile_detail, correlations, options, studiesMarket Card only: blocks to return. One or more of live, session, models, profile_detail, correlations, options, studies. Default live, session, models. options and studies return a typed unavailable block until their writers exist.
symbolstring or nullnonullmin length 1; max length 32Futures root with =F suffix (for example ES=F). Exactly one of symbol and symbols is required. An unknown or mistyped symbol returns success with item null plus a market_data_unavailable warning, not a typed error; with the Market Card enabled it returns the typed error invalid_argument.
symbolsarray of string or nullnonullmin items 1; max items 8; min length 1; max length 32Market Card only: 1-8 unique futures roots with =F suffix, one card each in request order. Exactly one of symbol and symbols is required.

query_market result fields

Rows are MarketItem objects; the symbol operation returns either one item or, with the Market Card, cards.

OperationFields in `data`
overviewitems (MarketItem)
asset_classasset_class, items (MarketItem)
symbolitem (MarketItem), cards (MarketCard)

Types used in the table above:

TypeFields
MarketItemsymbol, continuation (ContinuationIdentity), snapshot_ts, price, price_asof, price_source, price_source_status, price_source_reason, price_provenance (CurrentOutrightPriceProvenance), state, return_1d_fraction, return_5d_fraction, position_5d_fraction, position_20d_fraction, return_1d_reason, return_5d_reason, position_5d_reason, position_20d_reason, volatility_regime, trend, previous_session (MarketPreviousSession), daily_stats (DailyStatsScopes), daily_stats_status, daily_stats_reason, contract, daily_stats_fallback
ContinuationIdentitysymbol, root, continuation, active_contract
CurrentOutrightPriceProvenancecontract, session_id, trade_date, phase, calculation_mode, state_status, session_start, session_end, methodology_id, methodology_version, session_map_id, session_map_version, analytical_session_profile_id, exchange_session_profile_id, source_file, source_byte_end, source_asof, published_at
MarketPreviousSessiontrade_date, open, high, low, close, volume, source_contract, volume_basis, warning (PreviousSessionWarning)
PreviousSessionWarningexpected_session_date, observed_session_date, gap_days, reason
DailyStatsScopesfull_day (DailyStatsBlock), cash (DailyStatsBlock)
DailyStatsBlocksymbol, session_scope, trade_date, complete, contract, series_provenance, source_asof, open, high, low, close, volume, ret_convention, ret_1d, ret_1d_ticks, ret_1d_ref_ts, ret_1d_ref_price, ret_5d, ret_5d_ticks, ret_5d_ref_ts, ret_5d_ref_price, ret_20d, ret_20d_ticks, ret_20d_ref_ts, ret_20d_ref_price, ret_60d, ret_60d_ticks, ret_60d_ref_ts, ret_60d_ref_price, pos_1d, pos_2d, pos_3d, pos_4d, pos_5d, pos_20d, pos_60d, ticks_vs_prev_close, ticks_vs_prev_high, ticks_vs_prev_low, ticks_from_session_open, ticks_from_session_high, ticks_from_session_low, session_range_ticks, adr, adr_ticks, adr_z_score, vol_adr_pct, gk_volatility, rv_close_to_close, rv_close_to_close_percentile, out_of_horizon
MarketCardsymbol, continuation (ContinuationIdentity), contract, as_of, status, status_reason, live (LiveBlock), session (SessionBlock), models (ModelsBlock), profile_detail (ProfileDetailBlock or BlockUnavailable), correlations (CorrelationsBlock or BlockUnavailable), options (BlockUnavailable), studies (BlockUnavailable)
LiveBlockas_of, status, status_reason, expected_delay_sec, price, session_segment, cash_hours (LiveCashHours or ScopeUnavailable), full_day (ScopeUnavailable)
LiveCashHourstrade_date, completeness, open, high, low, last, volume, delta, num_trades, profile (LiveProfile)
LiveProfilebasis_requested, basis_served, basis_fallback, basis_fallback_reason, writer, methodology_id, methodology_version, poc, va_low, va_high, ib_low, ib_high
ScopeUnavailableunavailable_reason
SessionBlockas_of, status, status_reason, expected_delay_sec, trade_date, cash_hours (SessionCashHours or ScopeUnavailable), returns (SessionReturns), position (SessionPosition), daily_vol (SessionDailyVol), finished_profile (FinishedProfile)
SessionCashHourscompleteness, open, high, low, last, prev_high, prev_low, prev_close
SessionReturnsret_1d, ret_5d, ret_20d, ret_60d, ret_1d_ref_ts, ret_5d_ref_ts, ret_20d_ref_ts, ret_60d_ref_ts, convention
SessionPositionpos_5d, pos_20d, pos_60d
SessionDailyVolas_of, adr_ticks, adr_z, gk_daily_fraction, rv_annualized_fraction, rv_percentile_pct
FinishedProfiletrade_date, poc, va_low, va_high, ib_low, ib_high, profile_type, day_type, methodology_id, methodology_version, basis_served, writer, contract_verified
ModelsBlockas_of, status, status_reason, expected_delay_sec, volatility_regime, expansion_probability_pct, switch_risk_pct, methodology_status, rv_trend, gk_trend, inference_mode, fallback_reason, partial_session
ProfileDetailBlockas_of, status, status_reason, expected_delay_sec, tpo_count, poc_ticks_from_open, value_area_range_ticks, poor_high, poor_low, ib_range_ticks, session_range_ticks, finished_open_type, finished_has_gap, finished_poor_high, finished_poor_low
BlockUnavailableavailable, reason, message
CorrelationsBlockas_of, status, status_reason, expected_delay_sec, pairs (CorrelationPair)
CorrelationPairother, corr_24h, corr_8h, corr_1h, beta_24h, beta_orientation, bucket, switch_risk_pct, methodology_status

The four _reason fields of a market row state why the value beside them is null, and they are absent when the value is present. The vocabulary is closed and has four values. no_reference_session says the source row carries no reference close for that lookback. reference_price_zero says the stored reference close is zero, so no ratio can be formed; on engine-written and composer-written rows a zero reference close is not stored and reads no_reference_session. insufficient_history says the source row's daily window holds fewer completed sessions than the labelled window, or a session in it without a complete high and low; it explains a null position_5d_fraction or position_20d_fraction, and it is a writer-window precondition that is not observable on the served row. not_computed is the residual reading: a reference exists and the value is still absent. A null value is never filled from another session.

query_market freshness and refusals

  • A previous-session value resolves only the exact expected completed exchange session. A missing or stale value stays null with a typed warning and is never filled from another day. Every previous-session volume is the sum of all trades of that session (volume_basis).
  • An unknown or mistyped symbol returns success with item null and the warning market_data_unavailable. With the Market Card it returns the typed error invalid_argument instead.
  • Other warnings: symbol_stale, daily_stats_fallback_row, current_outright_<reason> for a degraded current outright price (the suffix is the row's price_source_reason) and previous_session_<reason> for an unavailable exact previous session (the suffix is the row's previous_session.warning.reason). Otherwise a served page that carries a warning writes the degradation partial_scope; an empty scope writes market_data_unavailable with source_unavailable. Two warnings stand apart: a retired explicit symbol warns with no degradation, and a stale symbol writes the degradation symbol_stale.
  • Typed errors: invalid_argument, provider_unavailable, scope_unavailable and payload_too_large.

query_market Market Card

The Market Card answers the symbol operation with one card per requested symbol, in request order. Each card has these blocks, and each block has its own as_of time, a status (live, closed, late or stale), a status_reason and an expected_delay_sec:

BlockDefaultContent
liveyesThe current price, the session segment and the cash-hours state.
sessionyesTrade date, returns, position in the range, daily volatility and the finished profile of the session.
modelsyesThe volatility regime, expansion probability, switch risk, trends and the inference mode.
profile_detailnoThe developing profile facts and the finished-profile facts.
correlationsnoThe correlation pairs of the symbol.
optionsnoReturned as unavailable with the reason not_built; use query_options.
studiesnoAbsent by design: a typed unavailable block with the reason not_built. The card never computes a study; read the stored rows through query_studies.

A card result adds meta.next_calls: typed follow-up calls with the reason full_profile, history, volatility_detail, pair_detail, more_blocks or discover_symbols.

A card block that is late or stale is served and warned, never withheld: card_block_late or card_block_stale, one warning per block, and live_block_uncovered_segment when the engine publishes no live state in the post-cash segment. The other card warnings are live_state_unavailable (no engine live-state row), methodology_identity_unverified, tick_size_under_review (profile levels and tick counts withheld while the configured tick is under review), finished_profile_behind (the finished session is older than the previous completed cash session), finished_profile_unavailable (the engine serves no session, or refuses it with materialization_missing, bins_incomplete, ambiguous_selector, session_empty or session_key_missing), switch_risk_provisional and market_data_unavailable.

The result's degradation states the scope, not the block: partial_scope when a served card block is stale for a reason other than being outside the writer's coverage, source_unavailable when no market row exists for any requested symbol, and the typed retryable provider_unavailable when a read fails, because a card built from rows it never read would not tell the caller to retry. Four card fields are null by design, because the engine tables store no such column, and they are never back-filled: profile_type, day_type, open_type and has_gap.

The card is a server option. A server that has it disabled refuses symbols and include with the error scope_unavailable and the degradation reason market_card_disabled; send symbol alone to that server. A server that serves the card serves every root except CL, ZC and ZW: those three roots answer the same scope_unavailable refusal with the degradation reason market_card_disabled until their Gate-2 verdict.

query_profiles

Serves Market Profile snapshots of one symbol and one session phase: finalized canonical profiles, legacy as-recorded rows, or the developing profile of the session in progress (source_mode live). Or it returns a typed refusal. For multi-session structure use the rows of history; never average the value-area edges of several sessions.

The analytical phase (AMT_DAY, AMT_EVENING or POST_DAY) is required and is never implied. Symbol and phase are identity, so this tool has no default request. distribution is the TPO distribution, never volume at price. For traded volume at price use the volume_profile operation: it returns the stored bins of one finalized session, is a separate operation, and is never a fallback for distribution.

The request object is required: this tool has no default request.

OperationWhat it returns
snapshotThe profile of one symbol and phase: value area, point of control, initial balance, profile and day type.
historyRecent finalized profiles of one symbol and phase, newest first.
distributionThe per-price TPO bins of one session.
levelsThe key price levels of one symbol and phase. Naked levels are not served.
volume_profileThe stored traded-volume bins of one finalized session, per price.

query_profiles operation snapshot

ParameterTypeRequiredDefaultLimitsMeaning
phasestringyes—one of AMT_DAY, AMT_EVENING, POST_DAYAnalytical phase, required and never implied: AMT_DAY, AMT_EVENING, or POST_DAY. RTH and ETH never share one symbol's phase.
source_modestringnocanonicalone of canonical, as_recorded, liveEvidence source. canonical (default) reads finalized profiles. as_recorded reads legacy rows whose identity fields are not_recorded; it is never a fallback for canonical. live reads the developing profile of the front contract that the live profile engine publishes: point of control, value area, initial balance, TPO count, poor high and poor low as the engine stored them, with prices rounded to the instrument tick. Its calculation_mode is LIVE_PROVISIONAL while the session is open and SESSION_CLOSED_PROVISIONAL after it ends; the profile is never finalized and freshness_sec shows its age. A closed session whose last row stops more than 30 minutes before the session close carries the degradation live_profile_incomplete; an open session whose row is older than 30 minutes carries live_profile_stale. live is never a fallback for the other modes. live refusals use these reasons: live_not_published (the engine published no row), live_contract_not_current (the stored row is for a contract other than the published front contract), live_contract_unpublished (no front contract is published), live_profile_degraded and live_profile_empty (the engine marked the profile degraded or empty), live_engine_v1_superseded (the row carries the superseded earlier engine identity) and identity_inconsistent (an unknown or mismatched identity pair). The warning canonical_store_absent is added when the finalized store itself is not present.
symbolstringyes—min length 1; max length 32Futures root with =F suffix (for example ES=F).
trade_datestring (date) or nullnonull—Exchange trade date; omit for the latest finalized session. source_mode live does not accept a trade_date; it serves the current session.

query_profiles operation history

ParameterTypeRequiredDefaultLimitsMeaning
limitintegerno20min 1; max 252Maximum sessions returned, 1-252. Default 20.
phasestringyes—one of AMT_DAY, AMT_EVENING, POST_DAYAnalytical phase, required and never implied: AMT_DAY, AMT_EVENING, or POST_DAY.
source_modestringnocanonicalone of canonical, as_recordedEvidence store: canonical reads finalized materializations; as_recorded reads legacy rows with identity fields not_recorded and is never a fallback. Legacy evidence is reachable only via as_recorded. 'live' is refused here: only the snapshot operation serves the live profile engine's developing profile. Default canonical.
symbolstringyes—min length 1; max length 32Futures root with =F suffix (for example ES=F).

query_profiles operation distribution

ParameterTypeRequiredDefaultLimitsMeaning
phasestringyes—one of AMT_DAY, AMT_EVENING, POST_DAYAnalytical phase, required and never implied: AMT_DAY, AMT_EVENING, or POST_DAY.
source_modestringnocanonicalone of canonical, as_recordedEvidence store: canonical reads finalized materializations; as_recorded reads legacy rows with identity fields not_recorded and is never a fallback. 'live' is refused here: only the snapshot operation serves the live profile engine's developing profile. Default canonical.
symbolstringyes—min length 1; max length 32Futures root with =F suffix (for example ES=F).
trade_datestring (date)yes——Exchange trade date of the session, required.

query_profiles operation levels

ParameterTypeRequiredDefaultLimitsMeaning
phasestringyes—one of AMT_DAY, AMT_EVENING, POST_DAYAnalytical phase, required and never implied: AMT_DAY, AMT_EVENING, or POST_DAY.
source_modestringnocanonicalone of canonical, as_recordedEvidence store: canonical reads finalized materializations; as_recorded reads legacy rows with identity fields not_recorded and is never a fallback. Legacy evidence is reachable only via as_recorded. 'live' is refused here: only the snapshot operation serves the live profile engine's developing profile. Default canonical.
symbolstringyes—min length 1; max length 32Futures root with =F suffix (for example ES=F).
trade_datestring (date) or nullnonull—Exchange trade date; omit for the latest finalized session.

query_profiles operation volume_profile

ParameterTypeRequiredDefaultLimitsMeaning
symbolstringyes—min length 1; max length 32Futures root with =F suffix (for example ES=F).
scopestringyes—one of AMT_DAY, AMT_EVENING, POST_DAYSession scope as the profile writer recorded it. Required, never implied.
trade_datestring (date)yes——Exchange trade date of the session, required.
contractstring or nullnonullmin length 1; max length 32Contract code; omit when the session has one contract.
limitintegerno500min 1; max 2000Maximum price bins per page.
after_price_tickinteger or nullnonull—Paging cursor from the previous page's next_after_price_tick.

A root or a session that has no stored bins returns status unavailable with a reason; it never returns a successful first page with no bins. A cursor past the last page is the one exception: it returns ready with an empty page and no cursor.

query_profiles result fields

source_mode is returned in every result. A refusal replaces the item with ProfileRefusalData.

OperationFields in `data`
snapshotsource_mode, item (ProfileSummaryItem)
historysource_mode, items (ProfileSummaryItem)
distributionsource_mode, item (ProfileDistributionItem)
levelssource_mode, item (ProfileLevelsItem)
volume_profilestatus, reason, symbol, scope, trade_date, contract, tick_size, bins, next_after_price_tick
refusalrequested_operation, symbol, phase, source_mode, reason, methodology_id

Types used in the table above:

TypeFields
ProfileSummaryItemsymbol, continuation (ContinuationIdentity), contract, trade_date, phase, identity (ProfileIdentity), session_kind, source_asof, analytical_open_utc, analytical_close_utc, readiness, poc, va_high, va_low, va_range_ticks, tpo_count, poc_ticks_from_open, ib_high, ib_low, ib_range_ticks, session_open, session_high, session_low, session_close, session_range_ticks, profile_type, day_type, open_type, has_gap, tick_size
ContinuationIdentitysymbol, root, continuation, active_contract
ProfileIdentitymethodology_id, methodology_version, session_map_id, session_map_version, analytical_session_profile_id, exchange_session_profile_id, calculation_mode, ib_duration_minutes
ProfileDistributionItemsymbol, trade_date, phase, identity (ProfileIdentity), source_asof, distribution_basis, tpo_distribution
ProfileLevelsItemsymbol, trade_date, phase, identity (ProfileIdentity), source_asof, ib_high, ib_low, poor_high, poor_low, single_prints, texture

query_profiles freshness and refusals

  • source_asof is the data time of the oldest row. Canonical profiles are finalized; the live profile is provisional, and freshness_sec states its age.
  • The tool performs no calculation and no backfill when it is called.
  • The history operation names every trade date its page walked over that held no servable stored session with one typed warning history_date_skipped per date. The warning carries the date and the reason (bins_incomplete, ambiguous_selector, session_empty or session_key_missing), and the page still carries its cursor forward, so a window of unservable dates never stalls the walk and a gap is reported instead of silently skipped.
  • A refusal is data with reason set to unavailable, materialization_missing or not_recorded (a gap in legacy rows), or to one of the live_* reasons listed under source_mode. The refusal also carries requested_operation, symbol, phase, source_mode and methodology_id.
  • Typed errors: provider_unavailable and payload_too_large.

query_volatility

Serves bounded, persisted volatility snapshots and the per-symbol regime. For co-movement use query_correlations; for prices use query_market.

Without a request the tool runs overview with the default values shown in the tables below.

OperationWhat it returns
overviewOne volatility row per symbol of the chosen universe. This is the default: the core universe, 25 rows per page.
asset_classOne row per symbol of one of the nine asset classes.
symbolsOne row per named symbol, up to 25 unique symbols.
detailThe full row of one symbol; provenance is opt-in.
historyPersisted rows for 1 to 10 symbols over a time range at hourly or daily resolution.
regimeThe persisted regime of one symbol.

query_volatility operation overview

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor.
limitintegerno25min 1; max 50Maximum symbols per page, 1-50. Default 25.
universestringnocoreone of core, allSymbol scope. core returns the seven-symbol orientation set (ES=F, NQ=F, ZN=F, CL=F, GC=F, 6E=F, VX=F). all returns every covered symbol.

query_volatility operation asset_class

ParameterTypeRequiredDefaultLimitsMeaning
asset_classstringyes—one of equity_index, treasury, stir, energy, metals, fx, volatility, agriculture, eurex_ratesOne of nine classes: equity_index, treasury, stir, energy, metals, fx, volatility, agriculture, eurex_rates.
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor.
limitintegerno25min 1; max 50Maximum symbols per page, 1-50. Default 25.

query_volatility operation symbols

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor.
limitintegerno25min 1; max 25Maximum rows returned, 1-25. Default 25.
symbolsarray of stringyes—min items 1; max items 25Explicit symbol list, 1-25 entries, each a futures root with =F suffix. Entries must be unique.

query_volatility operation detail

ParameterTypeRequiredDefaultLimitsMeaning
includearray of stringno[]max items 1; always provenanceOpt-in nested evidence. provenance adds the bounded model-fit facts; omit it and the block stays null (null means not requested).
symbolstringyes—min length 1; max length 32Futures root with =F suffix (for example ES=F).

query_volatility operation history

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor.
endstring (date-time)yes——Range end, timezone-aware. Must be after start; the range may span at most 31 days at hourly resolution or 730 days at daily.
limitintegerno100min 1; max 110 (26 at daily resolution)Maximum rows returned, 1-110. Default 100 at hourly resolution and 26 at daily, because each daily row carries the daily_stats block and a larger page would exceed the payload guard; a daily request above the daily cap is refused.
point_in_time_onlybooleannofalse—When true, keeps only rows computed without look-ahead (point_in_time and online_current) and drops ex_post and unlabelled rows. No such rows exist between 2026-03-25 16:00 UTC (the last point_in_time row) and 2026-09-29 01:44 UTC (the first online_current row). Before the gap the rows are daily 16:00 UTC point_in_time rows (strict out-of-sample, frozen model); after it they are 5-minute online_current rows (fitted through the bar). The two eras are not comparable. A point_in_time_only range that touches the gap returns the warning volatility_point_in_time_gap, with the degradation incomplete_history when rows are returned. Default false.
resolutionstringyes—one of hourly, dailyBucket resolution. hourly samples the latest persisted snapshot per UTC hour; daily per UTC day.
startstring (date-time)yes——Range start, timezone-aware. Must be before end; the range may span at most 31 days at hourly resolution or 730 days at daily.
symbolsarray of stringyes—min items 1; max items 10Explicit symbol list, 1-10 entries, each a futures root with =F suffix. Entries must be unique.

query_volatility operation regime

ParameterTypeRequiredDefaultLimitsMeaning
symbolstringyes—min length 1; max length 32Futures root with =F suffix (for example ES=F).

query_volatility result fields

Every row is a volatility item with its own freshness object; detail adds provenance and regime returns the regime item.

OperationFields in `data`
overviewitems (VolatilityItem)
asset_classasset_class, items (VolatilityItem)
symbolsitems (VolatilityItem)
detailitem (VolatilityDetailItem)
historyresolution, sampling_rule, items (VolatilityItem)
regimeitem (VolatilityRegimeItem)

Types used in the table above:

TypeFields
VolatilityItemsymbol, snapshot_ts, rv_annualized_fraction, rv_percentile_pct, rv_trend, gk_daily_fraction, gk_trend, adr_ticks, current_range_ticks, current_range_vs_adr_pct, hmm_regime, switch_risk_pct, expansion_probability_pct, hmm_model_version_id, inference_mode, partial_session, fallback_reason, source_asof, freshness (VolatilityFreshness)
VolatilityFreshnessstatus, age_seconds, basis
VolatilityDetailItemsymbol, snapshot_ts, rv_annualized_fraction, rv_percentile_pct, rv_trend, gk_daily_fraction, gk_trend, adr_ticks, current_range_ticks, current_range_vs_adr_pct, hmm_regime, switch_risk_pct, expansion_probability_pct, hmm_model_version_id, inference_mode, partial_session, fallback_reason, source_asof, freshness (VolatilityFreshness), provenance (VolatilityProvenance)
VolatilityProvenancemodel_id, fitted_at, source_metric, transform_chain, annualization_factor, winsorize_pct, clip_floor, training_window_start, training_window_end, n_obs, decoder, transform_cutoff_policy, refit_cadence, session_definition, convergence_status
VolatilityRegimeItemsymbol, snapshot_ts, regime, confidence_fraction, coverage_fraction, model_version, regime_authority, inference_mode, fallback_reason

query_volatility semantics and refusals

  • switch_risk_pct and expansion_probability_pct are percents. A null value means that no model value exists; it never means 0.
  • The live regime labels are Compressed, Normal-Rising and Spike-Rising. A fallback row carries Compressed or Unknown plus a fallback_reason. The labels are the expected values; the service does not validate a stored label against this list.
  • partial_session marks a bar of the UTC day that is still forming. Regimes come from the last completed UTC day.
  • An empty scope returns success with the warning volatility_data_unavailable. A range whose end is before its start is rejected.
  • Other warnings: source_observation_freshness_unavailable, volatility_source_stale and historical_scope.
  • Typed errors: invalid_cursor, scope_unavailable, provider_unavailable and payload_too_large.

query_correlations

Serves correlation snapshots between pairs of markets. For the regime of one market use the regime operation of query_volatility.

Without a request the tool runs summary with the default values shown in the tables below.

OperationWhat it returns
summaryThe strongest positive, strongest negative and unstable pairs of the six-symbol core set. This is the default.
searchPairs that match at least one constraint (symbol, asset_class or relation).
pairsThe correlation rows of 1 to 25 explicit pairs.
matrixThe full pair grid for exactly one scope: the core set, 2 to 12 symbols, or one asset class.
detailThe full correlation row of one pair with opt-in evidence blocks.
historyFrozen all-pairs history rows for 1 to 10 explicit pairs over a time range at hourly or daily resolution: the pair's stored regression values and the regime it had at that hour. A core pair's history row is the same 8h/24h window as the live core row; a non-core pair's live row (search, non-core detail, explicit-symbol matrix) uses the hourly snapshot method, so its history row is the all-pairs grid value and can differ.

query_correlations operation summary

ParameterTypeRequiredDefaultLimitsMeaning
horizonstringno24hone of 8h, 24hCorrelation return horizon: 8h or 24h rolling correlations. Default 24h; the 1h horizon was removed, and a request for it is refused with the accepted values named.
per_category_limitintegerno5min 1; max 10Maximum pairs per category (strongest, weakest, unstable), 1-10. Default 5.
universestringnocorealways coreScope, the only accepted value. core covers six symbols (ES=F, ZN=F, CL=F, GC=F, 6E=F, VX=F); pairs whose last snapshot is older than 7 days are excluded with a count.
ParameterTypeRequiredDefaultLimitsMeaning
asset_classstring or nullnonullmin length 1; max length 64Optional free-form asset-class string. At least one of symbol, asset_class, or relation is required.
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor.
horizonstringno24hone of 8h, 24hCorrelation return horizon: 8h or 24h rolling correlations. Default 24h; the 1h horizon was removed, and a request for it is refused with the accepted values named.
limitintegerno50min 1; max 100Maximum pairs returned, 1-100. Default 50.
relationstring or nullnonullone of positive, negative, strong, unstableOptional relation bucket: positive, negative, strong, or unstable correlation bucket. At least one of symbol, asset_class, or relation is required.
symbolstring or nullnonullmin length 1; max length 32Optional anchor symbol, a futures root with =F suffix. At least one of symbol, asset_class, or relation is required.

query_correlations operation pairs

ParameterTypeRequiredDefaultLimitsMeaning
horizonstringno24hone of 8h, 24hCorrelation return horizon: 8h or 24h rolling correlations. Default 24h; the 1h horizon was removed, and a request for it is refused with the accepted values named.
pairsarray of objectyes—min items 1; max items 25Explicit pairs, 1-25 entries. Pairs must be unique regardless of leg orientation.
pairs[].symbol1stringyes—min length 1; max length 32First leg of the pair, a futures root with =F suffix. The two legs must differ.
pairs[].symbol2stringyes—min length 1; max length 32Second leg of the pair, a futures root with =F suffix. The two legs must differ.

query_correlations operation matrix

ParameterTypeRequiredDefaultLimitsMeaning
asset_classstring or nullnonullmin length 1; max length 64Scope option: free-form asset-class string. Exactly one of universe, symbols, or asset_class is required.
horizonstringno24hone of 8h, 24hCorrelation return horizon: 8h or 24h rolling correlations. Default 24h; the 1h horizon was removed, and a request for it is refused with the accepted values named.
symbolsarray of string or nullnonullmin items 2; max items 12Scope option: 2-12 explicit symbols, unique. Exactly one of universe, symbols, or asset_class is required.
universestring or nullnonullalways coreScope option: the six-symbol core set. Exactly one of universe, symbols, or asset_class is required.

query_correlations operation detail

ParameterTypeRequiredDefaultLimitsMeaning
includearray of stringno[]max items 4; one of metadata, hmm, regression, provenanceOpt-in nested evidence blocks: metadata, hmm, regression, provenance. An unlisted block stays null, which means not requested, not unavailable.
pairobjectyes——The pair to detail, two distinct symbols.
pair.symbol1stringyes—min length 1; max length 32First leg of the pair, a futures root with =F suffix. The two legs must differ.
pair.symbol2stringyes—min length 1; max length 32Second leg of the pair, a futures root with =F suffix. The two legs must differ.

query_correlations operation history

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor.
endstring (date-time)yes——Range end, timezone-aware. Must be after start; the range may span at most 7 days at hourly resolution or 366 days at daily.
limitintegerno100min 1; max 300Maximum rows returned, 1-300. Default 100.
pairsarray of objectyes—min items 1; max items 10Explicit pairs, 1-10 entries. Pairs must be unique regardless of leg orientation.
pairs[].symbol1stringyes—min length 1; max length 32First leg of the pair, a futures root with =F suffix. The two legs must differ.
pairs[].symbol2stringyes—min length 1; max length 32Second leg of the pair, a futures root with =F suffix. The two legs must differ.
resolutionstringyes—one of hourly, dailyBucket resolution. hourly returns the frozen 15m/30m window point of each UTC hour; daily returns the last stored hour of each UTC day.
startstring (date-time)yes——Range start, timezone-aware. Must be before end; the range may span at most 7 days at hourly resolution or 366 days at daily.

query_correlations result fields

Rows are compact pairs; detail adds the evidence blocks you ask for through include.

OperationFields in `data`
summarystrongest_positive (CorrelationCompactPair), strongest_negative (CorrelationCompactPair), unstable (CorrelationCompactPair)
searchitems (CorrelationCompactPair)
pairsitems (CorrelationCompactPair), missing_pairs (PairSelector)
matrixsymbols, expected_pair_count, missing_pair_count, cells (CorrelationCompactPair)
detailitem (CorrelationDetailItem)
historyresolution, sampling_rule, items (CorrelationHistoryPoint)

Types used in the table above:

TypeFields
CorrelationCompactPairsymbol1, symbol2, snapshot_ts, corr_1h, corr_8h, corr_24h, hmm_regime, switch_risk_pct, hmm_is_stale, inference_mode, fallback_reason
PairSelectorsymbol1, symbol2
CorrelationDetailItemsymbol1, symbol2, snapshot_ts, corr_1h, corr_8h, corr_24h, hmm_regime, switch_risk_pct, hmm_is_stale, inference_mode, fallback_reason, regression (CorrelationRegression), metadata (CorrelationMetadataDetail), hmm (CorrelationHmmDetail), series_provenance, calculated_at
CorrelationRegressionbeta_orientation, beta_1h, r_squared_1h, beta_8h, r_squared_8h, beta_24h, r_squared_24h
CorrelationMetadataDetailcorr_1h (CorrelationHorizonDetail), corr_8h (CorrelationHorizonDetail), corr_24h (CorrelationHorizonDetail)
CorrelationHorizonDetailn_obs, base_freq, lookback_hours, coverage_ratio, quality_tier
CorrelationHmmDetailregime, switch_risk_pct, state_probs (CorrelationNamedNumber), predictions (CorrelationPrediction), method_version, mode, reason, hmm_asof, source_last_bar_ts, last_processed_ts, staleness_seconds, is_stale, base_freq, inference_mode, decoder, transform_cutoff_policy, refit_cadence, convergence_status, param_train_start, param_train_end, fallback_reason
CorrelationNamedNumbername, value
CorrelationPredictionname, steps (CorrelationPredictionStep)
CorrelationPredictionStepstep, probabilities (CorrelationNamedNumber)
CorrelationHistoryPointbucket_ts, snapshot_ts, symbol1, symbol2, corr_1h (always null), corr_8h, corr_24h, beta_8h, beta_24h, r_squared_8h, r_squared_24h, hmm_regime

query_correlations semantics and refusals

  • corr_1h, corr_8h and corr_24h are raw Pearson correlations. On history, corr_1h is always null: that horizon was removed and a request for it is refused.
  • On history, beta_8h, beta_24h, r_squared_8h and r_squared_24h are stored with the row, never computed at read time: beta is Cov(r_symbol2, r_symbol1) / Var(r_symbol1) with symbol1 the pair's stored first leg, r_squared is the square of the correlation, and both are null when the correlation is null. hmm_regime is the regime the pair had AT that hour: the latest causal HMM label with an as-of stamp at or before the hour, and null when the newest label is more than an hour older (a newer label would be look-ahead).
  • hmm_regime is a bucket of the rolling correlation (Very-Positive, Mod-Positive, Neutral, Mod-Negative, Very-Negative, with edges at 0.7, 0.3, -0.3 and -0.7; Unknown when it is unavailable; the service does not validate a stored label against this list). It is not the output of a hidden-state model. The hidden-state facts are in the hmm block of detail.
  • summary, search and matrix drop pairs whose last snapshot is older than 7 days, and summary reports the count. pairs and detail serve rows up to 365 days old.
  • source_asof is the data time, except on history. Open-market data older than 120 minutes raises the warning correlation_source_stale.
  • switch_risk_pct is provisional and indicative only. The unstable list is transient.
  • The tool does not average, rank or combine pairs.
  • With nothing stored, detail returns the typed error no_data; every other operation returns success with the warning correlation_data_unavailable.
  • Other warnings: correlation_dead_pairs_excluded, correlation_dead_pair_count_unavailable, correlation_freshness_write_time_fallback, correlation_hmm_stale, requested_pairs_missing, material_change_unavailable, switch_risk_provisional and symbol_retired.
  • Typed errors: no_data, invalid_cursor, scope_unavailable (also a matrix asset-class scope over 12 symbols: request a subset), provider_unavailable and payload_too_large.

query_rates

Serves bounded, persisted Treasury-curve and short-term interest rate (STIR) spread rows. The tool reads stored spreads; it reads no outright price and calculates no spread when it is called.

Without a request the tool runs overview with the default values shown in the tables below.

OperationWhat it returns
overviewThe latest curve spreads plus the latest STIR spreads. This is the default.
curveThe latest Treasury curve spreads.
curve_analysisThe named curve spreads with their stance.
stirThe latest STIR spreads for the named spread types.
stir_matrixThe front-by-back spread grid for 2 to 12 named contracts.
historyPersisted spread rows of one family over a time range at hourly or daily resolution.

query_rates operation overview

ParameterTypeRequiredDefaultLimitsMeaning
curve_limitintegerno15min 1; max 20Maximum curve spreads returned, 1-20. Default 15.
stir_limitintegerno20min 1; max 50Maximum STIR spreads returned, 1-50. Default 20.

query_rates operation curve

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor; a superseded revision reads back cursor_stale.
limitintegerno20min 1; max 20Maximum spreads returned, 1-20. Default 20.

query_rates operation curve_analysis

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor; a superseded revision reads back cursor_stale.
limitintegerno20min 1; max 20Maximum spreads returned, 1-20. Default 20.
spread_idsarray of stringyes—min items 1; max items 20Explicit spread ids, 1-20 entries, taken from a curve response. Entries must be unique.
stancestring or nullnonullmin length 1; max length 64Optional stance label; matched exactly against stored stances. Omit for no stance filter.

query_rates operation stir

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor; a superseded revision reads back cursor_stale.
limitintegerno50min 1; max 50Maximum spreads returned, 1-50. Default 50.
spread_typesarray of stringyes—min items 1; max items 8Explicit spread-type strings, 1-8 entries, matched verbatim against stored spread types.

query_rates operation stir_matrix

ParameterTypeRequiredDefaultLimitsMeaning
contractsarray of stringyes—min items 2; max items 12Explicit contract symbols, 2-12 entries. Entries must be unique.

query_rates operation history

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor; a superseded revision reads back cursor_stale.
endstring (date-time)yes——Range end, timezone-aware. Must be after start; the range may span at most 31 days at hourly resolution or 730 days at daily.
familystringyes—one of curve, stirWhich spread family to read: curve (Treasury spreads) or stir.
limitintegerno100min 1; max 500Maximum rows returned, 1-500. Default 100.
resolutionstringyes—one of hourly, dailyBucket resolution. hourly samples the latest persisted spread snapshot per UTC hour; daily per UTC day.
spread_idsarray of stringyes—min items 1; max items 20Explicit spread ids, 1-20 entries, taken from a curve or STIR response. Entries must be unique.
startstring (date-time)yes——Range start, timezone-aware. Must be before end; the range may span at most 31 days at hourly resolution or 730 days at daily.

query_rates result fields

Rows are curve or STIR spread items; the matrix returns sparse cells.

OperationFields in `data`
overviewcurve (RateSpreadItem), stir (RateSpreadItem)
curveitems (RateSpreadItem)
curve_analysisitems (RateSpreadItem)
stiritems (RateSpreadItem)
stir_matrixcontracts, expected_cell_count, missing_cell_count, cells (RatesMatrixCell)
historyfamily, resolution, source, sampling_rule, ohlc_basis, ratio_basis, items (RatesHistoryItem)

Types used in the table above:

TypeFields
RateSpreadItemspread_id, asof_ts, spread_price, price_basis, return_basis, spread_type, front_symbol, back_symbol, stance, return_1d_fraction, return_1d_bp, status, reason, legs (SpreadLegItem), skew_s, stale, stale_leg, source_asof, metrics (CurveShapeMetrics), bp_metrics (CurveShapeBpMetrics)
RatesHistoryItemEvery RateSpreadItem field, plus quality, complete, served_depth, limiting_leg
SpreadLegItemcontract, asof_ts, age_s, stale
CurveShapeMetricslevel, slope, curvature, basis, inputs, source_asof, stale, stale_leg
CurveShapeBpMetricsbasis, inputs, level_bp, slope_bp, curvature_bp, table_as_of, as_of_inferred, table_version, linearized, reason, legs (CurveShapeBpLeg)
CurveShapeBpLegroot, contract, table_symbol, contract_month, dv01_used, ref_price, ref_yield, trusted, yield_bp
RatesMatrixCellfront_contract, back_contract, spread_id, spread_price, price_basis, asof_ts, status, reason, legs (SpreadLegItem), skew_s, stale, stale_leg, source_asof

query_rates semantics and refusals

  • A Treasury spread has price_basis synthetic_futures_price. A STIR spread has price_basis futures_price_points. return_basis is fractional_change (a fraction, not a percent) for the curve family and bp_change for STIR. A spread row carries return_1d_fraction or return_1d_bp, never both: return_1d_bp is the STIR family's absolute change in basis points and is null for curve.
  • curve_analysis carries the stored curve shape twice. metrics is the ICS price-point shape on ZT, ZF and ZN: level is the ZN last price, slope is TUT (up = the 2s10s is steeper) and curvature is TUF - FYT (up = the belly cheapened against the wings), all in price points with basis ics_price_points. Its fly is not DV01-neutral, so read it as a statement about the configured ICS quantities. bp_metrics is the same curve in yield basis points from a committed cheapest-to-deliver DV01 table: level_bp is the TY yield, slope_bp is TY minus TU and curvature_bp is twice the FV yield minus the wings, with the same signs, basis ctd_futures_yield_bp and linearized true because the conversion is first order. The server copies both shapes from the stored rows and computes neither, and both are null outside curve_analysis.
  • The three bp numbers are null together with a reason whenever the bp shape is not servable. The seven reasons are the whole set, not free text: dv01_table_absent, served_contract_unknown, dv01_table_contract_mismatch (a leg's served contract month is not the table's, which is what a front month that has rolled past the table gives), dv01_table_stale (the table is more than ten trading days old), dv01_table_row_untrusted, leg_price_unavailable and leg_yield_drift_over_25bp (a leg moved more than 25 bp from its reference). legs still lists what each leg used: its root, the served contract, the table row and month, and the DV01, reference price and reference yield read from that row, so a withheld shape is explainable. A null bp shape is not an outage: the price-space shape still serves.
  • A spread row carries its own claim about itself. status is healthy, stale or unavailable, and only unavailable carries a null spread_price with a reason. legs holds one entry per leg with that leg's last real-trade asof_ts, its age_s in open-session seconds (a weekend adds none) and stale, which is age_s above 1800 open-session seconds. skew_s is the open-session gap between the legs' last real trades, stale_leg names the first thin leg, and source_asof is the oldest leg trade, which on a current spread row is also asof_ts. A stale row is served with the warning rates_spread_stale, never hidden and never a degradation; a row whose leg has no real trade carries rates_spread_unavailable, and the answer degrades with source_unavailable only when every returned row is unavailable.
  • stir_matrix cells carry the same marks as a spread row, because a cell is built from one stored spread row: a thin leg is served and marked, never omitted from the grid.
  • history reads the stored spread bars of both families, one bar per interval bucket. On a history row asof_ts is the bar's bucket start, and source_asof is the instant that priced the close: on a 1d bar the writer's stored close instant, and otherwise the later leg last-trade instant. A current spread row instead carries the oldest leg trade in asof_ts. quality is the stored mark of the bar, currently ok, asof, leg_stale or leg_session_closed; the field is plain text rather than a closed set, and a bar stored before an old mark was retired can still carry leg_skew_exceeded. complete is the writer's bucket verdict, served_depth is the later first one-minute bar of the row's own legs and limiting_leg names the leg that sets it (front, leg2 or back). The envelope states source spread_candles, sampling_rule stored_spread_bar_per_interval_bucket, and ohlc_basis and ratio_basis as the page's single stored value, or mixed when the page holds more than one. No history row carries a return_1d_fraction: it is null on both families, because the stored bar records no 1-day change. A curve history row answers null stance and null spread_type; a STIR history row answers null stance and carries its change in return_1d_bp.
  • A history row derives legs while it reads, because the stored bar keeps only each leg's last real trade: age_s is measured in open-session seconds at the row's own reference instant (the bucket end for an intraday bar, the trade date's last session end for a 1d bar, capped at now for a forming bar), never at the time of the request. A leg with no real trade yet in the trade date answers null asof_ts and age_s with stale true. An empty legs list means the row is unmeasured, never fresh.
  • A STIR history row has stance null and spread_type derived from the id (calendar_1q, fly_consecutive or ef_spread), and its return_1d_bp is the absolute change in basis points against the stored close of the same spread on the previous expected trade date, null when that date has no close; the lookup never reaches further back than one expected trade date. A STIR id is always a fixed one (SR3U26-Z26, a butterfly such as SR3U26-Z26-H27, or an EF id such as EF-Z26@F27G27): the legs never move, EF ids never roll, and a generic id such as EF-front is refused as invalid_argument with the accepted values named rather than served as an empty series.
  • The matrix returns the persisted directed cells only. It does not synthesize diagonals or reverse cells.
  • history needs spread identifiers from a curve or stir response, time bounds, a fixed resolution, and it continues with a stable keyset cursor. A malformed STIR id answers invalid_argument with the offending parameter, its invalid value and the valid values; a well-formed id with no stored bar, or an absent stored relation, answers series_unavailable; a stored series with no bar inside the range answers no_data_in_range. Each of those three is carried as the same warning code and as the degradation of that code, never as an empty page.
  • Warnings: rates_source_stale, rates_data_unavailable, rates_spread_stale, rates_spread_unavailable, stir_matrix_partial and historical_scope.
  • Typed errors: invalid_argument, invalid_cursor, cursor_stale, scope_unavailable, series_unavailable, no_data_in_range, provider_unavailable; an over-size answer returns payload_too_large.

query_candles

Discovers and pages bounded, persisted candle series. Use discover to list which series and intervals exist, then bars to page them. It is not the tool for the current price: use query_market.

Without a request the tool runs discover with the default values shown in the tables below.

OperationWhat it returns
discoverWhich candle series exist for an optional symbol, interval or session scope filter. This is the default.
barsPersisted bars for one symbol, one interval and one session scope, newest first, in a descending keyset page.

query_candles operation discover

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor.
intervalstring or nullnonullone of 1m, 5m, 15m, 30m, 1h, 4h, 1dOptional bar interval filter: 1-minute, 5-minute, 15-minute, 30-minute, 1-hour, 4-hour or 1-day bars. Omit for all intervals.
limitintegerno50min 1; max 100Maximum series returned, 1-100. Default 50.
scopestring or nullnonullone of eth, rthOptional session scope filter: eth (full exchange day) or rth (cash hours). Omit for all scopes. A stored =F series is a full exchange day series, so scope=rth lists no continuous series.
symbolstring or nullnonullmin length 1; max length 32Optional symbol filter: a futures root with =F suffix from the catalogue. An explicit contract matches nothing and returns empty with a candle_series_unavailable warning. Omit for all symbols.

query_candles operation bars

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor; a superseded revision reads back cursor_stale.
endstring (date-time) or nullnonull—Range end, timezone-aware; omit for now. Must be after start when both are given.
intervalstringyes—one of 1m, 5m, 15m, 30m, 1h, 4h, 1dBar interval: 1-minute, 5-minute, 15-minute, 30-minute, 1-hour, 4-hour or 1-day bars, read from the relation of the requested scope.
limitintegerno100min 1; max 100Maximum bars returned, 1-100. Default 100.
scopestringnoethone of eth, rthSession scope. eth (default) is the full exchange day; rth is the cash hours. An interval or scope outside the served set is refused at validation, and a =F series with scope=rth answers a typed refusal.
seriesstring or nullnonullone of raw, continuous_backward_difference_latest.v2, continuous_backward_ratio_latest.v2Price series. Omit to take the ruled default: ratio-ruled roots serve continuous_backward_ratio_latest.v2, difference-ruled roots serve continuous_backward_difference_latest.v2, explicit contracts serve raw. =F roots reject raw; explicit contracts accept only raw. Continuous series are back-adjusted, not raw prices; every bar carries method and cum_factor.
startstring (date-time) or nullnonull—Range start, timezone-aware. With no start the answer is the latest bars, newest first, read from a bounded window that reaches at least 30 days and four buckets per requested bar back from end; the cursor pages back inside that same window. An older range needs an explicit start. When end is omitted the window end moves between pages, so a client that pages should pass an explicit end. A series with no bar inside the window is refused with the typed error data_limit, whose message names the depth of the stored history, or with no_data_in_range when no data limit is known. Must be before end when both are given.
symbolstringyes—min length 1; max length 32Futures root with =F suffix (continuous series) or an explicit contract symbol (raw bars only).

query_candles result fields

discover returns series items. bars returns the series identity, the applied roll boundaries once in data.roll_events, and one bar per row; a bar states how many of those boundaries it crossed in roll_events_crossed_count. The retired per-bar roll_events_crossed list is null.

OperationFields in `data`
discoveritems (CandleSeriesItem)
barssymbol, continuation (ContinuationIdentity), interval, scope, source, data_limit (CandleDataLimit), series, series_revision, exchange_session_profile_id, window_basis, volume_basis, price_zero_policy, microstructure_available, adjustment (CandleAdjustmentState), roll_events (CandleBarRollEvent), items (CandleBar)

Types used in the table above:

TypeFields
CandleSeriesItemsymbol, interval, scope, series, series_revision, adjustment (CandleAdjustmentState), source_asof_utc, exchange_session_profile_id, window_basis, volume_basis, price_zero_policy, microstructure_available
CandleAdjustmentStateledger_generation, adjustment_version, built_at, method, anchor_roll_ts
CandleDataLimitroot, scope, earliest_available_day, reason, source
ContinuationIdentitysymbol, root, continuation, active_contract
CandleBartimestamp, trade_date, open, high, low, close, volume, num_trades, bid_volume, ask_volume, delta, vwap, poc, vah, val, source_contract, method, cum_factor, factor_generation, roll_events_crossed (retired, always null), roll_events_crossed_count
CandleBarRollEventtimestamp, from_contract, to, method, confidence

data.roll_events states the applied roll boundaries of the served generation once per response, ascending by boundary then from: every boundary strictly after the first served bar's own start and at or before the series' build instant. It is empty when no served bar is adjusted. Each bar's roll_events_crossed_count is the number of those boundaries with a boundary after its own timestamp, so the counted events are the suffix roll_events[len(roll_events) - roll_events_crossed_count:]; a bar stamped exactly at a boundary excludes it. The full roll ledger is at GET /api/candles/{symbol}/roll-dates.

query_candles series, volume and refusals

  • A =F root defaults to its ruled series: continuous_backward_ratio_latest.v2 for a root with the ratio rule, continuous_backward_difference_latest.v2 for a root with the difference rule. A root with no rule and ^VIX are refused. An explicit contract symbol serves the raw series only, and a =F root rejects raw.
  • A continuous series is back-adjusted and is not a raw price. Every bar carries method and cum_factor. A zero open, high, low or close is not a price: under the zero-price policy named in price_zero_policy it is served as null (unavailable).
  • Daily volume is the sum of all trades of the session. Intraday volume from the standard bar source excludes unbundled sub-trades, so volume and num_trades read 24 to 38 percent low, the sign of delta is wrong on about one bar in nine, and high and low are the ask and bid quotes. These rows carry the warning intraday_volume_excludes_unbundled.
  • A server can build the intraday bars of an explicit contract from the engine's own bars. In that source every trade is counted, the warning above is absent and no forming bar is returned.
  • A 1-day series can carry the warning daily_history_incomplete. A symbol filter that names an explicit contract returns an empty discover result with the warning candle_series_unavailable.
  • discover with scope rth lists no continuous series by design, because every stored =F series is a full exchange day series. That empty page carries the warning candle_scope_not_stored and no degradation: the catalogue is healthy, and scope eth lists the stored series. Any other empty discover page carries candle_series_unavailable and the degradation source_unavailable.
  • A bars answer states the root's own data limit in data_limit when a 1-day request opens before the root's first stored day, or when an answer holds no bar: root, scope, earliest_available_day (null when no authority names a day), a reason and a source. reason is range_before_first_complete_day when a 1-day range opens before the first stored day, no_rows_for_root when a read finds no row at all (a 1-day latest-rows read whose window holds no bar, or a root with no stored bar at any interval), and no_rows_in_window when a latest-rows read of an intraday finds no row inside its own bounded window while the series does hold history. A 1-day latest-rows read whose window holds no bar still names the first stored day when an authority names one, so no_rows_for_root never states that the root stores nothing: an expired contract whose bars all predate the window is answered with the root's first stored day. An intraday read with an explicit start states no limit for a range that opens before the first stored day. source names the authority behind the day: engine_bar_table when it is the engine bar relation's own first stored bar, stored_adjusted_series when it is the stored =F series' first bar, front_contract_schedule when the front-contract schedule names the day, and no_schedule when no authority names one (then earliest_available_day is null). The limit names the depth of the history; it never trims or fills an answer.
  • A 1-day bars page whose range opens before that limit carries the warning candle_data_limit and still serves its rows. An empty bars answer with a known limit returns the typed error data_limit, whose message names the first stored day and its authority when an authority names one and states that none does otherwise, instead of no_data_in_range; an empty answer with no known limit returns no_data_in_range.
  • A stored =F series is a full exchange day series: rth reads the cash-hours engine bar table and a bars request for a =F symbol with scope rth is refused. An interval or scope outside the list above is refused at validation, never approximated. A response states the relation it read in source: bar_eth, bar_rth or the stored adjusted series of a =F root.
  • An adjusted-series cursor binds to the series revision. When the revision is superseded, the cursor reads back as cursor_stale.
  • Other warnings: microstructure_unavailable, adjusted_series_revision, daily_series_availability, candle_data_limit, candle_scope_not_stored, candle_series_availability_empty and candle_series_availability_unavailable.
  • Typed errors: data_limit, no_data_in_range, invalid_argument, invalid_cursor, cursor_stale, scope_unavailable, series_unavailable, provider_unavailable and payload_too_large.

query_options

Serves futures-options end-of-day settlement analytics by operation. It serves the certified roots ES, ZN, SR3 and 6E; see Futures options. For the underlying price use query_market; for underlying bars use query_candles.

The root is 1 to 8 upper-case letters or digits with an optional =F suffix; a value outside that form fails schema validation before options_unavailable can apply. An expiry is selected with front, nth:N (N from 1 to 20, ordered by expiry time), YYYY-MM (the earliest expiry in that month) or the scope_id that state or term returned. Call state or term first to resolve expiry values for smile, distribution, changes and chain.

Without a request the tool runs state with the default values shown in the tables below.

OperationWhat it returns
statePer certified root: 30-day and 60-day constant-maturity at-the-money implied volatility and the front expiries. No strike grid. This is the default.
smileThe fitted smile and the fit quality of one expiry.
termEvery expiry of one root plus the constant-maturity points.
distributionQuantiles, moments and quality gates of one expiry; the probability of an interval; the rate terms for SR3.
changesDay-over-day change in at-the-money implied volatility, risk reversal, butterfly and open interest by strike bucket.
chainThe option nodes of one expiry inside a delta window or a strike window.
historyOne metric of one root over trade dates.

query_options operation state

ParameterTypeRequiredDefaultLimitsMeaning
expiriesintegerno2min 1; max 4Front expiries returned per root, 1-4. Default 2.
rootsarray of string or nullnonullmin items 1; max items 8; min length 1; max length 10Roots to include, 1-8 entries. Omit for every certified root.

query_options operation smile

ParameterTypeRequiredDefaultLimitsMeaning
expirystringnofrontmin length 1; max length 64Expiry selector: front (default), nth:N (1-20, by expiry time), YYYY-MM (earliest expiry in that month), or a scope_id returned by state or term. An unknown expiry returns expiry_not_found.
rootstringyes—min length 1; max length 10Options root such as ES, ZN, SR3 or 6E; a trailing =F is accepted. A root outside the certified set returns options_unavailable.

query_options operation term

ParameterTypeRequiredDefaultLimitsMeaning
rootstringyes—min length 1; max length 10Options root such as ES, ZN, SR3 or 6E; a trailing =F is accepted. A root outside the certified set returns options_unavailable.

query_options operation distribution

The probability in prob_between is read from the stored cumulative distribution. It is clamped and flagged tail_bounded when the interval reaches outside the stored grid. terms rate returns rate terms only for an expiry that stores a rate block (SR3); otherwise rate_terms_available is false.

ParameterTypeRequiredDefaultLimitsMeaning
expirystringnofrontmin length 1; max length 64Expiry selector: front (default), nth:N (1-20, by expiry time), YYYY-MM (earliest expiry in that month), or a scope_id returned by state or term. An unknown expiry returns expiry_not_found.
include_cdfbooleannofalse—Return the stored CDF points as well. Default false.
prob_betweenobject or nullnonull—Optional interval; the probability is looked up on the stored CDF, clamped and flagged tail_bounded outside it. Omit for no probability.
prob_between.lowernumberyes——Lower bound of the probability interval, in the units of terms (price or rate). Must be below upper.
prob_between.uppernumberyes——Upper bound of the probability interval, in the units of terms (price or rate). Must be above lower.
rootstringyes—min length 1; max length 10Options root such as ES, ZN, SR3 or 6E; a trailing =F is accepted. A root outside the certified set returns options_unavailable.
termsstringnopriceone of price, rateUnits of the distribution: price (default) or rate. rate applies to SR3 only.

query_options operation changes

ParameterTypeRequiredDefaultLimitsMeaning
expirystringnofrontmin length 1; max length 64Expiry selector: front (default), nth:N (1-20, by expiry time), YYYY-MM (earliest expiry in that month), or a scope_id returned by state or term. An unknown expiry returns expiry_not_found.
rootstringyes—min length 1; max length 10Options root such as ES, ZN, SR3 or 6E; a trailing =F is accepted. A root outside the certified set returns options_unavailable.

query_options operation chain

The expiry of a chain request is required. The window is the absolute-delta range (delta_min_abs, delta_max_abs) unless you send both strike_min and strike_max. delta_min_abs must be below delta_max_abs.

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor; a superseded revision reads back cursor_stale.
delta_max_absnumberno0.95min 0.0; max 1.0Upper edge of the absolute-delta window, 0-1. Default 0.95.
delta_min_absnumberno0.05min 0.0; max 1.0Lower edge of the absolute-delta window, 0-1. Default 0.05. Must be below delta_max_abs.
expirystringyes—min length 1; max length 64Expiry selector: front (default), nth:N (1-20, by expiry time), YYYY-MM (earliest expiry in that month), or a scope_id returned by state or term. An unknown expiry returns expiry_not_found.
limitintegerno40min 1; max 100Maximum nodes returned per page, 1-100. Default 40.
rootstringyes—min length 1; max length 10Options root such as ES, ZN, SR3 or 6E; a trailing =F is accepted. A root outside the certified set returns options_unavailable.
strike_maxnumber or nullnonull—Upper strike of an explicit strike window. Requires strike_min.
strike_minnumber or nullnonull—Lower strike of an explicit strike window. Requires strike_max.

query_options operation history

A range may not exceed 370 days. The metrics atm_iv_30d and atm_iv_60d are constant-maturity metrics of the term structure.

ParameterTypeRequiredDefaultLimitsMeaning
cursorstring or nullnonull—Opaque scope-bound keyset token from the previous page; omit on the first page. A token from another scope fails with invalid_cursor.
end_datestring (date) or nullnonull—Last trade date, inclusive. Must not precede start_date.
expirystringnofrontmin length 1; max length 64Expiry selector: front (default), nth:N (1-20, by expiry time), YYYY-MM (earliest expiry in that month), or a scope_id returned by state or term. An unknown expiry returns expiry_not_found.
limitintegerno60min 1; max 250Maximum points returned per page, 1-250. Default 60.
metricstringnoatm_ivone of atm_iv, expected_move_points, rr25, bf25, atm_iv_30d, atm_iv_60dMetric to return: atm_iv (default), expected_move_points, rr25, bf25, atm_iv_30d or atm_iv_60d.
rootstringyes—min length 1; max length 10Options root such as ES, ZN, SR3 or 6E; a trailing =F is accepted. A root outside the certified set returns options_unavailable.
start_datestring (date) or nullnonull—First trade date, inclusive. The range may not exceed 370 days.

query_options result fields

Every result carries provenance with the settlement trade_date, the as_of time and a freshness class (see Futures options).

OperationFields in `data`
stateitems (OptionsStateItem), unavailable (OptionsRootUnavailable)
smileroot, provenance (OptionsProvenance), expiry (OptionsExpirySummary), exercise_style, future_settle, smile (OptionsSmile), smile_eur (OptionsSmile), quality (OptionsExpiryQuality)
termroot, provenance (OptionsProvenance), status, reason, points (OptionsTermPoint), constant_maturity (OptionsConstantMaturities)
distributionroot, provenance (OptionsProvenance), expiry (OptionsExpirySummary), status, reason, gates (OptionsDistributionGates), distribution (OptionsDistributionBody), rate_terms_available, prob_between (OptionsProbability)
changesroot, provenance (OptionsProvenance), expiry (OptionsExpirySummary), prior_trade_date, d_atm_iv, d_rr25, d_bf25, oi (OptionsOpenInterest)
chainroot, provenance (OptionsProvenance), expiry (OptionsExpirySummary), window (OptionsChainWindow), items (OptionsChainNode)
historyroot, metric, scope_id, items (OptionsHistoryPoint)

Types used in the table above:

TypeFields
OptionsStateItemroot, provenance (OptionsProvenance), term (OptionsTermSummary), expiries (OptionsExpirySummary)
OptionsProvenancemethodology_version, kernel_source, trade_date, as_of, oi_trade_date, settle_build_id, oi_build_id, freshness (OptionsFreshness)
OptionsFreshnessstatus, expected_trade_date, sessions_behind
OptionsTermSummarystatus, reason, constant_maturity (OptionsConstantMaturities)
OptionsConstantMaturitiestenor_30d (OptionsConstantMaturity), tenor_60d (OptionsConstantMaturity)
OptionsConstantMaturitystatus, atm_iv, t_lo, t_hi, reason
OptionsExpirySummaryscope_id, option_product, maturity, expiry_ts, status, reason, atm_iv, expected_move_points, rr25, bf25, activity (OptionsActivity)
OptionsActivityn_nodes, n_oi_present, n_volume_present, call_volume, put_volume, put_call_oi, put_call_volume, volume_to_oi
OptionsRootUnavailableroot, reason
OptionsSmilestatus, n_nodes, atm_iv, atm_skew, atm_curvature, rr25, bf25, expected_move_1sd, fit_rmse_iv, butterfly_arbitrage, fit (OptionsSmileFit), warnings
OptionsSmileFita, b, rho, m, s
OptionsExpiryQualitysmile_status, smile_eur_status, n_nodes, n_floor, fit_rmse_iv, butterfly_arbitrage, rate_source, parity_rmse, theoretical_settle_share, distribution_status
OptionsTermPointscope_id, expiry_ts, t_years, atm_iv, rr25, bf25, expected_move_1sd, status
OptionsDistributionGatesmean_error_bp, negative_mass, negative_mass_tail, extrapolated_mass, mass_outside_grid, failed, warned
OptionsDistributionBodyterms, unit, futures_rate, moments, mean, std, skew, excess_kurtosis, quantiles, cdf (OptionsCdf)
OptionsCdfinterpolation, outside, max_interp_error, points
OptionsProbabilityterms, lower, upper, probability, tail_bounded, max_interp_error
OptionsOpenInteresttotal, calls, puts, doi_total, doi_by_bucket (OptionsDoiBucket)
OptionsDoiBucketz_lo, z_hi, doi_calls, doi_puts
OptionsChainWindowkind, lower, upper
OptionsChainNodestrike, put_call, model_id, settle_price, iv, fit_iv, iv_residual, iv_eur, eep, delta, delta_sticky_moneyness, gamma, vega, vanna, volga, charm_1d, open_interest, doi, cleared_volume, flags, greeks_asof_build
OptionsHistoryPointtrade_date, as_of, value, status, reason, methodology_version

query_options refusals

  • options_unavailable with the reason methodology_not_served, root_not_certified or no_served_state. Its registry_status is served, shadow or absent.
  • expiry_not_found for an expiry selector that matches nothing.
  • invalid_cursor, cursor_stale (the cursor belongs to an older pricing pass: restart the request), scope_unavailable, provider_unavailable and payload_too_large.
  • Warnings include options_state_late, options_state_stale, options_freshness_unknown, options_prob_tail_bounded, options_cdf_not_published, options_chain_delta_window, options_chain_empty, options_distribution_gate_failed, options_expiry_selector_ambiguous, options_methodology_provisional, options_no_prior_trade_date, options_roots_unavailable and options_scope_degraded.

check_market_data_health

Checks the health of the Market Data MCP server before a workflow: whether the server is alive and whether each of its data stores answers a trivial query. One probe per store runs per call, each bounded at 2 s; no market data is cached or returned. It is not market intelligence and not a substitute for the HTTP health endpoint.

This tool takes no parameters.

check_market_data_health result

The result has a small meta block with only generated_at_utc, source_asof_utc (always null) and freshness_sec (always null), not the canonical meta block described above, and a data object:

FieldMeaning
statusok when both stores answered, down when neither did, degraded when exactly one did.
serverThe identifier of the server.
storesOne probe result per store the tools read. The response schema enumerates the two store keys.
stores.<name>.okTrue when that store answered SELECT 1 inside the 2 s bound.
stores.<name>.latency_msMilliseconds the probe took, for a failure as well as for an answer.
stores.<name>.error_codeNull when the store answered, otherwise the failure class: connection_refused, timeout, auth_failed or query_failed. The store's error text is never served.

query_studies

query_studies serves one stored quantitative study per call. It is a registered tool outside the nine canonical tools this page lists, so it is neither canonical nor part of the nine above. It is one of the eleven served tools: the sections above cover the other ten.

  • The tool reads results that a background engine has already calculated and stored. It calculates nothing when it is called, and it accepts no code, expression or formula.
  • A closed registry names the available studies. The request carries a pipeline (the study identifier, one value of the registry) and an optional version (the registry's current version when omitted). Two operations are served: catalogue, which lists the studies, their versions, their settings lists, their limits and their freshness contract and reads no result, and read, which returns one stored row set, newest first, with a cursor.
  • The registry lives in code and its status is the only serving switch. The first study is zscore version 1, a rolling 20-day z-score of each ICS spread's daily close stored in pl_zscore_v1; it is live, so a read serves the stored rows and names the bucket start of the newest final input it read and the computed time. A shadow study answers not_served, a deprecated one serves with a warning, and an unknown or retired one is refused with a typed error.
  • Each study has its own typed settings. Every setting comes from a published fixed list, for example a window of 20, 60, 126 or 252 days, because only listed combinations are stored. A value outside the list is refused with the code params_not_precomputed and the allowed values.
  • Freshness is a calendar question, not elapsed time. freshness_max_age_sec is the grace, in seconds, after the close of the newest expected trade date (7200 for zscore version 1), so a weekend or holiday is not stale while the writer is on time. The gate compares the newest stored trade_date with that expected trade date; it never reads the input stamp, which a later forming row could advance without a close being scored. A stored trade date older than the expected one answers stale, naming both dates, with source_asof and that grace; the message does not guess whether the writer or an unpriced input is the cause. When the trading calendar cannot resolve a series, the answer is the typed calendar_unresolved, which is a different fault from a late writer.
  • A multi-series read is all-or-nothing: when any requested series is stale, the whole call answers stale and serves no rows. The error names only the stale series, with its newest stored trade date, the expected one and its source_asof; the fresh series are not returned with a per-series marker.
  • The result uses the same meta and data shape as the other tools, with a provenance block that names the study, its version, its parameters key and the data time of the stored result.
  • The provenance block carries no writer run id and no separate quality field: the persisted row set stores neither. A study's quality statement is its stored value-or-reason pair plus the window leg marks, both served per row (ADR 2026-10-12, Amendment 2026-11-20).
  • Other studies (ou_zscore, curve_fit, pca_curve, futures_convexity) are not registered, so they are refused like any unknown pipeline. Their names are provisional.
  • Volatility, correlation and regime results stay in query_volatility and query_correlations. This tool does not repeat them.
  • The studies block of the query_market Market Card is still returned as unavailable with the reason not_built; read the stored rows through query_studies instead.