[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Stock Analysis price history](https://spiral.ai/integrations/muse-code/stock-analysis-price-history)

# How to Use Stock Analysis price history in Muse Code

Returns dated open, high, low, close, adjusted close, volume, and percentage-change observations. Use it for charts and historical comparisons across stocks or ETFs.

|  |  |
| --- | --- |
| Model | Stock Analysis price history |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Stock Analysis price history in Muse Code

- Use Stock Analysis price history for SPY over the past year and add a chart of weekly adjusted closes to this project's research view.
- Use Stock Analysis price history to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Stock Analysis price history and tell me what changed since last week.
- Check Stock Analysis price history and summarize what you find in three bullet points.
- Pull the newest data from Stock Analysis price history and give me the result as a table.

## How to set up Stock Analysis price history in Muse Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Stock Analysis price history**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "stockanalysis-com/securities/price_history",
    "input": {
      "symbol": "<symbol>"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds Stock Analysis price history on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## Stock Analysis price history tools and prices

- [Stock Analysis · Price history](https://spiral.ai/tools/alexandria/stockanalysis-com/securities/price_history) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| type | etf, stock | stock | Security type: `etf` or `stock`. |
| range | 1M, 3M, 6M, YTD, 1Y, 3Y, 5Y, 10Y, MAX | 1Y | Lookback window as the site names it. |
| period | Daily, Weekly, Monthly | Daily | Bar size. |

## What can you do with Stock Analysis price history in Muse Code?

Build comparison tables and charts from Stock Analysis fund records, dividend payments, and historical observations. Add calculations to your project while keeping quarterly earnings records and market observations in separate views.

### Compare an ETF shortlist

Compare VOO, IVV, and SPY using fund attributes, issuer lineups, issuer scale, and the holdings shown. Add distribution history and historical observations to explain the differences in a research table.

### Review an earnings-period market reaction

Review AAPL's quarterly earnings history beside historical market observations and its latest snapshot. Check whether it appears in the selected market-mover ranking and compare dividend dates with the period under review.

### Prepare a market research briefing

Start with the selected market-mover ranking, then inspect current and historical observations for the companies it identifies. Add quarterly earnings history where relevant to the briefing.

### Compare company results and distributions

Put quarterly earnings history and dividend payments for AAPL and MSFT into separate timelines. Add historical observations, current snapshots, and appearances in the selected market ranking for context.

### Investigate unusual trading activity

Find companies in the most-active ranking and compare their recent observations with longer historical series. Review quarterly earnings history and dividend dates as possible research leads without asserting that either caused the move.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Stock Analysis price history in other agents

- [Amp](https://spiral.ai/integrations/amp/stock-analysis-price-history)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/stock-analysis-price-history)
- [Claude](https://spiral.ai/integrations/claude-desktop/stock-analysis-price-history)
- [Claude Code](https://spiral.ai/integrations/claude-code/stock-analysis-price-history)
- [Cline](https://spiral.ai/integrations/cline/stock-analysis-price-history)
- [Codex](https://spiral.ai/integrations/codex/stock-analysis-price-history)
- [Cursor](https://spiral.ai/integrations/cursor/stock-analysis-price-history)
- [Devin](https://spiral.ai/integrations/devin/stock-analysis-price-history)
- [dots](https://spiral.ai/integrations/dots/stock-analysis-price-history)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/stock-analysis-price-history)
- [Gemini](https://spiral.ai/integrations/gemini/stock-analysis-price-history)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/stock-analysis-price-history)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/stock-analysis-price-history)
- [goose](https://spiral.ai/integrations/goose/stock-analysis-price-history)
- [Grok](https://spiral.ai/integrations/grok/stock-analysis-price-history)
- [Grok Build](https://spiral.ai/integrations/grok-build/stock-analysis-price-history)
- [Hermes](https://spiral.ai/integrations/hermes/stock-analysis-price-history)
- [Instinct](https://spiral.ai/integrations/instinct/stock-analysis-price-history)
- [Manus](https://spiral.ai/integrations/manus/stock-analysis-price-history)
- [Muse](https://spiral.ai/integrations/muse/stock-analysis-price-history)
- [n8n](https://spiral.ai/integrations/n8n/stock-analysis-price-history)
- [Notion](https://spiral.ai/integrations/notion/stock-analysis-price-history)
- [OpenClaw](https://spiral.ai/integrations/openclaw/stock-analysis-price-history)
- [opencode](https://spiral.ai/integrations/opencode/stock-analysis-price-history)
- [Perplexity](https://spiral.ai/integrations/perplexity/stock-analysis-price-history)
- [Raycast](https://spiral.ai/integrations/raycast/stock-analysis-price-history)
- [VS Code](https://spiral.ai/integrations/vscode/stock-analysis-price-history)
- [Windsurf](https://spiral.ai/integrations/windsurf/stock-analysis-price-history)
- [Zapier](https://spiral.ai/integrations/zapier/stock-analysis-price-history)

## More Muse Code guides

- [Stock Analysis market movers](https://spiral.ai/integrations/muse-code/stock-analysis-market-movers)
- [Stock Analysis screener categories](https://spiral.ai/integrations/muse-code/stock-analysis-screener-categories)
- [Stock Analysis earnings history](https://spiral.ai/integrations/muse-code/stock-analysis-earnings-history)
- [Stock Analysis stock and ETF quote](https://spiral.ai/integrations/muse-code/stock-analysis-stock-and-etf-quote)
- [Stock Analysis dividend history](https://spiral.ai/integrations/muse-code/stock-analysis-dividend-history)
- [Stock Analysis stock overview](https://spiral.ai/integrations/muse-code/stock-analysis-stock-overview)

## Questions about Stock Analysis price history in Muse Code

**Can Muse Code use Stock Analysis price history?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Stock Analysis price history like any built-in tool.

**How much does Stock Analysis price history cost in Muse Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need an Alexandria account to use Stock Analysis price history in Muse Code?**

No. Spiral runs Stock Analysis price history on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Stock Analysis price history in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while Stock Analysis price history runs?**

Stock Analysis price history runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**Does Stock Analysis cover markets outside the United States?**

Stock Analysis reports global stock and ETF coverage exceeding 130,000 tradable symbols. That website-wide figure does not establish the coverage of every individual endpoint.

**Where does Stock Analysis get its data?**

Its sources vary by dataset: CBOE supplies real-time stock prices, most historical dividend data comes from S&P Global, and the SPY holdings page identifies Finnhub.

**How fresh are dividend and holdings records?**

Apple's dividend page says updates arrive within hours of dividend announcements. The SPY holdings page says ETF issuers typically publish holdings at the end of each trading day.

**Does a public holdings table contain the entire portfolio?**

It can be partial: VOO's public page displayed 25 of 516 holdings when researched. An overlap calculation using those rows describes the displayed positions, not the entire fund.

**Are historical dividend amounts adjusted for stock splits?**

Apple's dividend page explicitly states that dividend amounts are adjusted for stock splits when applicable. Its payment history therefore should not be interpreted as an unadjusted record of amounts per share at the time.

