Stock Analysis

How a stock behaved through Fed rate cycles, and how sensitive it is to interest rates, inflation and unemployment.


What it does

Enter any US stock or ETF ticker and get up to 30 years of analysis in three parts:

Try SPY for the market as a whole, then compare a bank like JPM with a growth stock like NVDA.

Bring your own free keys

The tool runs on your own free API keys: one from Tiingo for stock prices and one from FRED for economic data. The first time you open the app, it walks you through getting both, which takes about two minutes, and tests them before saving.

Your keys stay in your browser. Tiingo and FRED don’t accept requests directly from web pages, so each request passes through a small relay on this site that uses your key for that one request and never stores or logs it. Results are cached in your browser, so repeat lookups don’t use up your quota.

Getting the statistics right

The first version of this project, written in Python with Flask, correlated the stock price with the Fed funds rate. That turns out to be misleading: any two series that drift over decades look strongly related, whether or not they are.

This version works with changes: monthly stock returns against monthly changes in each economic measure. It also reports how much those factors actually explain, which is usually a small share. That’s an honest answer: most of what moves a stock month to month is the company and the market, not the macro data.

How it’s built

Prices from Tiingo; economic data from FRED, Federal Reserve Bank of St. Louis. This product uses the FRED® API but is not endorsed or certified by the Federal Reserve Bank of St. Louis. For education only, not investment advice.

← All projects