ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
14.93k stars 2.45k forks source link

Missing Daily Data - June 11 (data from yesterday) for all tickers #1962

Closed rahulsinghania closed 5 months ago

rahulsinghania commented 5 months ago

Describe bug

June 11 (data from yesterday) data is missing for all tickers. Values are listed as non

Simple code that reproduces your problem

import yfinance as yf

print(yf.version)

def dailyData(tickerList): data = yf.download( tickers=tickerList, period="6mo", interval="1d", group_by="ticker", auto_adjust=False, prepost=False, threads=True, proxy=None, ) return data

Define the ticker list with MSFT

ticker_list = ["MSFT"]

Get the daily data for MSFT

msft_data = dailyData(ticker_list)

Print the daily data for MSFT

print(msft_data)

Debug log

0.2.40 [*****100%%**] 1 of 1 completed Open High Low Close Adj Close Volume Date
2023-12-13 376.019989 377.640015 370.769989 374.369995 373.006165 30955500 2023-12-14 373.309998 373.760010 364.130005 365.929993 364.596924 43277500 2023-12-15 366.850006 372.399994 366.279999 370.730011 369.379456 78478200 2023-12-18 369.450012 373.000000 368.679993 372.649994 371.292419 21802900 2023-12-19 371.489990 373.260010 369.839996 373.260010 371.900238 20603700 ... ... ... ... ... ... ... 2024-06-05 417.809998 424.079987 416.299988 424.010010 424.010010 16988000 2024-06-06 424.010010 425.309998 420.579987 424.519989 424.519989 14861300 2024-06-07 426.200012 426.279999 423.000000 423.850006 423.850006 13621700 2024-06-10 424.700012 428.079987 423.890015 427.869995 427.869995 14003000 2024-06-12 435.320007 443.399994 433.250000 441.059998 441.059998 22221056

Bad data proof

2024-06-05 417.809998 424.079987 416.299988 424.010010 424.010010 16988000 2024-06-06 424.010010 425.309998 420.579987 424.519989 424.519989 14861300 2024-06-07 426.200012 426.279999 423.000000 423.850006 423.850006 13621700 2024-06-10 424.700012 428.079987 423.890015 427.869995 427.869995 14003000 2024-06-12 435.320007 443.399994 433.250000 441.059998 441.059998 22221056

yfinance version

^0.2.40

Python version

^3.11

Operating system

MacOS 14.5 (23F79)

rahulsinghania commented 5 months ago

Looks like data is missing from yahoo finance website itself. Hopefully they will correct this issue soon -