edgartools icon indicating copy to clipboard operation
edgartools copied to clipboard

missing early filings

Open lsy617004926 opened this issue 1 year ago • 11 comments

Why when I use get_fillings, I can only get filing start from 2019 for MSFT?

Image

lsy617004926 avatar Aug 07 '25 21:08 lsy617004926

I've also had this issue. However, I managed to work around it by instead doing annual_reports = company.get_filings(form='10-K', filing_date='1990-01-01:') to force it to work correctly.

nmiller987 avatar Aug 12 '25 19:08 nmiller987

I cannot reproduce but maybe there is a caching issue. What does the following show?


filings = c.get_filings(form="10-K")
print("Date Range for 10-K filings for MSFT", filings.date_range)
print(filings)

filings = c.get_filings()
print("Date Range for all filings for MSFT", filings.date_range)
print(filings)

dgunning avatar Aug 12 '25 20:08 dgunning

Here they are: Image

Image

lsy617004926 avatar Aug 13 '25 17:08 lsy617004926

You shouldn't be getting 1000 filings. This means that it is not fetching the next page of filings. What is your version of edgartools? pip show edgartools

dgunning avatar Aug 13 '25 18:08 dgunning

the version is 4.6.2 Thanks!

lsy617004926 avatar Aug 14 '25 00:08 lsy617004926

The company filings endpoint returns 1000 filings at a time. If you are only seeing 1000 filings it means it is not paging for the remaining filings.

Try with trigger_full_load. This is the default and should happen for you

c.get_filings(trigger_full_load=True)

Also try with other tickers you have not tried before. You should see more than 1000 fillings. If it is just happening with MSFT then maybe it is a caching issue

dgunning avatar Aug 14 '25 11:08 dgunning

c.get_filings(trigger_full_load=True) get the same result like before. I tried anouther ticker. It always gave me the the 10-K in the first 1000 files

Image Image Image Image

lsy617004926 avatar Aug 14 '25 17:08 lsy617004926

Not sure if related, but having an issue with some companies, such as BTBT. Where fetching the data returns missing years

filings = company.get_filings(form="10-K").head(5)
# financials = MultiFinancials.extract(filings)
xbrls = XBRLS.from_filings(filings)
stitched_statements = xbrls.statements
income_trend = stitched_statements.income_statement().to_dataframe()

print("Three-Year Revenue Trend:")
revenue_row = income_trend.loc[income_trend['concept'] == 'us-gaap_Revenues']

print(revenue_row)

//
     label           concept   2024-12-31
0  Revenue  us-gaap_Revenues  108050720.0

BTBT has been public since 2018, so there should be more years of data.

Danfraga33 avatar Aug 20 '25 00:08 Danfraga33

I'm also not seeing filings for earlier years for some tickers, e.g. SON I only can get 10k/10q for 2021 onwards

dx-li avatar Sep 10 '25 15:09 dx-li

Unable to Reproduce - Please Confirm on Latest Version

I've tested this issue on the current version (v4.31.0) and cannot reproduce the pagination problem:

Test Results (v4.31.0)

MSFT (Microsoft):

  • ✅ Total filings: 4,354 (not stuck at 1,000)
  • ✅ Date range: 1994-02-14 to 2025-11-21
  • ✅ 10-K filings: 32 going back to 1994-09-27
  • ✅ No difference with filing_date='1990-01-01:' workaround

For Affected Users

The original report mentioned using v4.6.2 (from August 2024). Many pagination improvements have been made since then.

Please help us confirm:

  1. What version are you using?

    from edgar.__about__ import __version__
    print(__version__)
    
  2. Can you upgrade to the latest version?

    pip install --upgrade edgartools
    
  3. Does the issue still occur after upgrading? Please test with:

    from edgar import Company
    
    company = Company('MSFT')  # or your affected ticker
    filings = company.get_filings(form='10-K')
    print(f'Total 10-K: {len(filings)}')
    print(f'Date range: {filings.date_range}')
    print(f'Earliest: {filings[-1].filing_date}')
    

Expected Results (v4.31.0)

For mature companies like MSFT, you should see:

  • Thousands of total filings (not capped at 1,000)
  • Historical data going back to the 1990s
  • No need for filing_date workaround

@lsy617004926 @Danfraga33 @dx-li - Can you confirm if this is still an issue after upgrading to v4.31.0?

If the issue persists on the latest version, please provide:

  • Your exact edgartools version
  • The ticker causing issues
  • Output from the test code above

If upgrading fixes it, I'll close this issue as resolved. Thank you!

dgunning avatar Nov 24 '25 22:11 dgunning

This issue was confirmed fixed in 5.21.0

dgunning avatar Mar 11 '26 09:03 dgunning