losbeto

losbeto

Provides point-in-time Brazilian market data and official statistics, enabling accurate backtesting and AI agent access to vintage, unrevised data, as well as Brazilian financial primitives like PIX code generation and business day calculations.

Category
访问服务器

README

Losbeto — point-in-time Brazilian market data for AI agents

Losbeto on x402-list — monitored uptime

The problem: the IPCA number you fetch from the Banco Central API today is not the number that was published back then. Official Brazilian series are revised. Any backtest built on the current series silently contains look-ahead bias.

The US has ALFRED for this. Brazil has nothing public.

What this is: a node that has been recording Brazilian official statistics as they were published, timestamping every reading, and signing each day with Ed25519 — continuously, since deploy. That archive cannot be scraped retroactively by anyone, including us. It only exists because the node was running.

Paid per call over x402 — USDC on Base, Solana or Algorand. No signup, no API key, no invoice.


Quick start

# 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

With an x402 client

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());

As an MCP server (Claude Desktop, Cursor, Claude Code)

{
  "mcpServers": {
    "losbeto": {
      "url": "https://api.losbeto.xyz/mcp",
      "headers": { "Authorization": "Bearer <credit-key>" }
    }
  }
}

Get a credit key with one on-chain payment: POST https://api.losbeto.xyz/buy-credits.


The archive products (the moat)

Endpoint Price What you get
/br-pit-proof free Merkle roots, signer key, coverage window, verification recipe
/br-asof?series=&date= $0.09 The value as known on that date — vintage, not revised
/br-revisions?series= $0.19 First print → every correction, with size and observation timestamp
/br-archive?day= $0.05 Signed daily snapshot: BCB macro + Ibovespa close
/br-brief $0.50 Daily Brazil macro + equity brief, in English

Series tracked: selic_meta_pct, cdi_daily_pct, ipca_12m_pct, igpm_month_pct, usd_brl_ptax, eur_brl.

The Brazilian primitives (zero upstream, sub-millisecond)

Pure computation over Brazilian specifications — no external API in the request path, no rate limit, no provider outage, priced for loops:

Endpoint Price What you get
/br-pix-parse?code= $0.004 Decode and CRC16-verify a PIX BR Code (EMV-MPM). Rejects a tampered or truncated QR before an agent moves money
/br-pix-code?key=&name=&city= $0.004 Generate a valid static PIX BR Code with correct CRC16, self-checked by re-parsing
/br-bizdays?from=&to= (or ?year=) $0.004 Bank business days on the ANBIMA 252 convention — Easter-linked holidays and the 2024 Consciência Negra change included, du/252 year fraction ready as an exponent
/br-doc?doc= $0.004 CNPJ/CPF modulo-11 check-digit validation, formatted output, headquarters branch detection

The spec-level traps these absorb: CRC16-CCITT/FALSE (poly 0x1021, seed 0xFFFF), Carnaval/Corpus Christi moving with Easter, and Consciência Negra becoming a national holiday only in 2024. Getting any of them wrong silently corrupts a rate calculation or makes a QR refused at the register. Verifiable from outside: GET /zero-upstream.json declares which routes never touch the network.

The node also exposes ~80 other endpoints (crypto, FX, commodities, equities). Those are convenience wrappers over public sources — see /what-agents-buy, where we publish the formula and tell you plainly which ones you should not pay for.


Verify anything, offline

Every observation is a Merkle leaf:

leaf = sha256("<series>|<ref_date>|<value>|<seq>|<observed_ts>")

Leaves are sorted and hashed into a daily Merkle root (sha256; an odd level duplicates its last leaf). The root is signed:

Ed25519( "losbeto-pit|<day>|<root>" )   # pubkey published at /br-pit-proof
import base64, nacl.signing
pub = nacl.signing.VerifyKey(base58_decode(signer))
pub.verify(f"losbeto-pit|{day}|{root}".encode(), base64.b64decode(signature))

Daily roots are optionally anchored on Algorand as a zero-value note transaction, so the timestamp does not depend on trusting us.


For agents: start at the manifest

GET /agents.json (also at /.well-known/agents.json) — the agents.json manifest: outcome-based flows with exact parameters, payment networks, the free tier, and pointers to the OpenAPI contract, the x402 manifest, the scorecard and the fidelity recipes. CORS open, cached 1h.

For indexers and QoS scorers

If you are ScoutScore, EntRoute, x402scan, x402-list, BlockRun or any other service that probes and ranks x402 nodes, these are for you:

Surface What it gives you
/agents.json agents.json manifest — flows, payment networks, free tier
/scorecard.json Signed: 24h availability, p50/p95 latency, 402-challenge cost, traffic mix, organic-vs-operator revenue
/.well-known/fidelity.json Deterministic probe recipe per endpoint — exact free URL, required response fields, what "healthy" means
/zero-upstream.json Which endpoints make zero outbound calls (cannot rate-limit or 503 on a provider)
/bazaar-status Whether this node has settled on Base via the CDP facilitator (2,200+ settlements)
X-Scorecard / X-Fidelity Headers on every response, so you never need a second request to find them

Free probes never charge. A paid route that hits an unexpected internal error degrades to a 402 rather than a 500 — the resource is still for sale. The OpenAPI and Swagger specs carry a stable ETag and answer 304 — no need to re-download 130 KB between probes.

Revenue transparency

GET /.well-known/honest-revenue.json — signed, and it separates:

  • organic — paid by a wallet the operator does not control
  • operator-test — the operator's own declared wallets
  • self-sweep — one wallet settling many distinct endpoints in a short window

Operator-funded traffic is labelled, not hidden. If the organic number is small, it says so.


Run it yourself

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

Useful env vars: AI_WARMER=1 (re-enable AI preview warming), LLM_DAILY_BUDGET, LLM_PAID_RESERVE, PIT_INTERVAL_S, ALGO_ANCHOR_MNEMONIC (+ pip install py-algorand-sdk).


Contact

Roberto Martins — roberto.martins622@gmail.com

Missing a series or a market you need? Open an issue. New endpoints get built on request.

MIT licensed.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选