ceeyee
ceeyee
For example, right now is 11:20am EST on 03/11/2025. My example program below downloads prices for SPY and QQQ. For QQQ the data is correct, while the last row downloaded...
import yfinance as yf import os TickersList = ['SPY','QQQ'] yf.enable_debug_mode() data = yf.download(tickers=TickersList, period='max', group_by='ticker', auto_adjust=True, threads=False, proxy=None) for ticker in TickersList: ticker_data = data[ticker].dropna() ticker_data.to_csv(os.path.join(os.path.dirname(os.path.realpath(__file__)), ticker + '.csv'), sep=',',...
Yes, missing current day's data. However, it only happens with the 'max' parameter. When it's '5y' or '1y' it returns current day as the last row without issue. Remember in...