dpguthrie / dpguthrie/yahooquery

Inconsistent / missing data for common queries

Open
#325 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
920
Forks
164
PR merge metrics
No merged PRs in 30d

Description

**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: []
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.