> Every Taji docs page as Markdown: https://docs.taji.is/llms.txt

# SEC EDGAR

The SEC's free public filings database: you read and search every US-listed company's filings, its financial statements, its insiders' trades and the funds that hold it, straight from what was filed.

## What you get

US-listed company filings (index, full-text search and sections), XBRL financial statements, insider trades (Forms 3, 4 and 5), institutional 13F holdings, Schedule 13D/13G stakes and proxy executive compensation, keyless and free. What it serves, cell by cell: [SEC EDGAR coverage](https://docs.taji.is/reference/coverage/edgar.md).

## Behaviour and limits

Measured 2026-10-27 to 2026-11-17; each entry carries its own date.

### Access

Public, unauthenticated; an identifying `User-Agent` is required. **10 requests/second per client across every endpoint**, one budget for the address ("Current max request rate: 10 requests/second", `sec.gov/search-filings/edgar-search-assistance/accessing-edgar-data`, 2026-10-31); no concurrency limit stated (the hub's gate holds 16 calls, a socket bound only). Keyless in Taji.

Every read goes through **edgartools 6.5.0** (MIT, pinned in `substrate/taji-python/requirements.lock`) in EDGAR's Python worker, confined to `taji_edgar::HOSTS`, its environment its source's (`plugins/edgar/src/source.rs`):

- `EDGAR_IDENTITY`: this install's contact agent, `Taji <16 hex>@taji.is`, minted once into `<state dir>/plugins/edgar/edgar-agent` (`source::contact_agent`).
- `EDGAR_RATE_LIMIT_PER_SEC`: `9`, edgartools' own limiter, under SEC's 10: one blocking bucket of 9 a second for the worker's process, every lane and the 13F data sets' downloads drawing it (`edgar/httpclient.py:297-307,366-376,545`).

Its cache, `~/.edgar` in the worker's data (`<state dir>/plugins/edgar/data`): `_tcache/` holds submissions and tickers 30 s, archived documents for good. Each `.py` hands edgartools the worker's proxy (`configure_http`).

No retries: every module's first lines (`src/preamble.py`) call `stamina.set_active(False)`, a switch for the whole process, before edgartools does anything. A 403 or 429 reaches a family's `.py` as `RateLimited`; the crate then holds its process-wide `edgar` budget 600 s, refusing every later call unsent.

The 600 s is Taji's choice: SEC states no block length. Its rate notice says it "may limit further requests from the relevant IP address(es) for a brief period" and that access resumes "when the rate of requests drops below the 10-requests-per-second threshold" (`sec.gov/oit/announcement/new-rate-control-limits`, 2021-07-27, fetched 2026-12-02); its current pages state the rate and no block (`accessing-edgar-data`, `about/developer-resources`, `about/webmaster-frequently-asked-questions`, fetched 2026-12-02). SEC's 2015 lockout page read "Your access to SEC.gov will be limited for 10 minutes" (quoted at `thecorporatecounsel.net/blog/?p=9065`, 2015-12-08), and edgartools' docs say "typically 10 minutes to 24 hours" (`edgartools.readthedocs.io/en/latest/resources/sec-compliance/`, fetched 2026-12-02). Any other exception is answered as `edgartools: <Type>: <message>`.

edgartools is imported on a worker lane of its own 10 s after the window's first chart draws (`Hub::painted`), so the first read skips it. Idle close, 2026-10-31: `data.sec.gov` sends its FIN at 500 s idle, but edgartools' client reuses a connection idle 3 s and not one idle 10 s (by local port; httpx's 5 s, since httpxthrottlecache builds the transport without edgartools' 30 s `Limits`), so Taji does not warm it.

### Measured

2026-10-27 ET: the live suite (`plugins/edgar/tests/live.rs`) passes; `plugins/edgar/scripts/edgar_walk.py all` on a fresh keyless kernel, 76 of 76.

| Read | Measured |
|---|---|
| AAPL's filings, cold (with `import edgar`) | 1.82 s; reused 0.01 s (Taji reuses 5 min) |
| AAPL's insider trades, last 365 days | 55 filings, 168 lines, 9.2 s cold, 0.02 s reused |
| The market's newest 100 Form 4s | 36.1 s |
| AAPL's holders, first read (two data sets) | 6,597 rows, 29.1 s |
| BlackRock's 13F (2,012,383) | 6,010 rows (5,696 held), 4.9 s |
| Citadel Advisors' 13F (1,423,053) | 15,523 rows (13,572 held) |
| AAPL's 13G history | 83 filings, 19.3 s |
| The market's 13Ds, 100 rows, beside a data set fill | 37.1 s (at a 5,000-row default, 3,261 rows in 284.3 s) |
| AAPL's proxies, five years | 5 filings, 36 rows, 0.8 s |

**Acceptance gap** (`acceptance_gap`): on 50 filings of ten filers, 43 through agents, submissions' `acceptanceDateTime` equals the SGML header's to the second.

### Filings index

`Company(ticker).get_filings().to_pandas()` (`edgar/entity/core.py:386`): `data.sec.gov/submissions/CIK<10>.json` and its older pages, newest first. A ticker resolves through edgartools' bundled table, else SEC's `company_tickers.json`; an unknown one raises `CompanyNotFoundError`, answered as no rows.

`acceptanceDateTime` is labelled UTC and edgartools keeps it so (`edgar/dates.py:202`). `knowable_utc` is it, else the end of `filing_date` in New York. `items` is an 8-K's list (`2.02,9.01`). A row's `url` is `Archives/edgar/data/<cik>/<accession, no dashes>/<accession>-index.html` (SEC refuses the shorter path with 403).

### Full-text search

`search_filings` (`edgar/search/efts.py:504`): `efts.sec.gov/LATEST/search-index`, filings since 2001. Measured 2026-10-27: a hit carries **no highlight**; 100 hits a page by relevance; `hits.total` stops at 10,000. EFTS ignores a one-ended span (edgartools closes it).

### Filing sections

`get_by_accession_number(a)` (`_filings.py:2830`) answers `None` for an accession SEC's index lacks and raises `IndexError` on a malformed one (`sections.py` checks the format first). `filing.obj()` is a `TenK`, `TenQ` or `CurrentReport` for those forms, whose `.items` are the filing's own (`Item 1A`; a 10-Q's `Part II, Item 1A`, so its id carries its part; `Item 2.02`); any other form is one `document` row of `filing.text()`. An item's text opens with its heading, the row's `title`.

The SGML header's `ACCEPTANCE-DATETIME` (`edgar/sgml/sgml_header.py:453`) is New York time; a pre-2001 filing states none.

### Schedules 13D and 13G, and proxy compensation

The filer's and the subject's index both hold a schedule: the cover's issuer decides. Forms are `SC 13D`, `SC 13G` and `/A` until December 2024, `SCHEDULE 13D` and `SCHEDULE 13G` after, in structured XML.

`Schedule13D.from_filing` / `Schedule13G.from_filing` (`edgar/beneficial_ownership/schedule13.py`) read the structured XML, else the SGML header's filers with every figure unreported, both off the one full-submission `.txt`: one request, 0.1-0.4 s. A 2026 13G states `reportingPersonCIK` for no person; `percentOfClass` and `aggregateAmountOwned` are the person's own, 0 on an exit filing.

`ProxyStatement(filing).summary_compensation_table` (`edgar/proxy/core.py:559`) is HTML-extracted, Regulation S-K Item 402(c)'s columns, a blank None. `name` and `title` come from one cell split where the filing wraps it, a footnote mark kept (`Young5`), and a cell can hold the title alone, its name in the row before.

### Fundamentals

Per filing, edgartools' summary statements (`plugins/edgar/src/fundamentals.py`): each non-abstract, non-dimensional face row, with its standard id where edgartools maps one (`xbrl/standardization/core.py:984`).

Values are raw XBRL, USD periods only (MSFT files `U_USD`, through FY2022 `U_iso4217USD`), keyed `duration_<start>_<end>` or `instant_<date>`; the cover's count is the non-dimensional `dei:EntityCommonStockSharesOutstanding` (dual-class per-class counts are dimensional, unread).

**Line selection.** The map is many-to-one; `gaap_mappings.json` confidence is 1.0 on totals, 0.9 or 0.94-0.999 on direct mappings and 0.31-0.5 on parts; the most confident row serves. A tie serves the agreed value, else the concept `prefer` lists first (WMT's `us-gaap_Revenues`), else none, which the join fills (JPM's cash and due from banks plus deposits with banks, and XOM's inventory lines, are Yahoo's). A line naming a filed concept takes it from any standard: `CommonStockValue`, JPM's preferred stock and the working-capital changes.

**Derived lines** (`DERIVED`). A line a filing does not state is its lines' sum: total operating expenses (revenue less cost and operating income: COST, WMT), pretax income (net income plus tax, none beside a discontinued operation, equity income or noncontrolling interest: COST's pretax row maps `NetIncome`), total liabilities beside temporary equity (liabilities and equity less both: WMT). Other income is always pretax less operating income, Yahoo's too. Else `hub::derived::fallbacks`.

"Non-operating income, total" is pretax less operating income; total liabilities exclude redeemable interest (WMT's redeemable interest left out).

**Statement lines** (2026-11-17, `edgartools` 6.3.0: AAPL, COST, NVDA, WMT, JPM, XOM latest 10-Ks). `LINES` maps standard rows (`signed` outflows/treasury negative, `cash_effect` on asset changes); 6.3.0 moved `PaymentsOfDividends` to `CommonDividendsPaid`, `MarketableSecuritiesNoncurrent` to `LongtermInvestments`, `ContractWithCustomerLiabilityCurrent` to `DeferredRevenueCurrent`, `TreasuryStockCommonValue` to `TreasuryShares` and `LaborAndRelatedExpense` to `LaborExpenses` (JPM COGS null). `UNREAD` suppresses misclassified concepts: XOM's `CashAcquiredFromAcquisition` and `ProceedsFromPaymentsToMinorityShareholders`, and JPM's ambiguous `AccountsPayableAndAccruedLiabilitiesCurrentAndNoncurrent`. Unserved, mixing parts or unmapped: `InvestmentProceeds`, `InvestmentPurchases`, `DebtProceeds`, `DebtRepayments`, `CommonDividendsPaid`, `DistributionsToMinorityInterests`, `ChangeInReceivables`, `ChangeInOtherWorkingCapital`, `OtherOperatingCurrentLiabilities`. Faces omit gross PP&E, depreciation splits, receivable/inventory breakdowns, dividends payable, FFO and net issuance. JPM lacks current splits (`OtherAssets`/`OtherLiabilities` answer).

**Stray periods.** An end within seven days of another's of the line and span that fewer filings state is dropped (a fact ending a day after the end its later filings state).

A 10-Q states year-to-date durations, the 10-K the year: **there is no Q4 value**; a discrete quarter is the 3-month value where filed, else the difference of two year-to-dates of one start. Each period a filing states is a vintage at its SGML acceptance; a later filing's different value is `restated`.

**The XOM CIK trap.** `XOM` maps to CIK 2115436 (ExxonMobil Holdings, filing from its own first filing); the history is CIK 34088. Both indexes are read. XOM files `CostsAndExpenses` alone: no cost of revenue, gross profit or operating income maps.

### Ownership forms

`insider_trades` reads each Form 3, 4 or 5 through `Filing(...).obj()`, one request whose header carries the acceptance: `non_derivative_table` and `derivative_table` (`transactions`, `holdings`), `issuer` (name, CIK, ticker), `reporting_owners.owners[0]`, `aff10b5_one`; not `to_dataframe(detailed=True)`, which drops each line's date, owned-after and direct columns. A derivative Form 3 carries the position in `underlyingSecurityShares`. SEC publishes no bulk file of Forms 3, 4 and 5.

### Form 13F-HR

`Filing(cik, company, form, filed, accession).obj()` is a `ThirteenF`; `.holdings` aggregates by (CUSIP, put/call). `Value` is dollars through `value_unit_resolution` (`edgar/thirteenf/units.py:68`): thousands where at least half the priceable share rows imply a price under $1, else the schema (`X0202` and later dollars, from 2023-01-03), else a period through 2022-09-30 thousands; `ambiguous` is true whenever the schema or period decided. `13F-HR/A` is `RESTATEMENT` or `NEW HOLDINGS` (adds, never replaces). `13F-NT` has no table: Vanguard (102909) files one.

### 13F data sets

`01jun2026-31aug2026` (under `files/datastandardsinnovation/`, older ones `files/structureddata/`), through `stream_with_retry(url, bypass_cache=True)`: zip 100.7 MB, loaded `holdings_13f` 192 MB (2,846,475 lines of 9,900 accessions); periods back to 2024-09-30 (late filers).

Past the window (2026-10-28): `get_filings` lists 3,249 `13F-HR` and `13F-HR/A` filed since 2026-09-01 in 1.4 s; September's originals and amendments, 262, read per filing in 37.9 s. A symbol's read tops up with them, each stored once: AAPL cold 76.2 s with both sets, again 0.7 s; restarted, 5.5 s at its instant.

## Open

- edgartools' docs warn `acceptanceDateTime` is hours off for some filers; none of the 50 measured is.

## References

- EDGAR APIs: https://www.sec.gov/search-filings/edgar-application-programming-interfaces
- Full-text search FAQ: https://www.sec.gov/edgar/search/efts-faq.html
- Fair access: https://www.sec.gov/about/webmaster-frequently-asked-questions
- Form 13F XML technical specification 2.0: https://www.sec.gov/edgar/filer/technical-specifications
- edgartools 6.5.0: https://github.com/dgunning/edgartools/tree/v6.5.0
- How this plugin is built, and why: [SEC EDGAR: how it works](https://docs.taji.is/catalog/edgar/architecture.md)
