cd /news/developer-tools/show-hn-every-site-gives-a-different… · home topics developer-tools article
[ARTICLE · art-40413] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Show HN: Every site gives a different P/E ratio, so I open-sourced the math

A developer open-sourced a Python library called Finance Toolkit to address discrepancies in P/E ratios across financial data providers. The library documents formulas for over 200 metrics, offering transparency on calculations like diluted vs. basic shares and trailing vs. fiscal-year earnings. The project aims to standardize financial metric reporting.

read1 min views1 publishedJun 26, 2026

Microsoft's P/E on May 6, 2023: Stockopedia says 28.93, Morningstar 32.05, Macrotrends 32.66, Yahoo Finance 33.80, Companies Market Cap 34.4. Same company, same date, eight different numbers. The usual causes: trailing-twelve-month vs fiscal-year-end earnings, diluted vs basic shares, different treatment of extraordinary items. Most providers don't document which they use. In the meantime, I report it at 32.07 (diluted), 31.96 (non-diluted), 30.07 (TTM diluted) and 29.93 (TTM non-diluted).

That is why I built the Finance Toolkit: an open-source (MIT) Python library where every one of 200+ metrics has its formula in the source. Entirely free to use and includes a MCP server as well.

Comments URL: [https://news.ycombinator.com/item?id=48682935](https://news.ycombinator.com/item?id=48682935)

Points: 1

── more in #developer-tools 4 stories · sorted by recency
── more on @microsoft 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-every-site-g…] indexed:0 read:1min 2026-06-26 ·