<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jeroen Bouma on Medium]]></title>
        <description><![CDATA[Stories by Jeroen Bouma on Medium]]></description>
        <link>https://medium.com/@jer.bouma?source=rss-40bee313aeec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vFo70207x8Au1kkl2m1wxA.jpeg</url>
            <title>Stories by Jeroen Bouma on Medium</title>
            <link>https://medium.com/@jer.bouma?source=rss-40bee313aeec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:00:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jer.bouma/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Find and Analyze Stocks and ETFs with Claude]]></title>
            <link>https://medium.com/@jer.bouma/how-to-find-and-analyze-stocks-and-etfs-with-claude-196602be216a?source=rss-40bee313aeec------2</link>
            <guid isPermaLink="false">https://medium.com/p/196602be216a</guid>
            <category><![CDATA[etf]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[investing]]></category>
            <dc:creator><![CDATA[Jeroen Bouma]]></dc:creator>
            <pubDate>Tue, 13 Oct 2026 12:31:01 GMT</pubDate>
            <atom:updated>2026-10-13T16:57:24.102Z</atom:updated>
            <content:encoded><![CDATA[<p>Ask an AI assistant for Europe’s mid and small-cap drinks makers and you get a list that sounds about right. Look closer and it mixes things up: companies that still trade described as delisted, market caps off by a factor of five or more, micro caps presented as small caps. Language models answer from memory, and memory goes stale over time, which leaves them relying on internet searches instead.</p><p>So I gave the assistant my own database instead. The <a href="https://www.jeroenbouma.com/projects/financedatabase/mcp">Finance Database MCP server</a> lets Claude, ChatGPT or Copilot search the <a href="https://www.jeroenbouma.com/projects/financedatabase">Finance Database</a>, 300,000+ stocks, ETFs, indices and (crypto)currencies, by name or by ISIN, CUSIP or FIGI. It is free and hosted, and it needs no API key: add one URL as a connector and ask. What makes it useful is the classification. Every company sits in one of 11 sectors, 25 industry groups and 75 industries, and every ETF has a category and an issuer. That turns “Europe’s mid and small-cap drinks makers” into one filter instead of a guess.</p><p>It pairs well with the <a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp">Finance Toolkit MCP server</a>: the Finance Database finds the peer group, the Finance Toolkit analyzes it, with ratios and what drives them, valuations, correlations, drawdowns and currency effects. For the drinks makers that turns a list into an answer: Kofola, a Czech soft drinks maker few investors outside Central Europe follow, earns the highest return on equity in the group, mostly with debt, while Rémy Cointreau lost 69% since 2021. This article connects both servers in a few minutes and works through six questions that do exactly that, search first and analysis second.</p><h3>What You Need</h3><ul><li><strong>A Claude account</strong>: Custom connectors work in claude.ai and Claude Desktop on every plan; the free plan allows one, paid plans allow more.</li><li><strong>The Finance Database server</strong>: For the search. It is free and open source, so it needs no API key, no account and no sign-in.</li><li><strong>The Finance Toolkit server</strong>: For the analysis. It needs a <a href="https://www.jeroenbouma.com/fmp">Financial Modeling Prep</a> key; the free plan is enough to start.</li></ul><p>If you would rather run them yourself, both servers also install locally with one uvx command; see the <a href="https://www.jeroenbouma.com/projects/financedatabase/mcp#local-clients">Finance Database</a> and <a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp#local-clients">Finance Toolkit</a> server pages.</p><h3>Connecting Claude Desktop or claude.ai</h3><p>The steps are identical for the desktop app and the web app. You add two connectors, one for each server:</p><p><strong>1.</strong> Click <strong>Customize</strong> in the left sidebar and open the <strong>Connectors</strong> tab.</p><p><strong>2.</strong> Click <strong>+</strong> and select <strong>Add custom connector</strong>.</p><p><strong>3.</strong> Name it <em>Finance Database</em>, paste the URL below and click <strong>Add</strong>. No key or sign-in is needed.</p><pre>https://financedatabase.jeroenbouma.com/mcp</pre><p><strong>4.</strong> Click <strong>+</strong> and <strong>Add custom connector</strong> again, name it <em>Finance Toolkit</em>, paste the URL below and click <strong>Add</strong>.</p><pre>https://financetoolkit.jeroenbouma.com/mcp</pre><p><strong>5.</strong> The first time Claude uses the Finance Toolkit, a browser window asks for your <a href="https://www.jeroenbouma.com/fmp">FMP API key</a>. Enter it once and the server remembers it. Both servers now appear in your list of connectors.</p><p>The Finance Database server follows the database itself, which is updated every week, so the lists stay current without anything to update on your side.</p><h3>What You Can Ask</h3><p>Below are six real questions, answered through both servers on October 12, 2026, with prices up to October 9. None of them is a lookup. Each starts with a search in the Finance Database that builds the group, and continues with several Finance Toolkit calculations on it. The insight comes from the combination: a model working from memory can name a few drinks makers, but it cannot tell you which one earns its return on equity with debt, or that long-dated Treasuries started moving with stocks in 2022. Paste any question into Claude as it is, or swap in your own country, sector or issuer.</p><h4>Which of Europe’s smaller drinks makers is the best business?</h4><blockquote><strong><em>Question:</em></strong><em> Find Europe’s mid and small-cap drinks makers. Which one is the best business? Compare their return on equity and what drives it, their debt, their valuation and how the shares did since 2021.</em></blockquote><p>Kofola, a Czech soft drinks maker, has the highest return on equity in the group at 31.3%, but it comes from its balance sheet, not its margins: it carries 5.2 of assets for every unit of equity, more than any other company here, on a net margin of only 6.3%. Without the leverage, the strongest businesses are Malteries Franco-Belges (a 27.9% net margin and net cash) and Laurent-Perrier (the best operating margin at 25.3%, at 8.2 times EBITDA, among the lowest valuations in the group). The famous names did worst for shareholders: since January 2021, Rémy Cointreau lost 69% and Fever-Tree 62%, dividends included, while Kofola returned 177%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NTC7iNb0fgN5gS8m.png" /></figure><h4>Are Europe’s large chipmakers priced for their profits?</h4><blockquote><strong><em>Question:</em></strong><em> Find the large European semiconductor companies. Compare their operating margins over five years, their return on equity against their valuation, how closely the shares move together and how they did since 2021.</em></blockquote><p>The seven are two groups under one label. The equipment makers ASML, ASM International and BE Semiconductor kept operating margins near 30% to 35% and returned 215% to 292% since January 2021; the chipmakers Infineon, NXP and STMicroelectronics returned 54% to 93%. The correlations show the same split: ASML moves most with ASM International (0.81), Infineon with STMicroelectronics (0.76). Valuations follow the cycle more than profitability: STMicroelectronics trades at 11 times EBITDA on a return on equity of 0.9%, BE Semiconductor at 52 times on 28.7%. ASML pairs the highest return on equity (50.5%) with a mid-range 28 times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OQxk20wjGh-jPKi6.png" /></figure><h4>Do Vanguard’s Treasury ETFs still protect a stock portfolio?</h4><blockquote><strong><em>Question:</em></strong><em> Which Treasury ETFs does Vanguard list in the US? Compare how each did since 2020, year by year and against the S&amp;P 500, and check whether they still move against stocks.</em></blockquote><p>Long Treasuries stopped working as a hedge. From 2014 to 2021, all four funds moved against the S&amp;P 500 in a typical week, with correlations between −0.20 and −0.38. Since 2022 they move with it, at +0.14 to +0.16. In 2022 the extended-duration EDV lost 39.2% in the same year the S&amp;P 500 lost 18.2%, and it has not come back: since 2020 it lost 8.5% a year, with more volatility (20.4%) than the S&amp;P 500 itself (18.8%). Only the short-term VGSH earned a real return since 2020, 1.8% a year; the intermediate VGIT made 0.5%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ohsQmwU5oABYpTW-.png" /></figure><h4>Is every uranium ETF the same bet?</h4><blockquote><strong><em>Question:</em></strong><em> Find the uranium ETFs, including the UCITS versions listed in Europe. How did the main ones do since February 2023, year by year and against their worst fall, and did the UCITS version keep up with the US fund?</em></blockquote><p>One label, two different bets. The broad funds URA and NLR, which also hold utilities and reactor builders, doubled since February 2023 (+100% and +96%). The pure miner funds lagged, URNM at +45% and the junior miners in URNJ at +15%, and fell further on the way: −51% and −59% at their worst. The gap opened in 2024, when NLR rose 14% and the miner funds lost 14% and 18%. The UCITS twin URNU moved with URA week by week (a correlation of 0.95) but ended ten points behind, at +90%. And Cameco, a single stock, returned 219%, more than any of the funds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WW56tpJzTLqUM4nP.png" /></figure><h4>What did Apple return in each currency?</h4><blockquote><strong><em>Question:</em></strong><em> Which ticker belongs to ISIN US0378331005, where else does it trade, and what did it return on each listing since January 2025?</em></blockquote><p>One share, returns from 12% to 92%. In dollars, Apple rose 39.1% since January 2025. On Xetra in euros it rose 25.6%, because the dollar lost 8.0% against the euro; in São Paulo it rose 12.1%, as the dollar lost 19.5% against the real. In Buenos Aires it rose 91.9%, most of it the peso’s fall: the dollar rose 47% against it. The two charts side by side explain each other: each listing is roughly Apple’s dollar return plus the currency move.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oTl5ioZGUjqK1eJm.png" /></figure><h4>How much do dividends and weighting change the S&amp;P 500?</h4><blockquote><strong><em>Question:</em></strong><em> Find the S&amp;P 500, its total return version and its equal-weight version, and compare them since 2016, year by year.</em></blockquote><p>Since January 2016, 100 in the headline index became 388; with dividends reinvested, it became 466. The bigger choice was the weighting. The equal-weight index, which gives each of the 500 companies the same weight, reached 280, or 337 with dividends through the RSP fund. Equal weight beat the index in 2016, 2021 and 2022, then trailed the total return version by 7 to 13 points a year from 2023 to 2025, as a handful of large companies carried the index.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Oqfs8sG4oDCtfIZz.png" /></figure><h3><strong>Ask your own questions</strong></h3><p>These six examples use a fraction of what the two servers can do together. Connect them in a few minutes and ask for any market, sector, issuer or fund, and then for the numbers behind it.</p><p><em>Originally published on </em><a href="https://www.jeroenbouma.com/articles/find-stocks-and-etfs-with-claude"><em>jeroenbouma.com</em></a><em>, where the charts are also interactive.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=196602be216a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Connect Claude to Live Financial Data for Stock Analysis]]></title>
            <link>https://medium.com/@jer.bouma/how-to-connect-claude-to-live-financial-data-for-stock-analysis-f4d396beaa41?source=rss-40bee313aeec------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4d396beaa41</guid>
            <category><![CDATA[financial-analysis]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[investing]]></category>
            <dc:creator><![CDATA[Jeroen Bouma]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 14:11:01 GMT</pubDate>
            <atom:updated>2026-10-12T14:33:18.387Z</atom:updated>
            <content:encoded><![CDATA[<p>Ask Claude “<em>what is Apple’s operating margin this year?</em>” and you get one of two answers: a polite explanation that it has no access to live data, or a confident number from its training data that may be a year or more out of date. Language models are good at reasoning about numbers, but they are not a data source, and asked to compute a return on invested capital from memory they tend to produce plausible-sounding mistakes.</p><p>The fix is to give Claude a tool that fetches and computes the numbers for it. The <a href="https://modelcontextprotocol.io/">Model Context Protocol</a> (MCP) is the open standard Anthropic built for exactly this, and the <a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp">Finance Toolkit MCP server</a> is a free, hosted server that connects Claude to financial statements, 80+ ratios, valuation models, risk and performance metrics, technical indicators and macro data for 60+ countries. Every calculation runs through the open-source <a href="https://www.jeroenbouma.com/projects/financetoolkit">Finance Toolkit</a>, so the number Claude reports is the number you would get by running the code yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4W3EQBje3n6bqQ6DJ8JeTQ.jpeg" /></figure><h3>What You Need</h3><ul><li><strong>A Claude account</strong>: Custom connectors work in claude.ai and Claude Desktop on every plan; the free plan allows one, so this can be it. Claude Code supports MCP servers on every plan.</li><li><strong>A Financial Modeling Prep key</strong>: Company data comes from <a href="https://www.jeroenbouma.com/fmp">Financial Modeling Prep</a>. The free plan (250 requests a day, five years of US data) is enough for this article. Macro data needs no key.</li></ul><p>You enter the key once, on a standard OAuth page the server opens on first use. It is passed along with each request and never stored. If you would rather not use the hosted server, the <a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp#local-clients">local installation</a> runs the same server on your own machine with one uvx command.</p><h3>Connecting Claude Desktop or claude.ai</h3><p>The steps are identical for the desktop app and the web app:</p><p><strong>1.</strong> Click <strong>Customize</strong> in the left sidebar and open the <strong>Connectors</strong> tab.</p><p><strong>2.</strong> Click <strong>+</strong> and select <strong>Add custom connector</strong>.</p><p><strong>3.</strong> Enter a name, e.g. <em>Finance Toolkit</em>, and paste the server URL:</p><pre>https://financetoolkit.jeroenbouma.com/mcp</pre><p><strong>4.</strong> Click <strong>Add</strong>. The Finance Toolkit now appears in your list of connectors.</p><p><strong>5.</strong> Start a new chat and ask a financial question. On the first tool call a browser window asks for your FMP key; enter it once and you are done.</p><p>There is nothing to install and nothing to keep up to date: the hosted server always runs the latest Finance Toolkit release.</p><p>You never have to name a tool or an indicator: ask in plain English and Claude picks the right one. Below are ten real questions, each answered through the server with data up to October 2, 2026. <strong>The question is what you type, the chart is what comes back.</strong> Paste any of them into Claude as they are, or swap in your own tickers.</p><h3>Which is more profitable, Apple or Microsoft?</h3><blockquote><strong><em>Question:</em></strong><em> Compare the gross, operating and net margins of Apple and Microsoft over the last five years. Which one is more profitable?</em></blockquote><p>On margins the answer is Microsoft, by a wide and steady gap. Without being asked, Claude then checks capital efficiency, and that points the other way: Apple’s return on invested capital was 70.38% in 2025 against 30.64% for Microsoft.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*GpOWmUjiEcIY8Gpf.png" /></figure><h3>What drives the difference between Coca-Cola and PepsiCo?</h3><blockquote><strong><em>Question:</em></strong><em> Run a DuPont analysis on Coca-Cola and PepsiCo and explain what drives the difference in return on equity.</em></blockquote><p>Coca-Cola mostly sells concentrate and leaves the capital-heavy bottling to partners, so it keeps 27 cents of every dollar as profit. PepsiCo owns its snack factories and distribution: thinner margins, but it turns its assets over twice as fast and uses more leverage (an equity multiplier of 5.3 versus 3.4). Switch between the tabs to see each component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*nkW6FfAf2pU7RFdy.png" /></figure><h3>What growth is priced into Nvidia?</h3><blockquote><strong><em>Question:</em></strong><em> What is the intrinsic value of Nvidia based on a discounted cash flow, and how does it compare to the current share price?</em></blockquote><p>A DCF is only as good as its growth assumption, so Claude runs it at four growth rates (10% cost of capital, 3% terminal growth, five years).</p><p>The share price of $233.95 only fits with roughly 40% annual cash flow growth for five years. The question is whether you believe that, not whether the stock is cheap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*Ud60NbYCM439Mm22.png" /></figure><h3>Which carmaker is in the weakest financial position?</h3><blockquote><strong><em>Question:</em></strong><em> Calculate the Altman Z-Score and Piotroski F-Score for Ford, General Motors and Stellantis.</em></blockquote><p>All three ended 2025 below 1.8, the classic distress threshold. Stellantis moved the most, from 2.27 in 2023 as its operating result turned negative. A good answer adds the caveat: Ford and GM run large car-finance arms whose loan books inflate liabilities and push the score down structurally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*t5MiRZNmHgEDYQ0s.png" /></figure><h3>Is the semiconductor sector overbought?</h3><blockquote><strong><em>Question:</em></strong><em> Is the semiconductor sector overbought? Look at the RSI for NVDA, AMD, TSM and ASML.</em></blockquote><p>AMD was the outlier of the year, above 70 for most of April to July with a peak of 84.6 in May. Nvidia never reached overbought territory in 2026 and touched 38.3 in March.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*ktoFaD5s8vPuP6nf.png" /></figure><h3>Did Tesla have a golden cross or a death cross?</h3><blockquote><strong><em>Question:</em></strong><em> Has Tesla had a golden cross or a death cross this year based on the 50-day and 200-day moving averages?</em></blockquote><p>The 50-day average fell below the 200-day on April 9, 2026, and there has been no golden cross since. The gap kept widening after the July drop to around $311; the price has recovered to about $371, above the short average but still below the long one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*o6jmOl9J7MMPWj-y.png" /></figure><h3>How did Amazon, Alphabet and Meta do on a risk-adjusted basis?</h3><blockquote><strong><em>Question:</em></strong><em> Compute the Sharpe ratio, Sortino ratio, alpha and beta of Amazon, Alphabet and Meta against the S&amp;P 500 since 2020.</em></blockquote><p>2022 was bad for all three on every measure. 2023 belonged to Meta after its “year of efficiency”, 2025 to Alphabet, with the market’s best alpha of the three and the lowest beta. The Sharpe and Sortino ratios are calculated within each year, so compare them with each other rather than with annualised figures elsewhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*WoMuOwH9V8-kWIKt.png" /></figure><h3>How much downside risk do Berkshire Hathaway, Visa and Costco carry?</h3><blockquote><strong><em>Question:</em></strong><em> What is the 95% Value at Risk and the maximum drawdown of Berkshire Hathaway, Visa and Costco since 2020?</em></blockquote><p>Berkshire has the calmest days, with a daily VaR of −1.83%, close to the S&amp;P 500. Visa has the fattest daily tail (CVaR −3.93%). But Costco had the smallest worst-case fall since 2020 (−20.3%), while Berkshire’s −24.3% was slightly deeper than the market’s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*5isf0VgEmyuqKNgu.png" /></figure><h3>How have unemployment rates developed since 2010?</h3><blockquote><strong><em>Question:</em></strong><em> Show me the unemployment rate for the United States, Germany and Japan since 2010.</em></blockquote><p>The US went from 9.6% in 2010 to 3.7% in 2019, jumped to 8.1% in 2020 and was back at 3.6% two years later; it has loosened to 4.4% since. Japan has been flat at about 2.5% for years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*2rHLv3q1bMApoCOV.png" /></figure><h3>How do inflation and interest rates compare in the US and the Eurozone?</h3><blockquote><strong><em>Question:</em></strong><em> Compare inflation and central bank interest rates in the Eurozone and the United States over the last few years.</em></blockquote><p>The Federal Reserve raised rates earlier and further. The real policy rate, the policy rate minus inflation in the third tab, shows the difference best. Policy rates are annual averages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*Pi6IHHLtZjCDnFpy.png" /></figure><p>Every answer maps to a documented Finance Toolkit method, so you can look up exactly how a number was calculated in the <a href="https://www.jeroenbouma.com/projects/financetoolkit/docs">documentation</a>. The <a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp#example-conversations">MCP server page</a> has the full conversations for six more questions.</p><h3>Not a Claude User?</h3><p>The same server works with any MCP-compatible client, each with step-by-step instructions on the <a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp#installation">Finance Toolkit MCP server</a> page:</p><ul><li><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp#remote-chatgpt">ChatGPT</a></li><li><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp#remote-vs-code">VS Code and GitHub Copilot</a></li><li><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp#remote-cursor">Cursor</a></li><li><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp#remote-windsurf">Windsurf</a></li><li><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp#remote-codex">Codex CLI</a></li><li><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp#remote-gemini">Gemini CLI</a></li></ul><p>Clients that only support the stdio transport can use the local installation. If you would rather skip the assistant altogether, the <a href="https://www.jeroenbouma.com/projects/financetoolkit">Finance Toolkit</a> Python library exposes the same 500+ methods directly. Problems or ideas for a new tool are welcome as an issue on <a href="https://github.com/JerBouma/FinanceToolkit/issues">GitHub</a>.</p><p><em>Originally published on </em><a href="https://www.jeroenbouma.com/articles/connect-claude-to-financial-data"><em>jeroenbouma.com</em></a><em>, where the charts are also interactive.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4d396beaa41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Engineering the Finance Toolkit: One Function, Two Entry Points]]></title>
            <link>https://medium.com/@jer.bouma/engineering-the-finance-toolkit-one-function-two-entry-points-9b8920913d00?source=rss-40bee313aeec------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b8920913d00</guid>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[fundamental-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[model-view-controller]]></category>
            <dc:creator><![CDATA[Jeroen Bouma]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 14:11:01 GMT</pubDate>
            <atom:updated>2026-08-18T14:11:01.153Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The Finance Toolkit separates two things that most financial libraries keep tangled together: the calculation and the data collection. The gross margin function in </em><em>profitability_model.py does not know where its inputs come from. Feed it a </em><em>pd.Series you typed yourself and it gives you a result. Let the controller fetch income statement data from FMP and it calls the same function - and gives you the same result.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_clbWtUHMApMiXWVZuhfNg.jpeg" /></figure><p><strong>For more information on the Finance Toolkit, have a look </strong><a href="https://github.com/JerBouma/FinanceToolkit"><strong>here</strong></a><strong>. To explore the Finance Toolkit MCP, see </strong><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp"><strong>here</strong></a><strong>.</strong></p><h3>Setting Things Up</h3><p>Start by installing the Finance Toolkit:</p><pre>pip install financetoolkit</pre><p>The model functions live inside the package and can be imported directly alongside the main Toolkit class:</p><pre>import pandas as pd<br>from financetoolkit import Toolkit<br>from financetoolkit.ratios.profitability_model import get_gross_margin</pre><p>Get your FMP API key at <a href="https://www.jeroenbouma.com/fmp">jeroenbouma.com/fmp</a> for the controller approach. The model function needs no API key at all.</p><h3>The Model Function: You Provide the Data</h3><p>The model function is a pure calculation. It accepts two pd.Series - revenue and cost of goods sold - and returns gross margin. Nothing else. You can call it directly with any numbers you choose:</p><pre>revenue = pd.Series(<br>    [200, 250, 300],<br>    index=[&quot;2022&quot;, &quot;2023&quot;, &quot;2024&quot;]<br>)<br>cost_of_goods_sold = pd.Series(<br>    [80, 90, 100],<br>    index=[&quot;2022&quot;, &quot;2023&quot;, &quot;2024&quot;]<br>)<br>get_gross_margin(revenue, cost_of_goods_sold)</pre><p>Which returns:</p><pre>|   2022 |   2023 |   2024 |<br>|-------:|-------:|-------:|<br>| 0.6000 | 0.6400 | 0.6667 |</pre><p>No API key. No financial statements. No tickers. The function is (revenue - cost_of_goods_sold) / revenue and nothing more. You can test it, extend it, or use it with data from any source.</p><h3>The Controller: API Fetches the Same Inputs</h3><p>The controller approach initializes a Toolkit instance, fetches the income statement from FMP or Yahoo Finance, extracts the &quot;Revenue&quot; and &quot;Cost of Goods Sold&quot; columns, and calls get_gross_margin with them. The only difference from the manual call above is where the pd.Series comes from:</p><pre>companies = Toolkit(<br>    tickers=[&quot;AMZN&quot;, &quot;ASML&quot;, &quot;META&quot;],<br>    api_key=&quot;YOUR_FMP_API_KEY&quot;,<br>    start_date=&quot;2013-01-01&quot;<br>)<br>companies.ratios.get_gross_margin()</pre><p>Which returns:</p><pre>| Ticker |   2013 |   2015 |   2017 |   2019 |   2021 |   2023 |   2024 |<br>|--------|-------:|-------:|-------:|-------:|-------:|-------:|-------:|<br>| AMZN   | 0.2723 | 0.3304 | 0.3707 | 0.4099 | 0.4203 | 0.4698 | 0.4885 |<br>| ASML   | 0.4151 | 0.4606 | 0.4485 | 0.4467 | 0.5271 | 0.5129 | 0.5128 |<br>| META   | 0.7618 | 0.8401 | 0.8658 | 0.8194 | 0.8079 | 0.8076 | 0.8167 |</pre><p>The actual call inside ratios_controller.py is:</p><pre>gross_margin = profitability_model.get_gross_margin(<br>    self._income_statement.loc[:, &quot;Revenue&quot;, :],<br>    self._income_statement.loc[:, &quot;Cost of Goods Sold&quot;, :],<br>)</pre><p>Two pd.Series sliced from the income statement DataFrame. Exactly what you passed manually in the previous section.</p><h3>Same Function, Same Output</h3><p>If you extract the income statement yourself and feed it to the model function directly, you get the same numbers as the controller:</p><pre>income  = companies.get_income_statement()<br><br>revenue = income.loc[:, &quot;Revenue&quot;, :]<br>cogs    = income.loc[:, &quot;Cost of Goods Sold&quot;, :]<br><br>get_gross_margin(revenue, cogs)</pre><p>Which returns:</p><pre>| Ticker |   2013 |   2015 |   2017 |   2019 |   2021 |   2023 |   2024 |<br>|--------|-------:|-------:|-------:|-------:|-------:|-------:|-------:|<br>| AMZN   | 0.2723 | 0.3304 | 0.3707 | 0.4099 | 0.4203 | 0.4698 | 0.4885 |<br>| ASML   | 0.4151 | 0.4606 | 0.4485 | 0.4467 | 0.5271 | 0.5129 | 0.5128 |<br>| META   | 0.7618 | 0.8401 | 0.8658 | 0.8194 | 0.8079 | 0.8076 | 0.8167 |</pre><p>Identical. The controller is a convenience wrapper that handles data fetching, normalization, and optional parameters like growth=True and rounding. The calculation itself never changes.</p><h3>Separation of Concerns</h3><p>The gross margin example maps directly onto three distinct layers, each with exactly one responsibility:</p><ul><li><strong>Mathematics</strong> (profitability_model.py): the formula. (revenue - cost_of_goods_sold) / revenue. No knowledge of where the inputs come from or what company they belong to.</li><li><strong>Logic</strong> (ratios_controller.py): extracts the right columns from the income statement, routes optional parameters, applies rounding. No arithmetic.</li><li><strong>Dataset</strong> (fmp_model.py / yfinance_model.py + normalization CSVs): fetches raw API data and maps it to a consistent internal schema. No calculation, no business logic.</li></ul><p>This structure has direct consequences for every part of the development workflow:</p><ul><li><strong>Testable</strong>: model functions accept plain pd.Series, so every calculation can be verified with synthetic data. No API key, no network, no fixtures.</li><li><strong>Verifiable</strong>: the same model function runs regardless of data source. Swap FMP for your own CSV and the gross margin calculation is identical, making it straightforward to cross-check results.</li><li><strong>Debuggable</strong>: when a number is wrong, the layer tells you where to look. Wrong formula? profitability_model.py. Wrong column being extracted? ratios_controller.py. API returning unexpected data? The data layer. No hunting across a monolithic file.</li></ul><p>The same pattern repeats across all 230+ metrics in the toolkit. Every ratio has one model function, one controller method, and one data source — and they never overlap.</p><p><em>The Finance Toolkit is open-source and available on </em><a href="https://github.com/JerBouma/FinanceToolkit"><em>GitHub</em></a><em>. The Finance Toolkit MCP server is accessible directly from Claude for analysis without writing any code.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b8920913d00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Technical Indicators Demystified: Using the Finance Toolkit to Read Market Signals]]></title>
            <link>https://medium.com/@jer.bouma/technical-indicators-demystified-using-the-finance-toolkit-to-read-market-signals-6a9a6961e44b?source=rss-40bee313aeec------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a9a6961e44b</guid>
            <category><![CDATA[semiconductors]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[technical-analysis]]></category>
            <dc:creator><![CDATA[Jeroen Bouma]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 13:36:01 GMT</pubDate>
            <atom:updated>2026-08-11T13:36:01.401Z</atom:updated>
            <content:encoded><![CDATA[<p><em>On April 20, 2026, NVIDIA’s 14-day Relative Strength Index reached 98.63. By June 10, the stock had lost roughly 20% from that peak and the RSI had collapsed to 32.97. Anyone watching the indicator had at least one clear signal that the move was exhausted long before the correction fully played out.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_clbWtUHMApMiXWVZuhfNg.jpeg" /></figure><p>This article works through four of the most widely used technical indicators (RSI, MACD, the 50-day exponential moving average, and Bollinger Bands) using NVIDIA as a case study across two years of price history. The Finance Toolkit computes all of them natively. Each section includes Python code and an MCP prompt so you can run the same analysis whether you want to write code or just ask a question in Claude.</p><p>Technical indicators do not predict the future. What they do is measure the current state of price momentum, trend direction, and volatility in a standardized, repeatable way. The signals they produce are probabilistic, not deterministic — a reading of 98 on the RSI does not guarantee a reversal, but it does tell you that buying pressure has reached an extreme that has historically been unsustainable.<strong>For more information on Finance Toolkit, have a look </strong><a href="https://github.com/JerBouma/FinanceToolkit"><strong>here</strong></a><strong>. To explore the Finance Toolkit MCP, see </strong><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp"><strong>here</strong></a><strong>.</strong></p><h3>Setting Things Up</h3><p>Start by installing the Finance Toolkit:</p><pre>pip install financetoolkit</pre><p>Then import the library and create a Toolkit instance for NVIDIA, using daily price data from the start of 2024:</p><pre>from financetoolkit import Toolkit<br>company = Toolkit(<br>    tickers=[&quot;NVDA&quot;],<br>    api_key=&quot;YOUR_FMP_API_KEY&quot;,<br>    start_date=&quot;2024-01-01&quot;<br>)</pre><p>Get your FMP API key at <a href="https://www.jeroenbouma.com/fmp">jeroenbouma.com/fmp</a>. The free plan covers five years of history; a paid plan unlocks longer datasets and non-US tickers.</p><h3>RSI: When Buying Pressure Reaches an Extreme</h3><p>The Relative Strength Index measures the speed and magnitude of recent price changes to assess whether an asset is overbought or oversold. It runs on a scale from 0 to 100. Readings above 70 are conventionally flagged as overbought; readings below 30 suggest the opposite. The default window is 14 trading days.</p><p>For NVIDIA, the RSI tells a story of repeated extremes. The stock spent much of early 2024 in overbought territory as AI infrastructure spending drove the price higher, then corrected sharply in April and again in July before recovering. The same pattern repeated in 2025 during the DeepSeek selloff, the April tariff shock, and the May trade-truce rally. The April 2026 peak pushed the RSI to levels that are statistically rare for any large-cap stock.</p><p>To compute the RSI, access the technicals module on the Toolkit instance:</p><pre>rsi = company.technicals.get_relative_strength_index(<br>    period=&quot;daily&quot;,<br>    window=14<br>)</pre><p>Which returns:</p><pre>| Date       | NVDA RSI | Reading                            |<br>|:-----------|---------:|:-----------------------------------|<br>| 2024-01-24 |   97.00  | Extreme overbought                 |<br>| 2024-04-19 |   28.55  | Oversold                           |<br>| 2024-07-30 |   21.04  | Deep oversold                      |<br>| 2025-01-27 |   31.97  | Oversold (DeepSeek gap-down)       |<br>| 2025-04-08 |   24.37  | Oversold (tariff selloff)          |<br>| 2025-05-16 |   92.67  | Extreme overbought (trade truce)   |<br>| 2026-04-20 |   98.63  | Historic extreme                   |<br>| 2026-06-04 |   35.85  | Cooling off                        |<br>| 2026-06-16 |   46.49  | Neutral                            |</pre><p>Several things stand out. The April 2025 reading of 24.37 coincided with the peak of the US-China tariff shock — a sentiment-driven event that pushed NVIDIA well below any fundamental valuation anchor. The stock recovered sharply when the tariff pause was announced on April 9 (RSI bouncing to 46.41 in a single session). The April 2026 extreme at 98.63 marked the tail end of a run driven by AI infrastructure announcements; the RSI had already been above 80 for six consecutive sessions before hitting that level.</p><p>One thing the RSI does not tell you is the cause of the signal. For that, you need context — which is where combining indicators and understanding the underlying news becomes important.</p><blockquote><strong><em>Try this in the Finance Toolkit MCP:</em></strong><em> </em>“Show me NVIDIA’s 14-day RSI from January 2024 to June 2026, and identify the key overbought and oversold turning points.”</blockquote><h3>MACD: Catching Trend Shifts Early</h3><p>The Moving Average Convergence Divergence indicator measures the difference between a short-term and a long-term exponential moving average, typically 12-day and 26-day. The result is the MACD line. A signal line — usually a 9-day EMA of the MACD line — is plotted alongside it. When the MACD line crosses above the signal line, it signals bullish momentum building; when it crosses below, momentum is turning negative.</p><p>The MACD is a lagging indicator by design — it confirms a trend shift after it has started rather than predicting one. But that lag is also its strength: it filters out short-term noise and only triggers when momentum has been building for several sessions.</p><p>To compute the MACD for NVIDIA:</p><pre>macd = company.technicals.get_moving_average_convergence_divergence(<br>    period=&quot;daily&quot;,<br>    short_window=12,<br>    long_window=26,<br>    signal_window=9<br>)</pre><p>Which returns:</p><pre>| Date       | MACD Line | Signal Line | Condition                        |<br>|:-----------|----------:|------------:|:---------------------------------|<br>| 2024-04-19 |     -1.99 |        0.63 | Bearish: MACD below signal       |<br>| 2024-07-30 |     -6.28 |       -2.01 | Deep bearish                     |<br>| 2025-01-27 |     -1.75 |        0.35 | Bearish crossover (DeepSeek)     |<br>| 2025-04-08 |    -10.71 |       -7.70 | Deep bearish (tariff panic)      |<br>| 2025-05-09 |      3.44 |        1.11 | Bullish crossover                |<br>| 2025-05-16 |     11.28 |        6.52 | Strong bullish                   |<br>| 2026-04-17 |      9.42 |        4.31 | Bullish peak                     |<br>| 2026-06-16 |     -2.22 |       -0.59 | Bearish crossover                |</pre><p>The April 2025 tariff selloff pushed the MACD to -10.71, its lowest reading in the dataset. Importantly, the May 9 bullish crossover came just before the strongest leg of the recovery: by May 16 the MACD had expanded to 11.28 as momentum built. The June 16, 2026 bearish crossover (-2.22 vs -0.59) confirms what the RSI had already signaled — that the late-April surge has fully unwound.</p><p>What the MACD added over the RSI alone: the RSI flagged the April 2026 peak in real time (98.63 on April 20), but the MACD bullish crossover in early April gave an earlier entry signal for the rally. Neither indicator is superior — they answer different questions.</p><blockquote><strong><em>Try this in the Finance Toolkit MCP:</em></strong><em> </em>“Compute NVIDIA’s MACD with a 12–26–9 setup from January 2024 to today and show me where the bullish and bearish crossovers occurred.”</blockquote><h3>The 50-Day EMA: Separating Trend from Noise</h3><p>A single price reading tells you where a stock is. The 50-day exponential moving average tells you where it has been trending. More precisely, the EMA weights recent prices more heavily than older ones, making it more responsive to new information than a simple moving average. When the price is trading above the 50-day EMA, the medium-term trend is up; when it falls below, the trend has turned.</p><p>For NVIDIA, the relationship between price and the 50-day EMA has flipped multiple times since 2024, each flip corresponding to a meaningful change in regime.</p><pre>ema_50 = company.technicals.get_exponential_moving_average(<br>    period=&quot;daily&quot;,<br>    window=50<br>)</pre><p>Which returns:</p><pre>| Date       | Close Price | 50-Day EMA | Price vs EMA                     |<br>|:-----------|------------:|-----------:|:---------------------------------|<br>| 2024-01-02 |       48.17 |      47.30 | +1.8% above - early uptrend      |<br>| 2024-06-18 |      135.58 |     104.46 | +29.7% above - extended          |<br>| 2024-08-05 |      100.45 |     114.70 | -12.4% below - trend broken      |<br>| 2025-01-27 |      118.42 |     137.30 | -13.8% below - DeepSeek selloff  |<br>| 2025-04-08 |       96.30 |     118.11 | -18.4% below - tariff panic      |<br>| 2025-05-16 |      135.40 |     116.86 | +15.9% above - trend restored    |<br>| 2026-04-20 |      202.06 |     184.57 | +9.5% above - extended           |<br>| 2026-06-16 |      207.41 |     206.85 | flat - price testing EMA support |</pre><p>The June 2024 divergence of 29.7% above the EMA was unsustainable. The August 2024 correction brought the price back below the EMA within six weeks. The DeepSeek gap-down in January 2025 pushed the stock 13.8% below the EMA overnight — which helps explain why the RSI hit 31.97 immediately, since the move was violent enough to register on both indicators simultaneously. The recovery in May 2025 restored the uptrend, and by April 2026 NVIDIA had been comfortably above its 50-day EMA for nearly a year.</p><p>The June 16, 2026 flat reading (close at 207.41, EMA at 206.85) is worth watching. When price converges with the EMA after an extended period above it, the next directional move often signals whether the underlying trend is continuing or breaking.</p><blockquote><strong><em>Try this in the Finance Toolkit MCP:</em></strong><em> </em>“Show me NVIDIA’s 50-day EMA and closing price from 2024 to today, and highlight where the price crossed below and back above the EMA.”</blockquote><h3>Bollinger Bands: Reading Volatility in Real Time</h3><p>Bollinger Bands place a 20-day simple moving average at the center of a price channel, with upper and lower bands set at two standard deviations above and below. When prices reach the upper band, they have moved two standard deviations from the recent mean — statistically unusual in a stable environment. When prices touch the lower band, the opposite is true. The width of the channel itself is a volatility indicator: narrow bands suggest a calm market, wide bands reflect elevated uncertainty.</p><p>For NVIDIA, the bands have caught every significant turning point since 2024, including the one playing out right now.</p><pre>bollinger = company.technicals.get_bollinger_bands(<br>    period=&quot;daily&quot;,<br>    window=20,<br>    num_std_dev=2<br>)</pre><p>Which returns:</p><pre>| Date       |  Close | Lower Band | Middle Band | Upper Band |<br>|:-----------|-------:|-----------:|------------:|-----------:|<br>| 2024-06-18 | 135.58 |      94.39 |      117.06 |     139.73 |<br>| 2024-07-24 | 114.25 |     115.22 |      124.92 |     134.62 |<br>| 2024-08-05 | 100.45 |      99.39 |      118.49 |     137.58 |<br>| 2025-01-27 | 118.42 |     124.77 |      138.29 |     151.80 |<br>| 2025-04-08 |  96.30 |      94.99 |      111.88 |     128.78 |<br>| 2026-04-17 | 201.68 |     159.97 |      181.44 |     202.91 |<br>| 2026-04-20 | 202.06 |     159.99 |      182.91 |     205.83 |<br>| 2026-06-10 | 200.42 |     200.55 |      217.20 |     233.84 |<br>| 2026-06-16 | 207.41 |     199.43 |      213.23 |     227.03 |</pre><p>Three moments jump out. On July 24, 2024, the close of 114.25 fell below the lower band at 115.22 — a squeeze that resolved to the upside once the rotation out of AI stocks stabilized. The January 27, 2025 close of 118.42 was significantly below the lower band at 124.77, which happened overnight on the DeepSeek news: the gap opened below the band and confirmed that the move was a sentiment break, not a gradual fade.</p><p>The April 17–20, 2026 entries show the price pressing against the upper band at precisely the moment the RSI hit its peak. Close at 201.68 against an upper band of 202.91, then 202.06 against 205.83 — price was sitting on the ceiling. By June 10, the setup had completely inverted: close at 200.42 touching the lower band at 200.55. The stock bounced, closing June 16 at 207.41 with the lower band now at 199.43, acting as support.</p><p>The band width also carries information. The 43-point gap between bands on April 17 (159.97 to 202.91) reflected heightened volatility from the AI infrastructure cycle. The narrower 28-point gap on June 16 (199.43 to 227.03) suggests volatility is compressing — which typically precedes the next directional move, though not the direction itself.</p><blockquote><strong><em>Try this in the Finance Toolkit MCP:</em></strong><em> </em>“Show me NVIDIA’s Bollinger Bands with a 20-day window and 2 standard deviations from January 2024 to June 2026. Where did the price touch the upper and lower bands?”</blockquote><h3>The Current Picture</h3><p>Since June 2026, NVIDIA’s technical setup is mixed but stabilizing. The RSI has recovered from its June low of 32.97 to 46.49 — neutral territory. The MACD is in a fresh bearish crossover (-2.22 vs -0.59), but the spread is narrow, which means the negative momentum is not accelerating. The 50-day EMA is at 206.85, essentially matching the current price of 207.41: the stock is at a decision point where trend support and current price are the same number.</p><p>The Bollinger lower band just acted as support on June 10, which historically has resolved to the upside more often than not for a stock with NVIDIA’s earnings trajectory. What the indicators do not tell you is how long the consolidation lasts before the next leg.</p><p>To get the full current reading in a single block:</p><pre>rsi_current = company.technicals.get_relative_strength_index(period=&quot;daily&quot;, window=14).iloc[-1]<br>macd_current = company.technicals.get_moving_average_convergence_divergence(period=&quot;daily&quot;).iloc[-1]<br>ema_current = company.technicals.get_exponential_moving_average(period=&quot;daily&quot;, window=50).iloc[-1]<br>bb_current = company.technicals.get_bollinger_bands(period=&quot;daily&quot;, window=20).iloc[-1]</pre><p>Technical indicators are most useful when they agree. Right now, the RSI, MACD, and Bollinger Bands are all pointing to the same conclusion: the April-May 2026 surge has been fully corrected, the stock has found support at the lower band, and the price is back at its medium-term trend line. Whether the next move continues the longer uptrend or breaks deeper into the EMA will become visible in the RSI and MACD readings over the next few weeks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a9a6961e44b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explaining Stock Returns with the Fama-French 5 Factor Model]]></title>
            <link>https://medium.com/@jer.bouma/explaining-stock-returns-with-the-fama-french-5-factor-model-c062295deaea?source=rss-40bee313aeec------2</link>
            <guid isPermaLink="false">https://medium.com/p/c062295deaea</guid>
            <category><![CDATA[fundamental-analysis]]></category>
            <category><![CDATA[factor-analysis]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[mcp-server]]></category>
            <dc:creator><![CDATA[Jeroen Bouma]]></dc:creator>
            <pubDate>Tue, 04 Aug 2026 14:06:01 GMT</pubDate>
            <atom:updated>2026-08-04T14:06:01.410Z</atom:updated>
            <content:encoded><![CDATA[<p><em>In 2023, the Fama-French 5-factor model could explain only 35% of NVIDIA’s weekly return variation. In 2024, it explained 82%. That gap tells you something important: NVIDIA’s 2023 surge was driven primarily by a narrative that no systematic factor had yet priced in. The sudden recognition that GPU scarcity would define AI infrastructure for years. By 2024, that insight had diffused into the market factor itself, and the stock began behaving like a large-cap bellwether rather than a thematic trade.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_clbWtUHMApMiXWVZuhfNg.jpeg" /></figure><p>The Fama-French 5-factor model is the most widely used framework for decomposing stock returns into systematic components. Instead of asking “did this stock go up?”, it asks “how much of that return is explained by exposure to known risk premia, and how much is specific to the company?” The answer has implications for both portfolio construction and for understanding whether outperformance is repeatable.</p><p>This article runs the model on NVIDIA, Apple, and Microsoft using the Finance Toolkit, interprets what each factor says about each company, and draws out the most useful comparisons across the three.</p><h3>The Five Factors</h3><p>Before running any code, it helps to have the five factors clearly defined. Each represents a systematic source of return that the model holds responsible for a portion of a stock’s performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mgsKFbzZdi9rUDo0llnlUg.png" /></figure><h3>Setting Things Up</h3><p>Start by installing the Finance Toolkit:</p><pre>pip install financetoolkit</pre><p>Then import the library and create a Toolkit instance for all three stocks:</p><pre>from financetoolkit import Toolkit<br>companies = Toolkit(<br>    tickers=[&quot;NVDA&quot;, &quot;AAPL&quot;, &quot;MSFT&quot;],<br>    api_key=&quot;YOUR_FMP_API_KEY&quot;,<br>    start_date=&quot;2019-01-01&quot;<br>)</pre><p>Get your FMP API key at <a href="https://www.jeroenbouma.com/fmp">jeroenbouma.com/fmp</a>. The free plan covers five years of history; the full 2019–2026 dataset used here requires a paid plan.</p><h3>Running the Fama-French Model</h3><p>The Finance Toolkit exposes the Fama-French model through the performance module. Setting period=&quot;yearly&quot; runs a separate regression for each calendar year, which reveals how factor exposures shift over time.</p><pre>ff5 = companies.performance.get_fama_and_french_model(<br>    period=&quot;yearly&quot;,<br>    method=&quot;multi&quot;<br>)</pre><p>Which returns:</p><pre>| Factor | 2019   | 2020   | 2021   | 2022   | 2023   | 2024   | 2025   | 2026   |<br>|:-------|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|<br>| Mkt-RF | 0.0173 | 0.0263 | 0.0102 | 0.0131 | 0.0087 | 0.0120 | 0.0110 | 0.0109 |<br>| HML    |-0.0077 |-0.0113 |-0.0030 |-0.0098 |-0.0058 |-0.0045 |-0.0061 |-0.0027 |<br>| RMW    |-0.0032 | 0.0051 | 0.0015 | 0.0031 | 0.0073 |-0.0018 | 0.0041 | 0.0015 |<br>| R²     | 0.5252 | 0.5657 | 0.6199 | 0.7596 | 0.3489 | 0.8245 | 0.7248 | 0.6659 |</pre><p><em>NVDA only, selected factors shown. Full output includes SMB, CMA, Intercept, and MSE for all three tickers.</em></p><p>Several patterns are immediately visible. The Mkt-RF slope peaked in 2020 at 0.0263, NVIDIA was at its most market-sensitive during the COVID volatility year, when everything moved together. It compressed from 2021 onward as the stock developed more of its own narrative. The HML slope is negative in every year without exception: NVIDIA has never traded like a value stock. In years when value outperforms growth (2022 most clearly) a negative HML loading is a headwind.</p><p>The R-squared column tells the most important story, and the 2023 reading of 0.3489 is the centrepiece. Just 35% of NVIDIA’s weekly return variation that year was explained by the five systematic factors. The rest came from idiosyncratic exposure to the AI infrastructure thesis. The Fama-French model had no variable for “Jensen Huang said demand is insane on the earnings call.” By 2024, enough of that thesis had diffused into the market factor that the model’s explanatory power nearly doubled to 82%.</p><blockquote><strong><em>Try this in the Finance Toolkit MCP:</em></strong><em> </em>“Run the Fama-French 5-factor model on NVIDIA annually from 2019 to 2026 and explain what each factor slope tells me about the stock.”</blockquote><h3>Comparing NVIDIA, Apple, and Microsoft</h3><p>Running the model across all three tickers in a single call makes the structural differences between them visible at once. The 2024 annual regression offers a clean snapshot, so select the relevant rows for comparison:</p><pre>comparison_2024 = ff5.loc[<br>    [(ticker, factor) for ticker in [&quot;NVDA&quot;, &quot;AAPL&quot;, &quot;MSFT&quot;]<br>     for factor in [&quot;Mkt-RF Slope&quot;, &quot;SMB Slope&quot;, &quot;HML Slope&quot;, &quot;RMW Slope&quot;, &quot;CMA Slope&quot;, &quot;R Squared&quot;]],<br>    &quot;2024&quot;<br>]</pre><p>Which returns:</p><pre>| Factor | NVDA    | AAPL    | MSFT    |<br>|:-------|--------:|--------:|--------:|<br>| Mkt-RF |  0.0120 |  0.0113 |  0.0124 |<br>| SMB    | -0.0051 | -0.0048 | -0.0027 |<br>| HML    | -0.0045 | -0.0027 | -0.0043 |<br>| RMW    | -0.0018 |  0.0044 |  0.0027 |<br>| CMA    | -0.0067 | -0.0100 | -0.0036 |<br>| R²     |  0.8245 |  0.7804 |  0.8783 |</pre><p>The Mkt-RF slopes are nearly identical across all three: 0.0120, 0.0113, and 0.0124. In 2024, all three mega-cap technology stocks had converged to approximately the same market sensitivity. Their size and index weight had made them proxies for the market itself.</p><p>The RMW divergence is the most informative. Apple (0.0044) and Microsoft (0.0027) both show positive profitability exposure: their returns partially track the performance of high-profitability stocks as a group. NVIDIA’s RMW is slightly negative (-0.0018) in 2024, not because NVIDIA is unprofitable (its margins are exceptional), but because the market was pricing NVIDIA more on anticipated future earnings than demonstrated current earnings. The profitability factor rewards realized profitability; forward-looking pricing disconnects from that factor.</p><p>Microsoft’s R-squared of 0.8783 is the highest: 88% of its weekly return variation in 2024 is explained by the five systematic factors. NVIDIA at 0.8245 and Apple at 0.7804 show more residual idiosyncratic exposure.</p><blockquote><strong><em>Try this in the Finance Toolkit MCP:</em></strong><em> </em>“Compare the Fama-French 5-factor loadings for NVIDIA, Apple, and Microsoft in 2024 and explain which stock is most driven by systematic factors.”</blockquote><h3>The R-Squared Signal Over Time</h3><p>The R-squared comparison across years reveals how the market’s understanding of a stock evolves over time. Isolate just the R-squared rows for all three tickers:</p><pre>r_squared = ff5.loc[<br>    [(ticker, &quot;R Squared&quot;) for ticker in [&quot;NVDA&quot;, &quot;AAPL&quot;, &quot;MSFT&quot;]]<br>]</pre><p>Which returns:</p><pre>| Ticker | 2019   | 2020   | 2021   | 2022   | 2023   | 2024   | 2025   | 2026   |<br>|:-------|-------:|-------:|-------:|-------:|-------:|-------:|-------:|-------:|<br>| NVDA   | 0.5252 | 0.5657 | 0.6199 | 0.7596 | 0.3489 | 0.8245 | 0.7248 | 0.6659 |<br>| AAPL   | 0.7576 | 0.7242 | 0.5847 | 0.7331 | 0.6022 | 0.7804 | 0.7595 | 0.5754 |<br>| MSFT   | 0.5061 | 0.5604 | 0.8047 | 0.5903 | 0.3418 | 0.8783 | 0.6154 | 0.3783 |</pre><p>Apple’s R-squared has been the most stable across the eight-year sample, consistently in the 0.58–0.78 range. As the largest company in the world for most of this period, Apple effectively became the market; its returns have always tracked the broad factors reasonably well.</p><p>Microsoft’s 2023 R-squared of 0.3418 is as low as NVIDIA’s. This is surprising until you recall that 2023 was also the year Microsoft announced its OpenAI integration and Copilot roadmap, triggering a re-rating that was as idiosyncratic as NVIDIA’s GPU demand story. Both stocks were responding to the same underlying AI narrative in different ways; neither had that narrative captured in a systematic factor.</p><p>By 2026, the R-squared for all three stocks has declined from its 2024 peak. This partly reflects a partial-year sample, but it also reflects an environment where idiosyncratic drivers (AI capex cycles, geopolitical supply chain exposure, individual earnings surprises) have re-emerged as dominant movers relative to the broad factors.</p><h3>What the Model Cannot Tell You</h3><p>The Fama-French 5-factor model does not explain why a stock outperformed. It explains what factors were present and how sensitive the stock was to each one. An R-squared of 0.82 means the model fits well for that year; it does not mean you could have predicted NVIDIA’s return by looking at the factor returns in advance.</p><p>What the model is genuinely useful for is portfolio construction. If you are building a portfolio with specific factor tilts (overweight value, underweight growth) running FF5 on your holdings tells you whether your intended exposures actually exist in the portfolio, or whether stock-specific dynamics are swamping the factor positioning. For a stock like NVIDIA in 2023, the answer was clearly the latter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c062295deaea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What the Cash Flow Statement Reveals That Earnings Don’t using the Finance Toolkit]]></title>
            <link>https://medium.com/@jer.bouma/what-the-cash-flow-statement-reveals-that-earnings-dont-using-the-finance-toolkit-389e4be4acd9?source=rss-40bee313aeec------2</link>
            <guid isPermaLink="false">https://medium.com/p/389e4be4acd9</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[cash-flow-statement]]></category>
            <category><![CDATA[fundamental-analysis]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Jeroen Bouma]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 13:56:01 GMT</pubDate>
            <atom:updated>2026-07-28T13:56:01.840Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article shows how the cash flow statement can tell a different story than the income statement, and how to use the Finance Toolkit to explore both. The examples below use Netflix and Snowflake, two companies that diverge in opposite directions between earnings and cash flow.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_clbWtUHMApMiXWVZuhfNg.jpeg" /></figure><p>From 2014 through 2019, Netflix reported a profit every single year. It also burned cash every single year, and the burn got worse each time: free cash flow went from -$128 million in 2014 to -$3.14 billion in 2019. Snowflake’s story runs the other way: its net losses have widened every year since its 2020 IPO, reaching -$1.29 billion in 2025, while its free cash flow flipped positive in 2022 and reached $913 million by 2025.</p><p>Same direction of travel for the headline number, opposite direction for the cash. Both are explained entirely by what the cash flow statement adds back or strips out that the income statement does not. <strong>For more information on Finance Toolkit, have a look </strong><a href="https://github.com/JerBouma/FinanceToolkit"><strong>here</strong></a><strong>. To explore the Finance Toolkit MCP, see </strong><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp"><strong>here</strong></a><strong>.</strong></p><h3>Setting Things Up</h3><p>Start by installing the Finance Toolkit:</p><pre>pip install financetoolkit</pre><p>Then import the library and create a Toolkit instance for both companies:</p><pre>from financetoolkit import Toolkit<br><br>companies = Toolkit(<br>    tickers=[&quot;NFLX&quot;, &quot;SNOW&quot;],<br>    api_key=&quot;YOUR_FMP_API_KEY&quot;,<br>    start_date=&quot;2014-01-01&quot;<br>)</pre><p>Get your FMP API key at <a href="https://www.jeroenbouma.com/fmp">jeroenbouma.com/fmp</a>. A paid plan is required to access the full 15-year history used here.</p><h3>Netflix: Profitable on Paper, Burning Cash for Six Years</h3><p>Pull the income statement and cash flow statement for both companies, then line up Netflix’s net income against its operating and free cash flow:</p><pre>income = companies.get_income_statement()<br>cash_flow = companies.get_cash_flow_statement()</pre><p>Which returns, focussing on the most relevant items, for Netflix:</p><pre>| Year | Net Income | Op. Cash Flow  | Free Cash Flow |<br>|------|-----------:|---------------:|---------------:|<br>| 2014 |       0.27 |           0.02 |          -0.13 |<br>| 2015 |       0.12 |          -0.75 |          -0.92 |<br>| 2016 |       0.19 |          -1.47 |          -1.66 |<br>| 2017 |       0.56 |          -1.79 |          -2.01 |<br>| 2018 |       1.21 |          -2.68 |          -2.89 |<br>| 2019 |       1.87 |          -2.89 |          -3.14 |<br>| 2020 |       2.76 |           2.43 |           1.93 |<br>| 2021 |       5.12 |           0.39 |          -0.13 |<br>| 2022 |       4.49 |           2.03 |           1.62 |<br>| 2023 |       5.41 |           7.27 |           6.93 |<br>| 2024 |       8.71 |           7.36 |           6.92 |<br>| 2025 |      10.98 |          10.15 |           9.46 |</pre><p>The gap in 2019 is the most extreme: $1.87 billion in reported profit against -$3.14 billion in free cash flow, a $5 billion difference in the same year. Netflix capitalizes the cost of producing content and amortizes it on the income statement over the years that content draws viewers, but the cash for that content goes out the door upfront. In 2019, the non-cash amortization add-back was nowhere near large enough to offset the cash actually spent acquiring new content.</p><p>The flip starting in 2020 is just as informative. COVID production shutdowns slowed new content spending right as the prior years’ library kept generating amortization add-backs, and operating cash flow turned positive for the first time in the dataset. By 2023, free cash flow ($6.93 billion) had not just caught up to net income ($5.41 billion), it exceeded it.</p><blockquote><strong><em>Try this with the Finance Toolkit MCP:</em></strong><em> </em>“Compare Netflix’s net income, operating cash flow, and free cash flow from 2014 to 2025. In which years was free cash flow most negative relative to net income, and when did that reverse?”</blockquote><h3>Snowflake: Losing Money on Paper, Generating Cash in Practice</h3><p>Slice out Snowflake’s rows from the same two statements, and add stock-based compensation alongside net income to see what is doing the reconciling:</p><pre>snowflake_income = income.loc[&quot;SNOW&quot;]<br>snowflake_cash_flow = cash_flow.loc[&quot;SNOW&quot;]</pre><p>Which returns, focussing on the most relevant items, for Snowflake:</p><pre>| Year | Net Income | SBC      | Op. Cash Flow   | Free Cash Flow  |<br>|------|-----------:|---------:|----------------:|----------------:|<br>| 2020 |     -348.5 |     78.4 |          -176.6 |          -199.4 |<br>| 2021 |     -539.1 |    301.4 |           -45.4 |           -85.7 |<br>| 2022 |     -680.0 |    605.1 |           110.2 |            81.2 |<br>| 2023 |     -797.5 |    861.5 |           545.6 |           496.5 |<br>| 2024 |     -838.0 |  1,168.0 |           848.1 |           778.9 |<br>| 2025 |   -1,289.2 |  1,479.3 |           959.8 |           913.5 |</pre><p>Snowflake’s net loss has widened every year, more than tripling from -$348.5 million in 2020 to -$1.29 billion in 2025. Its free cash flow tells the opposite story, turning positive in 2022 and reaching $913.5 million by 2025. The reconciling line is stock-based compensation, which grew from $78.4 million to $1.48 billion over the same period, larger than the entire net loss in 2025. SBC is a real cost to shareholders through dilution, but not a cash cost to the company, so it gets added back when calculating operating cash flow.</p><p>Neither number is wrong. The net loss correctly captures the dilution cost to existing shareholders. The cash flow statement correctly captures that the business is not consuming cash to operate, it is consuming equity.</p><blockquote><strong><em>Try this with the Finance Toolkit MCP:</em></strong><em> </em>“Show Snowflake’s net income, stock-based compensation, and operating cash flow from 2020 to 2025. How much of the gap between net income and operating cash flow is explained by stock-based compensation alone?”</blockquote><h3>Reading the Cash Flow Statement First</h3><p>Netflix and Snowflake diverge from earnings in opposite directions, but the mechanism is the same: a non-cash item on the income statement moves in a different rhythm than the actual cash leaving or entering the business. Other common sources worth checking on any company: changes in working capital, deferred revenue, and one-time gains or impairments that hit net income without any cash changing hands.</p><p>A company that looks profitable but is burning cash for years, like Netflix before 2020, needs to be asked how it intends to fund that gap. A company that looks unprofitable but is generating real cash, like Snowflake since 2022, needs to be asked how much of its reported loss is real economic cost versus an accounting treatment of compensation. The cash flow statement is the cross-check that tells you whether to trust what the income statement is implying.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=389e4be4acd9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Equity Research for Family Offices and Small Funds with the FMP MCP Server]]></title>
            <link>https://medium.com/@jer.bouma/equity-research-for-family-offices-and-small-funds-with-the-fmp-mcp-server-4b66e6243b30?source=rss-40bee313aeec------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b66e6243b30</guid>
            <category><![CDATA[equity-research]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[family-office]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[investment-funds]]></category>
            <dc:creator><![CDATA[Jeroen Bouma]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 14:11:01 GMT</pubDate>
            <atom:updated>2026-07-23T14:11:01.661Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*suSZuGhR0dbPiqnTH70QkA.png" /></figure><p>A family office running $150 million doesn’t get a five-person research desk. Neither does a small fund with eight names in the book. But the diligence bar doesn’t drop just because the headcount did, if anything it goes up, because a concentrated portfolio means every position carries real weight and there’s no long tail of other holdings to average out a mistake.</p><p>That’s the gap the FMP MCP server is actually useful for.<strong> </strong>Not because it replaces judgment, but because it collapses the mechanical part of diligence, pulling statements, estimates, insider filings, institutional flow, into a conversation in Claude Desktop instead of a subscription to a terminal that costs more than a junior analyst’s salary and still needs someone to operate it.</p><p><strong>This piece walks through a real equity research pass on Axon Enterprise (AXON)</strong>, the maker of Tasers and body cameras for law enforcement, using the FMP MCP server end to end. Every prompt below was run against the FMP MCP before writing this, so what’s described is what it actually gave back, not a guess at what it might say.</p><blockquote>For more information on the FMP MCP server, see <a href="https://site.financialmodelingprep.com/developer/docs/mcp-server">FMP’s documentation</a>. To see what the Finance Toolkit MCP adds on top of it, see <a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp">here</a>.</blockquote><h3>Setting Things Up</h3><p>The FMP MCP server connects to Claude Desktop as a remote connector, no local install required. Under Settings, then Connectors, then Add custom connector, the URL follows this pattern:</p><pre>https://financialmodelingprep.com/mcp?apikey=YOUR_API_KEY</pre><p>Paste that in with your key, give it a name, and Claude has direct access to FMP’s statements, analyst data, insider filings, and institutional ownership records for the rest of the session.</p><blockquote>Get an API key at <a href="https://www.jeroenbouma.com/fmp">jeroenbouma.com/fmp</a>. The free tier covers 250 requests a day, which is plenty to run everything below.</blockquote><h3>Building the Diligence File: Financial Health at a Glance</h3><p>Before a story matters, the numbers have to support it. FMP’s key metrics endpoint bundles return on equity, return on invested capital, and EV/EBITDA into a single call, the kind of thing that normally means pulling three statements and building the ratios by hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dNJv2X-uFDD8DSW8qbohoQ.png" /><figcaption><em>“Pull Axon Enterprise’s (AXON) key financial metrics for the last five fiscal years and show me how ROE, ROIC, and EV/EBITDA have moved.”</em></figcaption></figure><p>This tells an uncomfortable story on its own: ROIC peaked in 2023 at 6% and has since gone negative, while the EV/EBITDA multiple more than doubled over the same stretch, past 236x by 2025. The multiple is expanding faster than the returns funding it, which is exactly the kind of tension worth flagging before sizing a position, not after.</p><h3>Where the Market Disagrees With Itself: Analyst Estimates and Price Targets</h3><p>A small fund without in-house sell-side coverage can still use consensus, just not as a target to chase. The more useful number is usually the spread between analysts, not the average.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*S77SwMXgTOxEzNZiLeaBAQ.png" /><figcaption><em>“Show me the current analyst price target range and consensus for AXON, plus 2026 through 2028 revenue and EPS estimates.”</em></figcaption></figure><p>The response comes back in two parts. The price targets show a consensus of $658.56 against a share price of $510.28 that day, roughly 29% below where analysts collectively see it heading. The estimates show something more interesting further out: by 2028, the analysts covering AXON put net income anywhere from $573 million to $1.81 billion, a range wider than the company’s entire 2025 net income. They agree on the revenue trajectory and disagree sharply on what margin structure survives three years out, and that disagreement says more than the consensus price target does.</p><h3>A Sanity Check on Valuation</h3><p>A DCF is a pressure test: does the current price only make sense under aggressive assumptions, or does it hold up under conservative ones. That matters more when a fund holds six positions than when it holds three hundred, because there’s no portfolio-level averaging to absorb being wrong on one name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gVsSXgzZzqySIbmCpKQa1g.png" /><figcaption><em>“Run a levered discounted cash flow valuation on AXON and compare it to the current share price.”</em></figcaption></figure><p>The number that comes back is jarring at first glance: a DCF value of $94.30 against a share price of $510.28. That’s not the model saying the market is wrong, it’s the model saying that a standard WACC-and-terminal-growth template can’t capture a company compounding revenue in the 30%+ range, and that the entire bull case for AXON has to be carried by assumptions the template doesn’t make for you. Running this doesn’t answer the valuation question, it tells you exactly how much of the investment case is resting on judgment rather than arithmetic, which is worth knowing before writing the position up.</p><h3>What Management Actually Said</h3><p>Ratios describe what already happened. Earnings calls are often the only source for what management believes is coming, and the language shift quarter to quarter is a real edge for a team that can’t sit on every call live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ma4qR-pwV_JX7UnjqjZCyg.png" /><figcaption><em>“Pull the transcript from AXON’s most recent earnings call and tell me what the CEO said about growth.”</em></figcaption></figure><p>Claude pulls the full Q1 2026 transcript from May 6, 2026, and surfaces the line that matters: CEO Patrick Smith telling investors “<em>I’m more convinced than ever that we’re building something the world genuinely needs… Today, I think we passed the inflection point.</em>” It is worth tracking what is meant by “<em>Passed the inflection point”</em> and how that has developed in every previous earnings calls. That’s not a two-minute exercise done manually across a dozen transcripts, which is exactly why most small teams don’t do it and exactly why it’s worth automating.</p><h3>Following the Insiders</h3><p>Insider selling gets read as a bad signal by reflex. Most of it is scheduled, small, and means nothing. The actual job is telling routine activity apart from something that changes the read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dy5s7FERUUdViIs9x_RAUw.png" /><figcaption><em>“Show me the most recent insider transactions for AXON, including who traded, how much, and at what price.”</em></figcaption></figure><p>The transactions that come back show Patrick Smith selling in small tranches and a couple of newly appointed directors also picked up small stock awards around the same time. None of it reads as conviction-driven, it reads as a scheduled 10b5–1 plan doing exactly what it’s built to do. Ruling something out confidently is worth as much here as spotting a real signal would be.</p><h3>Who Else Is In This Trade</h3><p>Before taking a meaningful position, it helps to know whether a fund is early or late relative to institutional flow. A stock where ownership just climbed from 80% to 83% of float in one quarter is a different setup than one where the same institutions are quietly walking out the door.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9sOVZBnnyBNUFfkZGBZLxw.png" /><figcaption><em>“Show me institutional ownership trends for AXON from the latest 13F filings, including how many holders opened new positions versus closed them.”</em></figcaption></figure><p>What comes back shows institutional holders climbing from 1,106 to 1,250 quarter over quarter, with ownership of float rising from 80.36% to 82.66%. New positions opened outnumbered closures by more than 2 to 1, 230 versus 88. Institutions were still adding into that quarter, not distributing, which is context worth having before assuming a stock trading well below its 52-week high is being abandoned by the money that actually moves the float.</p><h3>Where FMP Stops and the Finance Toolkit MCP Picks Up</h3><p>Everything above comes straight out of FMP’s raw endpoints, and for pulling a specific number, a specific filing, a specific quarter, that’s exactly the right tool. What it only does to a more limited extend is combine those raw numbers into the kind of computed research output an analyst would also like to see. Such as a Piotroski score, a Sharpe ratio against a benchmark, a five-factor Fama-French regression or a DuPont breakdown of what’s actually driving ROE.</p><p>That’s what the <a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp"><strong>Finance Toolkit MCP</strong></a> can extend the FMP’s endpoints further. It’s built directly on top of FMP’s data, using the same API key, so there’s no second account or separate integration to manage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xPBZOoFnVzSTv4FTQJR7Ow.png" /><figcaption>“Explore the areas of efficiency, liquidity, profitability, solvency, valuation, performance and risk for AXON. How healthy is the company?”</figcaption></figure><p>The genuinely useful part is how little friction there is between the two: ask for a ratio the Finance Toolkit computes, and it pulls the underlying statements from FMP, runs the calculation, and hands back a clean answer, in the same conversation, with the same connector setup.</p><p>For a family office or small fund already running the prompts above, adding the Finance Toolkit MCP as a second connector turns raw data pulls into an actual research layer, without turning a two-person team into a data engineering project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b66e6243b30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Risk Exposure Across Major Indices Using the Finance Toolkit]]></title>
            <link>https://medium.com/@jer.bouma/understanding-risk-exposure-across-major-indices-using-the-finance-toolkit-35beac12df8e?source=rss-40bee313aeec------2</link>
            <guid isPermaLink="false">https://medium.com/p/35beac12df8e</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[value-at-risk]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[risk-management]]></category>
            <category><![CDATA[mcps]]></category>
            <dc:creator><![CDATA[Jeroen Bouma]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 13:26:01 GMT</pubDate>
            <atom:updated>2026-07-21T13:26:01.627Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding Risk Exposure Across Major Indices</h3><p><em>This article explores metrics such as Value at Risk and Maximum Drowdown across six major indices: the S&amp;P 500 (SPY), Nasdaq 100 (QQQ), Dow Jones (DIA), Russell 2000 (IWM), MSCI EAFE developed markets (EFA), and MSCI Emerging Markets (EEM). All of the information comes directly from the Finance Toolkit.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_clbWtUHMApMiXWVZuhfNg.jpeg" /></figure><p>In the week of March 31 to April 6, 2025, the S&amp;P 500 ETF fell 5.85%. That alone is not unusual. What is unusual is what the rest of 2025 looked like around it: a year that otherwise behaved close to normal, with one week that did not. That single week pushes the S&amp;P 500’s kurtosis for the year to 26, roughly six times its typical reading in a calmer year like 2023. Volatility alone would not tell you that. Kurtosis does.</p><p>The Finance Toolkit’s risk module covers Value at Risk, Conditional Value at Risk, maximum drawdown, skewness, and kurtosis, each describing a different shape of risk that a single standard deviation number flattens into one figure. <strong>For more information on Finance Toolkit, have a look </strong><a href="https://github.com/JerBouma/FinanceToolkit"><strong>here</strong></a><strong>. To explore the Finance Toolkit MCP, see </strong><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp"><strong>here</strong></a><strong>.</strong></p><h3>Setting Things Up</h3><p>Start by installing the Finance Toolkit:</p><pre>pip install financetoolkit</pre><p>Then import the library and define a universe of tickers. The example below uses six major indices.</p><pre>from financetoolkit import Toolkit<br><br>indices = Toolkit(<br>    tickers=[&quot;SPY&quot;, &quot;QQQ&quot;, &quot;DIA&quot;, &quot;IWM&quot;, &quot;EFA&quot;, &quot;EEM&quot;],<br>    api_key=&quot;YOUR_FMP_API_KEY&quot;,<br>    start_date=&quot;2019-01-01&quot;</pre><p>Get your FMP API key at <a href="https://www.jeroenbouma.com/fmp">jeroenbouma.com/fmp</a>. The free plan covers five years of history; a paid plan unlocks deeper history and a larger universe.</p><h3>Value at Risk and Conditional VaR: How Bad Could a Bad Week Get?</h3><p>Value at Risk (VaR) at 95% confidence answers one question: in the worst 5% of weeks, how much do you lose? Conditional Value at Risk (CVaR) answers the harder follow-up: once you are in that worst 5%, how much do you lose on average?</p><pre>var = indices.risk.get_value_at_risk(period=&quot;yearly&quot;)<br>cvar = indices.risk.get_conditional_value_at_risk(period=&quot;yearly&quot;)</pre><p>Which returns (CVaR):</p><pre>| Year | SPY   | QQQ   | DIA   | IWM   | EFA   | EEM   |<br>|------|------:|------:|------:|------:|------:|------:|<br>| 2019 | -2.0% | -2.4% | -2.0% | -2.4% | -1.8% | -2.2% |<br>| 2020 | -5.5% | -5.5% | -6.0% | -6.6% | -5.3% | -5.7% |<br>| 2021 | -1.9% | -2.7% | -1.8% | -2.9% | -2.0% | -2.6% |<br>| 2022 | -3.4% | -4.3% | -2.8% | -3.6% | -3.0% | -3.0% |<br>| 2023 | -1.6% | -2.0% | -1.4% | -2.4% | -1.9% | -2.1% |<br>| 2024 | -1.9% | -2.7% | -1.5% | -2.9% | -1.9% | -2.2% |<br>| 2025 | -2.8% | -3.4% | -2.4% | -3.1% | -2.0% | -2.5% |</pre><p>IWM carries the worst or second-worst CVaR almost every year, including 2024 at -2.9% when most other indices were calm, a reminder that small-cap stress can build even when large-cap headlines stay quiet. The gap between VaR and CVaR is the more interesting read: for SPY in 2020, VaR was -3.2% but CVaR was -5.5%, meaning the average outcome inside that worst-5%-of-weeks bucket was nearly twice as bad as the threshold itself. That gap widens in every index during 2020 and 2022, the two broadest drawdown years here, and narrows again in calmer years like 2023.</p><blockquote><strong><em>Try this with the Finance Toolkit MCP:</em></strong><em> </em>“Calculate the yearly Value at Risk and Conditional Value at Risk for SPY, QQQ, DIA, IWM, EFA, and EEM from 2019 to 2025. Which index has the worst tail risk, and in which years does the gap between VaR and CVaR widen the most?”</blockquote><h3>Maximum Drawdown: The Worst Case Each Index Actually Lived Through</h3><p>VaR and CVaR are statistical estimates. Maximum drawdown is the actual peak-to-trough loss an investor in each index lived through.</p><pre>max_drawdown = indices.risk.get_maximum_drawdown(period=&quot;yearly&quot;)</pre><p>Which returns:</p><pre>| Year | SPY    | QQQ    | DIA    | IWM    | EFA    | EEM    |<br>|------|-------:|-------:|-------:|-------:|-------:|-------:|<br>| 2019 |  -6.6% | -11.0% |  -6.9% |  -9.9% |  -8.5% | -13.1% |<br>| 2020 | -34.1% | -28.6% | -37.1% | -41.1% | -34.0% | -33.9% |<br>| 2021 |  -5.4% | -10.9% |  -6.6% | -12.5% |  -7.0% | -18.2% |<br>| 2022 | -25.4% | -35.2% | -22.0% | -27.3% | -30.3% | -33.3% |<br>| 2023 | -10.3% | -10.9% |  -9.0% | -18.3% | -11.6% | -14.1% |<br>| 2024 |  -8.4% | -13.5% |  -6.1% | -10.1% | -11.1% | -11.7% |<br>| 2025 | -19.0% | -22.9% | -16.1% | -23.9% | -14.1% | -15.0% |</pre><p>2020’s COVID crash hit IWM hardest at -41.1%, deeper than any other index in any year of this dataset, consistent with small-caps having less balance sheet cushion during a panic. DIA never has the worst drawdown of any year, its blue-chip composition acting as the most resilient of the six. The 2022 bear market flips the script on tech: QQQ’s -35.2% drawdown was the worst that year, driven by rate-hike sensitivity in growth stocks. EEM had the worst showing in 2019 and 2021, both years with no broad global crisis, a reminder that emerging markets drawdown on their own schedule.</p><blockquote><strong><em>Try this with the Finance Toolkit MCP:</em></strong><em> </em>“Show the yearly maximum drawdown for SPY, QQQ, DIA, IWM, EFA, and EEM from 2019 to 2025. Which index had the single worst drawdown, and which index was most resilient across all years?”</blockquote><h3>Skewness and Kurtosis: Why 2025 Doesn’t Look Like a Normal Year</h3><p>Skewness measures asymmetry: negative skew means a longer, fatter left tail of infrequent but severe losses. Kurtosis measures how fat the tails are relative to a normal distribution, regardless of direction.</p><pre>skewness = indices.risk.get_skewness(period=&quot;yearly&quot;)<br>kurtosis = indices.risk.get_kurtosis(period=&quot;yearly&quot;)</pre><p>Which returns (kurtosis):</p><pre>| Year | SPY   | QQQ   | DIA   | IWM   | EFA   | EEM   |<br>|------|------:|------:|------:|------:|------:|------:|<br>| 2019 |  6.05 |  5.35 |  6.26 |  4.49 |  5.59 |  4.48 |<br>| 2020 | 10.06 |  8.68 | 11.29 |  8.53 | 11.60 | 11.00 |<br>| 2021 |  3.59 |  3.86 |  3.69 |  2.99 |  3.58 |  3.43 |<br>| 2022 |  3.32 |  3.14 |  3.38 |  2.96 |  4.09 |  6.00 |<br>| 2023 |  2.81 |  2.86 |  3.19 |  3.80 |  3.55 |  3.37 |<br>| 2024 |  4.70 |  3.90 |  5.71 |  4.77 |  3.61 |  4.20 |<br>| 2025 | 26.14 | 20.50 | 17.56 |  8.73 | 19.13 | 11.16 |</pre><p>Every index ran negative skew in 2019 and 2020, the two years dominated by sharp, sudden selloffs rather than steady grinding declines. 2022 flips to mildly positive skew almost everywhere, since that bear market ground lower week after week instead of crashing in a handful of sessions, the opposite shape of risk from 2020 despite a similarly large drawdown.</p><p>The April 2025 tariff-shock week shows up most clearly in kurtosis. SPY’s reading of 26.1 is more than double the next-highest anywhere else in the table, and roughly nine times its calmest year (2023, at 2.81). IWM’s 2025 kurtosis of 8.73 is the lowest of the six, since small-caps had already been grinding through elevated volatility most of the year and one more sharp week barely moved the distribution’s shape. 2025 had positive skew (more upside than downside on average) and extreme kurtosis (one week dominating the year’s tail risk) at the same time, two measurements that look contradictory until you remember they describe different things.</p><blockquote><strong><em>Try this with the Finance Toolkit MCP:</em></strong><em> </em>“Calculate yearly kurtosis for SPY, QQQ, DIA, IWM, EFA, and EEM from 2019 to 2025. Which year and which index show the most extreme tail risk, and what does the skewness for that same year and index suggest about the direction of that risk?”</blockquote><h3>What This Means for Portfolio Construction</h3><p>No single number tells the full story. Volatility alone would have missed the April 2025 shock entirely, since the rest of the year was unusually calm. Maximum drawdown alone would have missed that 2020 and 2022 were the same depth of loss but completely different in shape, one a crash, one a grind.</p><p>Putting them side by side gives a more honest picture: Dow Jones (DIA) has been the most consistently resilient by drawdown across this period, Russell 2000 (IWM) carries the worst tail risk almost regardless of which metric you use, and emerging markets (EEM) move on their own schedule independent of the US indices.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35beac12df8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tracking Macroeconomic Indicators with the Finance Toolkit]]></title>
            <link>https://medium.com/@jer.bouma/tracking-macroeconomic-indicators-with-the-finance-toolkit-4377d865a8a2?source=rss-40bee313aeec------2</link>
            <guid isPermaLink="false">https://medium.com/p/4377d865a8a2</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[inflation]]></category>
            <category><![CDATA[macroeconomics]]></category>
            <category><![CDATA[mcp-server]]></category>
            <dc:creator><![CDATA[Jeroen Bouma]]></dc:creator>
            <pubDate>Tue, 14 Jul 2026 13:36:01 GMT</pubDate>
            <atom:updated>2026-07-14T13:36:01.001Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article tracks five economies, the US, UK, Germany, Japan, and Brazil, through the 2021–2023 inflation shock and the years since using the Finance Toolkit.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_clbWtUHMApMiXWVZuhfNg.jpeg" /></figure><p>In 2022, Brazil’s central bank had its policy rate at 13.75%. The Bank of Japan’s was at -0.1%. Both countries were responding to the same global shock, a wave of post-pandemic inflation that touched nearly every economy on earth, and they responded in almost opposite ways.</p><p>That divergence is the most interesting thing macro data shows you: not that economies move together, but how differently they move through the same event. The Finance Toolkit’s Economics module pulls unemployment, GDP growth, inflation, government debt, central bank rates, and bond yields for 60+ countries, sourced from the OECD and the Global Macro Database. Unlike the rest of the Toolkit, none of this requires an FMP API key. <strong>For more information on Finance Toolkit, have a look </strong><a href="https://github.com/JerBouma/FinanceToolkit"><strong>here</strong></a><strong>. To explore the Finance Toolkit MCP, see </strong><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp"><strong>here</strong></a><strong>.</strong></p><h3>Setting Things Up</h3><p>Start by installing the Finance Toolkit:</p><pre>pip install financetoolkit</pre><p>The Economics module works standalone, no ticker, no API key:</p><pre>from financetoolkit import Economics<br><br>economics = Economics(start_date=&quot;2019-01-01&quot;)</pre><p>Every method below takes a countries argument. The full list of supported countries and indicators is in the <a href="https://www.jeroenbouma.com/projects/financetoolkit/docs">documentation</a>.</p><h3>Inflation: One Shock, Different Timing</h3><p>The global inflation spike gets talked about as a single event, but the data shows it arrived in waves.</p><pre>inflation = economics.get_inflation_rate(<br>    countries=[&quot;United States&quot;, &quot;United Kingdom&quot;, &quot;Germany&quot;, &quot;Japan&quot;, &quot;Brazil&quot;]<br>)</pre><p>Which returns:</p><pre>| Year | Germany | UK   | Japan | Brazil | US   |<br>|------|--------:|-----:|------:|-------:|-----:|<br>| 2019 |   1.3%  | 1.8% | 0.5%  |  3.7%  | 1.8% |<br>| 2020 |   0.5%  | 1.0% | 0.0%  |  3.2%  | 1.2% |<br>| 2021 |   3.1%  | 2.5% | -0.2% |  8.3%  | 4.7% |<br>| 2022 |   6.9%  | 7.9% | 2.5%  |  9.3%  | 8.0% |<br>| 2023 |   5.9%  | 6.8% | 3.3%  |  4.6%  | 4.1% |<br>| 2024 |   2.4%  | 2.6% | 2.2%  |  4.3%  | 3.0% |<br>| 2025 |   2.0%  | 2.1% | 2.0%  |  3.6%  | 1.9% |</pre><p>Brazil’s inflation took off a full year before the others, hitting 8.3% in 2021 while the US was still at 4.7% and Japan was in mild deflation. By 2022 the developed economies caught up, Germany at 6.9%, the UK at 7.9%, the US at 8.0%, but Brazil had already peaked and was falling back to 4.6% by 2023. Japan never had a real inflation problem by international standards; its highest reading in this window is 3.3%.</p><blockquote><strong><em>Try this with the Finance Toolkit MCP:</em></strong><em> </em>“Compare the inflation rate for the United States, United Kingdom, Germany, Japan, and Brazil from 2019 to 2025. Which country’s inflation peaked first?”</blockquote><h3>Central Banks Respond, But Not on the Same Clock</h3><p>Inflation timing explains a lot of what comes next, because central banks move in response to their own country’s data, not anyone else’s.</p><pre>policy_rate = economics.get_central_bank_policy_rate(<br>    countries=[&quot;United States&quot;, &quot;United Kingdom&quot;, &quot;Germany&quot;, &quot;Japan&quot;, &quot;Brazil&quot;]<br>)</pre><p>Which returns:</p><pre>| Year | Germany | UK    | Japan  | Brazil | US     |<br>|------|--------:|------:|-------:|-------:|-------:|<br>| 2019 | -0.45%  | 0.75% | -0.10% | 4.50%  | 1.625% |<br>| 2020 | -0.50%  | 0.10% | -0.10% | 2.00%  | 0.125% |<br>| 2021 | -0.50%  | 0.25% | -0.10% | 9.25%  | 0.125% |<br>| 2022 |  0.44%  | 3.50% | -0.10% | 13.75% | 4.375% |<br>| 2023 |  3.63%  | 5.25% | -0.10% | 11.75% | 5.375% |<br>| 2024 |  3.81%  | 4.75% |  0.25% | 12.25% | 4.375% |<br>| 2025 |  2.88%  | 4.13% |  0.50% | 8.31%  | 4.255% |</pre><p>Brazil started hiking in 2021, a full year ahead of the Fed and the Bank of England, taking its policy rate from 2.0% to 13.75% in eighteen months, the steepest tightening cycle of the five. The European Central Bank lagged furthest behind, staying negative until mid-2022.</p><p>Japan is the outlier that matters most. The Bank of Japan held its policy rate at -0.10% through the entire inflation shock, only inching to 0.25% in 2024 and 0.50% in 2025, a complete reversal of how every other central bank in this table behaved after more than a decade of fighting deflation.</p><blockquote><strong><em>Try this with the Finance Toolkit MCP:</em></strong><em> </em>“Show the central bank policy rate for the same five countries from 2019 to 2025. Which country hiked first, which hiked the most, and which barely moved at all?”</blockquote><h3>The Labor Market Question: Did Higher Rates Cost Jobs?</h3><p>The textbook expectation is that aggressive rate hikes cool the labor market. The data only partly agrees.</p><pre>unemployment = economics.get_unemployment_rate(<br>    countries=[&quot;United States&quot;, &quot;United Kingdom&quot;, &quot;Germany&quot;, &quot;Japan&quot;, &quot;Brazil&quot;]<br>)</pre><p>Which returns:</p><pre>| Year | Germany | UK   | Japan | Brazil | US   |<br>|------|--------:|-----:|------:|-------:|-----:|<br>| 2019 |   3.0%  | 3.9% | 2.4%  | 12.0%  | 3.7% |<br>| 2020 |   3.6%  | 4.7% | 2.8%  | 13.8%  | 8.1% |<br>| 2021 |   3.6%  | 4.6% | 2.8%  | 13.2%  | 5.4% |<br>| 2022 |   3.1%  | 3.9% | 2.6%  |  9.3%  | 3.6% |<br>| 2023 |   3.0%  | 4.0% | 2.6%  |  8.0%  | 3.6% |<br>| 2024 |   3.4%  | 4.3% | 2.5%  |  7.2%  | 4.1% |<br>| 2025 |   3.2%  | 4.1% | 2.5%  |  7.2%  | 4.4% |</pre><p>The US is the clearest case of a pandemic-driven spike rather than a rate-driven one: unemployment jumped to 8.1% in 2020 from lockdowns, then fell back to 3.6% by 2022, the same year the Fed started its steepest hikes since the 1980s. Unemployment barely moved after that, the soft landing debate in one row of a table.</p><p>Brazil tells the opposite story. Despite running the highest policy rate of any country here for three straight years, Brazilian unemployment fell every year from 2020 onward, from 13.8% to 7.2% by 2025. High rates did not stop the labor market from healing.</p><blockquote><strong><em>Try this with the Finance Toolkit MCP:</em></strong><em> </em>“Pull the unemployment rate for these five countries from 2019 to 2025. Did unemployment rise when central banks raised rates, and which country shows the clearest soft landing?”</blockquote><h3>Government Debt: Who Paid Down the COVID Bill?</h3><p>Inflation and rate hikes change the math on government debt, both the cost of servicing it and the rate at which it gets inflated away.</p><pre>debt_to_gdp = economics.get_government_debt_to_gdp_ratio(<br>    countries=[&quot;United States&quot;, &quot;United Kingdom&quot;, &quot;Germany&quot;, &quot;Japan&quot;, &quot;Brazil&quot;]<br>)</pre><p>Which returns:</p><pre>| Year | Germany | UK     | Japan  | Brazil | US     |<br>|------|--------:|-------:|-------:|-------:|-------:|<br>| 2019 |  58.6%  |  85.7% | 236.4% |  87.1% | 108.0% |<br>| 2020 |  67.9%  | 105.8% | 258.4% |  96.0% | 131.8% |<br>| 2021 |  67.9%  | 105.1% | 253.7% |  88.9% | 124.5% |<br>| 2022 |  64.8%  |  99.6% | 256.3% |  83.9% | 118.6% |<br>| 2023 |  62.7%  | 100.0% | 249.7% |  84.7% | 118.7% |<br>| 2024 |  62.7%  | 101.8% | 251.2% |  87.6% | 121.0% |<br>| 2025 |  62.1%  | 103.8% | 248.7% |  92.0% | 124.1% |</pre><p>Japan’s debt-to-GDP ratio of roughly 249% dwarfs every other country here, more than double the United States. It has stayed in a tight band for years, a luxury near-zero rates make affordable.</p><p>The US and UK both jumped sharply in 2020 from COVID stimulus and neither has worked that back down; both sit higher in 2025 than in 2022. Germany and Brazil show the opposite pattern, both peaking in 2020–2021 and declining since. Brazil’s case is partly mechanical: the same high inflation that pushed its central bank to 13.75% also inflated away a chunk of the real value of its debt.</p><blockquote><strong><em>Try this with the Finance Toolkit MCP:</em></strong><em> </em>“Compare government debt-to-GDP for these five countries from 2019 to 2025. Which countries reduced their debt burden after the COVID spike, and which kept climbing?”</blockquote><h3>What This Means for the Next Cycle</h3><p>Pulling these four indicators side by side makes a point that looking at any one alone would miss: there is no single global business cycle, only a global shock that each economy absorbed and is unwinding on its own schedule.</p><p>Brazil moved first and is furthest along in normalizing. Japan is the mirror image, barely participating in the global tightening cycle and only now taking its first steps away from negative rates. The US delivered the cleanest soft landing in the group, though its debt-to-GDP shows the COVID stimulus bill has not gone away. Germany is the closest thing to textbook here: moderate inflation, moderate hikes, and the only economy steadily reducing its debt burden.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4377d865a8a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Competitor and Sector Analysis with the Finance Toolkit]]></title>
            <link>https://medium.com/@jer.bouma/competitor-and-sector-analysis-with-the-finance-toolkit-cf61911b5349?source=rss-40bee313aeec------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf61911b5349</guid>
            <category><![CDATA[semiconductors]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[fundamental-analysis]]></category>
            <dc:creator><![CDATA[Jeroen Bouma]]></dc:creator>
            <pubDate>Tue, 07 Jul 2026 13:51:00 GMT</pubDate>
            <atom:updated>2026-07-07T13:51:00.801Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article uses the Finance Toolkit to track the transformation across six semiconductor companies from 2010 to 2025, then zooms in on the two genuine competitive battles that define the industry: Intel vs AMD in x86 CPUs, and NVIDIA vs AMD in GPUs and AI accelerators.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_clbWtUHMApMiXWVZuhfNg.jpeg" /></figure><p>In 2010, Intel generated $43.6 billion in revenue and its nearest x86 competitor, AMD, generated $6.5 billion. NVIDIA was a $3.3 billion company best known for gaming graphics cards. By 2025, NVIDIA had grown to $130.5 billion driven by AI infrastructure, Intel sat at $52.9 billion while reporting losses, and AMD had reached $34.6 billion after crossing Intel on gross margin for the first time in its history.</p><p><strong>For more information on Finance Toolkit, have a look </strong><a href="https://github.com/JerBouma/FinanceToolkit"><strong>here</strong></a><strong>. To explore the Finance Toolkit MCP, see </strong><a href="https://www.jeroenbouma.com/projects/financetoolkit/mcp"><strong>here</strong></a><strong>.</strong></p><h3>Setting Things Up</h3><p>Start by installing the Finance Toolkit:</p><pre>pip install financetoolkit</pre><p>Then import the library and define the six semiconductor tickers used throughout this article:</p><pre>import pandas as pd<br>from financetoolkit import Toolkit<br>sector = Toolkit(<br>    tickers=[&quot;INTC&quot;, &quot;AMD&quot;, &quot;NVDA&quot;, &quot;QCOM&quot;, &quot;AVGO&quot;, &quot;TXN&quot;],<br>    api_key=&quot;YOUR_FMP_API_KEY&quot;,<br>    start_date=&quot;2010-01-01&quot;<br>)</pre><p>Get your FMP API key at <a href="https://www.jeroenbouma.com/fmp">jeroenbouma.com/fmp</a>. A paid plan is required to access the full 15-year history used here.</p><h3>Revenue: How the Landscape Shifted</h3><p>The most immediate observation from pulling 15 years of income statements is the NVIDIA revenue trajectory. Everything else looks like normal cyclical variation by comparison.</p><pre>income = sector.get_income_statement()<br>revenue = income.loc[&quot;Revenue&quot;][<br>    [&quot;2010&quot;, &quot;2014&quot;, &quot;2018&quot;, &quot;2022&quot;, &quot;2025&quot;]<br>] / 1e9</pre><p>Which returns:</p><pre>| Ticker |  2010 |  2014 |  2018 |  2022 |   2025 |<br>|--------|------:|------:|------:|------:|-------:|<br>| INTC   |  43.6 |  55.9 |  70.8 |  63.1 |   52.9 |<br>| AMD    |   6.5 |   5.5 |   6.5 |  23.6 |   34.6 |<br>| NVDA   |   3.3 |   4.1 |   9.7 |  26.9 |  130.5 |<br>| QCOM   |  11.0 |  26.5 |  22.7 |  44.2 |   44.3 |<br>| AVGO   |   2.1 |   4.3 |  20.8 |  33.2 |   63.9 |<br>| TXN    |  14.0 |  13.0 |  15.8 |  20.0 |   17.7 |</pre><p>Intel peaked between 2020 and 2022 and has since contracted. NVIDIA’s inflection is stark: from $26.9 billion in 2022 to $130.5 billion in 2025, driven by data center AI GPU demand. Broadcom’s jump from $4.3 billion in 2014 to $20.8 billion in 2018 was almost entirely acquisition-driven. TXN and QCOM, least exposed to AI compute, show the flattest lines.</p><blockquote><strong><em>Try this in the Finance Toolkit MCP:</em></strong><em> </em>“Pull annual revenue for Intel, AMD, NVIDIA, Qualcomm, Broadcom, and Texas Instruments from 2010 to 2025. Which company had the highest revenue in 2010 and which did in 2025?”</blockquote><h3>Gross Margins: The Fabless Advantage</h3><p>In semiconductors, the key structural divide is between integrated device manufacturers (IDMs) that design and fabricate their own chips, and fabless companies that outsource manufacturing to foundries like TSMC. That divide explains most of the margin divergence below.</p><pre>gross_margin = sector.ratios.get_gross_margin()<br>margins = gross_margin[[&quot;2010&quot;, &quot;2014&quot;, &quot;2018&quot;, &quot;2022&quot;, &quot;2025&quot;]] * 100</pre><p>Which returns:</p><pre>| Ticker |  2010 |  2014 |  2018 |  2022 |  2025 |<br>|--------|------:|------:|------:|------:|------:|<br>| INTC   | 66.1% | 63.7% | 61.7% | 42.6% | 34.8% |<br>| AMD    | 45.6% | 33.4% | 37.8% | 44.9% | 49.5% |<br>| NVDA   | 35.4% | 54.9% | 59.9% | 64.9% | 75.0% |<br>| QCOM   | 68.0% | 59.7% | 54.9% | 57.8% | 55.4% |<br>| AVGO   | 46.2% | 43.9% | 51.5% | 66.6% | 67.8% |<br>| TXN    | 53.6% | 56.9% | 65.1% | 68.8% | 57.0% |</pre><p>Intel’s margin collapsed from 66.1% in 2010 to 34.8% in 2025. Its manufacturing process fell behind TSMC’s, making Intel’s chips more expensive to produce while competitors on TSMC got better nodes at lower cost. NVIDIA went from 35.4% to 75.0%. A fabless company with a near-monopoly on AI training hardware can charge what the market bears. AMD’s margin crossed above Intel’s in 2022, the first time in the company’s history.</p><blockquote><strong><em>Try this in the Finance Toolkit MCP:</em></strong><em> </em>“Show gross margins for Intel, AMD, NVIDIA, and Qualcomm from 2010 to 2025. When did AMD’s gross margin first exceed Intel’s?”</blockquote><h3>Intel vs AMD: The x86 CPU Battle</h3><p>Not every company in this sector competes with every other. Texas Instruments makes analog chips for industrial customers. Qualcomm targets ARM mobile processors. Broadcom focuses on networking and storage ASICs. The genuine x86 CPU competition runs between exactly two companies: Intel and AMD. Every server, desktop, and laptop CPU socket holds a chip made by one of them.</p><pre>cpu_rivals = [&quot;INTC&quot;, &quot;AMD&quot;]<br>years = [&quot;2010&quot;, &quot;2014&quot;, &quot;2018&quot;, &quot;2020&quot;, &quot;2022&quot;, &quot;2024&quot;, &quot;2025&quot;]<br>cpu_revenue = income.loc[&quot;Revenue&quot;].loc[cpu_rivals, years] / 1e9<br>cpu_margins = sector.ratios.get_gross_margin().loc[cpu_rivals, years] * 100<br>cpu_roic = sector.ratios.get_return_on_invested_capital().loc[cpu_rivals, years] * 100</pre><p>Which returns:</p><pre>| Year | INTC Rev | AMD Rev | INTC GM | AMD GM | INTC ROIC | AMD ROIC |<br>|------|--------:|--------:|--------:|-------:|----------:|---------:|<br>| 2010 |     43.6 |     6.5 |  66.1% |  45.6% |       n/a |      n/a |<br>| 2014 |     55.9 |     5.5 |  63.7% |  33.4% |     22.8% |   -16.1% |<br>| 2018 |     70.8 |     6.5 |  61.7% |  37.8% |     27.0% |    14.9% |<br>| 2020 |     77.9 |     9.8 |  56.0% |  44.5% |     23.6% |    50.2% |<br>| 2022 |     63.1 |    23.6 |  42.6% |  44.9% |     10.1% |     4.0% |<br>| 2024 |     53.1 |    25.8 |  32.7% |  49.4% |    -10.9% |     2.8% |<br>| 2025 |     52.9 |    34.6 |  34.8% |  49.5% |     -0.2% |     6.8% |</pre><p>Through 2017, Intel dominated by every metric. AMD spent this period losing money, cutting headcount, and struggling to produce a competitive architecture. Its gross margin compressed below 30% in 2015 and 2016 as it competed on price with inferior products.</p><p>The inflection came when AMD launched the Zen architecture in 2017. Revenue did not break meaningfully higher until 2021 to 2022, but when it did, it came with margin improvement as product mix shifted toward EPYC server chips. In 2022, AMD’s gross margin crossed above Intel’s. By 2024 and 2025, Intel’s ROIC had turned negative. The company’s $5 billion foundry investment has not yet returned the expected margins, and it reported a net loss in 2025.</p><blockquote><strong><em>Try this in the Finance Toolkit MCP:</em></strong><em> </em>“Compare Intel and AMD’s revenue, gross margin, and return on invested capital from 2010 to 2025. When did AMD first surpass Intel on gross margin?”</blockquote><h3>NVIDIA vs AMD: The AI Accelerator Race</h3><p>AMD and NVIDIA have been GPU competitors since AMD’s 2006 acquisition of ATI Technologies. Both design discrete graphics chips for gaming, professional workstations, and data center compute. In 2010, AMD had more revenue than NVIDIA. By 2025, NVIDIA generated nearly four times as much.</p><pre>gpu_rivals = [&quot;NVDA&quot;, &quot;AMD&quot;]<br>gpu_revenue = income.loc[&quot;Revenue&quot;].loc[gpu_rivals, years] / 1e9<br>gpu_margins = sector.ratios.get_gross_margin().loc[gpu_rivals, years] * 100<br>gpu_roic = sector.ratios.get_return_on_invested_capital().loc[gpu_rivals, years] * 100</pre><p>Which returns:</p><pre>| Year | NVDA Rev | AMD Rev | NVDA GM | AMD GM | NVDA ROIC | AMD ROIC |<br>|------|--------:|--------:|--------:|-------:|----------:|---------:|<br>| 2018 |      9.7 |     6.5 |  59.9% |  37.8% |     37.5% |    14.9% |<br>| 2020 |     10.9 |     9.8 |  62.0% |  44.5% |     24.3% |    50.2% |<br>| 2022 |     26.9 |    23.6 |  64.9% |  44.9% |     32.2% |     4.0% |<br>| 2024 |     60.9 |    25.8 |  72.7% |  49.4% |     68.4% |     2.8% |<br>| 2025 |    130.5 |    34.6 |  75.0% |  49.5% |    102.6% |     6.8% |</pre><p>Through 2020, the two companies were neck-and-neck on revenue. The ROIC figures that year show AMD at 50.2% and NVIDIA at 24.3% — AMD was briefly leading on capital efficiency before the Xilinx acquisition ballooned its invested capital base.</p><p>The separation from 2022 onwards is driven by AI training infrastructure. NVIDIA’s H100 and Blackwell GPUs running on CUDA became the default compute substrate for training large language models. The CUDA software ecosystem, built over 15 years, proved nearly impossible to replicate quickly. AMD’s ROCm platform is a credible alternative but lacks the developer mindshare.</p><p>The financial consequence is in ROIC. NVIDIA earned 102.6% return on invested capital in 2025. AMD earned 6.8%. Both companies make GPUs. One has a software moat that the other does not.</p><p>AMD’s position in this race is structurally harder than its Intel rivalry. Against Intel, AMD competes on x86 CPU performance: an engineering execution problem. Against NVIDIA, AMD competes on AI software ecosystem depth: a developer adoption and network effects problem that is slower and more expensive to overcome.</p><blockquote><strong><em>Try this in the Finance Toolkit MCP:</em></strong><em> </em>“Compare NVIDIA and AMD’s revenue and return on invested capital from 2018 to 2025. How large is the ROIC gap in 2025 and what explains it?”</blockquote><h3>What the Market Is Pricing In</h3><p>The financial history explains the divergence. Current valuations reflect where the market expects each company to go from here.</p><pre>pe = sector.ratios.get_price_to_earnings_ratio()<br>ev_ebitda = sector.ratios.get_ev_to_ebitda_ratio()<br>current_valuation = pd.DataFrame({<br>    &quot;P/E&quot;: pe[&quot;2025&quot;],<br>    &quot;EV/EBITDA&quot;: ev_ebitda[&quot;2025&quot;]<br>}).sort_values(&quot;EV/EBITDA&quot;)</pre><p>Which returns:</p><pre>| Ticker |   P/E | EV/EBITDA |<br>|--------|------:|----------:|<br>| QCOM   |  34.1 |      14.2 |<br>| INTC   |   neg |      19.1 |<br>| TXN    |  31.9 |      21.3 |<br>| AVGO   |  72.6 |      50.5 |<br>| NVDA   |  63.5 |      55.5 |<br>| AMD    |  80.8 |      52.1 |</pre><p>Qualcomm is the cheapest name at 14.2x EV/EBITDA, reflecting limited AI exposure and ongoing ARM licensing uncertainty. Texas Instruments at 21.3x is priced as a stable analog business with cyclical revenue. Intel is uninvestable on P/E (reporting losses) and its EV/EBITDA of 19.1x is elevated relative to current earnings power.</p><p>NVIDIA at 55.5x EV/EBITDA is expensive in absolute terms. At 102.6% ROIC, the business justifies a premium. Whether that premium is sustainable depends on whether the AI infrastructure build-out continues and whether NVIDIA’s software moat holds against AMD’s ROCm push and custom silicon from hyperscalers (Google TPU, Amazon Trainium). AMD at 80.8x P/E trades at a premium to NVIDIA despite lower ROIC, pricing in ROIC recovery as the Xilinx amortization runs off and AI GPU shipments scale.</p><blockquote><strong><em>Try this in the Finance Toolkit MCP:</em></strong><em> </em>“Show current P/E and EV/EBITDA for Intel, AMD, NVIDIA, Qualcomm, Broadcom, and Texas Instruments. Which is cheapest on each metric and why?”</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf61911b5349" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>