Skip to main content
Glama

MarketTrace agent-feed

get_state_history

Read-only

Time series of any numeric market-state fields from the 15-minute full-state archive — the derivative/trend view get_market_state cannot give. Answers: "How did OI build over the last 3 days?", "Is funding percentile rising or falling this week?", "When did the book skew flip?". fields = dotted numeric paths of get_market_state (1..=16), e.g. funding.percentile, oi.usd, obi.skew, cvd.delta_usd, basis_bps, price.last, depth.bid_usd.10bps, venues.binance.oi_usd. Returns parallel arrays: t (epoch ms, ascending) + series[field] aligned with t; null = that field was not populated in the archived row (honest hole, common near the archive's start — blocks accrue at their own pace). Downsampling: max_points 1..=1000 (default 200); stride in the response says how many 15-min rows each point skips; the newest row is never sampled away. coverage.archive_from/to are the WHOLE archive's bounds — the archive is YOUNG (born 2026-07-03) and grows a row per 15 min per asset; a thin answer is honest, not broken. from/to accept RFC3339, YYYY-MM-DD or epoch ms. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoRange end, same formats. Default: the whole archive.
fromNoRange start: RFC3339 (`2026-07-03T08:00:00Z`), `YYYY-MM-DD` (UTC midnight), or epoch milliseconds. Default: the whole archive.
fieldsYesDotted numeric paths of the market state, 1..=16 per request — e.g. `funding.percentile`, `oi.usd`, `obi.skew`, `cvd.delta_usd`, `basis_bps`, `price.last`, `depth.bid_usd.10bps`, `venues.binance.oi_usd`. Typos get an error naming the offender.
symbolYesAsset symbol: BTC, ETH, SOL, BNB, XRP, DOGE, HYPE, ZEC or ENA (case-insensitive; a `USDT` suffix is accepted).
max_pointsNoPoints returned after downsampling, 1..=1000 (default 200). The response's `stride` says how many archived rows each point skips.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tYesEpoch-ms per returned point, ascending (ms like `get_ohlcv`'s `t`).
toYesLast returned point, RFC3339 UTC (empty string when no points).
fromYesFirst returned point, RFC3339 UTC (empty string when no points).
seriesYesRequested dotted field → one value per point (aligned with `t`).
strideYesDownsampling stride actually applied (1 = every archived row).
symbolYesUppercase asset symbol, e.g. `BTC`.
coverageYes
n_pointsYesPoints returned (= `t.len()`).
n_availableYesRows available in the requested range BEFORE downsampling.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.