Selected work

02 · Financial-analysis automation

SEC Financial Report Agent

Turns a public-company ticker into a source-linked, annual financial-analysis dashboard and report.

Apple dashboard generated by the SEC Financial Report Agent Project output · public SEC data
Role

Portfolio project - application design, data pipeline, financial metrics, reporting, and UI.

Context

Designed for public non-financial operating companies using official SEC APIs and the latest annual 10-K only.

Tools

Python · SEC EDGAR · XBRL · Plotly · Streamlit · pandas · OpenAI API

Executive summary

A Python and Streamlit MVP that automates the repetitive first pass of annual financial analysis: finding filings, normalizing XBRL facts, calculating metrics, generating visuals, and preparing analyst-style commentary.


Problem

Financial analysis often starts with repeated manual work across filing discovery, XBRL reconciliation, metric calculation, charting, and commentary drafting.

Approach

  1. 01Map tickers to CIKs and locate the latest annual 10-K through SEC endpoints.
  2. 02Extract four to five years of annual US-GAAP facts with fallback tags for common reporting differences.
  3. 03Calculate growth, profitability, leverage, liquidity, and cash-flow measures before rendering interactive charts.
  4. 04Provide an optional OpenAI commentary path with a rule-based fallback when no API key is configured.
02

Data & methodology

Data sources

  • SEC ticker-to-CIK mapping
  • SEC submissions API
  • SEC company facts / XBRL API

Methods

  • XBRL tag mapping with fallbacks
  • Annual metric normalization
  • Ratio and free-cash-flow calculations
  • Five interactive financial charts
Workflow
InputCollectionAnalysisOutput

The sample visual uses public Apple 10-K data from the project output; no client data is shown.

Outputs & findings

Key outputs

  • Streamlit dashboard
  • Self-contained HTML report
  • Annual metrics CSV
  • Source filing link

What the work demonstrates

  • Produces a repeatable first-pass report from a ticker while preserving source links.
  • The included Apple sample demonstrates the dashboard framing and metric coverage.

Limitations

  • Annual 10-K analysis only; it does not support 10-Qs.
  • Generic metrics are less suitable for banks, insurers, REITs, and other specialized businesses.
  • XBRL tag availability varies by company; unavailable fields remain unavailable rather than invented.