Historical Futures Data Documentation: Files and API.
Match the file to the decision you are testing. Dated trades, adjusted continuous histories and OHLCV bars answer different questions.
Match the file to the research question
| File | Contents | Best suited to |
|---|---|---|
| Per-contract ticks | Unadjusted trades from one expiry, identified by a symbol column | Fill research, dated-contract P&L and custom aggregation |
| Continuous ticks | Dated segments joined with both raw and adjusted prices | Longer signal windows and roll-aware indicators |
| OHLCV bars | Annual aggregates of adjusted continuous ticks | Completed-bar signals that do not depend on intrabar order |
| Roll ledger | Contract pairs, switch times, reference prices and offsets | Auditing the dated contract behind each continuous row |
Need unadjusted one-minute bars for MNQU26 or MNQZ26? Build them from that contract's tick file. Published OHLCV bars use continuous histories instead.
Open a sample before writing the pipeline
The latest monthly 10-second files need no account. Inspect one before building research code around fields it does not contain:
curl -LO "https://historicalfuturesdata.com/samples/MES/10s/cme.mes.bars.10s.2026-12.parquet"import pandas as pd
df = pd.read_parquet("cme.mes.bars.10s.2026-12.parquet")
print(df.head())
print(df.dtypes)
assert df["ts"].is_monotonic_increasing
assert not df["ts"].duplicated().any()
assert (df["high"] >= df[["open", "close"]].max(axis=1)).all()
assert (df["low"] <= df[["open", "close"]].min(axis=1)).all()Timestamps in ts are timezone-aware UTC. The
Parquet guide covers annual files,
DuckDB queries and lazy Polars scans.
File layout and download access
The MNQ directory layout is representative:
Release layout
MNQ/
contracts/cme.mnq.tick.MNQZ6.parquet
continuous/cme.mnq.tick.continuous.2026.parquet
bars/1m/cme.mnq.bars.1m.2026.parquet
rolls/MNQ_rolls.jsonHow monthly extracts work
A monthly bar filename includes the year and month, as in
cme.mnq.bars.1m.2026-11.parquet. It contains one UTC month taken from
the annual file, using the same series. The current-year annual file contains the
year published so far.
Other instruments repeat this pattern with their own namespace and root. Take the exact URL from the instrument page or inventory. Some older instruments use two-digit contract years to prevent filename collisions.
| Account or plan | Included files |
|---|---|
| No account | Latest monthly 10-second samples and selected tick samples; three 10-second months for MNQ |
| Free account | For CME and COMEX instruments: latest-month bars in all eight timeframes and full daily history; three monthly samples for MNQ |
| Standard · 59 USD | Complete history for instruments listed on CME |
| Everything · 129 USD | Complete history for all published instruments |
Within a paid plan's scope, history includes dated ticks, continuous ticks, annual bars and roll ledgers. Downloads unlock when payment confirms.
Check the generation before mixing downloads
bars/bars_manifest.json ties the bars to a continuous schema, the
roll ledger's as_of_utc and a source row count. The release's
validation.json identifies the generation and stores SHA-256 hashes
for the ledger, manifest, continuous files and annual bars. Compare those values
before combining separately downloaded files.
Tick fields, row by row
A per-contract row can represent several trades. Read trade_count
instead of assuming one row means one execution.
| Field | Parquet type | Definition |
|---|---|---|
| ts | timestamp[ns, UTC] | Source record's feed-receipt timestamp |
| price | float64 | Traded price without adjustment |
| volume | uint32 | Number of contracts traded in the record |
| bid_sz | uint32 | Volume executed at the bid; not resting depth |
| ask_sz | uint32 | Volume executed at the ask; not resting depth |
| trade_count | uint32 | Number of trades the record represents |
| symbol | string | Contract code assigned by the exchange |
| exchange | string | Exchange where the contract is listed |
Rows arrive chronologically, with source order retained for equal timestamps. Nanosecond storage describes the dtype; it does not independently verify exchange latency.
What continuous ticks add
All eight fields remain in continuous files. Two more preserve the roll:
price_raw holds the original contract price, while
back_adjustment holds the accumulated additive offset. Their sum is the
adjusted research price: price = price_raw + back_adjustment.
The roll ledger explains every splice
When the next contract takes over
The builder compares shared, completed Chicago trading sessions within the instrument's roll window. For MES and MNQ, that window is 30 calendar days ending on the outgoing contract's third-Friday expiry. An early end to trading substitutes the observed final session. Other instruments can have different window lengths and reference-age limits.
The builder selects the first completed session in the roll window with positive outgoing volume, strictly greater incoming volume, and sufficiently fresh common-time reference prices. Equal volumes do not qualify.
Which prints set the adjustment
Take the earlier last-trade timestamp from the two contracts in the decision session. That is the common cutoff. Each contract contributes its last trade at or before it, subject to the instrument's freshness limit: 60 seconds for MES and MNQ, for example, and 900 seconds for BTC. These prints are observed trades, not official settlements.
Applying the offset and changing segments
Each roll records difference = new_reference.price - old_reference.price.
The newest selected contract has zero adjustment. Offsets accumulate backward so
that price = price_raw + back_adjustment, without tick-size rounding.
Segments switch at 17:00 America/Chicago on the decision date. A Friday or
Saturday decision switches on Sunday at 17:00. Outgoing rows satisfy
ts < switch_utc; incoming rows satisfy ts >= switch_utc.
Chicago DST rules determine the corresponding UTC timestamp.
The builder does not invent fallback dates or prices when references are missing
or an expired roll remains unresolved. Audit the outcome with the ledger's
from_contract, to_contract, switch_utc and
difference fields.
Bar fields and session boundaries
| Field | Parquet type | Definition |
|---|---|---|
| ts | timestamp[ns, UTC] | Opening instant of the bar |
| open | float64 | First eligible adjusted price in the interval |
| high | float64 | Highest eligible adjusted price in the interval |
| low | float64 | Lowest eligible adjusted price in the interval |
| close | float64 | Last eligible adjusted price in the interval |
| volume | uint32 | Total contracts traded in the interval |
| trade_count | uint32 | Total trade_count across the input records |
UTC epoch boundaries determine intraday buckets, whose labels show the opening
time. A one-minute bar stamped 14:30 covers [14:30, 14:31). Daily bars
instead follow Chicago sessions opening at 17:00 local time, including DST changes.
Price records with zero volume are excluded. A bucket with no remaining eligible trades has no row; the builder never fills it with a carried-forward price.
HTTP routes for discovery and download
| Route | Response |
|---|---|
GET /api/inventory | Current instruments, coverage and exact download URLs |
GET /api/health | Coverage and health for published datasets |
GET /files/ | Directory view of the dataset |
GET /<SYMBOL>/... | Access-controlled Parquet and JSON files |
GET /healthz | Liveness of the web process, without dataset health |
POST /mcp | MCP tools for paid accounts |
Take download URLs from the inventory rather than constructing filenames. The inventory lists files; it cannot query their rows. Downloads accept one byte-range request per call.
Connect an MCP client
Generate a read-only API key in your account and point the
client at https://historicalfuturesdata.com/mcp. The same paid
entitlement governs MCP and the underlying downloads. The server speaks Streamable
HTTP using protocol version 2025-06-18 and returns JSON; SSE is unnecessary.
{
"mcpServers": {
"historical-futures-data": {
"url": "https://historicalfuturesdata.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
| Tool | What it does |
|---|---|
list_instruments | Show instruments available under your plan |
get_dataset_info | Return schemas, coverage, downloads and roll rules |
query_bars | Return annual bars in ascending UTC order, including start and excluding end |
run_sma_backtest | Test a one-contract long/flat SMA rule with fees and slippage |
Completed closes drive the SMA signals. Entries use the next observed bar's open, and any position left at the end liquidates at the last close. The calculation uses adjusted continuous bars, so its P&L is a point-based research result, not a raw dated-contract execution ledger with explicit roll fills. The tool never sends an order. The MCP guide includes request and response examples.