Skip to content

This repository hosts a Python script (main.py) which validates stock ticker symbols and fetches their most recent closing prices. It utilizes the yfinance library to interface with Yahoo Finance data.

Notifications You must be signed in to change notification settings

TheRealRabbit/yfinance-tickers-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The main.py file processes each ticker listed in the tickers.xlsx file, using the yfinance library to confirm its presence. If a given ticker is successfully located, the program labels its status as True and fetches its most recent closing price (just as an additional confirmation the ticker exists), both of which are then appended to the output. However, if the ticker cannot be located or an error occurs during the process, its status is labeled as False and no closing price is appended for that ticker. All of these results are then stored in a new CSV file called 'tickers_with_yahoo.csv'.

Original ticker list compiled by FML-Research https://github.com/FML-Research/us_stock_tickers

About

This repository hosts a Python script (main.py) which validates stock ticker symbols and fetches their most recent closing prices. It utilizes the yfinance library to interface with Yahoo Finance data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages