You need to agree to share your Hugging Face information to access this dataset
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
This dataset is free to browse and gated for download. Approval is tied to a Papers With Backtest subscription, which also covers the other datasets in this organisation and the strategy catalogue at https://paperswithbacktest.com. Plans and what each one includes: https://paperswithbacktest.com/pricing
Log in or Sign Up to review the conditions and access this dataset content.
Futures Daily Price
Daily sessions of every outright futures contract listed on CME, CBOT, NYMEX and COMEX since 3 April 2017: one row per contract and session, the terms of each contract, and continuous series of rank 1 to 6 per root, rolled on volume through each root's liquid cycle. Equity indices, rates, currencies, energy, metals and agriculture. 17,113 contracts over 681 roots, 1,644,657 contract-sessions, 2017-04-03 to 2026-11-24. Refreshed monthly.
What this table adds to Commodities-Daily-Price: that one is a single spliced series per
commodity, with no contract, no expiry and no roll, so a backtest on it earns the spot price and
never pays or receives the roll yield. Here every contract is a separate instrument with its last
trade date, multiplier and tick, so a backtest can hold the contract an investor would actually
hold, roll it with two real trades, and pay for both.
Three tables
| Config | One row per | Rows |
|---|---|---|
daily (default) |
contract and session, terms joined | 1,644,657 |
contracts |
contract | 17,113 |
continuous |
root, rank and session | 1,033,537 |
from datasets import load_dataset
daily = load_dataset("paperswithbacktest/Futures-Daily-Price", "daily", split="train").to_pandas()
cl = daily[daily["root"] == "CL"]
Or straight into a backtest with the next pwb-toolbox release, built on Tradewind's futures
module (add_futures, Roller):
from pwb_toolbox.datasets import load_futures
table = load_futures("CL") # every CL contract, one row per session
chain = load_futures("CL", kind="chain") # tradewind.futures.FutureChain
front = load_futures("CL", kind="continuous", rank=1, adjust="ratio") # signals only
daily: one row per contract and session
| Column | Meaning |
|---|---|
date |
Session date (the trading day the session settles on). |
root |
Product code shared by every delivery month: ES, CL, ZN, GC. |
symbol |
The contract, unique across the table: root, month letter, two-digit year (CLK20, ESZ26). Exchange tickers reuse their one-digit year every ten years; this one does not. A contract whose ticker is not a month code (weeklies, some spreads of a product) is ticker_YYYYMMDD on its last trade date. |
delivery_year, delivery_month |
Delivery month read from the month code. Empty for the 476 contracts whose ticker carries none. |
first_trade_date, last_trade_date |
Listing date and last trading day, as defined at the time (point-in-time definitions, not today's calendar). A position still open after last_trade_date has expired. |
multiplier |
Money per point of price, in currency: 1,000 for CL, 50 for ES, 1,000 for ZN, 50 for ZC (quoted in cents). A one-point move of one contract is worth multiplier units of currency; one tick is worth multiplier * tick_size (ZC: $12.50, ES: $12.50, CL: $10). One value per root; see contract_size in contracts. Empty for 16 single-stock and index roots whose size is unknown. |
tick_size |
Minimum price increment, in the unit the price is quoted in (cents for grains and livestock); see tick_source in contracts. |
exchange, venue |
CME, CBOT, NYMEX or COMEX, and its MIC (XCME, XCBT, XNYM, XCEC). |
currency |
Quote currency of the contract: USD for 15,808 contracts, then EUR, JPY, CNH, GBP and eight others. |
open, high, low, close |
Traded prices of the session; close is the last trade, not the settlement. |
settlement |
Daily settlement price, the one variation margin is computed on. |
volume |
Contracts traded in the session. |
settlement_suspect |
True when the settlement lies outside the session's own high-low range and equals the next session's settlement: the settlement of the following day was stamped one session early. 7,003 rows, 107 of them on a contract that traded 1,000 lots or more that day. |
contracts: one row per contract
root, symbol, product_name, asset_sub_class (equity, energy, metals,
interest_rate, currency, agricultural... empty for 2,239 contracts), exchange, venue,
currency, delivery_year, delivery_month, first_trade_date, last_trade_date,
settlement_date (final settlement, defined from March 2025 only), multiplier,
contract_size and unit_of_measure (the size as the exchange states it: 5,000 BU, 1,000
BBL, $100,000 face value USD, IPNT for an index whose size is its multiplier),
tick_size, tick_source, and from the sessions: first_session, last_session,
n_sessions, total_volume.
How multiplier is derived from contract_size. The contract definitions carry a size per
product version, and the versions disagree: 177 roots had more than one value, among them active
contracts such as CLU25 sized 1 per contract or 42,000 gallons, and 72 NG contracts at
1,000 MMBtu instead of 10,000. One size is kept per root, the one its contracts traded most
under (a placeholder of one contract counts only when nothing else exists). It is then turned into
money per point: divided by 100 for the 30 notes, bonds, swaps and TBAs sized by face value and
quoted per 100 of par (ZN, ZT, UB...), and for 37 other roots by the unit of their
quotation: 100 for cents (ZC, ZS, ZL, LE, HE, GF) and for a hundredweight on a size in
pounds (DC), 1,000 for lumber quoted per 1,000 board feet, 10,000 for the rupee quoted in
cents per 100 rupees. Money-market contracts quoted as 100 minus a rate keep their point
value (SR3 $2,500, ZQ $4,167).
tick_source says where the tick comes from (grain ticks stated in dollars, 0.0025, are converted
to the cents the price is quoted in, 0.25):
contract(3,691 contracts): the contract's own definition. Ticks are defined per contract only from March 2025;root(12,687): an earlier contract takes the tick its root's outright contracts carry since then (calendar spreads, whose tick is finer, are left out:ES0.25, not 0.05). Right as long as the exchange did not change the tick in the meantime;printed(734): neither exists, the tick is the smallest price increment the root ever printed, an upper bound on the true tick.
continuous: rank 1 to 6 per root, rolled on volume
| Column | Meaning |
|---|---|
date, root |
Session and root. |
rank |
1 = the contract the roll rule holds; k = the (k - 1)-th contract of the root's liquid cycle after it, by last trade date, chosen on the same close. |
symbol, last_trade_date |
The contract held by that rank on that session. |
rolled |
True on the first session of a new contract: the roll day. |
open ... settlement, volume, settlement_suspect |
Raw prices of the contract held, as in daily. |
ratio_adj_open/high/low/close |
Back-adjusted by ratio: every level before a roll is multiplied by new / old, so percentage changes are the contract's own. Empty before a roll through a non-positive price. |
diff_adj_open/high/low/close |
Back-adjusted by difference: every level before a roll moves by new - old, so point changes are the contract's own; works through zero and negative prices. |
The rule is Tradewind's RollOnVolume(days_before=5):
- Only the root's liquid cycle is held: the delivery months the exchange names as active (gold G J M Q V Z, silver and copper H K N U Z, platinum F J N V, equity indices, Treasuries, currencies and SOFR H M U Z, energy and fed funds every month). Serial months are listed but thinly traded and are never held. A root without a known cycle rolls through every month.
- Hold the nearest contract of the cycle until the next one trades more lots in a session, and in any case leave it once its last trade date is five calendar days away or less. The front moves on volume only from the nearest contract, so it is always the nearest or the next one of the cycle; it never moves back to an earlier expiry.
- Decided on the previous close: the choice is made on the close of day d - 1, with the
volumes of d - 1 and earlier only, and applied on day d, so a level never uses a contract
chosen with hindsight. The rank-1 series is identical, session for session, to
tradewind.futures.continuous(table, RollOnVolume(), adjust=...)from Tradewind 0.0.4. Roll gaps are measured on the decision day's settlements of both contracts, and the latest segment is never adjusted: the last adjusted level is the current contract's price. The adjusted close is built on the settlement (the traded close where the settlement is missing or suspect).
Never trade an adjusted series. The adjusted columns are for signals (trend, carry between
ranks, volatility). The levels of the past move every time a new roll is added, an adjusted price
was never quoted, and a ratio-adjusted series can sit far from any price of its time. A backtest
holds the contracts of daily, rolls them with two orders that each pay their cost, and is marked
on their settlements; tradewind.futures.Roller does exactly that.
606 roots have a continuous series; the others never had a contract live for more than five days. Rows per rank: 367,608 / 222,739 / 152,103 / 118,591 / 93,581 / 78,915. A rank with no listed contract that deep has no row that session: it never repeats a shallower rank's contract.
Change of 30 November 2026: the roll rule
Before this date the rule compared the held contract with the next listed one, in any month and wherever the held contract sat. It walked through the serial months (gold rolled every month) and out along rate curves, whose volume grows with maturity (fed funds held a contract 22 months out, SOFR one of 2031). Rank 1 now changes on 107 of the 606 roots; the main ones:
| Root | Rolls of rank 1 before | after | Sessions whose rank-1 contract changes |
|---|---|---|---|
GC gold |
107 | 57 | 298 |
SI silver |
115 | 48 | 445 |
HG copper |
115 | 48 | 497 |
PL platinum |
111 | 38 | 605 |
PA palladium |
67 | 38 | 494 |
6B, 6J, 6A currencies (each) |
102 to 107 | 38 | 437 to 493 |
6E euro (from October 2022) |
44 | 16 | 228 |
NIY yen Nikkei |
53 | 38 | 80 |
SR3 SOFR 3-month |
53 | 34 | 2,032 (96 %) |
ZQ fed funds |
117 | 116 | 2,119 (88 %) |
ES, NQ, ZN, CL, NG and the other roots whose volume sits in the nearest contract are
unchanged. Ranks 2 to 6 no longer hold serial months, hence 102,890 more continuous rows. The
contracts and daily tables are unchanged.
Limits
- From April 2017 only, and not every root from the start. 131 of the 681 roots trade from
the first session; some major roots start later (
6Ein October 2022,ZSin May 2020,SR3in May 2018), and 211 roots print their first session in 2026. ICE (KC,CT,SB,BRN) and CFE (VX) contracts are not here. - No open interest. Volume is the only activity measure, and the roll rule uses it. Open interest per market (all delivery months together) will come from the CFTC positions dataset of this organisation once it is published.
- No first notice date. Physically delivered contracts (
CL,GC,ZC) are rolled by speculators before their first notice day, which can fall before the last trade date. The five-day rule leavesCLin time (its last trade date precedes delivery); for metals and grains roll earlier than the last trade date, withRollOnDate(days_before=...). - No margins. Neither initial nor maintenance margins are in the table. Tradewind's
FutureSpec(initial_margin=...)takes them per root; set them, or the backtest posts none. - No tick per contract before March 2025: earlier contracts take their root's tick
(
tick_source). A tick changed by the exchange before 2025 is not visible. - One contract size per root, derived.
multiplierfollows the rules above, checked against the exchanges' tick values on the liquid roots; on a thin root whose quotation is not stated it can be off by the factor of its quote unit. 16 roots (single-stock and some index futures) have no usable size and an emptymultiplier, which an engine refuses rather than trading them at one dollar a point. - Suspect settlements. 107 liquid sessions carry the next session's settlement
(
settlement_suspect). The worst:CLK20on 17 April 2020 is stamped -37.63, the settlement of 20 April, against a true settlement of 18.27. Usecloseon those rows, as the continuous series does. - Differential products. Trade-at-settlement (
CLT,GCT), basis-trade (EST,NQT) and basis-spread contracts are quoted as a differential, often zero or negative: 38 roots have no ratio-adjusted history before their last roll through a non-positive price. Use the difference-adjusted columns there. - 15 outright sessions without a contract definition are left out, and a few exchange-days are incomplete (NYMEX 2022-03-23: 464 contracts instead of about 840). Calendar spreads are not in the table.
Access
Browsing the card and the schema is open to anyone. Downloading the files needs an approved request, tied to a subscription: what each plan includes. The same subscription covers the other datasets in this organisation.
Elsewhere
Commodities-Daily-Price: spot-like continuous commodity series from 1983, without contracts or rollFutures-Yearly-FrontMonthCostParams: measured spreads of the front month, per root and year- Tradewind, the backtest engine whose futures module this layout follows
pwb-toolbox, the loader- Every dataset in this organisation
- Downloads last month
- 632