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

Windsurf · Finance

How to Use B3 index holdings in Windsurf

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.

Prompts to try with B3 index holdings in Windsurf

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

Use B3 index holdings to retrieve IBOV constituents, weights, and theoretical quantities, then add a sortable table to my project.

B3 index holdingsWindsurf
Try asking
  • 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 Windsurf

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

Use Spiral's MCP server

  1. Add the server

    Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:

    {
      "mcpServers": {
        "spiral": {
          "url": "https://api.spiral.ai/mcp"
        }
      }
    }
  2. Sign in

    Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

    devin mcp login spiral
  3. Check it

    Spiral is listed under This computer in Customize › MCPs. From the terminal:

    devin mcp list

Use the Spiral skill

  1. Send Windsurf 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 B3 index holdings

    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": "b3-com-br/companies/index_portfolio",
        "input": {
          "index": "<index>"
        }
      }'

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

B3 index holdings providers and prices

Spiral runs B3 index holdings through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
B3 listed companies and indices · Index portfolio
b3-com-br/companies/index_portfolio

Settings you can ask for

Ask Windsurf for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Pagea number from 11

1-based page number.

Page size1 to 120

Rows per page; B3 returns an empty page above 120.

Portfoliotheoretical, day, or previewtheoretical

theoretical: current four-month portfolio; day: today's portfolio by sector with accumulated participation; preview: next rebalancing preview.

Every API field of B3 listed companies and indices · Index portfolio is on its tool page: open its card above.

What can you do with B3 index holdings in Windsurf?

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.

Questions about B3 index holdings in Windsurf

Can Windsurf use B3 index holdings?

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

How much does B3 index holdings cost in Windsurf?

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

Do I need an Alexandria account to use B3 index holdings in Windsurf?

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 Windsurf?

About two minutes: add the server, then sign in, then check it.

Does Windsurf wait while B3 index holdings runs?

B3 index holdings runs in the background. Windsurf 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.

Get started

Start using B3 index holdings in Windsurf

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

Paste this into Windsurf:

Set up Windsurf

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