USD/BRL two ways
api.brazilayer.com/v1/mercado/cambio
USD/BRL two ways: the official Central Bank PTAX rate and the LIVE crypto market (BTC/BRL, USDT/BRL), plus the Brazil premium (ágio): how much Brazilians pay above global price for dollar/crypto exposure. A classic emerging-market capital-flow signal, computed live from exchange prices at request time. Positive premium = capital-flight pressure; discount = inflow. Free sample, no payment: https://
GET
https://api.brazilayer.com/v1/mercado/cambioUptimeNot checked yet
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.brazilayer.com/v1/mercado/cambio");
console.log(await res.json());Example input
{}More from Brazilayer Markets
- api.brazilayer.com/v1/mercado/indicadoresBrazil macro snapshot in one call, straight from the Central Bank: Selic policy rate, IPCA inflation (monthly and 12-month), official PTAX USD/BRL rate, plus the Focus survey (the market's median forecasts for inflation, policy rate, GDP and FX for this year and next, updated weekly). The essential context pack for any agent trading BRL pairs or emerging markets. Free sample, no payment: https://a0.002
- api.brazilayer.com/v1/mercado/noticiasBrazilian financial & crypto market news, refreshed every 15 minutes from major Brazilian outlets: headline, summary, link, topic (crypto, macro, fx, regulation, companies), investor sentiment and 0-10 market relevance. Brazil is a top-10 crypto adoption market: central bank moves, Drex (CBDC) and CVM regulation move prices. Filters: tema, sentimento, relevancia_min. Free sample, no payment: https0.002
- api.brazilayer.com/v1/mercado/pacoteThe whole Brazilian market snapshot in ONE call, a third cheaper than one by one: official USD/BRL rate with the live crypto premium, macro indicators (Selic, IPCA, activity) and the latest headlines with sentiment, refreshed every 15 minutes. Same JSON as the single endpoints, keyed by name; 503 and no charge if fewer than half respond. Free sample, no payment: https://api.brazilayer.com/v1/merca0.004
