• v0.1.0 01418911a9

    chris-kreidl released this 2026-11-11 19:56:48 +00:00 | 11 commits to main since this release

    🤖 Claude: M1: Rankings I can trust. Review and retro: #23.

    bun cli.ts ranks US companies by Greenblatt's Magic Formula. Every metric comes from the latest 10-K fiscal year.

    What's in it

    • CLI (#11): bun cli.ts asks which steps to run. bun cli.ts refresh analyze enrich rank (or bun run pipeline) runs them directly and writes magic_formula_ranked.csv.
    • Metrics from the latest 10-K (#1, #8, #41): no stale XBRL values from older filings.
    • Greenblatt definitions (#4, #9): ROTC = EBIT ÷ (net working capital floored at 0 + net PP&E). Earnings yield = EBIT ÷ enterprise value. Finance leases count as debt. Debt is also read from notes, loans, credit lines and convertibles (#32).
    • One eligibility rule (#10), used everywhere:
      • latest 10-K filed in the last 13 months (#2)
      • EBIT > 0 (#3)
      • a price from this run (#5)
      • a Yahoo market cap of at least $50M (#40)
      • not Financial Services or Utilities, using SEC SIC codes when Yahoo has no sector; a company with no known sector is excluded (#45)
    • Common stock tickers (#37): not notes or preferreds.
    • Foundation: git, fixtures from known-bad filers (#6, #7), and CI running bun test, bun check and bun fmt on every PR (#30).

    Known limits

    • The export shows every eligible row, including extreme ROTC from near-zero tangible capital. Filtering belongs in the web UI (#36).
    • Possible debt double-count when a filer reports total LongTermDebt without a current-portion tag (#43).
    • Rows skipped by enrichment keep stale tickers and prices; they aren't ranked (#44).

    🤖 Generated with Claude Code

    Downloads