The project uses LEAN-compatible market data stored in the following structure:
data/
├── equity/
│ └── usa/
│ ├── daily/
│ │ └── SPY.csv # Daily SPY data
│ └── hour/
│ └── SPY.csv # Hourly SPY data
└── future/
└── cme/
└── minute/
└── ES.csv # ES futures data (to be added)
Each CSV file contains the following columns:
- timestamp: Time of the bar
- open_spy: Opening price
- high_spy: High price
- low_spy: Low price
- close_spy: Closing price
- volume_spy: Volume
To update the market data, run:
sudo ./utils/download_data.shThis will:
- Download fresh SPY data from Yahoo Finance
- Format it according to LEAN requirements
- Save it in the appropriate directories
Note: ES futures data must be obtained separately from a futures data provider.