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.
Commodities Daily Price
This dataset includes daily price data for various commodities.
483,508 rows over 62 symbols, 7 columns, covering 1983-02-02 to 2026-07-31. Refreshed monthly.
Strategies Built on This Data
259 papers in the Papers With Backtest catalogue declare this dataset as an input. 231 of them have been coded and run over their own full history. The median replicated Sharpe ratio is +0.39, and 53% clear a t-statistic of 1.96 on their own sample, against 48% across all 4,837 replications in the library.
Some of the strongest results that lean on it:
| Strategy | Sharpe | t-stat | Tested over |
|---|---|---|---|
| Financialization in Commodity Markets | +0.98 | 5.8 | 35 years |
| Long-Run Reversal in Commodity Returns: Insights from Seven Centuries of Evidence | +0.63 | 3.7 | 35 years |
| Return and Risk in Commodity Futures Programs | +0.53 | 3.2 | 36 years |
| Optimal Trading of a Basket of Futures Contracts | +0.54 | 3.2 | 35 years |
A Sharpe ratio quoted without its t-statistic hides how much of the library cannot be distinguished from zero, which is why both are shown. The figures are in-sample over each strategy's own window and carry no transaction costs.
Why It Matters
This dataset enables systematic commodity trading and hedging strategies by:
- Cross-asset signals: Commodity trends inform inflation hedges and macro overlays for equity, FX, and rates portfolios.
- Mean-reversion and momentum: Daily OHLCV history supports breakout, trend and reversal strategies across energy, metals, and agriculture.
- Risk budgeting: Realised volatility across energy, metals, grains and softs is what position sizing and stop placement are calibrated against.
Load It
Installation/Upgrade:
pip install --upgrade pwb-toolbox
Load the Dataset: Pass tickers such as CL1 or GC1 to focus on specific contracts.
from pwb_toolbox import datasets as pwb_ds
df = pwb_ds.load_dataset("Commodities-Daily-Price", symbols=["CL1"])
print(df.iloc[0, :])
Example Output:
symbol CL1
date 1985-02-15
open 27.85
high 28.01
low 27.55
close 27.8
volume 0
Columns
| Column Name | Description |
|---|---|
| symbol | Commodity ticker (e.g., energy, metals, agriculture). |
| date | Trading date (YYYY-MM-DD). |
| open | Opening price for the trading day. |
| high | Highest traded price during the session. |
| low | Lowest traded price during the session. |
| close | Closing settlement or reference price. |
| volume | Zero for 60 of the 62 symbols. The generic continuous contracts carry no volume of their own. |
What This Data Does Not Cover
Half the file is a front-month future, the other half is not. Of the 62 symbols, 32 are generic front-month futures, the ones with a 1 suffix such as CL1, GC1 and W1. The rest are spot prices, physical benchmarks and indices, and two of them are not commodities at all: NDX:IDX and FUTU:US are equity series. The Dow Jones Industrial Average (INDU:IDX) was removed in November 2026: it is in Indices-Daily-Price, and its copy here interleaved several series. No series here begins before 1983. PL1 is the exception among the suffixed symbols: it is identical, day for day, to the platinum spot series XPTUSD.
The front-month series are not roll-adjusted. Each day is the settlement of the nearest contract, and the series jumps to the next contract at expiry. CL1 prints the expiring May 2020 WTI contract at -37.63 on 20 April 2020 and 10.01 on its last day, then the June contract at 13.78. The gap between two contracts goes into the close-to-close return as if it had been earned: CL1 gains 17.8% on 22 December 2008, the day the series moves from an expired January contract to a February one priced higher. Over long horizons these series therefore track the spot price and leave out the roll yield a futures holder earns in backwardation and pays in contango. A buy-and-hold or cross-sectional return computed from them is not the return of holding the futures, and with a single maturity per commodity there is no term structure to build carry, basis or curve signals from.
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
- Dataset page and coverage charts
- The strategy catalogue, 3,806 papers and 4,837 replicated strategies
pwb-toolbox, the loader used in the snippet aboveawesome-systematic-trading, the replicated strategies with their measured Sharpe- Every dataset in this organisation
Papers With Backtest publishes 32 datasets on the Hub and codes the papers that use them. Every strategy in the catalogue is run over its own full history before it is published, which is where the numbers above come from.
- Downloads last month
- 1,479