Closed as not planned
Description
Bug report
Bug description:
import yfinance as yf
C:\Temp\StocksToTrack.txt file contains stock tickers/symbols
with open("C:/Temp/StocksToTrack.txt", 'r') as file:
content = file.read()
chunks = content.split(',')
for element in chunks:
#print(f"Element: {element}")
ticker = yf.Ticker(f"{element}")
temp = ticker.history('5y')
temp.to_csv("C:/Temp/StocksHistoricalPrices/" + f"{element}" + ".csv")
CPython versions tested on:
3.11
Operating systems tested on:
Windows