Open float64 | Close float64 | High float64 | Low float64 | Volume float64 | Date large_string |
|---|---|---|---|---|---|
1,255.909058 | 1,199.061035 | 1,261.571045 | 1,147.331055 | 0 | 1997-07-02 |
1,194.676025 | 1,150.623047 | 1,194.676025 | 1,149.939941 | 0 | 1997-07-03 |
1,138.921021 | 1,159.342041 | 1,163.249023 | 1,124.776001 | 0 | 1997-07-04 |
1,161.707031 | 1,096.81897 | 1,163.447021 | 1,085.572021 | 0 | 1997-07-07 |
1,092.79895 | 1,109.666016 | 1,115.432983 | 1,066.043945 | 0 | 1997-07-08 |
1,113.640991 | 1,120.840942 | 1,122.67395 | 1,104.08606 | 0 | 1997-07-09 |
1,121.259033 | 1,120.154053 | 1,137.869019 | 1,115.212036 | 0 | 1997-07-10 |
1,116.415039 | 1,154.793945 | 1,155.05603 | 1,114.396973 | 0 | 1997-07-11 |
1,189.473999 | 1,200.114014 | 1,201.213989 | 1,180.19104 | 0 | 1997-07-14 |
1,201.594971 | 1,190.82605 | 1,204.85498 | 1,184.444946 | 0 | 1997-07-16 |
1,188.266968 | 1,197.225952 | 1,203.504028 | 1,180.93396 | 0 | 1997-07-17 |
1,199.399048 | 1,209.857056 | 1,210.439941 | 1,191.28894 | 0 | 1997-07-18 |
1,215.838989 | 1,193.525024 | 1,218.480957 | 1,188.875 | 0 | 1997-07-21 |
1,189.118042 | 1,208.248047 | 1,208.261963 | 1,163.468018 | 0 | 1997-07-22 |
1,219.055054 | 1,198.860962 | 1,223.822998 | 1,194.703003 | 0 | 1997-07-23 |
1,194.704956 | 1,174.217041 | 1,200.30896 | 1,172.366943 | 0 | 1997-07-24 |
1,166.56604 | 1,170.862061 | 1,177.652954 | 1,158.135986 | 0 | 1997-07-25 |
1,167.812988 | 1,141.776978 | 1,167.880005 | 1,138.474976 | 0 | 1997-07-28 |
1,137.31897 | 1,153.229004 | 1,161.194946 | 1,133.175049 | 0 | 1997-07-29 |
1,157.089966 | 1,179.421021 | 1,179.478027 | 1,157.004028 | 0 | 1997-07-30 |
1,184.937012 | 1,189.76001 | 1,192.199951 | 1,179.714966 | 0 | 1997-07-31 |
1,191.651001 | 1,192.828003 | 1,194.031006 | 1,182.223022 | 0 | 1997-08-01 |
1,196.254028 | 1,200.333008 | 1,201.920044 | 1,188.676025 | 0 | 1997-08-04 |
1,203.358032 | 1,196.274048 | 1,207.228027 | 1,193.696045 | 0 | 1997-08-05 |
1,196.035034 | 1,171.94104 | 1,197.444946 | 1,170.266968 | 0 | 1997-08-06 |
1,167.927002 | 1,199.23999 | 1,199.23999 | 1,161.631958 | 0 | 1997-08-07 |
1,205.952026 | 1,206.052979 | 1,216.561035 | 1,201.358032 | 0 | 1997-08-08 |
1,206.456055 | 1,184.083008 | 1,206.759033 | 1,182.447021 | 0 | 1997-08-11 |
1,177.260986 | 1,146.80896 | 1,183.436035 | 1,145.748047 | 0 | 1997-08-12 |
1,139.245972 | 1,120.126953 | 1,153.494995 | 1,118.202026 | 0 | 1997-08-13 |
1,120.470947 | 1,168.113037 | 1,168.334961 | 1,120.244995 | 0 | 1997-08-14 |
1,174.182983 | 1,143.063965 | 1,174.881958 | 1,133.890015 | 0 | 1997-08-15 |
1,139.605957 | 1,134.634033 | 1,139.605957 | 1,116.147949 | 0 | 1997-08-18 |
1,134.616943 | 1,132.905029 | 1,143.20105 | 1,128.109009 | 0 | 1997-08-19 |
1,135.050049 | 1,144.639038 | 1,144.645996 | 1,133.741943 | 0 | 1997-08-20 |
1,148.386963 | 1,164.545044 | 1,165.218018 | 1,147.81604 | 0 | 1997-08-21 |
1,159.385986 | 1,171.833008 | 1,174.485962 | 1,156.82605 | 0 | 1997-08-22 |
1,175.444946 | 1,184.095947 | 1,184.333984 | 1,175.384033 | 0 | 1997-08-25 |
1,186.06897 | 1,194.042969 | 1,194.130981 | 1,181.243042 | 0 | 1997-08-26 |
1,195.427979 | 1,198.512939 | 1,199.473999 | 1,188.331055 | 0 | 1997-08-27 |
1,201.05896 | 1,213.891968 | 1,216.07605 | 1,194.675049 | 0 | 1997-08-28 |
1,214.310059 | 1,221.063965 | 1,223.071045 | 1,209.479004 | 0 | 1997-08-29 |
1,224.177002 | 1,229.86499 | 1,230.06604 | 1,219.100952 | 0 | 1997-09-01 |
1,228.474976 | 1,226.302979 | 1,232.69104 | 1,215.921997 | 0 | 1997-09-02 |
1,223.620972 | 1,240.819946 | 1,243.32605 | 1,223.46106 | 0 | 1997-09-03 |
1,245.775024 | 1,251.297974 | 1,253.152954 | 1,245.640015 | 0 | 1997-09-04 |
1,250.604004 | 1,251.550049 | 1,253.349976 | 1,241.217041 | 0 | 1997-09-05 |
1,253.14502 | 1,255.229004 | 1,257.54895 | 1,245.744019 | 0 | 1997-09-08 |
1,255.18103 | 1,231.026978 | 1,257.927002 | 1,230.442017 | 0 | 1997-09-09 |
1,230.426025 | 1,256.041016 | 1,256.041016 | 1,227.642944 | 0 | 1997-09-10 |
1,260.519043 | 1,242.713013 | 1,264.489014 | 1,236.113037 | 0 | 1997-09-11 |
1,240.495972 | 1,208.697021 | 1,247.907959 | 1,207.831055 | 0 | 1997-09-12 |
1,205.901001 | 1,179.286011 | 1,211.68396 | 1,175.947998 | 0 | 1997-09-15 |
1,182.756958 | 1,187.219971 | 1,193.847046 | 1,181.168945 | 0 | 1997-09-16 |
1,188.88501 | 1,167.557007 | 1,191.295044 | 1,162.243042 | 0 | 1997-09-17 |
1,169.670044 | 1,172.365967 | 1,181.748047 | 1,164.64502 | 0 | 1997-09-18 |
1,174.769043 | 1,184.520996 | 1,185.089966 | 1,168.869019 | 0 | 1997-09-19 |
1,184.493042 | 1,103.973999 | 1,185.099976 | 1,102.616943 | 0 | 1997-09-22 |
1,096.187012 | 1,041.964966 | 1,105.281982 | 1,025.130005 | 0 | 1997-09-23 |
1,064.661011 | 1,110.011963 | 1,110.107056 | 1,064.661011 | 0 | 1997-09-24 |
1,118.369019 | 1,117.01001 | 1,130.125977 | 1,106.245972 | 0 | 1997-09-25 |
1,118.689941 | 1,109.634033 | 1,118.94104 | 1,094.42395 | 0 | 1997-09-26 |
1,106.342041 | 1,084.072021 | 1,106.342041 | 1,079.339966 | 0 | 1997-09-29 |
1,083.41394 | 1,097.383057 | 1,100.385986 | 1,083.232056 | 0 | 1997-09-30 |
1,100.699951 | 1,098.902954 | 1,105.411011 | 1,091.151978 | 0 | 1997-10-06 |
1,098.293945 | 1,102.572998 | 1,102.712036 | 1,087.017944 | 0 | 1997-10-07 |
1,122.968018 | 1,134.868042 | 1,140.937012 | 1,116.713013 | 0 | 1997-10-08 |
1,134.590942 | 1,122.465942 | 1,138.656982 | 1,120.088013 | 0 | 1997-10-09 |
1,121.338013 | 1,130.785034 | 1,131.569946 | 1,120.512939 | 0 | 1997-10-10 |
1,136.428955 | 1,119.817017 | 1,138.401001 | 1,117.389038 | 0 | 1997-10-13 |
1,116.29895 | 1,117.927979 | 1,118.021973 | 1,105.703979 | 0 | 1997-10-14 |
1,119.108032 | 1,125.781982 | 1,129.654053 | 1,116.428955 | 0 | 1997-10-15 |
1,131.400024 | 1,150.307007 | 1,151.394043 | 1,131.394043 | 0 | 1997-10-16 |
1,155.421997 | 1,176.489014 | 1,180.218018 | 1,153.895996 | 0 | 1997-10-17 |
1,183.744019 | 1,187.368042 | 1,191.040039 | 1,173.557007 | 0 | 1997-10-20 |
1,190.494995 | 1,191.869995 | 1,192.339966 | 1,179.573975 | 0 | 1997-10-21 |
1,193.70105 | 1,177.52002 | 1,203.017944 | 1,168.480957 | 0 | 1997-10-22 |
1,178.983032 | 1,173.364014 | 1,186.067017 | 1,170.232056 | 0 | 1997-10-23 |
1,172.884033 | 1,178.30603 | 1,179.805054 | 1,164.063965 | 0 | 1997-10-24 |
1,183.646973 | 1,235.827026 | 1,235.944946 | 1,183.646973 | 0 | 1997-10-27 |
1,239.584961 | 1,177.92395 | 1,241.833008 | 1,172.891968 | 0 | 1997-10-28 |
1,168.224976 | 1,184.08606 | 1,188.796997 | 1,162.980957 | 0 | 1997-10-29 |
1,189.265015 | 1,174.845947 | 1,207.969971 | 1,173.649048 | 0 | 1997-10-30 |
1,164.912964 | 1,180.392944 | 1,181.505981 | 1,158.735962 | 0 | 1997-10-31 |
1,181.161987 | 1,180.854004 | 1,185.06897 | 1,176.546997 | 0 | 1997-11-03 |
1,180.86499 | 1,184.699951 | 1,190.470947 | 1,180.86499 | 0 | 1997-11-04 |
1,186.094971 | 1,194.037964 | 1,194.672974 | 1,179.350952 | 0 | 1997-11-05 |
1,198.657959 | 1,181.123047 | 1,203.08606 | 1,179.582031 | 0 | 1997-11-06 |
1,181.776001 | 1,195.140991 | 1,195.73999 | 1,177.631958 | 0 | 1997-11-07 |
1,199.368042 | 1,185.784058 | 1,202.578979 | 1,178.630981 | 0 | 1997-11-10 |
1,183.417969 | 1,186.634033 | 1,187.744019 | 1,168.482056 | 0 | 1997-11-11 |
1,190.014038 | 1,185.024048 | 1,193.531006 | 1,171.293945 | 0 | 1997-11-12 |
1,169.703979 | 1,185.024048 | 1,185.281982 | 1,157.293945 | 0 | 1997-11-13 |
1,187.350952 | 1,197.832031 | 1,208.842041 | 1,181.687012 | 0 | 1997-11-14 |
1,210.677002 | 1,191.333008 | 1,213.228027 | 1,190.43103 | 0 | 1997-11-17 |
1,190.260986 | 1,183.348999 | 1,193.311035 | 1,182.607056 | 0 | 1997-11-18 |
1,185.103027 | 1,181.626953 | 1,191.963989 | 1,175.782959 | 0 | 1997-11-19 |
1,182.739014 | 1,172.427002 | 1,189.494995 | 1,169.097046 | 0 | 1997-11-20 |
1,168.968018 | 1,158.555054 | 1,169.10498 | 1,152.008057 | 0 | 1997-11-21 |
1,150.416016 | 1,124.94104 | 1,150.562988 | 1,122.935059 | 0 | 1997-11-24 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Macroeconomic & S&P 500 Yahoo Finance Dataset
This repository contains a comprehensive historical dataset for 936 financial instruments, including S&P 500 components, broad market indices, commodities, currencies, and macroeconomic indicators. The data is programmatically extracted from the Yahoo Finance API, cleaned, and normalized for use in quantitative modeling and machine learning.
Dataset Hub: bguzzo2k/ohlc_1d_mixture
Repository Structure
1d/: Raw daily OHLCV data in Parquet format ({TICKER}_max_1d.parquet).log_ret_norm/: Normalized log-return data optimized for stationarity ({TICKER}_max_1d_norm.parquet).bulk/: Multi-ticker raw download aggregates before individual splitting.utils/: Python scripts for data acquisition, normalization, and configuration.tickers_list.toml: Central configuration file defining all 936 tracked assets across 9 distinct asset classes.
Dataset Construction Pipeline
The dataset is built using a modular pipeline that ensures reproducibility and quality:
1. Asset Configuration (tickers_list.toml)
The scope of the dataset is defined in tickers_list.toml. It organizes tickers into logical groups:
- Broad Market Indices (S&P 500, NASDAQ, Global Benchmarks)
- Fixed Income & Yields (US Treasuries, Corporate/International Bonds)
- Commodities & Futures (Energy, Metals, Agriculture)
- FX Matrices (Major/Emerging Currency Pairs)
- Sectors & Thematics (GICS Sectors, AI, Robotics)
- Digital Assets (Cryptocurrencies)
- S&P 500 Constituents (Individual equities)
2. Data Acquisition (utils/yfinace_dowloader.py)
Utilizes the yfinance library to fetch maximum historical data (period="max") at a 1-day interval.
- Filtering: Discards non-trading days (NaN Open values).
- Standardization: Retains core OHLCV columns and formats indices to
YYYY-MM-DD. - Persistence: Individual ticker files are stored in
1d/with Snappy compression.
3. Log-Return Normalization (utils/dataset_normalizartion.py)
Transforms raw price levels into stationary log-returns using the previous day's close ($Close_{t-1}$) as the reference:
- Calculation: $Metric_{norm} = \ln(Metric_t / Close_{t-1})$
- Numerical Stability: Implements clipping (threshold: $1 \times 10^{-9}$) to prevent numerical instability.
- Parallelization: Employs a
ThreadPoolExecutorfor high-throughput processing across the 936-file dataset.
4. S&P 500 Maintenance (utils/sp500_toml_generator.py)
A utility script that scrapes the current S&P 500 composition from Wikipedia to update the tickers_list.toml configuration dynamically.
Data Schema
Raw Data (1d/)
| Column | Type | Description |
|---|---|---|
| Index (Date) | String | ISO 8601 Date (YYYY-MM-DD) |
| Open/High/Low/Close | Float64 | Price metrics (USD or Local Currency) |
| Volume | Int64 | Trading volume |
Normalized Data (log_ret_norm/)
| Column | Type | Description |
|---|---|---|
| Index (Date) | String | ISO 8601 Date (YYYY-MM-DD) |
| Open_Norm | Float64 | $\ln(Open_t / Close_{t-1})$ |
| High_Norm | Float64 | $\ln(High_t / Close_{t-1})$ |
| Low_Norm | Float64 | $\ln(Low_t / Close_{t-1})$ |
| Close_Norm | Float64 | $\ln(Close_t / Close_{t-1})$ |
- Downloads last month
- 1,274