Skip to content

yfinance does not return the latest (current day during market session) day's data using 'max' parameter. #2353

Description

@ceeyee

Describe bug

During US market hours, the historical data yfinance returns doesn't contain the current day's data using 'max' parameter. The latest data row is only the previous day, while it should be the current day's latest available data.

This problem only happens with the 'max' parameter. "5y" "1y" work without such issue.

Please investigate and ideally fix it. Thanks.

Simple code that reproduces your problem

data = yf.download(tickers=TickersList, period='max', group_by='ticker', auto_adjust=True, threads=False, proxy=None)

Debug log from yf.enable_debug_mode()

.

Bad data proof

No response

yfinance version

0.2.54

Python version

3.12.4

Operating system

Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions