feat: create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
size_categories:
|
| 6 |
+
- 1GB < n < 10GB
|
| 7 |
+
tags:
|
| 8 |
+
- finance
|
| 9 |
+
- portfolio-management
|
| 10 |
+
- multi-asset
|
| 11 |
+
- benchmark
|
| 12 |
+
- LLM
|
| 13 |
+
- correlation
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
[](https://arxiv.org/abs/2605.27887)
|
| 17 |
+
[](https://github.com/AgenticFinLab/portbench)
|
| 18 |
+
[](https://portbench.github.io/)
|
| 19 |
+
|
| 20 |
+
# PortBench-RawData
|
| 21 |
+
|
| 22 |
+
This repository contains the **raw collected data and preprocessed asset files** for [PortBench](https://github.com/AgenticFinLab/portbench).
|
| 23 |
+
|
| 24 |
+
The data spans **2015–2025** across **six heterogeneous asset classes**: Equities, Bonds, Commodities, Real Estate, Cryptocurrency, and Cash.
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
## Repository Structure
|
| 29 |
+
|
| 30 |
+
```
|
| 31 |
+
PortBench-RawData/
|
| 32 |
+
├── raw_data/ # Raw collected data (~4.6 GB)
|
| 33 |
+
│ ├── fred/ # FRED macroeconomic indicators (60 series)
|
| 34 |
+
│ │ ├── bonds/ # Yield curve, credit spreads, TIPS
|
| 35 |
+
│ │ ├── cash/ # Fed funds rate, CPI, GDP, employment
|
| 36 |
+
│ │ ├── commodities/ # Oil, gold, agriculture spot indices
|
| 37 |
+
│ │ └── real_estate/ # Case-Shiller, HPI, REIT indices
|
| 38 |
+
│ ├── kaggle/ # Kaggle supplementary data (~4 GB)
|
| 39 |
+
│ │ ├── commodities/ # Commodity futures and spot prices
|
| 40 |
+
│ │ ├── cryptocurrency/ # Crypto OHLCV data
|
| 41 |
+
│ │ ├── equities/ # Stock data with news text
|
| 42 |
+
│ │ └── real_estate/ # REIT and property data
|
| 43 |
+
│ ├── sec/ # SEC EDGAR filings
|
| 44 |
+
│ │ └── equities/ # 10-K, 10-Q filings for US equities
|
| 45 |
+
│ ├── yahoo/ # Yahoo Finance price data
|
| 46 |
+
│ │ ├── bonds/ # Bond ETF prices and yields
|
| 47 |
+
│ │ ├── cash/ # Money market and treasury ETF data
|
| 48 |
+
│ │ ├── commodities/ # Commodity ETF data
|
| 49 |
+
│ │ ├── cryptocurrency/ # Crypto ETF and trust data
|
| 50 |
+
│ │ ├── equities/ # 72 tickers (broad-market, sector, factor ETFs)
|
| 51 |
+
│ │ └── real_estate/ # REIT ETF data
|
| 52 |
+
│ └── metadata.json # Dataset metadata summary
|
| 53 |
+
│
|
| 54 |
+
└── processed/ # Preprocessed asset data
|
| 55 |
+
├── equities.csv # 126 equity tickers, aligned daily
|
| 56 |
+
├── bonds.csv # 15 bond series, aligned daily
|
| 57 |
+
├── commodities.csv # 16 commodity series, aligned daily
|
| 58 |
+
├── real_estate.csv # 10 real estate series, aligned daily
|
| 59 |
+
├── cryptocurrency.csv # 12 cryptocurrency series, aligned daily
|
| 60 |
+
├── cash.csv # 4 cash equivalent series, aligned daily
|
| 61 |
+
├── correlation_matrix.csv # 183×183 Pearson correlation matrix
|
| 62 |
+
├── asset_class_map.json # Ticker-to-asset-class mapping
|
| 63 |
+
└── time_ranges.json # Per-ticker date coverage ranges
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
|
| 68 |
+
## Data Sources
|
| 69 |
+
|
| 70 |
+
| Source | Coverage | Content | Tickers/Series |
|
| 71 |
+
|--------|----------|---------|----------------|
|
| 72 |
+
| [Yahoo Finance](https://finance.yahoo.com/) | 2015–2025 | Daily OHLCV, adjusted close, volume for ETFs and stocks across all 6 asset classes | 72 tickers |
|
| 73 |
+
| [FRED](https://fred.stlouisfed.org/) | 2015–2025 | Macroeconomic indicators: yield curve (DGS1–DGS30), TIPS real yields (DFII5/10/30), breakeven inflation (T5YIE/T10YIE), Fed funds rate (DFF/FEDFUNDS), CPI (CPIAUCSL/CPILFESL), GDP, employment (PAYEMS), housing (CSUSHPINSA), VIX | 60 series |
|
| 74 |
+
| [Kaggle](https://www.kaggle.com/) | 2015–2025 | Supplementary cryptocurrency OHLCV, commodity futures, equities with news sentiment, real estate data | ~45 datasets |
|
| 75 |
+
| [SEC EDGAR](https://www.sec.gov/edgar/) | 2015–2025 | 10-K and 10-Q filings for US equities, parsed text | Equity filings |
|
| 76 |
+
|
| 77 |
+
---
|
| 78 |
+
|
| 79 |
+
## Coverage by Asset Class
|
| 80 |
+
|
| 81 |
+
| Asset Class | Raw Tickers | Processed | Role in Portfolio |
|
| 82 |
+
|-------------|------------|-----------|-------------------|
|
| 83 |
+
| **Equities** | 127 | 126 | Return engine; diversified via sector/factor ETFs (SPY, QQQ, XLE, XLF, VXUS, etc.) |
|
| 84 |
+
| **Bonds** | 15 | 15 | Fixed-income hedging; Treasury, corporate, high-yield (TLT, IEF, HYG, LQD, etc.) |
|
| 85 |
+
| **Commodities** | 16 | 16 | Inflation hedge; gold, oil, natural gas, agriculture (GLD, USO, UNG, DBC, etc.) |
|
| 86 |
+
| **Real Estate** | 10 | 10 | Diversification; REIT sector ETFs (VNQ, IYR, SCHH, etc.) |
|
| 87 |
+
| **Cryptocurrency** | 12 | 12 | High-risk allocation; major + mid-cap (BTC, ETH, SOL, DOGE, etc.) |
|
| 88 |
+
| **Cash** | 4 | 4 | Capital preservation; money market, short-term Treasuries (BIL, SGOV, SHV) |
|
| 89 |
+
|
| 90 |
+
Cross-asset correlations exhibit the key structural property exploited by PortBench's dual-layer scoring: **intra-class correlations are strongly positive** (0.4–0.6+), while **inter-class correlations are near-zero or negative**, meaning true diversification requires cross-class allocation, not just many tickers within one class.
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
## Preprocessing Details
|
| 95 |
+
|
| 96 |
+
- **Calendar alignment**: All series aligned to a common business-day calendar; gaps ≤5 days forward-filled; longer gaps retained as NaN for pairwise-complete correlation estimation.
|
| 97 |
+
- **Market regime labels**: Each asset class labeled as bull/bear/sideways/crisis using MA crossover (50/200-day) + 15% max-drawdown crisis threshold.
|
| 98 |
+
- **Data splits**: Train (2015–2022), Validation (2023–2024), Test (2025), with year-end boundaries.
|
| 99 |
+
- **Correlation matrix**: 183×183 Pearson correlation matrix computed from daily simple returns over the full training period using pairwise-complete observations; frozen and not re-estimated.
|
| 100 |
+
|
| 101 |
+
---
|
| 102 |
+
|
| 103 |
+
## Related Datasets
|
| 104 |
+
|
| 105 |
+
This repository contains the raw data foundation. See also:
|
| 106 |
+
|
| 107 |
+
- [PortBench-Market](https://huggingface.co/datasets/AgenticFinLab/PortBench-Market) — The processed market base dataset (`portbench.csv`) with all six asset classes merged at daily frequency, plus visualization figures.
|
| 108 |
+
- [PortBench-QA](https://huggingface.co/datasets/AgenticFinLab/PortBench-QA) — 6,269 question-answer pairs across 7 templates (T1–T7) probing correlation-based financial reasoning, with train/val/test splits.
|
| 109 |
+
|
| 110 |
+
Both are part of the [PortBench collection](https://huggingface.co/collections/AgenticFinLab/portbench).
|
| 111 |
+
|
| 112 |
+
---
|
| 113 |
+
|
| 114 |
+
## Citation
|
| 115 |
+
|
| 116 |
+
```bibtex
|
| 117 |
+
@article{zhao2026portbench,
|
| 118 |
+
title={PortBench: A Correlation-Aware, Full-Pipeline Benchmark for LLM-Driven Portfolio Management},
|
| 119 |
+
author={Zhao, Yuxuan and Chen, Sijia and Su, Ningxin},
|
| 120 |
+
journal={arXiv preprint arXiv:2605.27887},
|
| 121 |
+
year={2026}
|
| 122 |
+
}
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
---
|
| 126 |
+
|
| 127 |
+
## License
|
| 128 |
+
|
| 129 |
+
This dataset is released under the MIT License. Data sourced from Yahoo Finance, FRED, Kaggle, and SEC EDGAR is subject to their respective terms of service.
|