- 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.
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
requestobject. Itsoperationfield selects the view, and each operation has its own parameters.discover_market_dataandget_market_data_guidetake asection.check_market_data_healthtakes 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
=Fsuffix, for exampleES=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
limitwith a stated maximum. When more rows exist, the result carriesmeta.page.next_cursor. Pass it back ascursorwith 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).
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.
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.
discover_market_data result fields
Every section returns data.section plus the fields below. A section never pages: paging tokens are not issued.
Types used in the table above:
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_largeresult. Request one section at a time. - Sessions for
^VIXandFDAX=Fare 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.
pricesis 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.
get_market_data_guide result fields
data.sections holds one entry per returned section, each with section, title and body.
Types used in the table above:
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.
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.
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.
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.
query_market result fields
Rows are MarketItem objects; the symbol operation returns either one item or, with the Market Card, cards.
Types used in the table above:
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
itemnull and the warningmarket_data_unavailable. With the Market Card it returns the typed errorinvalid_argumentinstead. - Other warnings:
symbol_stale,daily_stats_fallback_row,current_outright_<reason>for a degraded current outright price (the suffix is the row'sprice_source_reason) andprevious_session_<reason>for an unavailable exact previous session (the suffix is the row'sprevious_session.warning.reason). Otherwise a served page that carries a warning writes the degradationpartial_scope; an empty scope writesmarket_data_unavailablewithsource_unavailable. Two warnings stand apart: a retired explicit symbol warns with no degradation, and a stale symbol writes the degradationsymbol_stale. - Typed errors:
invalid_argument,provider_unavailable,scope_unavailableandpayload_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:
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.
query_profiles operation snapshot
query_profiles operation history
query_profiles operation distribution
query_profiles operation levels
query_profiles operation volume_profile
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.
Types used in the table above:
query_profiles freshness and refusals
source_asofis the data time of the oldest row. Canonical profiles are finalized; theliveprofile is provisional, andfreshness_secstates its age.- The tool performs no calculation and no backfill when it is called.
- The
historyoperation names every trade date its page walked over that held no servable stored session with one typed warninghistory_date_skippedper date. The warning carries the date and the reason (bins_incomplete,ambiguous_selector,session_emptyorsession_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
datawithreasonset tounavailable,materialization_missingornot_recorded(a gap in legacy rows), or to one of thelive_*reasons listed undersource_mode. The refusal also carriesrequested_operation,symbol,phase,source_modeandmethodology_id. - Typed errors:
provider_unavailableandpayload_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.
query_volatility operation overview
query_volatility operation asset_class
query_volatility operation symbols
query_volatility operation detail
query_volatility operation history
query_volatility operation regime
query_volatility result fields
Every row is a volatility item with its own freshness object; detail adds provenance and regime returns the regime item.
Types used in the table above:
query_volatility semantics and refusals
switch_risk_pctandexpansion_probability_pctare percents. A null value means that no model value exists; it never means 0.- The live regime labels are
Compressed,Normal-RisingandSpike-Rising. A fallback row carriesCompressedorUnknownplus afallback_reason. The labels are the expected values; the service does not validate a stored label against this list. partial_sessionmarks 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_staleandhistorical_scope. - Typed errors:
invalid_cursor,scope_unavailable,provider_unavailableandpayload_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.
query_correlations operation summary
query_correlations operation search
query_correlations operation pairs
query_correlations operation matrix
query_correlations operation detail
query_correlations operation history
query_correlations result fields
Rows are compact pairs; detail adds the evidence blocks you ask for through include.
Types used in the table above:
query_correlations semantics and refusals
corr_1h,corr_8handcorr_24hare raw Pearson correlations. Onhistory,corr_1his always null: that horizon was removed and a request for it is refused.- On
history,beta_8h,beta_24h,r_squared_8handr_squared_24hare stored with the row, never computed at read time:betais Cov(r_symbol2, r_symbol1) / Var(r_symbol1) withsymbol1the pair's stored first leg,r_squaredis the square of the correlation, and both are null when the correlation is null.hmm_regimeis 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_regimeis 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;Unknownwhen 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 thehmmblock ofdetail.summary,searchandmatrixdrop pairs whose last snapshot is older than 7 days, andsummaryreports the count.pairsanddetailserve rows up to 365 days old.source_asofis the data time, except onhistory. Open-market data older than 120 minutes raises the warningcorrelation_source_stale.switch_risk_pctis provisional and indicative only. Theunstablelist is transient.- The tool does not average, rank or combine pairs.
- With nothing stored,
detailreturns the typed errorno_data; every other operation returns success with the warningcorrelation_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_provisionalandsymbol_retired. - Typed errors:
no_data,invalid_cursor,scope_unavailable(also a matrix asset-class scope over 12 symbols: request a subset),provider_unavailableandpayload_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.
query_rates operation overview
query_rates operation curve
query_rates operation curve_analysis
query_rates operation stir
query_rates operation stir_matrix
query_rates operation history
query_rates result fields
Rows are curve or STIR spread items; the matrix returns sparse cells.
Types used in the table above:
query_rates semantics and refusals
- A Treasury spread has
price_basissynthetic_futures_price. A STIR spread hasprice_basisfutures_price_points.return_basisisfractional_change(a fraction, not a percent) for the curve family andbp_changefor STIR. A spread row carriesreturn_1d_fractionorreturn_1d_bp, never both:return_1d_bpis the STIR family's absolute change in basis points and is null for curve. curve_analysiscarries the stored curve shape twice.metricsis the ICS price-point shape on ZT, ZF and ZN:levelis the ZN last price,slopeis TUT (up = the 2s10s is steeper) andcurvatureis TUF - FYT (up = the belly cheapened against the wings), all in price points withbasisics_price_points. Its fly is not DV01-neutral, so read it as a statement about the configured ICS quantities.bp_metricsis the same curve in yield basis points from a committed cheapest-to-deliver DV01 table:level_bpis the TY yield,slope_bpis TY minus TU andcurvature_bpis twice the FV yield minus the wings, with the same signs,basisctd_futures_yield_bpandlinearizedtrue because the conversion is first order. The server copies both shapes from the stored rows and computes neither, and both are null outsidecurve_analysis.- The three bp numbers are null together with a
reasonwhenever 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_unavailableandleg_yield_drift_over_25bp(a leg moved more than 25 bp from its reference).legsstill 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.
statusishealthy,staleorunavailable, and onlyunavailablecarries a nullspread_pricewith areason.legsholds one entry per leg with that leg's last real-tradeasof_ts, itsage_sin open-session seconds (a weekend adds none) andstale, which isage_sabove 1800 open-session seconds.skew_sis the open-session gap between the legs' last real trades,stale_legnames the first thin leg, andsource_asofis the oldest leg trade, which on a current spread row is alsoasof_ts. A stale row is served with the warningrates_spread_stale, never hidden and never a degradation; a row whose leg has no real trade carriesrates_spread_unavailable, and the answer degrades withsource_unavailableonly when every returned row is unavailable. stir_matrixcells 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.historyreads the stored spread bars of both families, one bar per interval bucket. On a history rowasof_tsis the bar's bucket start, andsource_asofis 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 inasof_ts.qualityis the stored mark of the bar, currentlyok,asof,leg_staleorleg_session_closed; the field is plain text rather than a closed set, and a bar stored before an old mark was retired can still carryleg_skew_exceeded.completeis the writer's bucket verdict,served_depthis the later first one-minute bar of the row's own legs andlimiting_legnames the leg that sets it (front,leg2orback). The envelope statessourcespread_candles,sampling_rulestored_spread_bar_per_interval_bucket, andohlc_basisandratio_basisas the page's single stored value, ormixedwhen the page holds more than one. No history row carries areturn_1d_fraction: it is null on both families, because the stored bar records no 1-day change. A curve history row answers nullstanceand nullspread_type; a STIR history row answers nullstanceand carries its change inreturn_1d_bp.- A history row derives
legswhile it reads, because the stored bar keeps only each leg's last real trade:age_sis 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 nullasof_tsandage_swithstaletrue. An emptylegslist means the row is unmeasured, never fresh. - A STIR history row has
stancenull andspread_typederived from the id (calendar_1q,fly_consecutiveoref_spread), and itsreturn_1d_bpis 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 asSR3U26-Z26-H27, or an EF id such asEF-Z26@F27G27): the legs never move, EF ids never roll, and a generic id such asEF-frontis refused asinvalid_argumentwith 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.
historyneeds spread identifiers from acurveorstirresponse, time bounds, a fixed resolution, and it continues with a stable keyset cursor. A malformed STIR id answersinvalid_argumentwith the offendingparameter, itsinvalidvalue and thevalidvalues; a well-formed id with no stored bar, or an absent stored relation, answersseries_unavailable; a stored series with no bar inside the range answersno_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_partialandhistorical_scope. - Typed errors:
invalid_argument,invalid_cursor,cursor_stale,scope_unavailable,series_unavailable,no_data_in_range,provider_unavailable; an over-size answer returnspayload_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.
query_candles operation discover
query_candles operation bars
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.
Types used in the table above:
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
=Froot defaults to its ruled series:continuous_backward_ratio_latest.v2for a root with the ratio rule,continuous_backward_difference_latest.v2for a root with the difference rule. A root with no rule and^VIXare refused. An explicit contract symbol serves therawseries only, and a=Froot rejectsraw. - A continuous series is back-adjusted and is not a raw price. Every bar carries
methodandcum_factor. A zero open, high, low or close is not a price: under the zero-price policy named inprice_zero_policyit 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
volumeandnum_tradesread 24 to 38 percent low, the sign ofdeltais wrong on about one bar in nine, andhighandloware the ask and bid quotes. These rows carry the warningintraday_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. Asymbolfilter that names an explicit contract returns an emptydiscoverresult with the warningcandle_series_unavailable. discoverwithscoperthlists no continuous series by design, because every stored=Fseries is a full exchange day series. That empty page carries the warningcandle_scope_not_storedand no degradation: the catalogue is healthy, andscopeethlists the stored series. Any other emptydiscoverpage carriescandle_series_unavailableand the degradationsource_unavailable.- A
barsanswer states the root's own data limit indata_limitwhen 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), areasonand asource.reasonisrange_before_first_complete_daywhen a 1-day range opens before the first stored day,no_rows_for_rootwhen 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), andno_rows_in_windowwhen 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, sono_rows_for_rootnever 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 explicitstartstates no limit for a range that opens before the first stored day.sourcenames the authority behind the day:engine_bar_tablewhen it is the engine bar relation's own first stored bar,stored_adjusted_serieswhen it is the stored=Fseries' first bar,front_contract_schedulewhen the front-contract schedule names the day, andno_schedulewhen no authority names one (thenearliest_available_dayis null). The limit names the depth of the history; it never trims or fills an answer. - A 1-day
barspage whose range opens before that limit carries the warningcandle_data_limitand still serves its rows. An emptybarsanswer with a known limit returns the typed errordata_limit, whose message names the first stored day and its authority when an authority names one and states that none does otherwise, instead ofno_data_in_range; an empty answer with no known limit returnsno_data_in_range. - A stored
=Fseries is a full exchange day series:rthreads the cash-hours engine bar table and abarsrequest for a=Fsymbol withscoperthis refused. An interval or scope outside the list above is refused at validation, never approximated. A response states the relation it read insource:bar_eth,bar_rthor the stored adjusted series of a=Froot. - 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_emptyandcandle_series_availability_unavailable. - Typed errors:
data_limit,no_data_in_range,invalid_argument,invalid_cursor,cursor_stale,scope_unavailable,series_unavailable,provider_unavailableandpayload_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.
query_options operation state
query_options operation smile
query_options operation term
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.
query_options operation changes
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.
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.
query_options result fields
Every result carries provenance with the settlement trade_date, the as_of time and a freshness class (see Futures options).
Types used in the table above:
query_options refusals
options_unavailablewith the reasonmethodology_not_served,root_not_certifiedorno_served_state. Itsregistry_statusisserved,shadoworabsent.expiry_not_foundfor an expiry selector that matches nothing.invalid_cursor,cursor_stale(the cursor belongs to an older pricing pass: restart the request),scope_unavailable,provider_unavailableandpayload_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_unavailableandoptions_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:
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 optionalversion(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, andread, which returns one stored row set, newest first, with a cursor. - The registry lives in code and its
statusis the only serving switch. The first study iszscoreversion 1, a rolling 20-day z-score of each ICS spread's daily close stored inpl_zscore_v1; it islive, so a read serves the stored rows and names the bucket start of the newest final input it read and the computed time. Ashadowstudy answersnot_served, adeprecatedone 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_precomputedand the allowed values. - Freshness is a calendar question, not elapsed time.
freshness_max_age_secis the grace, in seconds, after the close of the newest expected trade date (7200 forzscoreversion 1), so a weekend or holiday is not stale while the writer is on time. The gate compares the newest storedtrade_datewith 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 answersstale, naming both dates, withsource_asofand 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 typedcalendar_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
staleand serves no rows. The error names only the stale series, with its newest stored trade date, the expected one and itssource_asof; the fresh series are not returned with a per-series marker. - The result uses the same
metaanddatashape 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_volatilityandquery_correlations. This tool does not repeat them. - The
studiesblock of thequery_marketMarket Card is still returned as unavailable with the reasonnot_built; read the stored rows throughquery_studiesinstead.