Skip to content

Commit 099d09d

Browse files
dgunningclaude
andcommitted
Add FundShareholderReport data object for N-CSR/N-CSRS filings
N-CSR (annual) and N-CSRS (semiannual) fund shareholder reports use Inline XBRL with the OEF taxonomy. This adds a typed wrapper that parses share class data (expenses, performance, holdings) via the FactQuery API, with Rich display and DataFrame accessors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f866ce8 commit 099d09d

4 files changed

Lines changed: 800 additions & 0 deletions

File tree

‎edgar/__init__.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
from edgar.financials import Financials, MultiFinancials
4646
from edgar.funds import FundClass, FundCompany, FundSeries, find_fund
4747
from edgar.funds.ncen import NCEN_FORMS, FundCensus
48+
from edgar.funds.ncsr import NCSR_FORMS, FundShareholderReport
4849
from edgar.funds.nmfp3 import MONEY_MARKET_FORMS, NMFP2_FORMS, NMFP3_FORMS, MoneyMarketFund
4950
from edgar.funds.reports import NPORT_FORMS, FundReport
5051
from edgar.bdc import BDCEntities, BDCEntity, get_bdc_list, get_active_bdc_ciks, is_bdc_cik
@@ -216,6 +217,8 @@ def get_obj_info(form: str) -> tuple[bool, Optional[str], Optional[str]]:
216217
'N-MFP2': ('MoneyMarketFund', 'money market fund portfolio holdings'),
217218
'N-MFP3': ('MoneyMarketFund', 'money market fund portfolio holdings'),
218219
'N-CEN': ('FundCensus', 'registered investment company annual census'),
220+
'N-CSR': ('FundShareholderReport', 'fund shareholder report'),
221+
'N-CSRS': ('FundShareholderReport', 'fund shareholder report'),
219222
'N-PX': ('NPX', 'annual proxy voting record'),
220223
'DEF 14A': ('ProxyStatement', 'proxy statement with executive compensation'),
221224
'DEFA14A': ('ProxyStatement', 'additional proxy soliciting materials'),
@@ -307,6 +310,9 @@ def obj(sec_filing: Filing) -> Optional[object]:
307310
elif matches_form(sec_filing, NCEN_FORMS):
308311
return FundCensus.from_filing(sec_filing)
309312

313+
elif matches_form(sec_filing, NCSR_FORMS):
314+
return FundShareholderReport.from_filing(sec_filing)
315+
310316
elif matches_form(sec_filing, MONEY_MARKET_FORMS):
311317
return MoneyMarketFund.from_filing(sec_filing)
312318

‎edgar/funds/__init__.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
)
3939
from edgar.funds.data import FundData, get_fund_information, is_fund_ticker, parse_fund_data, resolve_fund_identifier
4040
from edgar.funds.ncen import NCEN_FORMS, FundCensus
41+
from edgar.funds.ncsr import NCSR_FORMS, FundShareholderReport
4142
from edgar.funds.nmfp3 import MONEY_MARKET_FORMS, NMFP2_FORMS, NMFP3_FORMS, MoneyMarketFund
4243
from edgar.funds.reports import NPORT_FORMS, CurrentMetric, FundReport, get_fund_portfolio_from_filing
4344

@@ -136,6 +137,10 @@ def __init__(self, data=None):
136137
'FundCensus',
137138
'NCEN_FORMS',
138139

140+
# Fund shareholder report (N-CSR / N-CSRS)
141+
'FundShareholderReport',
142+
'NCSR_FORMS',
143+
139144
# Legacy compatibility
140145
'get_fund_with_filings',
141146
'FundSeriesAndContracts',

0 commit comments

Comments
 (0)