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b840
54ae953
 
 
 
 
 
 
 
 
 
8a3b840
54ae953
 
 
 
 
 
 
 
 
8a3b840
54ae953
 
 
 
 
 
 
 
 
8a3b840
54ae953
 
 
 
 
a8d1ad6
 
 
54ae953
a8d1ad6
 
 
 
 
 
54ae953
0b8ca9a
a8d1ad6
0b8ca9a
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
---

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

![TroveLedger Banner](media/Banner-TroveLedger.jpg)

**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**.