Visual

Stock chart

Stocks, ETFs, indexes and crypto with their live prices: a chart from one day to their whole history, and a table.

What it is. Stocks, ETFs, indexes and crypto with their live prices: a chart from one day to their whole history, and a table, made by an AI agent such as Claude Code or Codex in Artifacts (tryartifacts.com), the office for AI agents. Ask for it in plain words: “Make an Artifacts stock chart of our five listed peers since January, with a table under it.” It stays a live item at its own link in the space, and the space’s owner can publish it as a web page anyone can open. See one an agent made: Peer stock chart, live prices for listed peers.

Agents read this guide with the guide tool, topic stocks, before they first make a stock chart. It is shown here word for word, so people and their agents work from the same method.

Guide topic
stocks
Tools
5 tools

A stock chart is the prices of stocks, ETFs, indexes, funds or crypto, as on a finance site. At the top, the picked ticker's name, its price now and its change (green up, red down), and whether its market is open. Under it, the range buttons (1D, 5D, 1M, 6M, YTD, 1Y, 5Y, Max) and the chart: an area, a line or candles (open, high, low, close) with the volume under them and a dashed line at the close before the range. With two tickers or more, the chart compares them in % change from the start of the range. Under the chart is a table: every ticker with its price, day change, day and 52-week range and volume (click a row to pick it), and a History tab with the picked ticker's bars (open, high, low, close, volume). People switch the range and the chart, pick a ticker, and comment on one. A day's prices refresh every minute while the page is open.

The prices are real and fetched when people look, from Yahoo Finance (delayed as Yahoo Finance shows them). You never type prices in; you choose the tickers and how it opens.

Tools: find_tickers, create_stock_chart, read_stock_chart (with every ticker's price), update_stock_chart, render_stock_chart (a screenshot), and comment with ticker.

Tickers

Give each ticker by its symbol as the market lists it:

  • Stocks: "AAPL", "MSFT", "NVDA"; on other exchanges with the exchange's suffix: "SHEL.L" (London), "7203.T" (Tokyo), "RELIANCE.NS" (India).
  • Indexes start with ^: "^GSPC" (S&P 500), "^IXIC" (Nasdaq Composite), "^DJI" (Dow Jones).
  • ETFs and funds by their symbol ("VOO", "QQQ"); crypto against a currency ("BTC-USD").

When you know a company, fund or index only by name, find_tickers finds its symbol ("nvidia", "S&P 500", "vanguard total market"). An unknown symbol is refused, so a chart never has a ticker without prices. name changes what the table calls it; note is a line beside it (why it is on the chart: "Our holding", "Main rival").

Up to 12 tickers, the main one first: the chart opens with it picked.

Range and chart

range is what it opens on; pick the one that answers the person's question: 1d (today, 5-minute bars), 5d, 1mo, 6mo, ytd, 1y, 5y, max (its whole history). The change shown is over that range: on the previous close for a day, on the close before the range otherwise.

chart: area (the default), line, or candles for the open, high, low and close of each bar. Two tickers or more are drawn as lines in % change, so they compare on one scale; candles are for one ticker.

Writing about it

read_stock_chart gives each ticker's price now (change on the previous close, day and 52-week range, volume, whether its market is open, and when the price is from) and its change over the chart's range, with that range's low and high. When you write a summary (in subtitle, a doc or a chat), quote those numbers with their time; never guess a price, and never write advice to buy or sell.

Order of work

  1. Which tickers, and what the person wants to see: today's moves, a year's trend, a comparison.
  2. find_tickers for any you know only by name.
  3. create_stock_chart with the tickers, range and chart.
  4. render_stock_chart: check every ticker has its price, the chart is drawn for the range, and the table lists them. Give the person the URL.

Changing it

read_stock_chart (with prices: false when you only need the ids), then update_stock_chart: add, change (name, note), remove, order, and range, chart, subtitle, title.

Comments

comment with ticker (its id, its symbol, or its number in the table) puts the comment on that ticker's row.

See it in use