Skip to main content

SEC EDGAR: how it works

SEC EDGAR is the US Securities and Exchange Commission's public filings database. Taji takes seven history products from it for US equities: filings, filing_sections, fundamentals, insider_trades, holdings, ownership_stakes and executive_comp. It takes no prices. The plugin is one Rust crate, taji-edgar, and is a keyless data source. It reaches data.sec.gov, www.sec.gov and efts.sec.gov only through edgartools 6.3.0, a Python library that runs in a confined worker process. Each product family is a pair of files: a .py file of edgartools calls that answer plain JSON, and a .rs file that types the JSON and builds the product's rows.

The vendor​

Hosts. EDGAR has one environment, production. Taji reaches three hosts:

  • data.sec.gov: the submissions JSON (/submissions/CIK##########.json), which holds one filer's index of filings.
  • www.sec.gov: the Archives/edgar/ tree, which holds each filing's documents, its full-submission .txt and the quarterly and daily indexes. The same host serves the Form 13F data sets page and its zips.
  • efts.sec.gov: full-text search, at /LATEST/search-index.

Auth. EDGAR has none. The data APIs "do not require any authentication or API keys" (EDGAR APIs, fetched 2026-12-02). Automated clients must "declare your user agent in request headers", in the form of a company name and a contact email (Accessing EDGAR data, fetched 2026-12-02). The account and entitlement model is likewise empty: every filing is public, and there are no plans or tiers.

Stated limits. "Current max request rate: 10 requests/second" (Accessing EDGAR data, fetched 2026-12-02). SEC's fair-access announcement applies that limit "regardless of the number of machines used to submit requests", and says SEC "may limit further requests from the relevant IP address(es) for a brief period" (New rate control limits, 2021-07-27, fetched 2026-12-02). None of the current official pages fetched on 2026-12-02 gives the length of that block. data.sec.gov does not support CORS. That restriction does not affect Taji, because Taji calls SEC from the kernel's worker, never from a browser.

API families Taji calls. Every call goes through edgartools.

FamilyWhat it isOfficial doc (fetched 2026-12-02)
Submissionsdata.sec.gov/submissions/CIK<10>.json and its older pages. These are updated "in real time" as filings are disseminated.EDGAR APIs
Archives and indexes/Archives/edgar/full-index (the quarter to date, rolled into a static quarterly index), /Archives/edgar/daily-index, and each filing's folder. Indexes reach back to 1994Q3.Accessing EDGAR data
Latest filings (getcurrent)The market-wide feed of the newest filings. The official pages fetched on 2026-12-02 only link to it and do not describe it.not described
Full-text search (EFTS)The full text of every filing submitted electronically since 2001, attachments included. Results are ranked by relevance. Phrases go in quotes, and NOT or - excludes a term.EFTS FAQ
Form 13F data setsA quarterly zip of every filer's 13F XML, flattened. Since March 2024 each set covers three months (01jun2026-31aug2026_form13f.zip). Older sets cover a calendar quarter (2023q4_form13f.zip). The sets run from July 2013 through August 2026.Form 13F data sets
Filer XML schemasForm 13F XML 2.0 (2026-09-14), Ownership (Forms 3, 4 and 5) XML 5.5 (2026-03-18; 5.6 is a draft), Schedule 13D and 13G XML 2.3 (2026-04-15), and EDGAR XBRL as of Filer Manual Release 26.4.Technical specifications

edgartools is MIT-licensed. It takes the contact identity from EDGAR_IDENTITY or set_identity, and it keeps to SEC's 10 requests a second (edgartools v6.3.0, fetched 2026-12-02). substrate/taji-python/requirements.lock pins the exact version. Each .py file cites the edgartools lines it relies on, such as edgar/entity/core.py:385.

What Taji does not use, and why.

  • The XBRL company concept, company facts and frames APIs, and the nightly companyfacts.zip. Taji replaced the company-facts client with statements read per filing. A per-filing read gives every vintage of a period at its own filing's acceptance, with its accession and restated flag.
  • The nightly submissions.zip, the RSS feeds and the Financial Statement Data Sets. Not yet built.
  • IFRS filers' statements. Not yet built: the statements are us-gaap only (the OFFER note), and the IFRS concept chains are not mapped.
  • Other parsed forms, such as Form 144 and N-PORT. These forms appear in the filings index but are not parsed. Not yet built.
  • The filer-side EDGAR APIs (submission and tokens). Taji reads from SEC and never files.

Code map​

FileWhat it ownsRead first
plugins/edgar/taji-plugin.tomlThe manifest: id edgar, free = true, one [[sources]] and no [[link]]—
plugins/edgar/Cargo.tomlDependencies: taji-plugin (feature vendor) the only Taji crate at runtime; taji-python with direct, taji-trading and taji-live for tests—
plugins/edgar/src/lib.rsPlugin, ID, HOSTS, SUCCESSORS and history (the XOM CIK move), EdgarError and the re-exportsPlugin::build
plugins/edgar/src/edgartools.rsEdgar: the worker seat, the process-wide edgar budget, run (admit, call, and hold the budget for 600 s on a 403 or 429), preload and the module! macroEdgar::run
plugins/edgar/src/preamble.pyThe first lines of every module module! and preload send: edgartools' retries off—
plugins/edgar/src/offer.rsOFFER: what data/coverage lists, with its sources and the REACH floorsdata
plugins/edgar/src/source.rssource::Edgar, the Source impl; FACTS, READS, WORDS and CAP; contact_agent; listing_with, the store-backed listing; read, raw_read and parseraw_read
plugins/edgar/src/source/raw.rsThe six raw formats (edgar.<product>.v1), Pages and Step::Need. A body is rebuilt from the kept pages with no Python and no network.the //! header
plugins/edgar/src/filings.rs, plugins/edgar/src/filings.pyThe filings index (index), the market-wide newest filings of a form (latest), and EFTS search with snippets (search)index in filings.py
plugins/edgar/src/source/filings.rsThe filings product: word filters, events and flags (8-K items 4.02 and 5.02), the text search; the shared seams indexed and latest_indexedindexed
plugins/edgar/src/sections.rs, plugins/edgar/src/sections.pyA filing's items (TenK, TenQ, CurrentReport), or one document rowsections in sections.py
plugins/edgar/src/source/sections.rsfiling_sections, plus the kernel's item1a-changes diff against the prior 10-Kread
plugins/edgar/src/fundamentals.rs, plugins/edgar/src/fundamentals.pyOne filing's income, balance, cash flow and cover rows, with edgartools' standard id and its confidencestatements in fundamentals.py
plugins/edgar/src/source/fundamentals.rsfundamentals: KINDS, LINES, UNREAD, DERIVED, DEPTH, discrete quarters, vintages and restatedthe //! header, then raw
plugins/edgar/src/insiders.rs, plugins/edgar/src/insiders.pyOne Form 3, 4 or 5: issuer, owner, and Table I and II linesparse in insiders.py
plugins/edgar/src/source/insiders.rsinsider_trades by symbol, by insider CIK, or the market's feed: row kind, value and pct_holdings_change; CAP 200 filings per readinsider_trades_rows
plugins/edgar/src/holdings.rs, plugins/edgar/src/holdings.pyA 13F-HR's information table; the 13F data sets (sets, sizes, load, units); CUSIPs of a symbolreport, then load in holdings.py
plugins/edgar/src/source/holdings.rsholdings three ways: by filer, by symbol off the sets, or the directory; fill, top_up, and quote for a /fetchthe //! header
plugins/edgar/src/stakes.rs, plugins/edgar/src/stakes.pyOne Schedule 13D or 13G cover: its reporting personsschedule in stakes.py
plugins/edgar/src/source/stakes.rsownership_stakes: a symbol's schedules or the market's newest, with amendments linkedraw
plugins/edgar/src/comp.rs, plugins/edgar/src/comp.pyOne DEF 14A's summary compensation tablecomp in comp.py
plugins/edgar/src/source/comp.rsexecutive_comp: five years of proxies by defaultraw
plugins/edgar/src/cusip.rs, plugins/edgar/src/cusip.py, plugins/edgar/src/source/cusip.rsA CUSIP's symbol: listings first, then edgartools' bundled tablesymbols
plugins/edgar/tests/live.rsThe live suite: one test per product, plus acceptance_gapthe //! header
plugins/edgar/scripts/edgar_walk.pyThe keyless walk over the wire, in stepsits docstring
plugins/edgar/scripts/python_gate.shEDGAR's leg of python_gate.sh: the lib tests that run Python—

How it plugs into Taji​

Composition. taji_open::kernel adds taji_edgar::Plugin (engine/crates/taji-open/src/lib.rs), and Plugin::build registers one source, source::Edgar. The plugin has no venue arm, no [[link]] and no auth. FACTS.seat is Seat::Keyless, so the hub links EDGAR wherever the kernel has Python. You turn it off with {"data.edgar": false} in <state dir>/settings.json (first session).

SDK traits. source::Edgar implements Source (engine/crates/taji-plugin/src/vendor/mod.rs):

  • seat builds edgartools once, on boot's seat. A read never builds it: a read before any seat refuses with NoStoredCredentials.
  • probe answers None. With no key there is no plan, and the hub keeps no grants for EDGAR.
  • history refuses: EDGAR serves no bars.
  • raw_read answers every product the store keeps: filings without text, fundamentals, executive_comp, insider_trades, ownership_stakes, and holdings with filer.
  • read answers what is never stored: a filings text search, filing_sections, and holdings by symbol or the directory.
  • parse and rows (in FACTS) rebuild a body from the kept pages and type its rows.
  • download_quote prices a /fetch of older 13F data sets in bytes.
  • rate_limits reports one process scope.
  • painted imports edgartools 10 s after the window's first chart draws.

EDGAR implements none of HistoricalData, LiveStream, VenueReads, ExecutionOps or ReconcileOps.

Statics. FACTS (plugins/edgar/src/source.rs) declares:

  • READS: the seven equity products, each Span::History;
  • WORDS: kind; forms, items, period and text on filings; forms on ownership_stakes;
  • revenue_actual: Stated::Filings;
  • formats: raw::FORMATS;
  • bars_cap: CAP, which has no classes, CostClass::Free and rate_per_min: 600;
  • offer: OFFER.

OFFER (plugins/edgar/src/offer.rs) is what data/coverage lists. Its REACH floors are fundamentals from 2009-06-15 (the first XBRL periods) and insider_trades from 2003-06-30 (the start of XML ownership forms). The plugin has no VenueFacts. engine/crates/taji-trading/src/hub/plugin.rs seeds FACTS only for the hub's tests.

Order among providers. engine/crates/taji-open/ties/src/lib.rs writes it:

  • EDGAR leads the fundamentals reference order and the lines group, ahead of Massive, Yahoo and Robinhood.
  • It sits between Massive and Yahoo for earnings' revenue_actual.
  • place gives it 0.

Surfaces. Each is a GET /get/<product> read (the //! header of engine/crates/taji/src/wire/mod.rs), answered as Arrow rows on the taji_brokerage::reference schemas. The cells are on the coverage page.

Taji surfaceVendor call behind itFile
filings?symbols=Company(who).get_filings(): submissions JSONplugins/edgar/src/filings.py index
filings?text=search_filings: one EFTS page; a snippet comes from each of the 10 newest hits' documentsplugins/edgar/src/filings.py search
filing_sections?accession=&section=get_by_accession_number(a).obj(): the filing's documentsplugins/edgar/src/sections.py
fundamentals?kind=filing.xbrl() per 10-K and 10-Q, up to ten 10-Ks and three years of 10-Qs (DEPTH)plugins/edgar/src/fundamentals.py
insider_tradesthe index, then Filing(...).obj() per Form 3, 4 or 5; with no symbol, latest (the getcurrent feed, then the quarterly index)plugins/edgar/src/insiders.py, plugins/edgar/src/filings.py latest
holdings?filer=the filer's index, then Filing(...).obj() per 13F-HRplugins/edgar/src/holdings.py report
holdings?symbols=, holdings alonethe 13F data sets page and zips, loaded into the store's holdings_13f (engine/crates/taji-trading/src/hub/store/holdings.rs); 13F-HRs filed after the newest set come from the quarterly indexplugins/edgar/src/holdings.py sets, load, filed
POST /fetch product=holdings quarters=a HEAD per absent set zip for its Content-Length (dry run), then loadplugins/edgar/src/source/holdings.rs quote
ownership_stakesthe index, then Schedule13D/Schedule13G.from_filing per scheduleplugins/edgar/src/stakes.py
executive_compthe index, then ProxyStatement(filing).summary_compensation_table per DEF 14Aplugins/edgar/src/comp.py
GET /read/link/rate_limitsnone: the edgar budget's stateplugins/edgar/src/edgartools.rs rate_limits

One read, wire to vendor and back: GET /get/insider_trades?symbols=equity:AAPL.

  1. The wire hands the ask to the hub. The hub checks for a stored answer that is still reusable (300 s for filings and insider_trades, in engine/crates/taji-trading/src/hub/products.rs). If none, it calls Source::raw_read.
  2. source::insiders::raw gets AAPL's index through filings::indexed. That listing comes from the store if it is listed through the read's instant. Otherwise Edgar::index runs filings.py index on the worker, which requests data.sec.gov/submissions/CIK0000320193.json through the worker's proxy.
  3. For each new Form 3, 4 or 5 in the span, Edgar::ownership_json runs insiders.py parse, one archive request each, at most 200 per read.
  4. Each worker call passes Edgar::run first. run admits the call against the edgar budget, and edgartools paces requests at 9 a second.
  5. The index and each filing's JSON are kept as pages in the edgar.insider_trades.v1 format. parse then runs insiders::assemble over those pages, and rows types them as insider_trades rows: each carries its kind, a signed value and knowable_utc at the SGML acceptance.
  6. The kernel computes cluster, return_since and the summary after the read's cut, then answers with Arrow.

A replay runs step 5 alone, from the stored pages.

Why it is built this way​

  • edgartools for every family, normalized by Taji. The user ruled this on 2026-10-26: one provider standard, edgartools with the full family, its own normalization, pinned exactly, no self-update. The library already parses each form's XML, HTML and XBRL. Taji's own code types the rows and computes the figures.
  • Python in a confined worker. Decision 0003 keeps the crate on its SDK, and the security model confines every Python library. The worker is taji_python::Worker under engine/crates/taji-host/src/sandbox.rs, and its only network is a proxy that admits HOSTS alone (engine/crates/taji-host/src/proxy.rs; security). edgartools reads no proxy variable, so each .py that makes a request (all but cusip.py) hands it the worker's proxy through configure_http.
  • One identity per install, never the person's. SEC asks for a contact on every request. contact_agent mints Taji <16 hex>@taji.is once and keeps it in <state dir>/plugins/edgar/edgar-agent. Each .py refuses to load without EDGAR_IDENTITY, because without one edgartools prompts on stdin.
  • No retries, one process-wide budget. SEC counts requests per address, so every call draws one edgar budget (Budget::unlimited, the hold alone). stamina.set_active(False) turns off edgartools' retries. The switch is the worker process's and any module may load first, so it is preamble.py, which module! and preload put ahead of every module's source. A 403 or 429 then reaches the .py file, which raises RateLimited. run then holds the budget for RETRY_AFTER_S (600 s) and refuses every later call without sending it.
  • Point-in-time statements. Each value is a vintage at its filing's acceptance, with its accession, and a later filing's different value is restated. That serves the Financials page's "As first reported" view. Company facts carry no vintages per filing, so the company-facts client was removed.
  • EDGAR first for statements. The user ruled on 2026-10-25 that keyless statements serve every user and that Massive is not assumed linked. Any line EDGAR leaves null is filled per row from the next provider in the lines group (engine/crates/taji-trading/src/hub/join.rs).
  • The kernel computes; the source states. Several figures are the kernel's under decision 0001: ratios over EDGAR's statements and closes, the insider cluster and summary, 13F changes and statuses, and the item1a-changes diff. Rows are served on platform schemas, never in edgartools' shapes (0004). Values stay as filed, value_unit_ambiguous included (0007).
  • Raw pages kept, one parse. A live read and its replay run one assemble over the same pages, so a stored answer rebuilds with no Python and no network (plugins/edgar/src/source/raw.rs).
  • Two 13F data sets on a read, older ones on a quoted /fetch. The user ruled this. The newest two sets are about 200 MB, and an older quarter costs bytes the person chooses to spend.
  • The import waits for the first paint. import edgar costs 0.4 to 1 s of CPU and 55 MB, so painted starts it 10 s after the window's first chart draws, on a lane of its own.
  • Null over a confident wrong value. A line with a tied mapping serves none, and the join fills it. XOM's 2020 to 2022 revenue ties stay null.

Constraints and limits​

  • Rate. SEC's limit is 10 requests a second per address. edgartools paces at EDGAR_RATE_LIMIT_PER_SEC=9, one blocking bucket for the worker's process (edgar/httpclient.py, line 545). The kernel's budget never limits the rate; it only holds after a 403 or 429. The 600 s hold is Taji's choice: SEC states no block length (the README's Access).
  • Duration. One worker call is bounded at 30 s (TIMEOUT). Statements, a 13F report and latest are bounded at 120 s. A data set's load is bounded at 600 s. The measured durations are in the README's Measured.
  • Caps per read.
    • insider_trades parses 200 new filings at most; the rest wait for the next read.
    • ownership_stakes and filings default to 100 rows.
    • A text search reads one EFTS page; hits.total stops at 10,000 (Full-text search).
    • The 13F top-up reads 400 filings at most.
    • A /fetch holds 8 sets at most.
  • Symbology. An equity ticker resolves through edgartools' bundled table, else SEC's company_tickers.json. An unknown ticker answers no rows, not an error. 13F, 13D and 13G rows name issuers by CUSIP, which source::cusip::symbols maps through listings and then edgartools' table. A CUSIP with no match gets a null symbol and is never refused. A class share's - is spelled . (BRK.B). SUCCESSORS joins XOM's two CIKs (Fundamentals).
  • Instants. Submissions label acceptanceDateTime as UTC. The SGML header's ACCEPTANCE-DATETIME is New York time, and accepted_utc converts it. A filing with no acceptance is knowable at the end of its New York filing date (Filings index).
  • Refusals.
    • A non-equity ask answers NoSource.
    • fundamentals, executive_comp and a filings index read without a symbol answer a symbol is required.
    • A held budget answers RateLimited with the time left.
    • Any other Python failure answers edgar: edgartools: <Type>: <message>.
    • A kernel without Python seats no EDGAR. On Windows, that includes a machine without the sandbox (install).
  • Form semantics. Several rules follow from what the forms state. A 10-Q states year-to-date figures and no filing states a Q4. 13F Value units depend on the period. A 13F-HR/A either restates or adds holdings. Schedule forms changed names in December 2024. All of these are in the README's measured sections: Fundamentals, Form 13F-HR, and Schedules 13D and 13G, and proxy compensation.

Examples​

No vendor exchange is captured: the plugin has no tests/fixtures/ directory, and the wire fixture holds no EDGAR read. The examples below are test bodies, their figures, names and instants made up: what a .py function answers, and the rows the crate builds from it. Accessions are shortened.

filings: filings.py index values for AAPL, and the rows built from them. Source: a_filing_is_known_at_its_acceptance_else_the_end_of_its_filing_date in plugins/edgar/src/source/filings.rs.

{ "symbol": "AAPL", "rows": [
{ "accession": "p1", "cik": "320193", "company": "Apple Inc.",
"form": "10-K", "filed": "2025-10-31", "accepted": "2025-10-31T10:00:00+00:00",
"period": "2025-09-27", "items": [], "primary_doc_description": "10-K",
"url": "https://www.sec.gov/Archives/edgar/data/320193/p1/p1-index.html" },
{ "accession": "p2", "cik": "320193", "company": "Apple Inc.",
"form": "8-K", "filed": "2025-10-30", "accepted": null, "period": null,
"items": ["2.02", "9.01"], "primary_doc_description": "", "url": null },
{ "accession": null, "cik": "320193", "form": "4", "filed": "2025-10-29", "items": [] } ] }

filings_rows answers two rows; the third has no accession and is dropped.

  • The 10-K's knowable_utc is 1761904800, its acceptance. Its symbols are ["AAPL"], its period is 2025-09-27 and its title is 10-K.
  • The 8-K has no acceptance, so its knowable_utc is the end of 2025-10-30 in New York. Its items are ["2.02", "9.01"], and its empty description becomes a null title.

insider_trades: one Form 4's values from insiders.py parse, and the rows built from them. Source: a_line_is_a_row_with_its_kind_signed_value_and_holdings_change in plugins/edgar/src/source/insiders.rs.

{ "accession": "a", "form": "4", "filed": "2026-10-05", "accepted": "2026-10-05 18:40:00",
"issuer_cik": "320193", "issuer_name": "Apple Inc.", "symbol": "aapl", "plan_10b5_1": true,
"owner": { "cik": "p3", "name": "Example Pat Q", "director": false, "officer": true,
"ten_percent": false, "title": null },
"lines": [
{ "derivative": false, "security": "Common Stock", "date": "2026-10-01", "code": "P",
"shares": "1000", "acquired_disposed": "A", "price": "200.5", "owned_after": "5000", "direct": true },
{ "derivative": false, "security": "Common Stock", "date": "2026-10-02", "code": "S",
"shares": "2000", "acquired_disposed": "D", "price": "210", "owned_after": "3000", "direct": true },
… ] }
  • The P line becomes a buy row with shares 1000, value 200500 and pct_holdings_change 25.
  • The S line becomes a sell row with shares -2000, value -420000 and pct_holdings_change -40.
  • Each row's knowable_utc is accepted_utc("2026-10-05 18:40:00"), its symbol is AAPL, and plan_10b5_1 and officer are both true.

A 429. Source: a_429_holds_the_budget_and_the_next_call_is_refused_unsent in plugins/edgar/src/edgartools.rs. A stand-in raises RateLimited("SEC answered HTTP 429"). run answers EdgarError::RateLimited { retry_after_s: 600 }, which displays as SEC rate limit, retry after 600 s. The next call is refused without sending, and the stand-in counts one call.

The Taji call and the kernel's answer. No capture yet. plugins/edgar/scripts/edgar_walk.py <port> filings issues GET /get/filings?symbols=equity:AAPL against a headless kernel and runs five PASS/FAIL checks, printing the first 200 characters of two answers. It writes its output to <state dir>/edgar-walk-filings-<UTC instant>.txt.

Testing​

WhatCommandNeeds
Offline lib tests over stand-ins (Worker::fake)cargo test -p taji-edgarnothing
Lib tests that run Python: stand-in modules and the real src/*.py offlinecargo test -p taji-edgar --lib -- --ignored, or EDGAR's leg of engine/crates/taji/scripts/python_gate.shmake setup's .python, or TAJI_PYTHON
The live suite: one test per product, plus acceptance_gapcargo test -p taji-edgar --test live -- --ignored --test-threads=1 [filter]Python and the network; no key
Through the kernelengine/crates/taji-open/scripts/vendor_live.sh edgar (vendor_live's edgar test)Python and the network; no key
The walkplugins/edgar/scripts/edgar_walk.py <port> <step> (all runs every step) against a headless kernel you start (AGENTS.md), TAJI_STATE_DIR setPython and the network; no key
  • The live suite. It mints its own contact agent per run when EDGAR_IDENTITY is unset. A test that cannot reach www.sec.gov prints SKIP. A 403 or 429 prints REFUSED rate_limited and fails, because it means the identity or the pace is wrong.
  • The walk. The holdings step downloads about 200 MB on its first read.
  • Hub tests. The hub's join tests use EDGAR's FACTS and source under #[cfg(test)] (engine/crates/taji-trading/src/hub/join.rs, engine/crates/taji-trading/src/hub/products.rs). Run them with cargo test -p taji-trading.
  • No account. There is no paper or sim account: every EDGAR test reads public data and places nothing.

References​

All fetched 2026-12-02.