[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [B3 index holdings](https://spiral.ai/integrations/muse-code/b3-index-holdings)

# How to Use B3 index holdings in Muse Code

Returns an index's constituent securities, participation weights, and theoretical quantities. Use it to inspect benchmark composition; B3 company index inclusion starts from a company instead.

|  |  |
| --- | --- |
| Model | B3 index holdings |
| 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 B3 index holdings in Muse Code

- Use B3 index holdings to retrieve IBOV constituents, weights, and theoretical quantities, then add a sortable table to my project.
- Use B3 index holdings to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from B3 index holdings and tell me what changed since last week.
- Check B3 index holdings and summarize what you find in three bullet points.
- Pull the newest data from B3 index holdings and give me the result as a table.

## How to set up B3 index holdings 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 B3 index holdings**: 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": "b3-com-br/companies/index_portfolio",
    "input": {
      "index": "<index>"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds B3 index holdings on Spiral, shows the price and runs it.

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

## B3 index holdings tools and prices

- [B3 listed companies and indices · Index portfolio](https://spiral.ai/tools/alexandria/b3-com-br/companies/index_portfolio) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to … | 1 | 1-based page number. |
| page_size | 1 to 120 | — | Rows per page; B3 returns an empty page above 120. |
| portfolio | theoretical, day, preview | theoretical | `theoretical`: current four-month portfolio; `day`: today's portfolio by sector with accumulated participation; `preview`: next rebalancing preview. |

## What can you do with B3 index holdings in Muse Code?

Build a B3 research table backed by exchange records. Add company, disclosure, distribution, sector, quote, or index data to the part of your project that needs it.

### Inspect benchmark concentration

Review IBOV holdings and weights, identify the issuers, group them using B3 sectors, and add delayed quotes and other index associations for context.

### Research index composition changes

Compare saved IBOV holdings with the latest composition, identify affected issuers and sectors, and review their index inclusion, disclosures, and corporate actions.

### Maintain a personal market review

Review a watchlist against its benchmark, combining company identities, sectors, disclosures, corporate events, payouts, index inclusion, holdings, and delayed quotes.

### Reconcile securities with issuers

Check that securities in an IBOV research table map to the intended companies, then inspect company details, corporate actions, quotes, and index associations for inconsistencies.

### Study a dividend benchmark

Inspect IDIV holdings and sector composition, then research constituent companies through payout histories, disclosures, corporate events, delayed quotes, and index inclusion.

## Overview

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

## B3 index holdings in other agents

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

## More Muse Code guides

- [B3 corporate actions](https://spiral.ai/integrations/muse-code/b3-corporate-actions)
- [B3 industry classification](https://spiral.ai/integrations/muse-code/b3-industry-classification)
- [B3 company search](https://spiral.ai/integrations/muse-code/b3-company-search)
- [B3 stock quote](https://spiral.ai/integrations/muse-code/b3-stock-quote)
- [B3 company index inclusion](https://spiral.ai/integrations/muse-code/b3-company-index-inclusion)
- [BEA county data publication status](https://spiral.ai/integrations/muse-code/bea-county-data-publication-status)

## Questions about B3 index holdings in Muse Code

**Can Muse Code use B3 index holdings?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run B3 index holdings like any built-in tool.

**How much does B3 index holdings 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 B3 index holdings in Muse Code?**

No. Spiral runs B3 index holdings on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up B3 index holdings in Muse Code?**

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

**Does Muse Code wait while B3 index holdings runs?**

B3 index holdings runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**What does this B3 data cover?**

It covers B3 listed-company records and related disclosures, corporate actions, cash distributions, indices, and delayed quotes. Company registry coverage is tied to B3 listings.

**Is this public company information?**

Yes. The connector reads public B3 data, including issuer disclosures; Empresas.Net is provided jointly by CVM and B3 for publicly held companies and institutions responsible for BDR programs.

**Are B3's labels translated into English?**

The connector preserves Portuguese labels as B3 publishes them. Expect source terminology in company, sector, and corporate event records.

**Does B3 guarantee that its website data is complete and current?**

No. B3's terms disclaim guarantees for timeliness, completeness, accuracy, and updates to website information.

**Can I reuse B3 website data commercially?**

B3's website terms require prior written consent for commercial use of its data. Public availability does not grant unrestricted commercial reuse.

