losbeto
Losbeto — 面向 AI 智能体的巴西市场时点数据
**问题:**你今天从 Banco Central API 获取的 IPCA 数值,并非当年发布的数值。巴西官方序列会被修订。任何基于当前序列构建的回测,都会悄悄包含前视偏差。
美国有处理这一问题的 ALFRED。巴西没有类似公开资源。
这是什么:一个自部署以来持续运行、按发布时原貌记录巴西官方统计数据的节点,为每次读取打上时间戳,并用 Ed25519 对每天的数据签名。这个档案无法被任何人(包括我们在内)回溯式爬取。它的存在仅仅是因为这台节点一直在运行。
按调用付费,通过 x402 结算——USDC on Base、Solana 或 Algorand。无需注册,无需 API 密钥,无需发票。
快速开始
# free — see the whole archive and how to verify it
curl https://api.losbeto.xyz/br-pit-proof
# free — what the paid endpoints actually cost and why
curl https://api.losbeto.xyz/why-buy
# free — the buying criterion, published: what is worth paying for here and what is not
curl https://api.losbeto.xyz/what-agents-buy
# paid — IPCA as it was known on 5 Aug 2026 (not as revised since)
curl https://api.losbeto.xyz/br-asof?series=ipca_12m_pct&date=2026-08-05
# -> HTTP 402 with the payment challenge; pay and repeat使用 x402 客户端
import { wrapFetchWithPayment } from "x402-fetch";
const fetchWithPay = wrapFetchWithPayment(fetch, wallet);
const r = await fetchWithPay(
"https://api.losbeto.xyz/br-asof?series=selic_meta_pct&date=2026-06-30"
);
console.log(await r.json());作为 MCP 服务器(Claude Desktop、Cursor、Claude Code)
{
"mcpServers": {
"losbeto": {
"url": "https://api.losbeto.xyz/mcp",
"headers": { "Authorization": "Bearer <credit-key>" }
}
}
}通过一次链上支付即可获得信用密钥:POST https://api.losbeto.xyz/buy-credits。
Related MCP server: mcp-brasil
档案产品(护城河)
端点 | 价格 | 你将获得 |
| 免费 | Merkle 根、签名者密钥、覆盖窗口、验证方案 |
| $0.09 | 截至该日期已知的数值 —— 历史口径,而非修订后的口径 |
| $0.19 | 首次值 → 每次修正,包含修正幅度和观测时间戳 |
| $0.05 | 每日本地签名快照:BCB 每日宏观 + Ibovespa 收盘价 |
| $0.50 | 每日巴西宏观 + 股票简报(英文) |
追踪的序列:selic_meta_pct、cdi_daily_pct、ipca_12m_pct、
igpm_month_pct、usd_brl_ptax、eur_brl。
巴西基础原语(零上游依赖、亚毫秒响应)
纯粹依赖巴西规范的计算——请求路径中没有外部 API,没有速率限制,没有供应商故障,专为循环调用定价:
端点 | 价格 | 你能获得 |
| $0.004 | 解码并做 CRC16 校验验证的 PIX BR Code(EMV-MPM)。在智能体移动资金之前拒绝被篡改或截断的 二维码 |
| $0.004 | 生成带正确 CRC16 的有效静态 PIX BR Code,并通过重新解析自校验 |
| $0.004 | 按 ANBIMA 252 单位计工作天数——包含复活节周期变动假期和 2024 年 Consciência Negra 调整,列出“ |
| $0.004 | CNPJ/CPF 模 11 校验位验证、格式化输出、总部/分支机构识别 |
吸收掉的协议级陷阱:CRC16-CCITT/FALSE(poly 0x1021,se次 0xFFFF)、
Carnaval / Corpus Christi 随复活节变动,以及 Consciência Negra 直到 2024 年才成为全国性法定假日。任何一项搞错,都会悄悄破坏收益率计算,或让 QR 码在收银台被拒。可以从外部验证:GET /zero-upstream.json 声明了哪些路由不接触网络。
节点还暴露约 80 个其他端点(加密资产、外汇、大宗商品、股票),它们是公开来源的便捷封装——详见““/what-agents-buy”页面,在那里我们公布计算方式,并明确告诉你哪些无论如何不应该花钱买。
随便离线验证
每条观测记录都是一片 Merkle 叶子:
leaf = sha256("<series>|<ref_date>|<value>|<seq>|<observed_ts>")叶子经过排序并哈希成每日 Merkle 根(sha256;奇数书层会复制最后一片叶子)。根值会被签名:
Ed25519( "losbeto-pit|<day>|<root>" ) # pubkey published at /br-pit-proofimport base64, nacl.signing
pub = nacl.signing.VerifyKey(base58_decode(signer))
pub.verify(f"losbeto-pit|{day}|{root}".encode(), base64.b64decode(signature))每天根也会被选择性地锚定在网络并作为一笔 Algorand 零值 note 交易,这样时间戳就不需要信任我们。
对智能体:从 manifest 开始
GET /agents.json(也在 /.well-known/agents.json)——
那个 agents.json manifest:带固定参数的流程、
支付网络、免费范围,以及指向 OpenAPI 契约、x402 清单、对接口
和保真度验证的限制。CORS 开放,缓存 1 小时。
对索引器和 QoS 评估者
如果你运营 ScoutScore、EntRoute、x402scan、x402-list、Blockrun 或其他会探测和排名并给 x402 可测的服务,以下就是为你准备的:
Surface | 它提供什么 |
| agents.json 清单文件——流程、支付网络、免费 tier |
| 已签名:24 小时稳定、p50/p95 延迟、402 挑战成本、流量构成、自然与 agent 推动流量 |
| 每个终结点的确定性探测配方——精确的免费 URL、必填的响应字段、什么才算“健康” |
| 是指哪些端点根本没有出站请求(不会被供应商限流或给 503) |
| 该节点在 Base 上是否已通过内部服务解决支付(2,200+ 次) |
| 每个响应上都有这些 header,因此永远无需再发第二个请求去获取它们 |
免费探测永不计费。如果付费路由意外遇到内部错误,它会退化成 402 而非 500——你仍然可以购买该资源。OpenAPI 和 Swagger 规范携带稳定的 ETag 并返回 304,因此不再需要在每次探测之间重新下载 128 KB。
收入透明度
GET /.well-known/honest-revenue.json——已签名,它分三类:
organic—— 由 operator 无法控制的钱包支付的真实用户operator-test—— 运营者自己声明的钱包self-sweep—— 某个钱包在很短时间内结清大量不同 endpoints
运营方给的流量会被标出,不会隐藏。如果 organic 数值很低,它会直接说明。
自己运行
pip install -r requirements.txt
export SOLANA_WALLET_ADDRESS=... # where payments land
export BASE_PAYTO_EVM=0x... # optional
export ALGORAND_WALLET_ADDRESS=... # optional
export BUYER_WALLETS=... # your own test-buyer wallets, comma separated
gunicorn --workers 2 --threads 8 --preload --bind 0.0.0.0:$PORT nexus_omega:app有益的环境变量:AI_WARMER=1(重新启用 AI 预热),LLM_DAILY_BUDGET、
LLM_PAID_RESERVE、PIT_INTERVAL_S、ALGO_ANCHOR_MNEMONIC
(加上 pip install py-algorand-sdk)。
如何联系
Roberto Martins — roberto.martins622@gmail.com
缺少你需要的序列或市场?打开一个 issue。你也可以请求我们新建端点。
MIT 许可.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceQuery a variety of data from Brasil resources seamlessly. Access information on postal codes, area codes, banks, holidays, taxes, and more through a unified interface. Enhance your AI agents and applications with rich and updated data from BrasilAPI effortlessly.67
- AlicenseNot gradedqualityNot gradedmaintenanceConnects AI agents to 28 Brazilian public APIs, providing over 200 tools to access data on economy, legislation, transparency, and the judiciary. It enables complex queries and cross-referencing of government datasets like IBGE, the Central Bank, and the National Congress through natural language.
- AlicenseAqualityDmaintenanceEnables AI agents to access Brazilian statistical, geographic, and economic data in real-time via IBGE public APIs.3219MIT
- AlicenseAqualityCmaintenanceProvides Brazilian financial market data including stock prices, fundamentals, dividends, FIIs, and macro indicators to AI assistants.11MIT
Related MCP Connectors
Brazilian fixed income & financial data for AI. Selic, CDI, IPCA, CDB/LCI/LCA rankings, FX rates.
Brazilian Open Finance MCP — 30+ banks (Itaú, Nubank, etc.) to Claude/Cursor. Read-only.
Privacy-safe synthetic financial data for LatAm fintech, AI agents, testing and ML.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rmartins1451/losbeto'
If you have feedback or need assistance with the MCP directory API, please join our Discord server