[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Banco Central do Brasil PTAX dollar rates](https://spiral.ai/integrations/n8n/banco-central-do-brasil-ptax-dollar-rates)

# How to Use Banco Central do Brasil PTAX dollar rates in n8n

Returns BCB's published USD/BRL buying and selling reference rates for a date or period. Use it for dollar benchmarking and historical comparisons; PTAX currency rates covers other currencies.

|  |  |
| --- | --- |
| Model | Banco Central do Brasil PTAX dollar rates |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Banco Central do Brasil PTAX dollar rates in n8n

- Each weekday, use Banco Central do Brasil PTAX dollar rates to check the newest available USD/BRL buying and selling reference rates. Report a change only when a newer quotation date is available.
- Every Monday at 9am: use Banco Central do Brasil PTAX dollar rates to look this up and give me the result as a table.
- Pull the latest numbers from Banco Central do Brasil PTAX dollar rates and tell me what changed since last week.
- Check Banco Central do Brasil PTAX dollar rates and summarize what you find in three bullet points.
- Pull the newest data from Banco Central do Brasil PTAX dollar rates and give me the result as a table.

## How to set up Banco Central do Brasil PTAX dollar rates in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Banco Central do Brasil PTAX dollar rates in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Banco Central do Brasil PTAX dollar rates, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Banco Central do Brasil PTAX dollar rates**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "bcb-gov-br/economic-data/ptax_usd",
    "input": {
      "date": "<date>"
    }
  }'
```

Then paste one of the prompts above: n8n finds Banco Central do Brasil PTAX dollar rates on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## Banco Central do Brasil PTAX dollar rates tools and prices

- [Banco Central do Brasil open data · Ptax usd](https://spiral.ai/tools/alexandria/bcb-gov-br/economic-data/ptax_usd) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| top | 1 to 1000 | 100 | Rows per page (OData $top). |
| date |  | — | One quotation date, YYYY-MM-DD. Mutually exclusive with the range. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| skip | 0 to … | 0 | Rows to skip (OData $skip); pass `next_skip` from the previous page. |
| end_date |  | — | Range end (inclusive), YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| start_date |  | — | Range start (inclusive), YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |

## What can you do with Banco Central do Brasil PTAX dollar rates in n8n?

Keep a recurring Brazil briefing current as BCB publishes new observations and statistics. A scheduled agent can compare successive releases while respecting the different reporting periods used for forecasts, credit, payments, and exchange rates.

### Prepare a Brazil currency exposure report

Find the relevant BCB datasets, inspect Olinda resources, and identify supported PTAX currencies. Compare dollar and euro reference rates with Selic observations and Focus expectations to explain changes in an importer's planning assumptions.

### Review borrowing and foreign-currency budget assumptions

Build a Brazilian business budget review using bank lending averages, Selic history, Focus expectations, and dollar and euro reference rates. Use catalog records, Olinda descriptions, and the currency directory to document the chosen measures.

### Assess conditions for entering Brazil

Prepare a market-entry evidence pack covering local borrowing costs, monetary conditions, published economic expectations, payment usage, and foreign-currency benchmarks. Catalog discovery, service descriptions, and the PTAX currency directory help identify the data behind each section.

### Build a BCB data dashboard

Create separate views for lending averages, Focus expectations, payment activity, Pix adoption, exchange-rate benchmarks, and SGS observations. Keep a data dictionary from catalog records, Olinda descriptions, and PTAX currency metadata so readers can inspect what each chart measures.

### Check a currency benchmark calculation

Identify the PTAX currency type, retrieve dollar and foreign-currency bulletins, and reproduce a BRL reference-rate calculation. Add the relevant SGS observations when a report also compares the currency movement with monetary conditions.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## Banco Central do Brasil PTAX dollar rates in other agents

- [Amp](https://spiral.ai/integrations/amp/banco-central-do-brasil-ptax-dollar-rates)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/banco-central-do-brasil-ptax-dollar-rates)
- [Claude](https://spiral.ai/integrations/claude-desktop/banco-central-do-brasil-ptax-dollar-rates)
- [Claude Code](https://spiral.ai/integrations/claude-code/banco-central-do-brasil-ptax-dollar-rates)
- [Cline](https://spiral.ai/integrations/cline/banco-central-do-brasil-ptax-dollar-rates)
- [Codex](https://spiral.ai/integrations/codex/banco-central-do-brasil-ptax-dollar-rates)
- [Cursor](https://spiral.ai/integrations/cursor/banco-central-do-brasil-ptax-dollar-rates)
- [Devin](https://spiral.ai/integrations/devin/banco-central-do-brasil-ptax-dollar-rates)
- [dots](https://spiral.ai/integrations/dots/banco-central-do-brasil-ptax-dollar-rates)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/banco-central-do-brasil-ptax-dollar-rates)
- [Gemini](https://spiral.ai/integrations/gemini/banco-central-do-brasil-ptax-dollar-rates)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/banco-central-do-brasil-ptax-dollar-rates)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/banco-central-do-brasil-ptax-dollar-rates)
- [goose](https://spiral.ai/integrations/goose/banco-central-do-brasil-ptax-dollar-rates)
- [Grok](https://spiral.ai/integrations/grok/banco-central-do-brasil-ptax-dollar-rates)
- [Grok Build](https://spiral.ai/integrations/grok-build/banco-central-do-brasil-ptax-dollar-rates)
- [Hermes](https://spiral.ai/integrations/hermes/banco-central-do-brasil-ptax-dollar-rates)
- [Instinct](https://spiral.ai/integrations/instinct/banco-central-do-brasil-ptax-dollar-rates)
- [Manus](https://spiral.ai/integrations/manus/banco-central-do-brasil-ptax-dollar-rates)
- [Muse](https://spiral.ai/integrations/muse/banco-central-do-brasil-ptax-dollar-rates)
- [Muse Code](https://spiral.ai/integrations/muse-code/banco-central-do-brasil-ptax-dollar-rates)
- [Notion](https://spiral.ai/integrations/notion/banco-central-do-brasil-ptax-dollar-rates)
- [OpenClaw](https://spiral.ai/integrations/openclaw/banco-central-do-brasil-ptax-dollar-rates)
- [opencode](https://spiral.ai/integrations/opencode/banco-central-do-brasil-ptax-dollar-rates)
- [Perplexity](https://spiral.ai/integrations/perplexity/banco-central-do-brasil-ptax-dollar-rates)
- [Raycast](https://spiral.ai/integrations/raycast/banco-central-do-brasil-ptax-dollar-rates)
- [VS Code](https://spiral.ai/integrations/vscode/banco-central-do-brasil-ptax-dollar-rates)
- [Windsurf](https://spiral.ai/integrations/windsurf/banco-central-do-brasil-ptax-dollar-rates)
- [Zapier](https://spiral.ai/integrations/zapier/banco-central-do-brasil-ptax-dollar-rates)

## More n8n guides

- [Banco Central do Brasil PTAX currency rates](https://spiral.ai/integrations/n8n/banco-central-do-brasil-ptax-currency-rates)
- [Banco Central do Brasil Pix statistics](https://spiral.ai/integrations/n8n/banco-central-do-brasil-pix-statistics)
- [Banco Central do Brasil PTAX currency directory](https://spiral.ai/integrations/n8n/banco-central-do-brasil-ptax-currency-directory)
- [Banco Central do Brasil SGS time series](https://spiral.ai/integrations/n8n/banco-central-do-brasil-sgs-time-series)
- [Banco Central do Brasil Olinda service details](https://spiral.ai/integrations/n8n/banco-central-do-brasil-olinda-service-details)
- [Banco Central do Brasil bank lending rates](https://spiral.ai/integrations/n8n/banco-central-do-brasil-bank-lending-rates)

## Questions about Banco Central do Brasil PTAX dollar rates in n8n

**Can n8n use Banco Central do Brasil PTAX dollar rates?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Banco Central do Brasil PTAX dollar rates like any built-in tool.

**How much does Banco Central do Brasil PTAX dollar rates cost in n8n?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use Banco Central do Brasil PTAX dollar rates in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Banco Central do Brasil PTAX dollar rates on its own Alexandria account.

**How long does it take to set up Banco Central do Brasil PTAX dollar rates in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Banco Central do Brasil PTAX dollar rates runs?**

Banco Central do Brasil PTAX dollar rates runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**How quickly do BCB payment statistics become available?**

Monthly payment-instrument statistics are updated 17 days after month-end, while quarterly instruments are updated two months after quarter-end. SPI statistics have a daily update frequency.

**How far back do Pix statistics go?**

The Pix catalog gives November 30, 2020 as its coverage start and specifies monthly updates. Registered-key and registered-user stocks are month-end snapshots.

**Are Focus figures BCB's own forecasts?**

Focus statistics summarize expectations submitted by banks, asset managers, and other participating institutions. Statistics are calculated daily, and the market report appears on the first business day of the week.

**Do published lending rates represent the rate a borrower will receive?**

They are averages of completed transactions over five business days, weighted by contracted amounts. BCB says rates can differ among customers at the same institution, and some institutions may be absent because they made no relevant loans or did not report on time.

**Do BCB cash statistics measure cash purchases?**

Cash-in-circulation data counts banknotes and coins outstanding and excludes commemorative coins. The payment-instrument statistics cover cash withdrawals rather than all purchases made with cash.

