Skip to content

pegRatio missing from yfinance.info since June 2025 (worked before) #2570

@ravesma

Description

@ravesma

Describe bug

The pegRatio field from yfinance.Ticker(ticker).info suddenly returns None for many tickers.

Until May 30, 2025, this worked fine for stocks like AAPL, MSFT, GOOGL. Since June, it seems to have silently broken – the field is missing entirely in the .info dictionary.

I checked that the PEG ratio is still visible on Yahoo Finance directly, so the data exists.

Simple code that reproduces your problem

import yfinance as yf

ticker = yf.Ticker("AAPL")
info = ticker.info

print("PEG Ratio:", info.get("pegRatio")) # returns None

Debug log from yf.enable_debug_mode()

PEG Ratio key missing from .info output. Tried with yf.enable_debug_mode(), but no specific error is shown – PEG key just doesn't appear anymore in the dictionary.

Bad data proof

The PEG ratio is still listed here:
https://finance.yahoo.com/quote/AAPL/key-statistics/

Example:
PEG Ratio (5 yr expected): 1.97 (as of July 2025)

But .info.get("pegRatio") returns None.

yfinance version

0.2.65

Python version

3.11.2

Operating system

Raspberry Pi OS Bookworm (Linux 6.12.34, armv7l)

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