Brazil PTAX FX rate API
Official Central Bank of Brazil PTAX buy and sell quotes for USD or another listed PTAX currency, by date or the latest published bulletin. Not an ECB reference rate and not a crypto BRL market. POST /api/v1/fx/ptax costs $0.002 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Frankfurter API (ECB reference rates) Central Bank of Brazil Olinda PTAX API Limits: Frankfurter rates are delayed ECB reference rates, not live market prices. A weekend or holiday date returns the closest working day published by the source for ECB routes.
Official Central Bank of Brazil PTAX buy and sell quotes for USD or another listed PTAX currency, by date or the latest published bulletin. Not an ECB reference rate and not a crypto BRL market. POST /api/v1/fx/ptax costs $0.002 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Frankfurter API (ECB reference rates) Central Bank of Brazil Olinda PTAX API Limits: Frankfurter rates are delayed ECB reference rates, not live market prices. A weekend or holiday date returns the closest working day published by the source for ECB routes.
/api/v1/fx/ptaxExample request
curl -i -X POST "https://www.brainiac.software/api/v1/fx/ptax" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"currency": "USD",
"quoteDate": "2026-11-19"
}
JSONExample response
{
"status": "complete",
"currency": "USD",
"currencies": [
"USD"
],
"quoteDate": "2026-11-19",
"buy": "5.88830",
"sell": "5.88890",
"quotedAt": "2026-11-19T13:04:18.325373Z",
"quotes": [
{
"currency": "USD",
"quoteDate": "2026-11-19",
"buy": "5.88830",
"sell": "5.88890",
"quotedAt": "2026-11-19T13:04:18.325373Z"
}
],
"source": "Central Bank of Brazil PTAX",
"sourceUrl": "https://olinda.bcb.gov.br/olinda/servico/PTAX/versao/v1/odata/CotacaoDolarDia(dataCotacao=@dataCotacao)",
"asOf": "2026-11-20T22:40:00.000Z",
"missing_items": []
}An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.
Errors: HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; failed or empty results are not charged. Invalid cursor returns HTTP 400 (uncharged).
Limits: Frankfurter rates are delayed ECB reference rates, not live market prices. A weekend or holiday date returns the closest working day published by the source for ECB routes. PTAX is a separate official BCB bulletin and is not an ECB or crypto BRL quote.
FAQ
- Do I need an API key? No. Pay the listed USDC amount with x402.
- What network? Base (eip155:8453), USDC.
- Is this an official determination? No. Results are for human review against the cited sources.
Related operations
- Get latest exchange rates — $0.004 USDC
- Get historical exchange rates — $0.004 USDC
- Get timeseries exchange rates — $0.004 USDC
- Convert currency amount — $0.004 USDC