|
|
---
|
|
|
language:
|
|
|
- en
|
|
|
license: other
|
|
|
pretty_name: TroveLedger Financial Time Series Dataset
|
|
|
task_categories:
|
|
|
- time-series-forecasting
|
|
|
- tabular-regression
|
|
|
tags:
|
|
|
- finance
|
|
|
- financial
|
|
|
- stock-market
|
|
|
- stocks
|
|
|
- OHLC
|
|
|
- time-series
|
|
|
- trading
|
|
|
- equities
|
|
|
- indices
|
|
|
- historical-data
|
|
|
- stock-data
|
|
|
- market-data
|
|
|
- finance-data
|
|
|
dataset_info:
|
|
|
features:
|
|
|
- name: symbol
|
|
|
dtype: string
|
|
|
- name: time
|
|
|
dtype: int64
|
|
|
- name: open
|
|
|
dtype: float64
|
|
|
- name: high
|
|
|
dtype: float64
|
|
|
- name: low
|
|
|
dtype: float64
|
|
|
- name: close
|
|
|
dtype: float64
|
|
|
- name: volume
|
|
|
dtype: int64
|
|
|
splits:
|
|
|
- name: daily
|
|
|
num_examples: null
|
|
|
- name: hourly
|
|
|
num_examples: null
|
|
|
- name: minute
|
|
|
num_examples: null
|
|
|
size_categories:
|
|
|
- n<1K
|
|
|
- 1K<n<10K
|
|
|
- 10K<n<100K
|
|
|
- 100K<n<1M
|
|
|
- 1M<n<10M
|
|
|
- 10M<n<100M
|
|
|
---
|
|
|
|
|
|
# 🗃️ TroveLedger — Financial Time Series Dataset
|
|
|
|
|
|

|
|
|
|
|
|
**A growing ledger of accumulated market history.**
|
|
|
|
|
|
---
|
|
|
### 🔔 **Latest Dataset Update**
|
|
|
|
|
|
**Date:** 2025-12-24
|
|
|
**New addition:** 🇨🇭 SMI (SIX Swiss Exchange)
|
|
|
|
|
|
> Silent night. The Swiss Alps are blanketed in snow, and Santa’s sleigh is loaded with more than just gifts — it’s brimming with the golden treasures of the Swiss Market Index (SMI).“
|
|
|
> In a festive twist for Christmas Eve, TroveLedger adds the SMI, Switzerland’s premier blue-chip index, to its growing treasury. Representing 20 of the largest and most liquid companies on the SIX Swiss Exchange, the SMI brings a touch of Alpine precision and financial stability to our global dataset.
|
|
|
>
|
|
|
> This update is a special holiday gift — a small token of appreciation for the community that makes this project thrive. 🎄
|
|
|
>
|
|
|
>
|
|
|
> 🔜 **What’s next:**
|
|
|
> Note: This is a one-time Christmas Eve special. No further updates will be released until Friday, December 26, 2025. Wishing you all a peaceful, joyful holiday season!
|
|
|
|
|
|
|
|
|
<details>
|
|
|
<summary>Click to expand</summary>
|
|
|
|
|
|
- [Download symbol list (SMI.txt)](Symbols/SMI.txt)
|
|
|
|
|
|
<img src="media/SMI.jpg" style="max-width:100%;"/>
|
|
|
|
|
|
|
|
|
- More information about previous additions can be found further below in
|
|
|
[The Growing Treasury](#️the-growing-treasury)
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
> ### Recent Index Additions
|
|
|
>
|
|
|
> | Date | Index | Region | Symbols |
|
|
|
> |------------|-----------------|--------|---------|
|
|
|
> | 2025-12-24 | SMI | 🇨🇭 Switzerland | 20 |
|
|
|
> | 2025-12-23 | NIFTY 50 | 🇮🇳 India | 50 |
|
|
|
> | 2025-12-22 | FTSE 100 | 🇬🇧 United Kingdom | 100 |
|
|
|
> | 2025-12-19 | S&P 500 | 🇺🇸 US | 503 |
|
|
|
> | 2025-12-18 | Hang Seng Index | 🇭🇰 Asia | 82 |
|
|
|
> | 2025-12-17 | EURO STOXX 50 | 🇪🇺 Europe | 50 |
|
|
|
|
|
|
---
|
|
|
|
|
|
## 📌 Overview
|
|
|
|
|
|
**TroveLedger** is a public financial time series dataset focused on **long-term accumulation of high-quality intraday data**.
|
|
|
|
|
|
The dataset provides OHLC and volume data at multiple time resolutions and is designed primarily for **machine learning, quantitative research, and systematic trading experiments**.
|
|
|
|
|
|
Unlike many freely available data sources, TroveLedger emphasizes **continuity over time**, especially for minute-level data.
|
|
|
|
|
|
### Scale & Granularity
|
|
|
- Total: Over 40 million rows across all symbols and resolutions (growing rapidly)
|
|
|
- Per symbol: Varies significantly – from <1,000 rows (young stocks, daily) to >500,000 rows (established stocks, minute-resolution)
|
|
|
- Ideal for both focused single-symbol training and large-scale multi-market models
|
|
|
|
|
|
## 🔑 What makes TroveLedger different
|
|
|
|
|
|
High-resolution intraday data is difficult to obtain from free sources over extended periods.
|
|
|
|
|
|
Typical public data access (e.g. via yfinance) provides:
|
|
|
|
|
|
* **Daily candles:** often spanning decades
|
|
|
* **Hourly candles:** roughly one year into the past
|
|
|
* **Minute candles:** usually limited to the most recent 7 days
|
|
|
|
|
|
Repeatedly downloading rolling 7-day windows results in **short, fragmented histories** that are poorly suited for training models on intraday behavior.
|
|
|
|
|
|
TroveLedger takes a different approach:
|
|
|
|
|
|
* Minute-level data is **accumulated continuously**
|
|
|
* Time series are **extended, not replaced**
|
|
|
* Over time, this results in **months of gap-free minute data per instrument**
|
|
|
|
|
|
This accumulated depth forms a substantially more reliable foundation for intraday research and model training.
|
|
|
|
|
|
> 🧱 **Data Integrity Philosophy**
|
|
|
>
|
|
|
> TroveLedger prioritizes *continuity over frequency*.
|
|
|
> The primary goal is not to fetch data as often as possible, but to ensure that once a time series starts, it remains **gap-free**.
|
|
|
>
|
|
|
> Minute-level data is accumulated incrementally over time, creating long, uninterrupted histories that are not obtainable from fresh API queries alone.
|
|
|
>
|
|
|
> This makes the dataset particularly suitable for model training, backtesting, and regime analysis.
|
|
|
|
|
|
|
|
|
## 📦 Dataset Structure
|
|
|
|
|
|
The dataset is organized as follows:
|
|
|
|
|
|
- **/data/{category}/{symbol}/{symbol}.{interval}.valid.parquet**
|
|
|
|
|
|
Where:
|
|
|
- `{category}`: e.g., `equities/us`, `indices/sp500`, `indices/eurostoxx50` (growing with new indices)
|
|
|
- `{symbol}`: Stock ticker (e.g., AAPL, BMW.DE)
|
|
|
- `{interval}`: One of `days` (daily), `hours` (hourly), or `minutes` (1-minute)
|
|
|
|
|
|
The `.valid` suffix indicates that these files have passed quality checks and are ready for use. Only these cleaned, validated files are included in the dataset – temporary or intermediate files from the pipeline are excluded.
|
|
|
|
|
|
**Tip for users**: The `.valid` part is intentionally kept as a flexible "state" marker. You can easily rename or copy files to add your own states (e.g., `.train.parquet` or `.test.parquet`) for train/validation/test splits in your ML workflows. This pattern makes it simple to organize experiments without changing the core data.
|
|
|
|
|
|
### Data Instances
|
|
|
|
|
|
Here's an example row from a typical daily Parquet file (e.g., for AAPL.days.valid.parquet):
|
|
|
|
|
|
| symbol | time | open | high | low | close | volume |
|
|
|
|--------|------------|--------|--------|--------|--------|-----------|
|
|
|
| AAPL | 1704067200 | 192.28 | 192.69 | 191.73 | 192.53 | 42672100 |
|
|
|
|
|
|
- `time` is a Unix timestamp (e.g., 1704067200 = January 1, 2024, 00:00 UTC).
|
|
|
- All prices are in the symbol's native currency (e.g., USD for US equities).
|
|
|
|
|
|
### Dataset Creation
|
|
|
|
|
|
### Curation Rationale
|
|
|
TroveLedger was created to provide a reliable, expanding source of historical OHLCV data for AI-driven trading research, addressing gaps in continuity and international coverage.
|
|
|
|
|
|
### Source Data
|
|
|
All data is sourced from Yahoo Finance via the `yfinance` Python library. Index components are automatically extracted from Wikipedia pages using a custom API-based pipeline for sustainability.
|
|
|
|
|
|
### Data Collection and Processing
|
|
|
- Symbols are selected from major indices (e.g., S&P 500, EURO STOXX 50) and equities.
|
|
|
- Data is fetched at daily, hourly, and 1-minute resolutions, validated for completeness, and stored in Parquet format for efficiency.
|
|
|
- Quality checks remove gaps or anomalies; only ".valid" files are included.
|
|
|
- Updates occur periodically to extend histories and add new indices based on community input.
|
|
|
|
|
|
### Who are the source data producers?
|
|
|
Yahoo Finance (public market data). No personal data is included.
|
|
|
|
|
|
## 🔄 Update Philosophy
|
|
|
|
|
|
The primary objective is **data continuity**, not guaranteed daily updates.
|
|
|
|
|
|
In particular:
|
|
|
|
|
|
* Daily updates are **not guaranteed**
|
|
|
* Preventing **gaps in accumulated minute data** has priority
|
|
|
* Updates are performed on trading days whenever possible
|
|
|
|
|
|
Minute data is updated most frequently to ensure continuity.
|
|
|
|
|
|
Hourly and daily data are updated on a **rotation basis** to reduce unnecessary repeated downloads and to remain considerate of public data sources.
|
|
|
These datasets are guaranteed to be **no older than one week**.
|
|
|
|
|
|
For most training scenarios, this is fully sufficient.
|
|
|
When models are deployed in real-world environments, current market data is typically provided directly by the target trading platform.
|
|
|
|
|
|
## 📈 Scope & Growth
|
|
|
|
|
|
TroveLedger started with a curated universe of approximately 500 equities inherited from earlier *Preliminary* datasets.
|
|
|
|
|
|
Going forward:
|
|
|
|
|
|
* Entire indices are added step by step
|
|
|
* The covered universe will grow continuously
|
|
|
* Expansion is performed incrementally to ensure data integrity and operational stability
|
|
|
|
|
|
This gradual approach allows issues to be detected early and handled without disrupting existing data.
|
|
|
|
|
|
## 🎯 Intended Uses
|
|
|
|
|
|
- **Primary Use**: Training and evaluating machine learning models for trading strategies and autonomous AI bots.
|
|
|
- **Other Uses**: Time series analysis, financial research, educational projects, and community-driven extensions.
|
|
|
|
|
|
TroveLedger is suitable for:
|
|
|
|
|
|
* machine learning on financial time series
|
|
|
* intraday and swing trading research
|
|
|
* feature engineering on OHLC data
|
|
|
* backtesting strategies requiring dense intraday history
|
|
|
* exploratory quantitative analysis
|
|
|
|
|
|
## ⚠️ Limitations & Notes on Data Sources
|
|
|
|
|
|
- **Data Freshness**: Data is typically a few days old, not real-time.
|
|
|
- **Coverage**: Not all symbols may have complete historical data, especially for minute-resolution or newly added indices.
|
|
|
- **Growth Phase**: The dataset is actively expanding; check for updates on new indices and symbols.
|
|
|
- **Not financial advice**: This dataset is for research and educational purposes only. Past performance is no guarantee of future results.
|
|
|
|
|
|
Data is derived from publicly accessible market data sources (e.g. via yfinance).
|
|
|
|
|
|
While care is taken to ensure consistency and continuity, this dataset is provided **as-is** and without guarantees regarding completeness or correctness.
|
|
|
|
|
|
Users are responsible for verifying suitability for their specific use cases and for complying with the terms of the original data providers.
|
|
|
|
|
|
## 📜 License & Usage
|
|
|
|
|
|
This dataset is provided **solely for non-commercial research and educational purposes**.
|
|
|
|
|
|
The data is retrieved from public sources via the yfinance library (Yahoo Finance). All rights remain with the original data providers.
|
|
|
|
|
|
Redistribution of this dataset is **not permitted** without explicit permission from the original sources.
|
|
|
|
|
|
See the [`LICENSE`](./LICENSE) file for full details.
|
|
|
|
|
|
NO WARRANTY IS PROVIDED. Use at your own risk.
|
|
|
|
|
|
## 💬 Feedback, Suggestions & Community Support
|
|
|
|
|
|
TroveLedger is a growing, community-driven project providing high-quality OHLCV data for training AI models on financial markets and trading strategies. Your input makes it better!
|
|
|
|
|
|
- **What are you building?** I'd love to hear how you're using TroveLedger! Share your projects, trading bot ideas, ML models, or research directions – it motivates me to keep expanding and might inspire others.
|
|
|
- **Desired indices**: Which major indices are you waiting for most? I'll prioritize based on demand and feasibility.
|
|
|
- **Helping expand indices**: The pipeline uses the Wikipedia API to automatically extract components. It works best with a structured table containing both company names and clean, yfinance-compatible ticker symbols.
|
|
|
- Simply share the Wikipedia page URL (any language) for your desired index.
|
|
|
- If the table needs tweaks (e.g., missing or unclear ticker column, prefixes in symbols), improving it on Wikipedia is the most sustainable way – the global community then keeps it updated long-term!
|
|
|
- Once ready, post the link here, and I'll integrate it quickly.
|
|
|
|
|
|
Interested in a deeper dive into the exact table format and config options my pipeline supports (with examples like zero-padding, suffixes, or language overrides)? Let me know – if there's demand, I'll create a dedicated guide soon!
|
|
|
|
|
|
Join the discussion in [Hugging Face Discussions](https://huggingface.co/datasets/Traders-Lab/TroveLedger/discussions).
|
|
|
|
|
|
---
|
|
|
### 🏛️ The Growing Treasury
|
|
|
|
|
|
Watch TroveLedger expand across global markets – a visual chronicle of added indices:
|
|
|
|
|
|
<details>
|
|
|
<summary>🇨🇭 SMI (December 24, 2025) – Alpine quality meets market stability</summary>
|
|
|
|
|
|
The **Swiss Market Index (SMI)** has been added to TroveLedger, bringing the premier blue-chip index of Switzerland into our global dataset.
|
|
|
Representing 20 of the largest and most liquid companies listed on the SIX Swiss Exchange — including giants like Nestlé, Roche, and Novartis — the SMI offers a unique exposure to one of the world’s most stable and innovation-driven economies.
|
|
|
|
|
|
The SMI reflects Switzerland’s enduring role as a benchmark for quality, resilience, and long-term value.
|
|
|
|
|
|
- [Download symbol list (SMI.txt)](Symbols/SMI.txt)
|
|
|
|
|
|
<img src="media/SMI.jpg" alt="TroveLedger as Santa Claus riding a golden sleigh filled with gold coins and gifts through snowy Swiss Alps, with a Swiss flag flying, next to a treasure chest labeled 'SMI'" style="max-width:100%;"/>
|
|
|
</details>
|
|
|
|
|
|
<details>
|
|
|
<summary>🇮🇳 NIFTY 50 (December 23, 2025) – India takes center stage</summary>
|
|
|
|
|
|
The **NIFTY 50 Index** from India has been incorporated into TroveLedger, enriching the dataset with one of South Asia’s most referenced equity benchmarks. It represents 50 of the largest and most liquid Indian stocks listed on the National Stock Exchange.
|
|
|
|
|
|
- [Download symbol list (NIFTY.txt)](Symbols/NIFTY.txt)
|
|
|
|
|
|
<img src="media/NIFTY.jpg" alt="TroveLedger riding a golden bull through a festive scene, next to a dancer in traditional Indian clothing" style="max-width:100%;"/>
|
|
|
</details>
|
|
|
|
|
|
<details>
|
|
|
<summary>🇬🇧 FTSE 100 (December 22, 2025) – Britain weathers the storm</summary>
|
|
|
|
|
|
The FTSE 100 represents 100 of the most capitalized and liquid firms on the London Stock Exchange, spanning finance, energy, consumer goods, healthcare, and industrial sectors.
|
|
|
As the UK is no longer part of the European Union, this addition extends TroveLedger’s European coverage beyond the Eurozone without overlap with previously added indices.
|
|
|
|
|
|
- [Download symbol list (FTSE.txt)](Symbols/FTSE.txt)
|
|
|
|
|
|
<img src="media/FTSE.jpg" alt="TroveLedger safeguarding British market wealth along the Thames during a storm" style="max-width:100%;"/>
|
|
|
</details>
|
|
|
|
|
|
<details>
|
|
|
<summary>🇺🇸 S&P 500 (December 19, 2025) – America answers the call</summary>
|
|
|
|
|
|
The complete **S&P 500 Index** (503 constituents) has been fully integrated, adding **173 new symbols**.
|
|
|
This provides the premier US large-cap benchmark with extended intraday histories – ideal for multi-sector trading bot training.
|
|
|
|
|
|
- [Download symbol list (SPX.txt)](Symbols/SPX.txt)
|
|
|
|
|
|
<img src="media/SPX.jpg" alt="TroveLedger as Uncle Sam proudly presenting the S&P 500 treasure chest" style="max-width:100%;"/>
|
|
|
</details>
|
|
|
|
|
|
<details>
|
|
|
<summary>🇭🇰 Hang Seng Index (December 18, 2025) – Asia opens its doors</summary>
|
|
|
|
|
|
The **Hang Seng Index (HSI)** adds **82 entirely new symbols** – major Hong Kong-listed companies with strong China exposure across finance, tech, energy, and consumer sectors.
|
|
|
|
|
|
- [Download symbol list (HSI.txt)](Symbols/HSI.txt)
|
|
|
|
|
|
<img src="media/HSI.jpg" alt="TroveLedger welcoming representatives to the HSI vault" style="max-width:100%;"/>
|
|
|
</details>
|
|
|
|
|
|
<details>
|
|
|
<summary>🇪🇺 EURO STOXX 50 (December 17, 2025) – Europe uncovers its treasures</summary>
|
|
|
|
|
|
The **EURO STOXX 50** introduces **50 blue-chip companies** from the Eurozone, spanning multiple countries and sectors – a cornerstone for European market exposure.
|
|
|
|
|
|
- [Download symbol list (STOXX50.txt)](Symbols/STOXX50.txt)
|
|
|
|
|
|
<img src="media/STOXX50.jpg" alt="TroveLedger unveiling the EU flag from a treasure chest labeled STOXX50" style="max-width:100%;"/>
|
|
|
</details>
|
|
|
|
|
|
|
|
|
## 🔖 Citation
|
|
|
|
|
|
If you use TroveLedger in your work, please cite it as:
|
|
|
```
|
|
|
@dataset{Traders-Lab_TroveLedger_2025,
|
|
|
author = {Traders-Lab},
|
|
|
title = {TroveLedger Financial Time Series Dataset},
|
|
|
year = {2025},
|
|
|
url = {https://huggingface.co/datasets/Traders-Lab/TroveLedger}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 🔚 Final note
|
|
|
|
|
|
TroveLedger is not built to chase yesterday’s tick.
|
|
|
It is built to **remember**.
|
|
|
|