File 08
Economic and Financial Intelligence Tool Library
Research snapshot: 2026-09-01. A private company's actual revenue, CAC, churn, LTV, payroll, debt exposure, contribution margin, and cash flow are unknown unless disclosed or supplied through authorized internal data.
For numeric outputs, use REPORTED_OR_MEASURED, DETERMINISTIC_CALCULATION, ESTIMATE, or SCENARIO. This result class is separate from the canonical claim states O/C/I/H/U/X. Exact arithmetic is permitted only for reconciled historical inputs; forecasts and causal projections remain estimates or scenarios. Never present a benchmark scenario as an exact annual loss.
1. Company identity and financial evidence
| Source/tool | Coverage and interface | Access/license | Defensibility rule | Official source |
|---|---|---|---|---|
| SEC EDGAR APIs | US issuer submissions/XBRL company facts/frames/filings; JSON and nightly ZIPs | no key; fair access 10 requests/sec; identify User-Agent | reconcile units, periods, contexts, dimensions, amendments and footnotes; 10-K usually audited, 10-Q interim | APIs · Developer rules |
| Arelle | XBRL/iXBRL parse/validate for SEC/ESEF | Apache-2.0 | validate before trusting extracted facts | Repo |
| EdgarTools | Python filing/statement/ownership/13F/ADV layer | MIT | preserve accession and filing URL as primary provenance | Repo |
| sec-edgar-downloader | reproducible filing download/archive | MIT | obey SEC access policy | Repo |
| SEDAR+ | Canadian issuer financials/MD&A/AIF/prospectus/material changes | free public search/download; mostly documents; no documented public bulk API | do not call browser automation an API; cite document/page and extraction; legacy XBRL availability is limited | CSA overview |
| Corporations Canada open data | federal name/status/registered office/directors/IDs | CSV/open data; Open Government Licence Canada | registration only—not revenue, solvency or complete provincial identity | Dataset |
| Companies House API | UK profiles/officers/PSC/filings/charges/insolvency | free key; 600 requests/5 minutes; OGL/bulk data | micro/abridged accounts may omit detail and may be unaudited | API |
| GLEIF LEI | legal names/addresses/status/parent relationships | free API/bulk; CC0 | excellent entity resolution; no financial performance | API |
| Alpha Vantage | selected market/fundamental convenience data | free key; standard free around 25 requests/day | secondary convenience only; verify against filings/market rights | Support |
| Nasdaq Data Link | dataset-specific market/economic data | anonymous/authenticated free quotas; dataset entitlements vary | preserve dataset rights, adjustment and timestamp | Limits |
| OpenBB | provider integration layer | AGPL-3.0 code; provider rights/keys/costs separate | AGPL and provider data review before proprietary hosting | Repo |
| Yahoo Finance via yfinance | unofficial Yahoo data wrapper | unofficial/research convenience | discovery/spot-check only; not auditable client evidence; cite the issuer filing, exchange, or official series for material claims | yfinance docs |
Public/private rule
Public issuer figures come from the appropriate filing with period, currency, units, amendment, consolidation and audit status. Private-company figures are facts only when supplied through reliable statements, ledger, tax/bank/contract records or authenticated systems. Traffic/headcount/job-post estimates are scenarios, never company revenue facts.
2. Canada official sources
| Source | Metrics/interface | Proper use | Official source |
|---|---|---|---|
| Statistics Canada WDS/SDMX | CPI, labor, wages, vacancies, productivity, GDP/industry, business counts, input-output, trade, revenues/expenses; JSON/CSV/SDMX, no key | preserve table/vector, release/vintage, geography, NAICS, seasonal adjustment and units | WDS · SDMX |
| Bank of Canada Valet | rates, yields, FX, financial statistics/surveys; JSON/CSV/XML, no key | CAD discount/borrowing/FX/monetary scenarios | API |
| ISED Financial Performance Data | SME industry statements, balance sheets and ratios by NAICS/province/revenue band/incorporation | strong prior from sampled tax data; not target P&L; lag/suppression apply | Site |
| ISED Canadian Industry Statistics | establishments, employment, average revenue/expenses/profitability/trends | market structure/broad comparison | Site |
| Key Small Business Statistics | SME counts/employment/financing/contribution | contextual benchmark; preserve year/definition | Site |
| Merchandise trade explorer | imports/exports by HS/partner/province/period | product/industry exposure, not company shipments | Explorer |
| Canadian Importers Database | companies associated with products/origins/locations | presence signal only; incomplete shipment value | Database |
| CanadaBuys | tenders, awards, standing offers, contracts | observed procurement benchmark after deliverable/term/option normalization | Data |
3. United States official sources
| Source | Metrics/access | Proper use | Official source |
|---|---|---|---|
| BLS Public Data API | CPI/PPI/employment/wages/hours/JOLTS/ECI/ECEC/productivity; JSON; free key increases quota/history | loaded-labor and price priors with seasonal/footnote controls | FAQ |
| BLS QCEW | establishments/employment/wages by geography/NAICS/size; CSV/bulk | labor and market denominator; note exclusions/lag | Open data |
| Census Data API | Economic Census/CBP/ZIP/Nonemployer/ACS/business surveys; JSON | market size, payroll and demographic context | Guide |
| County Business Patterns | establishments/employment/payroll by geography/NAICS/size | local competition/labor concentration | Program |
| BEA API / beaapi | GDP/regional/industry/fixed assets/international/input-output | free key; official Python client CC0; national input-output needs target exposure bridge | API · Client |
| FRED/ALFRED | rates, prices, labor, production, credit and publisher series | free key; terms/rate throttling; cite origin when possible; ALFRED for vintages/backtests | API |
| Treasury Fiscal Data | rates, debt, receipts/spending/fiscal balances; no key JSON/CSV/XML | primary fiscal/risk-free-rate input | API |
| EIA API v2 | energy prices/production/consumption; free key | convert shock only with target energy/freight exposure | Docs |
| IRS SOI business tables | aggregate receipts/deductions/payroll/net income by industry/entity | lagged private-business prior, not target facts | Statistics |
| USAspending API | federal contracts/grants/loans/transactions; no auth | observed award benchmark with coverage/delay/threshold notes | API |
| SAM.gov Opportunities | solicitations/awards/NAICS/dates/place; free account/key | demand/intent signal; ceiling/estimate ≠ realized revenue | API |
| SAM Entity | UEI/CAGE/registration/public entity; free key with role-dependent quota | identity/eligibility only | API |
4. International, trade and supply chain
| Source | Coverage/access | Use and caution | Official source |
|---|---|---|---|
| World Bank Indicators | broad country indicators, no-key JSON/XML | cross-country context; dataset terms/attribution | API |
| OECD SDMX | prices/labor/productivity/trade/tax/industry/regulation/outlooks | preserve flags/breaks/projections and terms; rate limiting | API |
| IMF APIs/DataMapper | WEO/financial/fiscal/trade/BOP; SDMX/JSON | distinguish actuals, estimates and forecasts | API |
| Eurostat APIs/bulk | EU HICP/labor/demography/production/trade; SDMX/TSV | preferred EU source; attribution/dataset checks | Intro |
| ILOSTAT | employment/unemployment/wages/hours/informality; bulk/R/SDMX | country definitions/modelled estimates vary | Data |
| UN Comtrade | bilateral HS trade/value/weight/quantity; account tier | mirror/revision/re-export/CIF-FOB differences; not company shipments | Portal |
| BIS Data Portal | rates/credit/property/EER/banking; SDMX/bulk | financial conditions/FX/credit context; terms apply | Portal |
| NY Fed GSCPI | standardized global supply-chain pressure index | shock indicator only; translate through target lead-time/freight/inventory exposure | Index |
| US Census International Trade API | monthly HS/NAICS/end-use/port/geography | product/route exposure, not company shipments | API |
| BTS Freight Analysis Framework | origin/destination/commodity/mode/weight/value downloads | modeled regional flow baseline, not lane quote | FAF |
| TED API/bulk | EU procurement notices/awards | observed procurement after scope normalization | API |
| Open Contracting Data Registry | multi-country OCDS publishers, JSON/CSV/XLSX | discovery layer; verify originating authority/license/freshness | Registry |
| Official tariff schedules | Canadian Customs, US HTS, EU TARIC | correct HS/origin/customs value/effective date/exclusions required | Canada · US · EU |
5. Regulatory/compliance monitoring
| Source/tool | Interface/use | Critical rule | Official source |
|---|---|---|---|
| Federal Register API | public JSON proposed/final rules/notices/agencies/dockets | verify dispositive official PDF through GovInfo | API |
| eCFR API | JSON/XML current/point-in-time CFR | track title/part/section/amendment/effective date and legal-status notice | API |
| Regulations.gov API | key, dockets/documents/comments | do not automate comment submission in passive system | API |
| Congress.gov API | key, bills/laws/actions/committees | bill ≠ obligation; retain stage | Repo/docs |
| Canada Gazette RSS | Parts I/II/III | store proposal/final/statute, deadline, registration/effective dates separately | RSS |
| Justice Laws XML | Canadian federal acts/regulations/diffs | reproduce accurately; consolidated text may lag some changes | Repo |
| LEGISinfo | Canadian bill stages/votes/enactment, JSON/XML | proposal vs enacted state | Site |
| EUR-Lex/Cellar | EU legislation/preparatory/case law via XML/SOAP/REST/SPARQL/RSS | consolidated/original/transposition/territory/corrigenda | Reuse · Cellar |
| UK legislation API | OGL XML/RDF/Atom | known unapplied/incomplete update limitations; verify current status | Developer |
| NIST OSCAL/oscal-cli | Apache-2.0 machine-readable controls/SSP/assessment validation | encodes evidence, does not decide legal applicability | OSCAL · CLI |
| ComplianceAsCode | BSD-3-Clause SCAP/Ansible/Bash policy tests | technical tests only; false positives/vendor content rights | Repo |
| Open Policy Agent | Apache-2.0 Rego engine | policy execution, not legal interpretation | Repo |
| pyfair | MIT Monte Carlo FAIR tool | input quality and FAIR trademark/terminology obligations | Repo |
Do not redistribute SOC 2, ISO, CIS, PCI or other copyrighted control catalogs merely because a copy is accessible. Use client-licensed copies or official free crosswalks.
6. Public price and competitor normalization
| Component | License/use | Role | Official source |
|---|---|---|---|
| public pricing/checkout/terms | public observation under source terms | observed list/checkout offer; not realized net price | target source |
| Schema.org Offer | vocabulary | price/currency/availability/unit metadata | Offer |
| Scrapy | BSD-3-Clause | permitted scheduled retrieval | Repo |
| Playwright | Apache-2.0 | render permitted JS pricing pages | Repo |
| extruct | BSD family | JSON-LD/microdata/RDFa/OpenGraph extraction | Repo |
| price-parser | BSD family | parse locale/currency strings | Repo |
| Common Crawl/Wayback | public historical evidence | price-change history; incomplete/stale and source rights | Common Crawl · CDX |
Comparable fingerprint: region, currency, tax, billing/term, quantity band, included units/features, overage, implementation, mandatory add-ons, support/SLA, cancellation and promotion. Use matched pairs or median/IQR; no unqualified competitor mean.
Monthly equivalent =
(recurring contract + mandatory one-time − unconditional discounts)
/ contract months + expected monthly overage
7. Open-source modeling library
| Layer | Tools | License | Role |
|---|---|---|---|
| tabular/analytics | pandas, Polars, DuckDB, Apache Arrow | BSD-3, MIT, MIT, Apache-2.0 | joins, dimensional models, local SQL/Parquet |
| schema | Pandera | MIT | units/currencies/evidence/null rules |
| official statistics | sdmx1, pandas-datareader | Apache-2.0, BSD-3 | SDMX and convenient provider clients |
| filings | Arelle, EdgarTools, sec-edgar-downloader, beaapi | Apache-2.0, MIT, MIT, CC0 | primary acquisition/validation |
| econometrics | statsmodels, linearmodels | BSD-3, NCSA | regression/time series/panel/IV |
| survival/churn | lifelines | MIT | Kaplan-Meier/Cox/censoring |
| Bayesian uncertainty | PyMC | Apache-2.0 | hierarchical priors/posterior simulation |
| marketing/CLV | PyMC-Marketing | Apache-2.0 | MMM/CLV/choice/diffusion/incrementality |
| MMM | Google Meridian, Meta Robyn | Apache-2.0, MIT | Bayesian geo and ridge/evolutionary MMM |
| causal | DoWhy, EconML, DoubleML, CausalPy | MIT, MIT, BSD-3, Apache-2.0 | graphs/refutation, HTE, debiased ML, DiD/synthetic/RD/ITS |
| sensitivity | SALib | MIT | Sobol/Morris/FAST |
| operations | SimPy | MIT | queue/service/onboarding/logistics simulation |
| finance | numpy-financial | BSD-3 | NPV/IRR/cash flows |
| cyber risk | pyfair | MIT | FAIR frequency/loss distributions |
| aggregation | DBnomics client | AGPL-3.0 client | many official providers; retain origin provenance |
A conservative proprietary stack starts with DuckDB/Polars/Arrow, Pandera, sdmx1, filing tools, statsmodels, linearmodels, lifelines, SALib and SimPy. Add Bayesian/causal tooling only when data supports it; review AGPL separately.
8. Evidence and uncertainty
Use the canonical E0–E5 evidence levels from 03-evidence-provenance-standard.md, plus the financial input tags R reported, M measured, B benchmark, A assumption, and C calculated. They answer different questions: evidence level describes support strength; the financial tag describes the number's origin.
| Evidence condition | Financial treatment |
|---|---|
| E5 = E4 plus audited/reconciled target data or a valid controlled test | May support a target-specific estimate; still expose formula and time scope |
| E4 corroborated official or reproducible evidence | Suitable for material inputs with scope and caveats |
| E3 current official source | Use as reported/observed, not as proof of private operating performance |
| E2 single-source, user-generated, or secondary support | Use only in bounded scenarios or as a research lead for high-impact models |
| E0–E1 unsupported or unverified lead | Never use as a factual model input; an explicit analyst assumption may appear only in an illustrative scenario |
If any material input is a benchmark or assumption, show low/base/high or P10/P50/P90. If two or more critical inputs are assumptions, do not label the output an estimated annual loss. Round modeled outputs to a precision justified by the inputs—normally two significant figures—and show probability NPV > 0 when simulated.
Use empirical distributions first; otherwise Beta for rates, lognormal/gamma for positive skew, negative binomial for overdispersed counts, triangular/PERT for elicited ranges, bootstrap for cohorts, survival models for lifetimes. Encode material correlations. Run enough simulation for stable percentiles and expose dominant assumptions.
9. Red-line tests
Reject/downgrade any model that converts sentiment/SOV/review count directly to dollars; uses maximum fines as expected loss; treats all saved time as cash; treats market-cap movement as operating loss; double-counts revenue and contribution; treats list price as realized price; claims private revenue from traffic/headcount; mixes currency/real/nominal/period/classifications; hides assumptions; or omits source, retrieval/vintage, formula and range.
10. LAKA ladder
| State | Economic intelligence capability |
|---|---|
| Baseline | sourced company/public macro facts and explicit unknowns |
| Minor | normalized official-source connectors and formula registry |
| Major | target-authorized cohort/unit models, scenario ranges and sensitivity |
| Structural | causal/experiment design, lineage, overlap reconciliation and rolling forecast governance |
| Paradigm | optimize the unit of value and option portfolio rather than headline revenue; uncertainty becomes a managed asset |
08-economic-financial-tool-library.md · 167 lines · 20414 bytes ·
SHA-256 7818f6785be3bd4f