@allratestoday/bcb-exchange-rate 1.3.5 โ†’ 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +84 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/@allratestoday%2Fbcb-exchange-rate.svg)](https://github.com/AllRates-Today/bcb-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/bcb-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/BRL today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbcb%3Fsource%3DUSD%26target%3DBRL&query=%24.rate&label=USD%2FBRL%20published%20by%20Banco%20Central%20do%20Brasil&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/bcb/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbcb%3Fsource%3DUSD%26target%3DBRL&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/bcb/)
7
9
 
8
10
  **Official Banco Central do Brasil (Brazil) daily exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing โ€” not market estimates, but the numbers Banco Central do Brasil itself prints, every business day.**
9
11
 
@@ -33,6 +35,79 @@ console.log(r.rate_date, r.rates.length); // the central bank's latest published
33
35
 
34
36
  The open endpoint serves the *latest* table only and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables, history, and CSV/XML/Excel output.
35
37
 
38
+ ## ๐Ÿ“ˆ Latest published table
39
+
40
+ Today's full Banco Central do Brasil table, straight from the central bank's latest publication. On GitHub it is refreshed by [a daily Action](.github/workflows/daily-table.yml) that reads the keyless endpoint above and commits only when the central bank publishes a new table; the copy on npm is as of the package's publish date.
41
+
42
+ <!-- daily-table:start -->
43
+ Published **2026-10-08** by Banco Central do Brasil โ€” 312 rates, first 60 shown. Updated 2026-10-08.
44
+
45
+ | Base | Quote | Type | Rate |
46
+ | --- | --- | --- | ---: |
47
+ | AED | BRL | buy | 1.3644 |
48
+ | AED | BRL | sell | 1.3647 |
49
+ | AFN | BRL | buy | 0.07714 |
50
+ | AFN | BRL | sell | 0.07739 |
51
+ | ALL | BRL | buy | 0.06078 |
52
+ | ALL | BRL | sell | 0.06146 |
53
+ | AMD | BRL | buy | 0.01381 |
54
+ | AMD | BRL | sell | 0.01388 |
55
+ | AOA | BRL | buy | 0.005409 |
56
+ | AOA | BRL | sell | 0.00549 |
57
+ | ARS | BRL | buy | 0.003299 |
58
+ | ARS | BRL | sell | 0.003302 |
59
+ | AUD | BRL | buy | 3.4814 |
60
+ | AUD | BRL | sell | 3.4823 |
61
+ | AWG | BRL | buy | 2.7841 |
62
+ | AWG | BRL | sell | 2.8157 |
63
+ | AZN | BRL | buy | 2.9392 |
64
+ | AZN | BRL | sell | 2.9569 |
65
+ | BBD | BRL | buy | 2.4685 |
66
+ | BBD | BRL | sell | 2.5083 |
67
+ | BDT | BRL | buy | 0.04058 |
68
+ | BDT | BRL | sell | 0.04071 |
69
+ | BHD | BRL | buy | 13.2785 |
70
+ | BHD | BRL | sell | 13.2906 |
71
+ | BIF | BRL | buy | 0.001663 |
72
+ | BIF | BRL | sell | 0.001678 |
73
+ | BMD | BRL | buy | 5.0113 |
74
+ | BMD | BRL | sell | 5.0119 |
75
+ | BND | BRL | buy | 3.9087 |
76
+ | BND | BRL | sell | 3.9097 |
77
+ | BOB | BRL | buy | 0.4169 |
78
+ | BOB | BRL | sell | 0.4222 |
79
+ | BSD | BRL | buy | 5.0113 |
80
+ | BSD | BRL | sell | 5.0119 |
81
+ | BTN | BRL | buy | 0.05178 |
82
+ | BTN | BRL | sell | 0.05179 |
83
+ | BWP | BRL | buy | 0.3443 |
84
+ | BWP | BRL | sell | 0.3839 |
85
+ | BYN | BRL | buy | 1.6416 |
86
+ | BYN | BRL | sell | 1.6487 |
87
+ | BZD | BRL | buy | 2.4781 |
88
+ | BZD | BRL | sell | 2.5057 |
89
+ | CAD | BRL | buy | 3.5169 |
90
+ | CAD | BRL | sell | 3.5181 |
91
+ | CDF | BRL | buy | 0.00216 |
92
+ | CDF | BRL | sell | 0.002171 |
93
+ | CHF | BRL | buy | 6.0124 |
94
+ | CHF | BRL | sell | 6.0138 |
95
+ | CLF | BRL | buy | 210.1038 |
96
+ | CLF | BRL | sell | 210.1289 |
97
+ | CLP | BRL | buy | 0.005109 |
98
+ | CLP | BRL | sell | 0.005115 |
99
+ | CNH | BRL | buy | 0.7473 |
100
+ | CNH | BRL | sell | 0.7474 |
101
+ | CNY | BRL | buy | 0.7477 |
102
+ | CNY | BRL | sell | 0.7478 |
103
+ | COP | BRL | buy | 0.001557 |
104
+ | COP | BRL | sell | 0.001558 |
105
+ | COU | BRL | buy | 0.6485 |
106
+ | COU | BRL | sell | 0.6485 |
107
+
108
+ [Full table on the Banco Central do Brasil rates page](https://allratestoday.com/central-bank-rates-api/bcb/) ยท Source: [Official rates published by BCB, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bcb/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
109
+ <!-- daily-table:end -->
110
+
36
111
  ## ๐Ÿ”‘ Get your API key
37
112
 
38
113
  Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) โ€” no credit card required. Latest rates are on every plan, including free.
@@ -85,10 +160,10 @@ const pair = await getRate('USD', 'BRL', { apiKey: 'art_live_...' });
85
160
  {
86
161
  bank: 'bcb',
87
162
  name: 'Banco Central do Brasil',
88
- rate_date: '2026-10-06', // Banco Central do Brasil's own publication date
163
+ rate_date: '2026-10-08', // Banco Central do Brasil's own publication date
89
164
  source: 'USD',
90
165
  target: 'BRL',
91
- rate: 4.9698,
166
+ rate: 5.0119,
92
167
  rate_type: 'sell',
93
168
  derived: false,
94
169
  method: 'published',
@@ -113,10 +188,10 @@ console.log(table.rate_date, table.rates.length);
113
188
  {
114
189
  bank: 'bcb',
115
190
  name: 'Banco Central do Brasil',
116
- rate_date: '2026-10-06',
191
+ rate_date: '2026-10-08',
117
192
  rates: [
118
- { "base": "USD", "quote": "BRL", "type": "sell", "value": 4.9698 },
119
- { "base": "USD", "quote": "BRL", "type": "buy", "value": 4.9692 },
193
+ { "base": "USD", "quote": "BRL", "type": "sell", "value": 5.0119 },
194
+ { "base": "USD", "quote": "BRL", "type": "buy", "value": 5.0113 },
120
195
  // โ€ฆ the rest of the published table (156 currencies vs BRL)
121
196
  ],
122
197
  disclaimer: 'โ€ฆ'
@@ -156,7 +231,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
156
231
  import { getHistory } from '@allratestoday/bcb-exchange-rate';
157
232
 
158
233
  const series = await getHistory(
159
- { source: 'USD', target: 'BRL', from: '2026-01-01', to: '2026-10-06' },
234
+ { source: 'USD', target: 'BRL', from: '2026-01-01', to: '2026-10-08' },
160
235
  { apiKey: 'art_live_...' }
161
236
  );
162
237
  ```
@@ -169,11 +244,11 @@ const series = await getHistory(
169
244
  source: 'USD',
170
245
  target: 'BRL',
171
246
  from: '2026-01-01',
172
- to: '2026-10-06',
247
+ to: '2026-10-08',
173
248
  count: 152,
174
249
  rates: [
175
250
  // one entry per publication date
176
- { date: '2026-10-06', rate: 4.9698, rate_type: 'sell', derived: false, method: 'published' },
251
+ { date: '2026-10-08', rate: 5.0119, rate_type: 'sell', derived: false, method: 'published' },
177
252
  // โ€ฆ
178
253
  ],
179
254
  disclaimer: 'โ€ฆ'
@@ -223,6 +298,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bcb/latest?format=xml&api_ke
223
298
 
224
299
  - MCP server: `npx -y @allratestoday/central-bank-mcp` (stdio) or the hosted endpoint `https://allratestoday.com/api/mcp` โ€” tools for official rates, history, cross-bank comparison and publication calendars
225
300
  - Already using the general SDK or MCP server? Since 2026-10-01 [`@allratestoday/sdk`](https://www.npmjs.com/package/@allratestoday/sdk) 1.4+ has `officialRates('bcb')` and [`@allratestoday/mcp-server`](https://www.npmjs.com/package/@allratestoday/mcp-server) 0.6+ has a `get_official_rates` tool โ€” both return this source's latest table with no key, so you can add it without a second dependency
301
+ - Claude Code plugin (no key): `/plugin marketplace add AllRates-Today/claude-code-plugin` then `/plugin install allratestoday@allratestoday` โ€” bundles both MCP servers plus an `/official-rate bcb ...` command
226
302
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
227
303
 
228
304
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/bcb-exchange-rate",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
4
4
  "description": "Official Banco Central do Brasil (Brazil) daily exchange rates โ€” 156 currencies vs BRL, history since 2016. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "bcb",