Skip to content

Inconsistent / missing data for common queries #325

@melgazar9

Description

@melgazar9

Describe the bug
No data returned for many common requests. Not sure if this is a yahoo API issue or a yahooquery issue, but I thought I'd post here. Of course we'd expect SEC filings data for AAPL, but no data is returned with yahooquery.

Maybe this is a rate limiting issue?

To Reproduce
Steps to reproduce the behavior:

poetry run python
Python 3.11.13 (main, Jun 10 2025, 12:47:17) [Clang 16.0.0 (clang-1600.0.26.6)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import yfinance as yf
imp>>> 
>>> import yahooquery as yq

>>> yf.__version__
'0.2.63'
>>> yq.__version__
'2.4.1'
>>> 


>>> data_yf = yf.Ticker('AAPL').sec_filings
>>> data_yq = yq.Ticker('AAPL').sec_filings
>>> data_yf[0]
{'date': datetime.date(2025, 5, 2), 'epochDate': 1746144000, 'type': '10-Q', 'title': 'Periodic Financial Reports', 'edgarUrl': 'https://finance.yahoo.com/sec-filing/AAPL/0000320193-25-000057_320193', 'exhibits': {'10-Q': 'https://cdn.yahoofinance.com/prod/sec-filings/0000320193/000032019325000057/aapl-20250329.htm', 'EX-31.1': 'https://cdn.yahoofinance.com/prod/sec-filings/0000320193/000032019325000057/a10-qexhibit31103292025.htm', 'EX-31.2': 'https://cdn.yahoofinance.com/prod/sec-filings/0000320193/000032019325000057/a10-qexhibit31203292025.htm', 'EX-32.1': 'https://cdn.yahoofinance.com/prod/sec-filings/0000320193/000032019325000057/a10-qexhibit32103292025.htm', 'EXCEL': 'https://s3.amazonaws.com/finance-pri-uw2/sec-filings/0000320193/000032019325000057/Financial_Report.xlsx'}, 'maxAge': 1}
>>> data_yqpoetry run python
Python 3.11.13 (main, Jun 10 2025, 12:47:17) [Clang 16.0.0 (clang-1600.0.26.6)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import yfinance as yf
imp>>> 
>>> import yahooquery as yq
>>> data_yf = yf.Ticker('AAPL').sec_filings
>>> data_yq = yq.Ticker('AAPL').sec_filings
>>> data_yf[0]
{'date': datetime.date(2025, 5, 2), 'epochDate': 1746144000, 'type': '10-Q', 'title': 'Periodic Financial Reports', 'edgarUrl': 'https://finance.yahoo.com/sec-filing/AAPL/0000320193-25-000057_320193', 'exhibits': {'10-Q': 'https://cdn.yahoofinance.com/prod/sec-filings/0000320193/000032019325000057/aapl-20250329.htm', 'EX-31.1': 'https://cdn.yahoofinance.com/prod/sec-filings/0000320193/000032019325000057/a10-qexhibit31103292025.htm', 'EX-31.2': 'https://cdn.yahoofinance.com/prod/sec-filings/0000320193/000032019325000057/a10-qexhibit31203292025.htm', 'EX-32.1': 'https://cdn.yahoofinance.com/prod/sec-filings/0000320193/000032019325000057/a10-qexhibit32103292025.htm', 'EXCEL': 'https://s3.amazonaws.com/finance-pri-uw2/sec-filings/0000320193/000032019325000057/Financial_Report.xlsx'}, 'maxAge': 1}

>>> data_yq
Empty DataFrame
Columns: []
Index: []

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