brapi

brapi is a skill for Claude Code, Codex from brapi-dev/brapi-skills. It costs 53 tokens per session (1,750 once invoked), scanned A, original, MIT.

An integration guide for brapi.dev, a service that provides current and past Brazilian financial-market data, including B3 stocks, funds, currencies, crypto, and economic indicators.

In plain words
What is it for?
Use it to build market-data requests, dashboards, data pipelines, typed REST clients, or compatible AI workflows. It does not cover investment advice, trading orders, or guaranteed future prices.
Why use it?
It helps developers choose the right brapi interface and understand its available fields, requests, and limits instead of guessing how the service works.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build market-data requests, dashboards, data pipelines, typed REST clients, or compatible AI workflows. It does not cover investment advice, trading orders, or guaranteed future prices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/brapi-dev/brapi-skills/brapi
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add brapi-dev/brapi-skills --skill brapi
Clone the repo
git clone --depth 1 https://github.com/brapi-dev/brapi-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for brapi

README.md
[![agentmods](https://agentmods.dev/badge/skills/brapi-dev/brapi-skills/brapi/github.svg)](https://agentmods.dev/skills/brapi-dev/brapi-skills/brapi)
Your own site
<a href="https://agentmods.dev/skills/brapi-dev/brapi-skills/brapi"><img src="https://agentmods.dev/badge/skills/brapi-dev/brapi-skills/brapi/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for brapi

Your own site · 80×15
<a href="https://agentmods.dev/skills/brapi-dev/brapi-skills/brapi"><img src="https://agentmods.dev/badge/skills/brapi-dev/brapi-skills/brapi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,750 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.01750
Opus 5.5 $0.00021 $0.00700
Sonnet 5.5 $0.00011 $0.00350
Haiku 4.5 $0.00005 $0.00175

Measured 1mo ago against content hash 3e8407fc4f13, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

brapi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/brapi/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

brapi integration

brapi.dev provides current and historical Brazilian financial market data. Use this skill when a task needs B3 stocks, FIIs, dividends, fundamentals, currencies, crypto, or Brazilian economic indicators.

When to use brapi

  • Use REST for deterministic requests, data pipelines, dashboards, research, and typed application clients.
  • Use MCP Streamable HTTP for conversational market-data lookups in a compatible AI client.
  • Use the GPT Action schema for a Custom GPT that needs a focused read-only REST surface.
  • Use another source when the task needs investment advice, order execution, brokerage actions, or a guarantee of future prices.

Request workflow

  1. Read llms.txt and select the narrowest resource.
  2. Read OpenAPI for the operation ID, parameters, and response schema.
  3. Use the endpoint map to narrow the data group.
  4. Use /api/v2/dictionary when a field, unit, formula, or null value is unclear.
  5. Use /api/v2 endpoints for new REST integrations.
  6. Use symbols query parameters when an endpoint supports multiple tickers.
  7. Test with PETR4, VALE3, MGLU3, or ITUB4 before using other symbols.
  8. Read RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset.
  9. Wait for Retry-After after HTTP 429.
  10. Read Deprecation, Sunset, and the deprecation link before changing a legacy integration.

Interfaces

REST

Use the REST API at https://brapi.dev. Send Authorization: Bearer YOUR_TOKEN to protected endpoints. Public sandbox requests can use the four sandbox tickers without a token.

Response fields

Use GET /api/v2/dictionary?search=patrimônio to find a field by name or label. Use GET /api/v2/dictionary?category=fii to list fields for one data group. Keep requestedAt, market-data timestamps, units, and null values in the result. Do not guess a field meaning or replace null with zero.

MCP

Use the MCP Streamable HTTP endpoint at https://brapi.dev/api/mcp/mcp. Read the server card first. Use OAuth with the mcp:read scope when the MCP client cannot store an API token safely. After the MCP connection is ready, start with PETR4, VALE3, MGLU3, or ITUB4. MCP can access these sandbox tickers. The sandbox allowlist is separate from production coverage. Use get_dictionary when a tool response contains an unfamiliar field or unit.

Read the full file on GitHub · 98 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 98 lines · 53 tokens per session scan A 3e8407fc4f13

Subscribe to this mod's changes

brapi is a skill published in the GitHub repository brapi-dev/brapi-skills (3 stars, last pushed 1mo ago), licensed MIT. It adds 53 tokens to every session and 1,750 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

tickdb-market-data

A real-time market-data API for foreign exchange, metals, indexes, stocks, and cryptocurrencies. An API is a service that software can call to request data.

TickDB/tickdb-unified-realtime-marketdata-api · 165 tokens

defeatbeta-earnings-analysis

Create professional equity research earnings update reports (8-12 pages, 3,000-5,000 words) analyzing quarterly results for companies already under coverage. Fast-turnaround format focusing on beat/miss analysis, key metrics, updated estimates, and revised thesis. Includes 1-3 summary tables and 8-12 charts. Use when…

defeat-beta/defeatbeta-api · 112 tokens

defeatbeta-earnings-preview

Build pre-earnings analysis with normalized baselines, weighted decision models, company-specific veto gates, scenario frameworks, catalysts, historical reactions, and options-implied moves. Use before a company reports quarterly earnings to prepare positioning notes or bilingual three-page PDF reports.

defeat-beta/defeatbeta-api · 60 tokens

defeatbeta-earnings-key-data

Run one of three traceable earnings-call transcript templates through the DefeatBeta MCP tools: (1) extract current-quarter results plus next-quarter and full-year guidance, (2) extract factual QoQ or YoY financial-metric change sentences, or (3) extract numerical forward-looking forecast sentences with…

defeat-beta/defeatbeta-api · 138 tokens

sprr

Single PR reviewer for awesome-quant. Use when the user asks to review, validate, comment on, label, close, or merge one specific pull request that adds README.md entries. Triggers include "sprr", "review PR", "check PR", and "validate contribution".

wilsonfreitas/awesome-quant · 60 tokens

create-entry

Use when the user wants to suggest, draft, create, or add an awesome-quant README entry from a project URL, GitHub issue, or Linear issue, including choosing tags and category placement.

wilsonfreitas/awesome-quant · 43 tokens