Datasets:
File size: 4,469 Bytes
281a616 3d2fe71 6c779f6 3d2fe71 6c779f6 3d2fe71 6c779f6 3d2fe71 6c779f6 3d2fe71 6c779f6 3d2fe71 6c779f6 281a616 6ab6014 |
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 |
---
license: other
license_name: license
license_link: LICENSE
tags:
- finance
---
> ## ⚠️ Deprecation Notice
> ### December 18, 2025
>
> The Traders-Lab dataset has officially left its long-overdue **preliminary** status.
>
> As part of this transition, this **preliminary dataset will no longer receive any updates**.
>
> All existing data — including the full accumulated history — has been transferred to the "all new and shiny" new dataset:
>
> ➡️ **[Traders-Lab / TroveLedger](/datasets/Traders-Lab/TroveLedger)**
>
>TroveLedger continues the same data stream while adding new features and a steadily expanding international coverage.
> All future updates will happen **exclusively** there.
>
> The directory structure has intentionally remained the same, so **no changes to your existing codebase are required**.
>
> This repository remains available for archival and reproducibility purposes.
## Overview
This dataset contains **parquet files** with time series data for various financial instruments, collected using an improved and more stable version of our data pipeline. It builds upon the first preliminary dataset, with a refined structure and more reliable data fetching processes. The data is sourced from publicly available sources like [Yahoo Finance](https://finance.yahoo.com) via the `yfinance` library.
Each financial instrument includes:
- **Daily candles**: Covering multiple years of historical data.
- **Hourly candles**: Covering at least 2 years.
- **Minute candles**: Covering a shorter, recent period with high granularity.
This multi-resolution format supports models that analyze both long-term trends and short-term patterns.
## Purpose
This second preliminary dataset is designed to:
- Provide early access to reliable financial time series data.
- Enable testing and iteration of machine learning models for trading.
- Gather feedback to finalize a stable dataset format.
- Test the consistency of the data update pipeline over a few days.
## Data Structure
The dataset is organized into a clear directory structure:
- **/data/{category}/{symbol}/{symbol}.days.valid.parquet**: Daily OHLC data.
- **/data/{category}/{symbol}/{symbol}.hours.valid.parquet**: Hourly OHLC data.
- **/data/{category}/{symbol}/{symbol}.minutes.valid.parquet**: Minute OHLC data.
Only files marked as `.valid.parquet` are included in this dataset to ensure data quality and consistency. Temporary files (e.g., `fetch`, `test`, `ufetch`, `utest`, `failXX`, `ufailXX`) are excluded via `.gitignore`.
## Expected Changes
While the pipeline is more stable, this dataset remains preliminary. Potential changes include:
- Adjustments to file naming conventions.
- Reorganization into sharded folders (e.g., by year or month).
- Refinements to dataset split logic.
A stable, production-ready dataset will be released separately to ensure long-term consistency.
## Goals
The Traders-Lab datasets aim to grow in two dimensions:
- **More stocks**: Additional symbols will be added over time, with rapid expansion expected soon.
- **More data**: Short-term datasets (hourly and minute candles) will grow as more data is accumulated. While continuity of current minute data is not guaranteed yet, future updates will ensure a continuous time history.
## Non-Goals
The dataset is designed to be sufficiently up-to-date for training purposes, with data typically no more than a few days old. Real-time updates are not a goal.
## License & Usage
This dataset is not licensed under a standard open data license. See the [`LICENSE`](./LICENSE) file for detailed usage permissions. It is intended **solely for research and educational purposes**. Redistribution may be restricted; please respect the terms of the original data providers, such as Yahoo Finance.
## Accessing the Dataset
The dataset is hosted on Hugging Face under the [Traders-Lab organization](https://huggingface.co/Traders-Lab). To clone the dataset:
```bash
# Ensure git-lfs is installed (https://git-lfs.com)
git lfs install
git clone https://huggingface.co/datasets/Traders-Lab/preliminary-v2
```
## Metadata
Dataset metadata is provided in the [`dataset_card.yml`](./dataset_card.yml) file, following Hugging Face's dataset card standards.
## Feedback
We welcome feedback to improve the dataset! Please share your thoughts via the [Hugging Face Discussions](https://huggingface.co/datasets/Traders-Lab/preliminary-v2/discussions) or contact the Traders-Lab team. |