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

opencode · Finance

How to Use B3 company filings in opencode

Returns a company's regulatory disclosure records from B3. Use it to review what an issuer filed with the market alongside its company profile and corporate events.

Prompts to try with B3 company filings in opencode

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

Use B3 company filings to look this up and give me the result as a table. Save the result in ./assets.

B3 company filingsopencode
Try asking
  • Pull the latest numbers from B3 company filings and tell me what changed since last week.

  • Check B3 company filings and summarize what you find in three bullet points.

  • Pull the newest data from B3 company filings and give me the result as a table.

  • Check B3 company filings every morning and tell me only when something changed.

How to set up B3 company filings in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 company filings

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

Then paste one of the prompts above: opencode finds B3 company filings on Spiral, shows the price and runs it.

B3 company filings providers and prices

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

AlexandriaFinance
B3 listed companies and indices · Company filings
b3-com-br/companies/company_filings

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Pagea number from 11

1-based page number.

Year1990 to 2100

Calendar year of delivery; defaults to the current year.

Categorya number from 1

B3 filing category id; omit for all categories.

Page size1 to 120

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

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

What can you do with B3 company filings in opencode?

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.

Prepare an issuer research brief

Identify Petrobras, review its company profile, sector, disclosures, corporate events, cash distributions, delayed quote, and index inclusion in one personal research brief.

Review a company's cash distributions

Resolve Vale's issuer identity and examine cash distribution history alongside company details, regulatory disclosures, corporate actions, and a delayed market quote.

Compare sector peers

Use B3 classifications to organize a peer comparison, then compare issuer profiles, financial summaries, payouts, disclosures, corporate events, and delayed quotes.

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.

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 company filings in opencode

Can opencode use B3 company filings?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run B3 company filings like any built-in tool.

How much does B3 company filings cost in opencode?

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

Do I need an Alexandria account to use B3 company filings in opencode?

No. Spiral runs B3 company filings 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 company filings in opencode?

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

Does opencode wait while B3 company filings runs?

B3 company filings runs in the background. opencode 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 company filings in opencode

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

Paste this into opencode:

Set up opencode

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