Skip to content

Reference

Macro Education

FXMacroData vs Banco Central do Brasil API: Selic, IPCA and PTAX Data for BRL Traders

A buyer's guide comparing the free Banco Central do Brasil SGS and Olinda APIs (Selic, PTAX, Focus) and IBGE's IPCA with FXMacroData for BRL traders who need release timestamps, one schema across 22 currencies, and MCP access.

Share article X LinkedIn Email
Pip, the FXMacroData robot mascot, clips five small paper bulletin slips onto a rail in time order, next to a compact rate board.
The Banco Central do Brasil APIs publish official Selic, PTAX, and Focus data for free. FXMacroData adds release timestamps and one schema for BRL and 21 other currencies.

This comparison is for BRL traders, quant developers, and analysts deciding whether to build directly on the Banco Central do Brasil open data APIs or to use FXMacroData as the data layer for USD/BRL and wider FX work. The official route is free and authoritative: the SGS time-series API carries the Selic target and thousands of other series, the Olinda OData services publish PTAX exchange rates and the Focus market expectations survey, and IBGE publishes IPCA inflation through its SIDRA API.

The core finding is that the official APIs are the right source of record for Brazilian data, and FXMacroData reads from them too. What FXMacroData adds is the FX workflow around those numbers: a second-level announcement timestamp on every release, one JSON schema across Brazil and 21 other currencies, a release calendar, pair dashboards, and MCP access for AI assistants. If you only need Brazilian history in a notebook, the central bank is hard to beat. If you trade BRL against other currencies or automate around releases, the workflow layer saves real engineering time.

Quick answer

Use the Banco Central do Brasil APIs when you need free, official Brazilian series with full history and the original PTAX bulletins. Use FXMacroData when BRL is one leg of a multi-currency FX workflow that needs release timestamps, a calendar, pair context, and AI-agent access in one schema.

Choose the BCB APIs when

You need the source of record: SGS series by code, every PTAX bulletin, Focus survey statistics, or deep Brazil-only history at no cost.

Choose FXMacroData when

You compare BRL with USD, EUR, or other currencies, react to Copom and IPCA releases as they happen, or connect an AI assistant through MCP.

Cost at a glance

BCB and IBGE APIs: free, no API key.* FXMacroData: Always Free USD tier, Individual $50/month with a 14-day trial, Business $250/month for teams.

Takeaway: this is not free versus paid for the same thing. It is official raw series versus a release-timed, cross-currency FX layer built on them.

* Access terms retrieved from the Banco Central do Brasil open data portal in October 2026. No paid tier or API key is listed.

Pricing And Access

There is no price to compare on the official side. The SGS API and the Olinda services answer anonymous HTTPS requests with no account, no key, and no paid tier listed on the open data portal. IBGE's SIDRA API is also open. For a researcher, that is the strongest argument for the official route.

FXMacroData is a paid product with a free entry point. The Always Free tier needs no key and covers USD data only (100 requests per day, with USD announcements delayed 15 minutes), so BRL data starts on the Individual plan at $50/month or $500/year, with a 14-day trial, 1,000,000 requests per month, and bursts of 300 per minute. The Business plan at $250/month or $2,500/year covers companies and teams of up to 10 people with the same allowance and priority support. Enterprise terms are by custom agreement.

BCB SGS and Olinda APIs

Free, no key*

Selic, PTAX, Focus, credit, monetary and external-sector series. ODbL licence.

IBGE SIDRA API

Free, no key*

IPCA, IPCA-15, GDP, unemployment, retail and industry tables from the statistics agency.

FXMacroData Individual

$50/month

22 currencies including BRL, 14-day trial, 1,000,000 requests/month, MCP, dashboards, exports.

Takeaway: for Brazil-only research the official APIs cost nothing. The $50 decision is about time saved on multi-source plumbing, timestamps, and cross-currency joins.

* Access terms retrieved from the Banco Central do Brasil open data portal and the IBGE SIDRA API in October 2026. Neither lists a paid tier.

Side-By-Side Comparison

Attribute FXMacroData Banco Central do Brasil APIs (with IBGE SIDRA)
Core job Release-timed FX macro data, calendar, pair dashboards, and AI access across 22 currencies. Official publication of Brazilian monetary, FX, and expectations series.
Entry pricing $50/month Individual; $250/month Business. Free.*
Free tier Always Free: USD only, no key, 100 requests/day, 15-minute delay. BRL needs a paid plan or trial. Everything is free and anonymous.*
Coverage 700+ indicator series across 22 currencies; BRL includes Selic, IPCA, IPCA-15, core inflation, GDP, unemployment, trade, bond yields, and PTAX-based USD/BRL. Deep Brazil-only coverage: SGS series by numeric code, all PTAX bulletins for many currencies, Focus survey statistics; IPCA via IBGE.
Release timing Typically within seconds of official publication, measured publicly; second-level announcement_datetime on every row. PTAX bulletins carry exact quote times; SGS rows carry a reference date only, with no publication timestamp.
API format REST JSON with OpenAPI, header key, SSE streaming, GraphQL, Python/JS SDKs. SGS REST (JSON/CSV, dd/mm/yyyy dates, string values); Olinda OData with Swagger; SIDRA path-based JSON.
Rate limits 1,000,000 requests/month; 300/min, 5,000/hour, 20 concurrent. No published request quota; SGS caps daily-series queries at a 10-year window and "last N" calls at 20 values.
History Point-in-time announcement history with prior values per release. Very long: Selic target (SGS 432) from March 1999; IPCA monthly (SGS 433) from 1980.
AI / MCP Official MCP server for Claude, ChatGPT, Cursor, and other clients. No MCP server; agents must call the raw endpoints and know the series codes.
Licence for programmatic / commercial use Personal and internal use by plan; self-serve Commercial Redistribution add-on at $10/month per block of up to 100 measured users. BCB datasets under the Open Data Commons Open Database License (ODbL): attribution and share-alike apply.*
Best fit Multi-currency FX trading, event studies, alerts, dashboards, and AI agents. Brazil-focused research, official citation, PTAX settlement references, Focus expectations.

* Competitor access terms and licence retrieved from the Banco Central do Brasil open data portal in October 2026.

What The Banco Central do Brasil APIs Publish

The central bank exposes three families of data that matter to BRL traders. The first is SGS, the time-series management system. Every series has a numeric code, and the URL pattern is simple: api.bcb.gov.br/dados/serie/bcdata.sgs.{code}/dados?formato=json. Series 432 is the Selic target set by the Copom, the policy rate that drives Brazil's carry. Series 433 is monthly IPCA inflation and series 13522 is IPCA over 12 months, both republished from IBGE. Thousands of other codes cover credit, money supply, reserves, and the balance of payments.

The second family is Olinda, the central bank's OData platform. Its PTAX service returns each day's exchange-rate bulletins, and its Expectativas service returns the Focus survey: median, mean, standard deviation, and respondent counts for market forecasts of the Selic, IPCA, GDP, and the exchange rate. The third is the Copom decision itself, published as a statement on the central bank website after the second day of each meeting. Eight meetings are scheduled in 2026, and the remaining two fall on 3-4 November and 8-9 December.

IPCA, the inflation target variable, belongs to IBGE rather than the central bank. IBGE publishes it on a pre-announced calendar at 09:00 Brasília time and serves it through SIDRA, where table 1737 holds the monthly and 12-month changes.

Selic target, last 24 months (month-end, SGS series 432)

Percent per year. The last point is the value in force on 5 October 2026.

Takeaway: the Copom hiked from 11.25% in November 2024 to a 15.00% peak in June 2025, held for nine months, then cut at five consecutive meetings to 13.75% in September 2026. Each step is a dated level change in SGS; the moment the decision was announced is not in the series.

Source: Banco Central do Brasil, SGS series 432 (Taxa de juros - Meta Selic definida pelo Copom), retrieved October 2026.

Release Timing, PTAX Bulletins, And Timestamps

PTAX is where the official data is most time-precise. The central bank polls dealers in four windows starting at 10:00, 11:00, 12:00, and 13:00 Brasília time, publishes a bulletin after each, and then publishes the closing PTAX as the simple average of the four. Each bulletin in the Olinda response carries a quote timestamp to the microsecond and a bulletin type. Over the 20 business days from 4 September to 2 October 2026, every closing bulletin was stamped between 13:02 and 13:12 Brasília time.

One PTAX day: USD/BRL bulletins, 2 October 2026 (Brasília time)

10:09 Opening

Buy 5.2078 / sell 5.2084

11:10 Intermediate

Buy 5.2267 / sell 5.2273

12:08 Intermediate

Buy 5.2356 / sell 5.2362

13:03 Intermediate

Buy 5.2228 / sell 5.2234

13:03 Closing PTAX

Buy 5.2232 / sell 5.2238, the average of the four.

Takeaway: PTAX is a well-timed official fixing, published shortly after 13:00. It is a reference rate for settlement and contracts, not a live market quote.

Source: Banco Central do Brasil, Olinda PTAX service, CotacaoMoedaPeriodo for USD, retrieved October 2026.

SGS is different. A row is a reference date and a value as a string, for example {"data":"17/09/2026","valor":"13.75"}. The Selic series records the date the new target took effect, not the evening the Copom statement went out. The decision is announced after 18:30 Brasília time on the second meeting day, so the September cut was public on the evening of 16 September and appears in SGS from 17 September. That is a sensible convention for a rate-level series, but a backtest that joins SGS to intraday USD/BRL prices has to rebuild the announcement time from somewhere else.

FXMacroData stores that time directly. Every release row carries announcement_datetime in epoch seconds, and new releases are typically available within seconds of official publication, with the share available within one second measured by source on the public release-speed record. For Copom nights and 09:00 IPCA mornings, that is the difference between a dated level and a timed event.

API Format, Query Limits, And Developer Experience

The official APIs are easy to start with and uneven to scale. SGS needs no key and returns JSON or CSV, but it has practical edges. Since 26 March 2025 the portal limits date-range queries to 10 years, and a daily series requested without dataInicial or over a longer window returns an error rather than data. The ultimos/{N} shortcut accepts at most 20 values. Dates use dd/mm/yyyy, values arrive as strings, and Olinda's PTAX functions expect MM-DD-YYYY parameters in OData syntax. None of this is hard, but a Brazil pipeline ends up with three date conventions, chunked history loops, and a codebook of series numbers.

FXMacroData uses one REST JSON shape for every currency and indicator, with the key in a header:

curl -H "X-API-Key: YOUR_API_KEY" "https://api.fxmacrodata.com/v1/announcements/brl/policy_rate"

Example response (abridged and illustrative):

{
  "currency": "BRL",
  "indicator": "policy_rate",
  "data": [
    {
      "date": "2026-09-16",
      "val": 13.75,
      "prior": 14.0,
      "announcement_datetime": 1789594200
    }
  ]
}

FXMacroData row

  • announcement_datetime: when the decision became public.
  • val and prior as numbers, ready for change logic.
  • Same shape for IPCA inflation, GDP, and USD or EUR series.

BCB SGS row

  • data: reference date in dd/mm/yyyy.
  • valor: the value as a string.
  • Meaning comes from the series code you requested.

Takeaway: the SGS row is clean provenance for a level on a date. The FXMacroData row adds the event time and prior value an automated BRL strategy needs.

Beyond REST, FXMacroData offers SSE streaming for release events, GraphQL, Python and JavaScript SDKs, and integration guides for MetaTrader, TradingView, and NinjaTrader. The API reference lists the full surface.

Licence And Commercial Use

The central bank's open data portal publishes its datasets, including the Selic and PTAX series, under the Open Data Commons Open Database License (ODbL). ODbL permits commercial use, but it is a share-alike licence: you must attribute the source, and if you publicly use a derived database you must offer it under the same terms. For an internal model that is rarely an issue; for a product that redistributes a modified Brazilian database it needs a legal read. IBGE sets its own reuse terms, and citing IBGE as the source is the expected practice. Neither publisher offers a service commitment for its APIs.

FXMacroData separates use cases by plan. Individual covers a person's own research and tools, Business covers companies and teams of up to 10 people, and anyone showing data to their own users can add Commercial Redistribution at $10/month per block of up to 100 measured users, self-serve.

How FXMacroData Builds On BCB And IBGE Data

FXMacroData does not replace the Brazilian publishers. It reads the same official releases from the central bank and IBGE, including the Selic target and IPCA, and labels every series with its source. The FX reference data for USD/BRL is drawn from the central bank's PTAX system, and the public FX sources listing names it with the attribution "Banco Central do Brasil / Sistema Ptax".

What FXMacroData adds is everything around the official number: the release timestamp, the prior value, a release calendar with Copom and IPCA dates, the USD/BRL pair dashboard, central bank statements on the BRL press-release page, Brazilian bond yields, and the same schema for the Federal Reserve side of the pair. Trading-hour context is on the FX sessions dashboard.

Where The Banco Central do Brasil APIs Are Genuinely Stronger

  • Authority. SGS and PTAX are the source of record. For contract settlement, audit, or academic citation, the original endpoint is the reference.
  • Price. Free, anonymous access with no account is hard to argue with for Brazil-only work.
  • Depth. Thousands of SGS series, PTAX bulletins for many currencies, and full Focus survey statistics go well beyond what an FX macro feed needs to carry.
  • History. The Selic target runs from March 1999 and monthly IPCA from 1980 in a single series code.
  • Expectations. Focus gives distribution statistics and respondent counts, not just a consensus median.

Where FXMacroData Is Stronger For BRL Traders

FXMacroData strengths

  • Second-level announcement time on every release.
  • One schema for BRL and 21 other currencies.
  • Calendar, pair dashboards, exports, widgets.
  • MCP server for AI assistants.

FXMacroData tradeoffs

  • Paid plan needed for BRL data.
  • Not the publisher of record.
  • Curated FX-relevant series, not every SGS code.

BCB API strengths

  • Free, official, no key.
  • Timed PTAX bulletins.
  • Long history and Focus detail.

BCB API tradeoffs

  • No publication timestamp on SGS rows.
  • 10-year window and 20-value limits.
  • Brazil only; IPCA lives at IBGE.
  • No calendar feed or MCP access.

Takeaway: the official APIs win on authority, depth, and cost. FXMacroData wins when time of publication and cross-currency consistency drive the decision.

The practical gap shows up in a normal BRL week. A Copom decision lands after 18:30 on a Wednesday, IPCA arrives at 09:00 a few days later, and US data hits the other side of USD/BRL in between. Building that from official sources means three APIs, three date formats, a hand-maintained calendar, and timestamps reconstructed from press statements. FXMacroData delivers it as one feed, and an AI assistant connected through MCP can answer "what did the Copom do and how does the Selic compare with the Fed funds rate?" without a series codebook.

A Copom week, two ways

Official-API route

Poll SGS 432 for the new level the next day, read the Copom statement for timing, fetch IPCA from SIDRA, and join USD data from a separate US source.

FXMacroData route

Read the calendar, receive the Selic and IPCA releases with announcement timestamps, and compare them with US rows in the same schema.

Takeaway: the data is the same official data; the difference is how many joins and conventions your team maintains.

Decision Matrix

Use case Better fit Why
Brazil-only academic or policy research BCB and IBGE APIs Free, official, deep history, citable.
PTAX settlement or contract reference BCB Olinda PTAX The original bulletins are the legal reference.
Focus expectations analysis BCB Olinda Expectativas Full survey distribution and respondent counts.
Copom and IPCA event studies on USD/BRL FXMacroData Announcement timestamps define when data was knowable.
Carry and differential models across currencies FXMacroData One schema for BRL, USD, EUR, and 19 more currencies.
AI assistant answering BRL questions FXMacroData MCP tools instead of series codes and date formats.
Quant desk running research and live signals Both BCB for deep history and Focus; FXMacroData for the release layer.

Recommendation

Use the Banco Central do Brasil APIs, with IBGE SIDRA for IPCA, when the work is Brazil-focused and research-grade: long history, official citation, PTAX bulletins, or Focus survey analysis. They are free, authoritative, and FXMacroData relies on them too.

Use FXMacroData when BRL sits inside a broader FX workflow: trading USD/BRL around Copom and IPCA, comparing the Selic with other policy rates, running alerts, or giving an AI assistant current, source-labelled macro context. Compare the plans, read the API reference, and check the measured release-speed record before deciding. AI-focused teams can start from the AI trading guides.

Bottom line: the Banco Central do Brasil APIs are the right free source of record for Selic, PTAX, and Focus data. FXMacroData is the right paid layer for FX teams that need each Copom decision and IPCA print timestamped, available typically within seconds of publication, and comparable with 21 other currencies in one schema. Many BRL desks use both.

Sources Checked

The official claims in this article come from the pages and API responses below, checked in October 2026.

Selic target (SGS 432)

API URL pattern, ODbL licence, 10-year query window.

View dataset

PTAX bulletins

All daily bulletins, Olinda resources, methodology, licence.

View dataset · Swagger

Focus expectations

Olinda Expectativas service for market forecasts.

View service

Copom

Meeting calendar and decision statements.

Calendar · Statements

IBGE SIDRA API

IPCA table 1737 and the SIDRA query syntax.

View API

FXMacroData plans and docs

Plans, allowances, API reference, and release-speed record.

View plans

Takeaway: every official figure here, from the Selic path to the 2 October PTAX bulletins, can be reproduced from the free BCB and IBGE APIs.

FXMacroData API data

Data endpoints used in this article

No FXMacroData API data endpoint is attributed to this article. Its evidence base is identified in the article and source links.

Explore the FXMacroData API reference

Frequently asked

Questions about this topic

Is the Banco Central do Brasil API or FXMacroData better for BRL data?

The Banco Central do Brasil APIs are better for free, official Brazil-only research: SGS series such as the Selic target, every PTAX bulletin, and Focus survey statistics. FXMacroData is better when BRL is part of a multi-currency FX workflow that needs second-level announcement timestamps, a release calendar, one schema across 22 currencies, and MCP access.

How do I get the Selic rate from the BCB API?

The Selic target set by the Copom is SGS series 432. Request https://api.bcb.gov.br/dados/serie/bcdata.sgs.432/dados?formato=json with dataInicial and dataFinal in dd/mm/yyyy format. Date-range queries are limited to 10 years, so longer histories need several requests.

What time is the PTAX rate published?

The central bank polls dealers in four windows starting at 10:00, 11:00, 12:00, and 13:00 Brasília time and publishes a bulletin after each. The closing PTAX is the average of the four; from 4 September to 2 October 2026 it was stamped between about 13:02 and 13:12 Brasília time.

Where does IPCA data come from?

IPCA is produced by IBGE, which publishes it at 09:00 Brasília time and serves it through the SIDRA API (table 1737). The central bank republishes it in SGS as series 433 (monthly) and 13522 (12-month).

Does FXMacroData use Banco Central do Brasil data?

Yes. FXMacroData reads the same official releases from the central bank and IBGE, labels each series with its source, and uses the central bank's PTAX system for USD/BRL reference rates. It adds release timestamps, prior values, a calendar, pair dashboards, and MCP access.

Can I use BCB data commercially?

The central bank's open data portal publishes its datasets under the Open Data Commons Open Database License (ODbL), which allows commercial use with attribution and requires share-alike terms for publicly used derived databases. Check the licence against your specific product.

Keep reading

Blogroll

AI Answer-Ready

Key Facts

Page
FXMacroData vs Banco Central do Brasil API: Selic, IPCA and PTAX Data for BRL Traders
Section
Articles
Canonical URL
https://fxmacrodata.com/articles/fxmacrodata-vs-banco-central-do-brasil-api
Source
FXMacroData editorial and official publisher references
Last Updated
2026-10-05 11:45 UTC

Provenance And Trust

Cite the canonical URL and source field above. Where available, this page maps to official publisher releases and timestamped updates.

Quick Q&A

Is the Banco Central do Brasil API or FXMacroData better for BRL data? The Banco Central do Brasil APIs are better for free, official Brazil-only research: SGS series such as the Selic target, every PTAX bulletin, and Focus survey statistics. FXMacroData is better when BRL is part of a multi-currency FX workflow that needs second-level announcement timestamps, a release calendar, one schema across 22 currencies, and MCP access.

How do I get the Selic rate from the BCB API? The Selic target set by the Copom is SGS series 432. Request https://api.bcb.gov.br/dados/serie/bcdata.sgs.432/dados?formato=json with dataInicial and dataFinal in dd/mm/yyyy format. Date-range queries are limited to 10 years, so longer histories need several requests.

What time is the PTAX rate published? The central bank polls dealers in four windows starting at 10:00, 11:00, 12:00, and 13:00 Brasília time and publishes a bulletin after each. The closing PTAX is the average of the four; from 4 September to 2 October 2026 it was stamped between about 13:02 and 13:12 Brasília time.

Where does IPCA data come from? IPCA is produced by IBGE, which publishes it at 09:00 Brasília time and serves it through the SIDRA API (table 1737). The central bank republishes it in SGS as series 433 (monthly) and 13522 (12-month).

Prompt Packs

Use these in ChatGPT, Claude, Gemini, Mistral, Perplexity, or Grok for consistent source-aware outputs.

Share page X LinkedIn Email