yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

wrong earnings_date comparing with yahoo.com (version 0.2.54)

Open jack-hhh-2018 opened this issue 9 months ago • 1 comments

Describe bug

stock earnings_dates from yfinance is 1 day earlier than what yahoo website shows. I tried several tickers and they all have the same problem. Use "GOOGL" as example, one of the earnings dates yfinance returned is 2025-02-03 19:00:00-05:00. On yahoo website https://finance.yahoo.com/calendar/earnings?symbol=GOOGL, it is "February 4, 2025 at 4 PM EST". My yfinance version is latest (0.2.54).

Simple code that reproduces your problem

import yfinance stock = yfinance.Ticker("GOOGL") stock.earnings_dates

Debug log from yf.enable_debug_mode()

DEBUG Entering get_earnings_dates() DEBUG Entering post() DEBUG Entering _make_request() DEBUG url=https://query1.finance.yahoo.com/v1/finance/visualization DEBUG params={'lang': 'en-US', 'region': 'US'} DEBUG Entering _get_cookie_and_crumb() DEBUG cookie_mode = 'basic' DEBUG Entering _get_cookie_and_crumb_basic() DEBUG reusing cookie DEBUG reusing crumb DEBUG Exiting _get_cookie_and_crumb_basic() DEBUG Exiting _get_cookie_and_crumb() DEBUG response code=200 DEBUG Exiting _make_request() DEBUG Exiting post() DEBUG Exiting get_earnings_dates()

Bad data proof

https://finance.yahoo.com/calendar/earnings?symbol=GOOGL

yfinance version

0.2.54.

Python version

3.12.1

Operating system

windows

jack-hhh-2018 avatar Mar 19 '25 13:03 jack-hhh-2018

duplicate #2365

ValueRaider avatar Mar 19 '25 18:03 ValueRaider