get_quarterly_financials() returns None for TSM — clarify or improve the 6-K fallback
Issue Type
- [x] Data Quality Issue (incorrect financial values, missing data)
- [ ] XBRL Parsing Issue (statement rendering, concept mapping)
- [ ] Filing Access Issue (download failures, attachment problems)
- [ ] Performance Issue (slow operations, memory problems)
- [ ] Compatibility Issue (platform/dependency conflicts)
- [ ] Documentation Issue (unclear instructions, missing examples)
Environment
- EdgarTools version: [5.62.1]
- Python version: [3.12.16]
- Operating system: [macOS-26.3.2-arm64-arm-64bit]
- Source commit, if running from a checkout: 3931b22077eee1e0d2b77a8c5a61ab415d51ae0b
Description
Company("TSM").get_quarterly_financials() returns None.
I am trying to retrieve TSM's latest quarterly financial statements. TSM publishes quarterly earnings information through Form 6-K, but it is unclear whether this method supports those disclosures.
Minimal reproduction
from edgar import Company
# EDGAR_IDENTITY is configured in the environment.
company = Company("TSM")
financials = company.get_quarterly_financials()
print(financials)
Actual output:
None
Selected filing
- Accession number: 0001046179-26-000728
- Filing date: 2026-10-22
filing.xbrl() is not None: False
Expected behavior
Ideally, the method would locate the latest supported quarterly financial report.
If TSM's quarterly disclosures are outside this method's supported scope, clearer documentation or diagnostics would help distinguish an unsupported disclosure format from an absence of quarterly financial information.
Investigation
In the checkout I inspected, the method:
- Looks for the latest 10-Q.
- Otherwise selects the latest unamended 6-K.
- Passes that filing to
Financials.extract().
It does not search earlier 6-Ks for a quarterly earnings release. Financials.extract() returns None when no XBRL object is available.
I understand that returning None for a filing without XBRL is intentional. This report concerns the higher-level filing selection and the clarity of the quarterly API's supported scope.
Would you prefer an improvement to 6-K selection and diagnostics, or a separate enhancement proposal for reading quarterly earnings tables without XBRL?
Reproduced this on 5.62.1 against live data (TSM, CIK 1046179). Two things came out of it.
1. It no longer returns None. It returns Financials(No data) and emits
the FutureWarning from Financials.extract:
FutureWarning: This filing has no XBRL attachments, so there are no financial
statements to read from it. ... This returns None today and raises
XBRLFilingWithNoXbrlData in edgartools 6.0.
So the "clarify" half of this issue looks done on the current release - the
None in the report matches an older checkout than 5.62.1.
2. Walking back through the 6-K list would not help for this issuer. TSM has
636 6-K filings between 2014-06-10 and 2026-10-22. I sampled 25 spread evenly
across that range and filing.xbrl() is not None was False for every one.
The newest eight (2026-08-14 to 2026-10-22) are also all False.
filings = list(tsm.get_filings(form="6-K", amendments=False, trigger_full_load=False))
sample = filings[::len(filings)//25][:25]
sum(1 for f in sample if f.xbrl() is not None) # -> 0
So for a foreign private issuer that files 6-K without inline XBRL, there is
nothing for get_quarterly_financials() to find. The current return value is
the honest answer, and a fallback that scans further would return the same thing
after more requests.
Suggestion: close as working as intended. If you would rather keep a doc change, the docstring's "most 6-Ks don't" is accurate but could say "a 6-K only carries XBRL when the issuer attaches tagged statements to it, which foreign private issuers filing 6-K generally do not".
Happy to open a PR with a test that pins this behaviour if that is useful -
get_quarterly_financials() on an issuer with only untagged 6-Ks returns a
Financials with no data rather than raising.
Thanks for checking this and explaining the XBRL limitation.
One clarification: my reproduction uses a main checkout at commit 3931b22077eee1e0d2b77a8c5a61ab415d51ae0b, rather than the published v5.62.1 release. That checkout still reports version 5.62.1, but Financials.extract() explicitly returns None when XBRL is absent. I’ll clarify the source checkout in the environment section.
I agree that scanning earlier filings alone cannot recover XBRL that does not exist. My underlying goal is to retrieve the quarterly financial information present in TSM’s HTML earnings exhibits through the existing get_quarterly_financials() interface.
This would therefore be an enhancement rather than an XBRL parsing fix. I have a local prototype that reuses the existing earnings-table parser and returns a populated Financials object. For TSM’s 6-K 0001046179-26-000726, it reads the reported quarterly net income of TWD 763,064 million.
Would the maintainers consider a bounded HTML income-statement fallback in this method? It would need explicit documentation that xb is None and the statement is table-backed. I’d like to confirm that direction before opening a PR.
Verified the figure you quoted, and found three things that will affect the fallback.
1. The number is right. 763,064 is in the exhibit a3q26e_withguidancexfinal.htm of
0001046179-26-000726, as plain HTML text:
Net income 763,064 452,302 68.7 706,562 8.0
The primary document tsm-20261015x6k.htm links to that exhibit, so it is reachable without
guessing a filename.
2. "Latest 6-K" is the wrong selector - and that is why the current run found nothing. The two filings are not the same kind of document:
| Accession | Filed | Primary document | Income statement |
|---|---|---|---|
| 0001046179-26-000728 | 2026-10-22 | tsm-monthend6kx20261022.htm |
no - monthly revenue report |
| 0001046179-26-000726 | 2026-10-15 | tsm-20261015x6k.htm |
yes, in its exhibit |
The newest 6-K is a monthly revenue report. The earnings release is a week older. So a fallback that takes the latest 6-K returns nothing even with HTML support; the selector has to identify the earnings exhibit - the 6-K whose document links to an exhibit containing a consolidated results table - rather than the most recent 6-K.
3. Three traps in that table in particular:
- Five columns:
3Q26 Amount | 3Q25 Amount | YoY% | 2Q26 Amount | QoQ%. Reading the row naively gives you last year's figure and two percentages interleaved with the two amounts. - The unit is in the prose before the table ("Unit: NT$ million, except for EPS"), not in
the header.
763,064without its unit is not a usable number. - Footnote
areads "3Q2026 figures have not been approved by Board of Directors". If the object is presented as financials, that caveat should travel with it.
So I would support the direction, with the selector as the main design decision rather than
the table parsing you already have. If xb is None is documented, and the statement carries
its unit and the unaudited note, a table-backed Financials is honest rather than misleading.
Happy to help with the selector logic or the test fixtures if that is useful - the two accessions above make a good pair: one must return data, the other must not.