Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,75 +1,77 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: other
|
| 3 |
-
license_name: license
|
| 4 |
-
license_link: LICENSE
|
| 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 |
-
- **/data/{category}/{symbol}/{symbol}.
|
| 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 |
-
git
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
|
|
|
|
|
|
| 75 |
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.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: license
|
| 4 |
+
license_link: LICENSE
|
| 5 |
+
tags:
|
| 6 |
+
- finance
|
| 7 |
+
---
|
| 8 |
+
# Preliminary Financial Time Series Dataset (Version 2)
|
| 9 |
+
|
| 10 |
+
⚠️ Warning: This is a second preliminary dataset for development, testing, and feedback purposes. A stable, production-ready dataset will be released later. This time, all data in here will be available in future "stable" datasets (I guesss.. )
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
|
| 14 |
+
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.
|
| 15 |
+
|
| 16 |
+
Each financial instrument includes:
|
| 17 |
+
- **Daily candles**: Covering multiple years of historical data.
|
| 18 |
+
- **Hourly candles**: Covering at least 2 years.
|
| 19 |
+
- **Minute candles**: Covering a shorter, recent period with high granularity.
|
| 20 |
+
|
| 21 |
+
This multi-resolution format supports models that analyze both long-term trends and short-term patterns.
|
| 22 |
+
|
| 23 |
+
## Purpose
|
| 24 |
+
|
| 25 |
+
This second preliminary dataset is designed to:
|
| 26 |
+
- Provide early access to reliable financial time series data.
|
| 27 |
+
- Enable testing and iteration of machine learning models for trading.
|
| 28 |
+
- Gather feedback to finalize a stable dataset format.
|
| 29 |
+
- Test the consistency of the data update pipeline over a few days.
|
| 30 |
+
|
| 31 |
+
## Data Structure
|
| 32 |
+
|
| 33 |
+
The dataset is organized into a clear directory structure:
|
| 34 |
+
- **/data/{category}/{symbol}/{symbol}.days.valid.parquet**: Daily OHLC data.
|
| 35 |
+
- **/data/{category}/{symbol}/{symbol}.hours.valid.parquet**: Hourly OHLC data.
|
| 36 |
+
- **/data/{category}/{symbol}/{symbol}.minutes.valid.parquet**: Minute OHLC data.
|
| 37 |
+
|
| 38 |
+
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`.
|
| 39 |
+
|
| 40 |
+
## Expected Changes
|
| 41 |
+
|
| 42 |
+
While the pipeline is more stable, this dataset remains preliminary. Potential changes include:
|
| 43 |
+
- Adjustments to file naming conventions.
|
| 44 |
+
- Reorganization into sharded folders (e.g., by year or month).
|
| 45 |
+
- Refinements to dataset split logic.
|
| 46 |
+
|
| 47 |
+
A stable, production-ready dataset will be released separately to ensure long-term consistency.
|
| 48 |
+
|
| 49 |
+
## Goals
|
| 50 |
+
The Traders-Lab datasets aim to grow in two dimensions:
|
| 51 |
+
- **More stocks**: Additional symbols will be added over time, with rapid expansion expected soon.
|
| 52 |
+
- **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.
|
| 53 |
+
|
| 54 |
+
## Non-Goals
|
| 55 |
+
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.
|
| 56 |
+
|
| 57 |
+
## License & Usage
|
| 58 |
+
|
| 59 |
+
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.
|
| 60 |
+
|
| 61 |
+
## Accessing the Dataset
|
| 62 |
+
|
| 63 |
+
The dataset is hosted on Hugging Face under the [Traders-Lab organization](https://huggingface.co/Traders-Lab). To clone the dataset:
|
| 64 |
+
|
| 65 |
+
```bash
|
| 66 |
+
# Ensure git-lfs is installed (https://git-lfs.com)
|
| 67 |
+
git lfs install
|
| 68 |
+
git clone https://huggingface.co/datasets/Traders-Lab/preliminary-v2
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
## Metadata
|
| 72 |
+
|
| 73 |
+
Dataset metadata is provided in the [`dataset_card.yml`](./dataset_card.yml) file, following Hugging Face's dataset card standards.
|
| 74 |
+
|
| 75 |
+
## Feedback
|
| 76 |
+
|
| 77 |
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.
|