The ArmChair LLM“I am Super Intelligence”
Guide

How to build a stock price tracker app, step by step: Antigravity vs. Claude

Seven steps from feature list to deployed app, with the data-licence and caching traps that catch most beginners.

Advanced

By J Krishman · December 3, 2026 · 8 min read · Written with AI assistance

Editorial cover for building a stock price tracker appCreated with Canva AI for The ArmChair LLM

Open any finance site and the pattern is the same: a search box, a row of tickers flashing green and red, and a chart you can drag around for hours. It looks simple. It is also a surprisingly good project for learning how real apps work, because it forces you to deal with live data, caching, user accounts, and background jobs all at once.

This guide walks through building a price tracker in the spirit of the big consumer finance sites, step by step, and then compares how Google Antigravity and Claude each handle the job. I will tell you where I think each one is better, and where I think people waste their time.

My opinion: the hard part of a stock tracker is not the chart. It is the data licence and the cache. Get those wrong and nothing else matters.

Before you start: what this is, and what it is not

A tracker shows prices and lets people follow them. It does not tell anyone what to buy, which keeps it far simpler legally than a recommendation service. Even so, show a clear note that data may be delayed and that nothing on the page is investment advice. Prices come from exchanges, and exchanges care a great deal about who is allowed to display them.

Life of a single price request
  1. Browser asks for a quoteTicker from the watchlist or search
  2. Your server checks its cacheMemory or Redis
  3. Fresh answer cached?Yes: return it instantly
  4. Call the data providerKey stays on the server
  5. Store and returnCache for about 15 seconds
  6. Screen updatesPrice, change, last-updated time

What we are building

The app has a search box, a quote page with a chart, a personal watchlist, price alerts, and a short news list. Behind it sits a small server that fetches prices, remembers them for a few seconds, and protects your API key. The diagram shows the path a single price request takes.

Step 1: Write the feature list and cut it in half

The temptation is to copy every feature of a big finance site. Don’t. A good first version has five.

  • Search by company name or ticker.
  • A quote page with current price, daily change, and a chart.
  • A watchlist saved to an account.
  • Alerts when a price crosses a number you choose.
  • Headlines for each company, linking out to the publisher.

Everything else, such as portfolios, screeners, and options chains, can wait until people actually use the first five.

Step 2: Pick a data provider, and read the licence

This is the step most tutorials rush, and it is the one that can sink you. There are three questions to ask of any provider.

  • Is the data real-time or delayed? Free plans are usually delayed by around fifteen minutes or limited to end-of-day. That is fine for a personal or educational app, as long as you label it.
  • May you display it publicly? Many free plans are for personal use only. Public display of real-time data often requires a paid licence.
  • What are the rate limits? Free plans commonly allow only a handful of requests a minute, which is why the next step exists.

Alpha Vantage, Finnhub, Twelve Data, and Polygon all offer API access with free or low-cost tiers. Compare their current terms yourself. I would avoid pulling data from finance websites through unofficial endpoints or scraping. It breaks without notice and usually violates their terms.

Step 3: Build a small server in the middle

Never call the data provider from the browser. Your key would be visible to everyone, and a few busy users would burn through your rate limit in seconds. Instead, put a small server between the two. It does three jobs: it hides the key, it remembers recent answers, and it shapes the data into the form your screen needs.

The caching idea is the heart of the app. If ten thousand people look at the same share within fifteen seconds, you only need to ask the provider once.

cache = {}   # ticker -> (timestamp, quote)

def get_quote(ticker):
    now = time.time()
    hit = cache.get(ticker)
    if hit and now - hit[0] < 15:        # still fresh
        return hit[1]
    quote = provider.fetch(ticker)       # the only paid call
    cache[ticker] = (now, quote)
    return quote

In production you would keep that cache in something shared, such as Redis, but the principle is identical. Cache briefly for live quotes and for much longer for things that rarely change, such as company names.

Step 4: Design the database

You need very little. Users, watchlist items, and alerts.

  • users: id, email, created_at.
  • watchlist: user_id, ticker, added_at.
  • alerts: user_id, ticker, direction (above or below), price, active, last_triggered.

Use a hosted Postgres such as Supabase so you get logins and the database together. Switch on row-level security on day one, so each person can only read and change their own watchlist and alerts.

Step 5: Build the screens

Three screens do almost all the work: the watchlist table, the quote page, and the search results.

  • Watchlist table: ticker, name, last price, change, and percent change. Colour the change green or red, and also show a plus or minus sign so colour-blind users are not left guessing.
  • Quote page: a big price, the day’s range, and an interactive chart. The open-source Lightweight Charts library from TradingView is a good fit and keeps the page fast.
  • Search: a type-ahead box that waits a moment after typing stops before it asks the server, so you do not fire a request on every keystroke.

A small honest touch pays off: show a “Delayed 15 min” badge and the time of the last update beside every price.

Step 6: Add alerts with a background job

Alerts are where the app stops being a website and becomes a service. A scheduled job runs every minute, collects the distinct tickers that have active alerts, fetches each price once, and compares it to every alert for that ticker.

for ticker in tickers_with_active_alerts():
    price = get_quote(ticker).price
    for a in alerts_for(ticker):
        crossed = price >= a.price if a.direction == 'above' else price <= a.price
        if crossed and not recently_sent(a):
            send_email(a.user, ticker, price)
            mark_sent(a)

Note the recently_sent check. Without it, one price hovering around your target would send a hundred emails. Tell users that alerts rely on delayed data and may arrive late.

Step 7: Make it fast, then ship it

Before deploying, do a short checklist.

  • Keep your API key in server environment variables, never in code.
  • Add a friendly error state for when the data provider is down. Showing the last known price, clearly stamped, beats a blank page.
  • Log every provider error and set an alert for yourself if failures spike.
  • Add a disclaimer page, and credit your data provider if their terms ask for it.

Host the front end on any static host, and run the server and the alert job on a small serverless or container platform.

Antigravity versus Claude: how each path feels

Either tool can carry you through all seven steps. They differ in working style. Both are changing quickly, so read the following as a snapshot.

Building with Antigravity

Google Antigravity is an agent-first development environment. You describe the goal, an agent drafts a plan, and you review it before work starts. Agents can run in parallel and can open a browser to test the running app, then show you screenshots as evidence.

  • Best at: Step 5. Ask for the watchlist and quote page, let an agent run the app and click through it, and review the screenshots. It is quick and visual.
  • Also good for: splitting work. One agent can build the server while another builds the interface.
  • Be careful: read the plan before approving it, and keep your API keys out of anything an agent can print or commit.

Building with Claude

Claude works as a planning partner in chat and, through Claude Code, as a terminal agent that reads your whole project, edits files, and runs tests. It feels like pairing with a patient colleague.

  • Best at: Steps 3, 4, and 6. The caching logic, the database rules, and the alert job are all places where careful reasoning matters, and where a reviewer who asks “what happens when the provider returns nothing?” earns their keep.
  • Also good for: security review. Ask it to check that no user can read another’s watchlist.
  • Be careful: it is less visual. If you want a built-in browser to check the interface, you will wire that up yourself.

The side-by-side

  • Quickest to a working interface: Antigravity.
  • Strongest on caching, alerts, and edge cases: Claude.
  • Friendlier for a first-time builder: Antigravity.
  • Best for review and safety checks: Claude.
  • Cost: both can be started for free with limits that change. Check the current terms.

My verdict

I would use both. Plan the app and the data model with Claude, let Antigravity build the screens and test them in the browser, then hand the server code back to Claude for a review. The first gets you something to look at on day one. The second helps it still work on day thirty, when the provider has a bad afternoon.

A tracker like this is a genuinely good first serious project. It is small enough to finish and real enough to teach you what production feels like.

Try the tools in this article

Links below are affiliate links: we may earn a commission at no cost to you.

Google AntigravityFree plan · An agent-first development environment where AI agents plan, code, and check their own work.
Get Google Antigravity
ClaudeFree plan · A thoughtful writer and careful coder with a calm, readable style.
Get Claude
Claude CodeFrom $20/mo · A terminal-based coding agent that works across your whole project.
Get Claude Code
SupabaseFree plan · The Postgres backend that most AI app builders plug into.
Get Supabase

Keep reading