# Stock prices in your Mac’s menu bar

The Stocks page shows the symbols you follow, each with its price and how much it moved today, in the order you list them. A second tab puts every symbol’s day side by side: how far it ranged and where it is now, measured from yesterday’s close. Click a symbol for its own page with its last 24 hours, where today and the past year sit in their ranges, a few facts and recent headlines. The prices come from Finnhub.

The pages show market data only. They can’t buy or sell, and they don’t suggest what to do.

## What you’ll see

- **Stocks:**
  - **Market:** the US market’s session, always at the top: Market open, Pre-market, After hours, Market closed, or closed for a holiday by name. Closed is grey.
  - **Watchlist | Today’s moves**, two tabs at one height:
    - **Watchlist:** a tile for each symbol on your list, in your order, with its price and its change today. A tile is green when the symbol is up and red when it’s down, with the change in the same colour, and the bigger the move, the deeper the tile. Twelve show, with Show N more for the rest, and resting the pointer on a tile shows the company’s name. A symbol Finnhub has no price for says “No quote” instead of $0.00, one whose request failed says “Didn’t load”, and symbols past the first 20 say so. Each tile opens that symbol’s page.
    - **Today’s moves:** one row per symbol on one shared scale in percent. Each bar runs from the day’s low to its high against yesterday’s close, and the dot is the price now, so a wide bar is a busy day and a dot left of zero is down. Rows run from the biggest rise to the biggest fall, the 14 furthest moves at most; with more on your list, the chart says how many it shows, such as “14 furthest of 22”.
- **Stock:** one page for every symbol, titled with the company’s name (a fund without one is titled by its symbol):
  - **Price:** a line of the last 24 hours, from the prices Legato keeps every 5 minutes for the symbols on your list. Its headline is the latest price, and its title gives the day’s change in dollars and percent. It’s mostly flat while the market is closed, and it starts once the symbol is on your list.
  - **Range:** today’s low to high and the past 52 weeks, on one scale, with a dot at the price now.
  - **Facts:** when Finnhub quoted it, the previous close, the open, the next earnings date, the market cap and the industry.
  - **News:** four recent headlines with their source, each opening the story. The words are the publishers’.

Price changes aren’t coloured green or red. A rise isn’t good news for everyone, and the page doesn’t say how to read it.

### Status

- Never counts as a problem.
- The US market’s session shows at the top of the page.
- Prices never turn anything orange or red.

## How it connects

The pages read Finnhub’s API at finnhub.io with your own key. The Stocks page asks every 5 minutes, once for the market and once for each symbol on your list (its price and its company name), up to 20 symbols. A symbol’s page asks every 5 minutes for its range and facts and every 30 minutes for headlines, while it’s open; its price comes from what the Stocks page keeps.

Your list stays in Settings → Lists on your Mac, and the page files never hold it. The symbols on it are sent to finnhub.io to get their prices, and Settings → Lists says so beside the list.

What Finnhub’s API offers, which markets and data each plan covers, its limits and the terms for using it are Finnhub’s to describe: see its [API documentation](https://finnhub.io/docs/api), [pricing](https://finnhub.io/pricing) and [terms of service](https://finnhub.io/terms-of-service). When Finnhub turns a request away, the cards keep their last prices and say the update failed.

[Sources and buttons](https://legatobar.com/docs/sources.md) explains each part of a page.

## Set it up

1. **Make a key.** Sign in to your [Finnhub dashboard](https://finnhub.io/dashboard) and copy your API key.
2. **Save it in Legato.** In Settings → Secrets, save it under `finnhub`, bound to `finnhub.io`. You can also link a [1Password reference](https://legatobar.com/docs/1password.md).
3. **Add the pages.** Paste the prompt into your agent, or download both pages and run `/Applications/Legato.app/Contents/Helpers/legato set finnhub-symbol finnhub-symbol.json`, then `legato set finnhub finnhub.json`. Keep the ID `finnhub-symbol`: every tile opens it with its symbol.
4. **List your symbols.** In Settings → Lists, add a list called `stock-watchlist` with the stock symbols you follow, one to a line, in the order you want them. Use the symbol as Finnhub writes it, in capitals, such as a class of shares with a dot.

The cards fill within a few minutes. Until the list has symbols, the Stocks page says where to add them.

### Prompt for your agent

```prompt
Add 2 Legato pages for Finnhub, starting from https://legatobar.com/examples/finnhub.json, https://legatobar.com/examples/finnhub-symbol.json. Use the page IDs finnhub, finnhub-symbol if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.

Add both pages as they are, keeping their page IDs. I’ll save my Finnhub key as finnhub in Settings → Secrets myself. Make a list called stock-watchlist in Settings → Lists with the stock symbols I follow, one to a line; ask me which ones, and don’t suggest any.

Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.
```

### Download the pages

- [Download Stocks (finnhub.json)](https://legatobar.com/examples/finnhub.json)
- [Download Stock (finnhub-symbol.json)](https://legatobar.com/examples/finnhub-symbol.json)

## Questions

### Why does a symbol say “No quote”?

Finnhub answered without a price for it. Check the symbol is written as Finnhub writes it.

### Why does a symbol say “Didn’t load”?

Finnhub turned down or didn’t answer that symbol’s request, often because the symbol is outside what your plan covers; see Finnhub’s [pricing](https://finnhub.io/pricing). The other symbols still show. If Finnhub turns down every symbol on the list, the whole page says it didn’t allow the request.

### Why doesn’t a symbol’s page have a price line yet?

The line is made from the prices the Stocks page keeps every 5 minutes, so it’s there only for symbols on your list, once Legato has kept two. Hours when your Mac was asleep or Legato wasn’t running have no prices.

### Why is the 52-week row missing?

The page shows the past year only when the figures it gets include today’s price. Otherwise it leaves that row out, and today’s range still shows.

### Where do the headlines come from?

Finnhub collects them from news publishers. Legato shows four from the last two days, each with its source, as the publisher wrote it.

Legato is independent and isn’t affiliated with or endorsed by Finnhub.

## Verification

The pages were filled from Finnhub on 11 Nov 2026 with a watchlist of well-known symbols, including a fund, a class of shares, a symbol Finnhub doesn’t know and one outside its plan. The example pages have tests with made-up answers for a busy day, a market holiday and a new high. The illustrations use made-up companies, tickers and prices. See the [service index](https://legatobar.com/services/) for other examples.
