Spiral gives your agent every tool with one account. Browse the tools →

Muse Code · Finance

How to Use Stock Analysis earnings history in Muse Code

Returns quarterly earnings history for a company. Use it to compare reporting periods alongside price movements and dividend payments.

Prompts to try with Stock Analysis earnings history in Muse Code

Copy an example into Muse Code, or ask in your own words.

Use Stock Analysis earnings history for AAPL and add a view comparing the four most recent reported quarters.

Stock Analysis earnings historyMuse Code
Try asking
  • Use Stock Analysis earnings 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 earnings history and tell me what changed since last week.

  • Check Stock Analysis earnings history and summarize what you find in three bullet points.

  • Pull the newest data from Stock Analysis earnings history and give me the result as a table.

How to set up Stock Analysis earnings history in Muse Code

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

Use Spiral's MCP server

  1. Install Muse Code
    curl -fsSL https://dev.meta.ai/install.sh | bash
  2. Ask Muse to add the server

    Start muse and ask:

    Add the Spiral MCP server at https://api.spiral.ai/mcp
  3. Sign in

    In your terminal, run:

    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.

    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 earnings history

    One request; the result comes back by polling or a webhook.

    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/earnings",
        "input": {
          "symbol": "<symbol>"
        }
      }'

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

Stock Analysis earnings history providers and prices

Spiral runs Stock Analysis earnings history through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
Stock Analysis · Earnings
stockanalysis-com/securities/earnings

What can you do with Stock Analysis earnings 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.

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.

Questions about Stock Analysis earnings history in Muse Code

Can Muse Code use Stock Analysis earnings history?

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

How much does Stock Analysis earnings 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 earnings history in Muse Code?

No. Spiral runs Stock Analysis earnings 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 earnings 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 earnings history runs?

Stock Analysis earnings 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.

Get started

Start using Stock Analysis earnings history in Muse Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Muse Code:

Set up Muse Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options