Python yfinance library data for Microsoft (MSFT) stock data differs from Yahoo Finance online, e.g. Open price on 4/28/25

C:\Temp\StocksToTrack.txt

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”)

Hi @iraspin!

First, please quote your code so it’s easier to read. See About the Python Help category

Second, this forum is for Python help but your question is about a library that is not maintained here. You should report your bug at GitHub · Where software is built