Futures Contract Months and Expiration: Decode Dates and Trading Sessions
A Sunday-evening trade can belong to Monday, and ESH6 can be March 2026 or 2016. Read futures codes, expiry rules, sessions, DST, and rolls correctly.
ESH6 identifies one contract month, not a permanent market
A futures symbol packs three pieces of information into a short string: the product root, a delivery-month letter, and a year. In an ES symbol, those pieces identify a specific contract month. That is why ESH6 and ESH7 are separate dated contracts rather than two labels for one market. Product roots and listing conventions differ, so the exchange specification remains the authority on tick size, termination rules, and the years available.
The delivery-month letters follow this mapping:
| Letter | Contract month | Letter | Contract month | Letter | Contract month |
|---|---|---|---|---|---|
| F | Jan. | G | Feb. | H | Mar. |
| J | Apr. | K | May | M | Jun. |
| N | Jul. | Q | Aug. | U | Sep. |
| V | Oct. | X | Nov. | Z | Dec. |
Quarterly equity-index contracts commonly use H, M, U, and Z, although other products follow different listing patterns. The single-digit year repeats every decade. Read it beside the dataset date and the contract metadata; by itself, the suffix cannot establish a timestamp.
The same code can point to another decade
Within data from 2026, ESH6 will normally denote the March 2026 E-mini S&P 500 futures contract; in 2016 data, the same string denotes March 2016. That reading fixes the contract's identity. It says nothing about when trading ends. Confirm the listing against the specification and trading calendar before you label a session or schedule a roll.
Apply the same scrutiny to two-digit years and alternate symbol formats. Normalize each identifier into root, month, and full year, but retain the original string so joins still work. Check especially carefully for collisions around decade boundaries. Any identifier that remains ambiguous belongs in quarantine; using today's active month to guess would only bury the ambiguity.
A single file is enough to expose the problem before a parser is written. Record its root, month code, full year, exchange, and untouched identifier. “ES” identifies a product family. “ESH6, March 2026, CME” identifies a particular expiry. Missing exchange or full year? Stop and resolve the metadata rather than let a default contaminate prices, roll decisions, and P&L.
By itself, the backtest's end date cannot settle the decade. Research performed in 2026 may read files from much earlier years, and today's active contract has no bearing on an identifier stored in a 2016 directory. Derive the year from listing metadata, then keep that evidence in the file manifest.
A continuous history is assembled from dated contracts
Quotes, trades, volume, and termination rules attach to a dated contract identified by one month and year. A continuous symbol is a research construction. It joins chosen dated contracts under a roll policy; the exchange does not list that entire history as a single tradable instrument.
Choose dated data when the job is to audit an actual session, reconstruct an order price, or inspect volume approaching expiry. Continuous data keeps the signal history intact across joins, but execution and accounting still require the dated contract underneath. For these continuous datasets, price = price_raw + back_adjustment. Adjusted prices support suitable point-based signals and comparisons; price_raw keeps each observation on its original contract scale for execution and accounting.
The instrument and history browser lists the available datasets. Check the schema and dataset documentation before making joins. For roll construction and adjustments, read the guide to building continuous futures contracts.
Last trading and final settlement follow different clocks
As a calendar label, “expiration” hides several events that matter to execution. Last trading time, final settlement, and the provisions for delivery or cash settlement need not coincide. A contract can stop trading before its final settlement value is available. Physical delivery creates obligations unlike cash settlement, and options on futures use a separate calendar.
Treat “Z always ends on the third Friday” as a warning sign, not a rule. The dated contract's exact year and product terms interact with holidays, weekdays, and exchange notices. Read its specification and calendar, archive the source and effective version of the rule, and keep remembered formulas out of production code.
A backtest also needs deadlines imposed by the strategy: when new entries stop, when positions must exit, and when a roll occurs. State whether exposure to settlement is permitted. Those cutoffs must be executable; a fill at the theoretical terminal print proves nothing about the price a real order could have obtained.
Monday's session can start on Sunday evening
At many CME futures markets, the session rolls over at 17:00 Chicago time. Trading begins in the evening and continues during the following calendar day's daytime hours. An observation's UTC date need not match its session date. Sunday evening in Chicago can carry a Monday label; late Friday and Sunday evening lie on opposite sides of the weekend break.
The product schedule still decides which hours were open. Maintenance, an early close, a holiday, or special hours can cut the session short. Here, “daily” refers to an exchange session rather than a UTC-midnight grouping. Derived intraday bars use epoch-aligned UTC intervals. Daily bars break at Chicago 17:00 and follow that boundary through daylight-saving changes; intervals with no data are left out.
Session label: Monday
Sunday 18:30 Chicago -> same session
Monday 09:35 Chicago -> same session
Monday 16:20 Chicago -> same session, if the product schedule permits
The examples show how timestamps are grouped, not which products are open at those times.
Chicago's offset from UTC is not fixed
Keep source timestamps in UTC. Convert them with a timezone database only when an exchange-local label is needed. Chicago uses Central Standard Time (UTC−6) in part of the year and Central Daylight Time (UTC−5) in the other. A permanent six-hour subtraction will misdate some observations and can assign them to the wrong session.
2026-01-15 23:00 UTC -> 2026-01-15 17:00 America/Chicago
2026-07-15 22:00 UTC -> 2026-07-15 17:00 America/Chicago
Nor is a manually added summer hour a repair. Transition dates follow calendar rules, and other jurisdictions switch on different dates. Use timezone-aware conversion for local labels while UTC remains the ordering key. Per-contract derived ticks contain only ts; separate receive and exchange-event fields do not exist to supply another event sequence.
Include both seasonal transitions and the 17:00 boundary in the tests. Formatting a timestamp locally must not move the instant. Where wall-clock labels repeat or skip, investigate the calendar conversion rather than discarding valid UTC observations.
An empty interval can be correct market data
Scheduled maintenance, weekends, holidays, and early closes all put legitimate space between adjacent prints. A missing derived bar may simply mean that no eligible trade occupied that bucket. Consult the calendar before treating the gap as damage. Carrying prices through every closure invents quotes in a market that was shut.
The fill model has to carry closure risk. A resting order has no guaranteed execution at the last displayed price; the next actual trade could be far from it. Test stops and timed exits at the real reopening. For a weekend scenario, change the liquidity assumptions along with price.
Put each gap into one of three categories: scheduled closure, open but inactive, or unexplained. Derived-bar readers should retain empty-bucket omission. Before labeling an absence corrupt, check that year's exchange schedule and store the calendar version with the analysis.
Trading activity can leave the nearby contract before expiry
A later month often takes over volume and open interest while the nearby contract is still trading. No single roll day fits every product. Participants and event risk alter the timing as well. Switching on a fixed calendar date can strand the model in a thinning market or make it late to activity that has already moved.
Track volume and trade frequency in each dated contract, and use spreads when they are available. The holding period also belongs in that decision. Any roll trigger must rest on data available when the decision is made; volume from a completed future session cannot justify switching earlier. A strategy that trades both contracts through the transition needs separate positions and costs for each one.
Store the roll policy with every transition: decision session, effective switch, outgoing and incoming contracts, plus the activity measurements behind the choice. This record keeps the continuous series' join distinct from the two transactions that actually move the account.
In this dataset, bid_sz and ask_sz measure volume executed at the bid and ask. They are not resting-book sizes, and open interest is not provided. Those fields cannot reconstruct queue depth or the movement of open interest. Base activity analysis on what was executed and name the missing measurements explicitly.
Before an order can be placed
- Match the root, month letter, full year, and exchange to one exact dated contract.
- Use that contract's specification and calendar to distinguish last trading from settlement and delivery provisions.
- Give the strategy its own roll date, order cutoff, and forced-exit rule.
- Keep UTC in the data and use
America/Chicagofor local labels across both DST transitions. - Early closes, weekends, holidays, and maintenance must not break the session labels.
- Generate signals from continuous data and execution analysis from dated data, with the mapping between them retained.
- Measure activity migration from executions without mistaking bid/ask volume for book depth.
- Model closures and roll costs; reject any fill attempted while the contract is shut.
Take a single observation and identify three things: the instrument, its containing session, and the dated contract an order could have accessed. An uncertain answer sends you back to the metadata, not onward to the chart.