This Python script provides a user-friendly interface to fetch historical stock data for specified tickers. Users can input a range of tickers via a CSV file, select the desired date range and data granularity, and receive consolidated stock data in a structured format.
gui.py
: Contains the code for the graphical user interface.data_processing.py
: Handles fetching and saving the stock data.tickerTracker.py
: The main script that orchestrates the flow of the application.
- CSV Input for Tickers: Input multiple stock tickers through a CSV file with an option to skip the first row.
- Customizable Date Range: Specify start and optional end dates for fetching historical data.
- Selectable Data Period: Choose data frequency (e.g., daily, weekly, monthly) via a dropdown menu.
- Graphical User Interface: A modern GUI built with CustomTkinter.
- Output Customization: Specify the output file name, saved in the 'output/' directory.
- Data Consolidation: Consolidate data from all tickers into a single CSV file.
- Clone or download the repository.
- Install necessary Python libraries by running
pip install -r requirements.txt
. - Run the main script:
python tickerTracker.py
. - Follow the instructions in the GUI to input your data and preferences.
- CSV File Path: Use 'Browse' to select a CSV file with stock tickers.
- Skip First Row: Check if your CSV has a header row.
- Start Date: Enter the start date (YYYY-MM-DD).
- End Date: Optionally, enter the end date (YYYY-MM-DD).
- Period: Select data frequency from the dropdown (e.g., '1d').
- Output File Name: Enter a name for the output file.
- Click 'Submit' to fetch data and save it to the specified output file.
- Python
- CustomTkinter
- Pandas
- yfinance