Skip to main content
etl/prices_download.py · chapter Building a row, file 1 · 48 lines · open in the repository

What it does

Download daily prices for every in-scope retailer in config/retailers.csv, plus the market index (common.study.MARKET_TICKER), from Yahoo Finance, over the study period. Run once, from anywhere: python3 etl/prices_download.py Raw files land in raw/prices/<TICKER>.csv and are never committed. To add a stock, add a row to config/retailers.csv and run this again. If Yahoo blocks you, wait about 10 minutes and run it again. Tickers that are already saved are skipped, so a rerun only fetches the missing ones.

What is inside

Connections

Uses: src/common/contracts.py, src/common/settings.py, src/common/study.py

Source

etl/prices_download.py