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

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 +73 -70
  2. package/package.json +11 -2
package/README.md CHANGED
@@ -37,73 +37,75 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## ๐Ÿ“ˆ Latest published table
39
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.
40
+ [![Latest Banco Central do Brasil table](https://allratestoday.com/api/open/central-bank/bcb/table.svg)](https://allratestoday.com/central-bank-rates-api/bcb/)
41
+
42
+ The image is rendered live from the keyless endpoint above, so it follows the central bank's publications on npm and on GitHub alike without a new release. The text copy below is there for search and copy-paste: on GitHub [a daily Action](.github/workflows/daily-table.yml) refreshes it whenever the central bank publishes a new table; on npm it is as of the package's publish date.
41
43
 
42
44
  <!-- daily-table:start -->
43
- Published **2026-10-08** by Banco Central do Brasil โ€” 312 rates, first 60 shown. Updated 2026-10-08.
45
+ Published **2026-10-13** by Banco Central do Brasil โ€” 312 rates, first 60 shown. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
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 |
49
+ | AED | BRL | buy | 1.3638 |
50
+ | AED | BRL | sell | 1.364 |
51
+ | AFN | BRL | buy | 0.07706 |
52
+ | AFN | BRL | sell | 0.07731 |
53
+ | ALL | BRL | buy | 0.06101 |
54
+ | ALL | BRL | sell | 0.06166 |
53
55
  | 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 |
56
+ | AMD | BRL | sell | 0.01389 |
57
+ | AOA | BRL | buy | 0.005407 |
58
+ | AOA | BRL | sell | 0.005487 |
59
+ | ARS | BRL | buy | 0.003301 |
58
60
  | 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 |
61
+ | AUD | BRL | buy | 3.4978 |
62
+ | AUD | BRL | sell | 3.4987 |
63
+ | AWG | BRL | buy | 2.7828 |
64
+ | AWG | BRL | sell | 2.8144 |
65
+ | AZN | BRL | buy | 2.9378 |
66
+ | AZN | BRL | sell | 2.9555 |
67
+ | BBD | BRL | buy | 2.4674 |
68
+ | BBD | BRL | sell | 2.5072 |
69
+ | BDT | BRL | buy | 0.04048 |
70
+ | BDT | BRL | sell | 0.04088 |
71
+ | BHD | BRL | buy | 13.2583 |
72
+ | BHD | BRL | sell | 13.274 |
73
+ | BIF | BRL | buy | 0.001664 |
74
+ | BIF | BRL | sell | 0.001677 |
75
+ | BMD | BRL | buy | 5.009 |
76
+ | BMD | BRL | sell | 5.0096 |
77
+ | BND | BRL | buy | 3.9127 |
78
+ | BND | BRL | sell | 3.9153 |
79
+ | BOB | BRL | buy | 0.4249 |
80
+ | BOB | BRL | sell | 0.4304 |
81
+ | BSD | BRL | buy | 5.009 |
82
+ | BSD | BRL | sell | 5.0096 |
83
+ | BTN | BRL | buy | 0.05257 |
84
+ | BTN | BRL | sell | 0.05258 |
85
+ | BWP | BRL | buy | 0.3456 |
86
+ | BWP | BRL | sell | 0.3857 |
87
+ | BYN | BRL | buy | 1.659 |
88
+ | BYN | BRL | sell | 1.669 |
89
+ | BZD | BRL | buy | 2.477 |
90
+ | BZD | BRL | sell | 2.5045 |
91
+ | CAD | BRL | buy | 3.5232 |
92
+ | CAD | BRL | sell | 3.5244 |
93
+ | CDF | BRL | buy | 0.002159 |
94
+ | CDF | BRL | sell | 0.002176 |
95
+ | CHF | BRL | buy | 6.0139 |
96
+ | CHF | BRL | sell | 6.019 |
97
+ | CLF | BRL | buy | 210.0975 |
98
+ | CLF | BRL | sell | 210.1227 |
99
+ | CLP | BRL | buy | 0.005105 |
100
+ | CLP | BRL | sell | 0.005108 |
101
+ | CNH | BRL | buy | 0.7485 |
102
+ | CNH | BRL | sell | 0.7486 |
103
+ | CNY | BRL | buy | 0.7483 |
104
+ | CNY | BRL | sell | 0.7484 |
105
+ | COP | BRL | buy | 0.001576 |
106
+ | COP | BRL | sell | 0.001577 |
107
+ | COU | BRL | buy | 0.6577 |
108
+ | COU | BRL | sell | 0.6578 |
107
109
 
108
110
  [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
111
  <!-- daily-table:end -->
@@ -160,10 +162,10 @@ const pair = await getRate('USD', 'BRL', { apiKey: 'art_live_...' });
160
162
  {
161
163
  bank: 'bcb',
162
164
  name: 'Banco Central do Brasil',
163
- rate_date: '2026-10-08', // Banco Central do Brasil's own publication date
165
+ rate_date: '2026-10-13', // Banco Central do Brasil's own publication date
164
166
  source: 'USD',
165
167
  target: 'BRL',
166
- rate: 5.0119,
168
+ rate: 5.0096,
167
169
  rate_type: 'sell',
168
170
  derived: false,
169
171
  method: 'published',
@@ -188,10 +190,10 @@ console.log(table.rate_date, table.rates.length);
188
190
  {
189
191
  bank: 'bcb',
190
192
  name: 'Banco Central do Brasil',
191
- rate_date: '2026-10-08',
193
+ rate_date: '2026-10-13',
192
194
  rates: [
193
- { "base": "USD", "quote": "BRL", "type": "sell", "value": 5.0119 },
194
- { "base": "USD", "quote": "BRL", "type": "buy", "value": 5.0113 },
195
+ { "base": "USD", "quote": "BRL", "type": "sell", "value": 5.0096 },
196
+ { "base": "USD", "quote": "BRL", "type": "buy", "value": 5.009 },
195
197
  // โ€ฆ the rest of the published table (156 currencies vs BRL)
196
198
  ],
197
199
  disclaimer: 'โ€ฆ'
@@ -231,7 +233,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
231
233
  import { getHistory } from '@allratestoday/bcb-exchange-rate';
232
234
 
233
235
  const series = await getHistory(
234
- { source: 'USD', target: 'BRL', from: '2026-01-01', to: '2026-10-08' },
236
+ { source: 'USD', target: 'BRL', from: '2026-01-01', to: '2026-10-13' },
235
237
  { apiKey: 'art_live_...' }
236
238
  );
237
239
  ```
@@ -244,11 +246,11 @@ const series = await getHistory(
244
246
  source: 'USD',
245
247
  target: 'BRL',
246
248
  from: '2026-01-01',
247
- to: '2026-10-08',
249
+ to: '2026-10-13',
248
250
  count: 152,
249
251
  rates: [
250
252
  // one entry per publication date
251
- { date: '2026-10-08', rate: 5.0119, rate_type: 'sell', derived: false, method: 'published' },
253
+ { date: '2026-10-13', rate: 5.0096, rate_type: 'sell', derived: false, method: 'published' },
252
254
  // โ€ฆ
253
255
  ],
254
256
  disclaimer: 'โ€ฆ'
@@ -299,6 +301,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bcb/latest?format=xml&api_ke
299
301
  - 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
300
302
  - 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
303
  - 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
304
+ - Need dated tables or history for an evaluation? Agents can self-issue a trial key with no signup: `POST https://allratestoday.com/api/agent/keys` (send `Content-Type: application/json`) returns a 100-call key valid 7 days; the MCP servers expose it as `request_trial_key`
302
305
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
303
306
 
304
307
  ## โš–๏ธ Published vs derived rates
@@ -367,9 +370,9 @@ getRate('USD', 'BRL', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
367
370
 
368
371
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
369
372
 
370
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) โ€” one CSV per institution (`rates/bcb.csv`)
373
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ€” one CSV per institution (`rates/bcb.csv`)
371
374
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
372
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/bcb/latest.json`
375
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/bcb/latest.json`
373
376
 
374
377
  ## ๐Ÿ”— Links
375
378
 
package/package.json CHANGED
@@ -1,19 +1,28 @@
1
1
  {
2
2
  "name": "@allratestoday/bcb-exchange-rate",
3
- "version": "1.3.7",
3
+ "version": "1.3.13",
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",
7
+ "banco-central-do-brasil",
7
8
  "banco",
8
9
  "central",
9
- "do",
10
10
  "brasil",
11
11
  "exchange-rate",
12
12
  "exchange-rates",
13
+ "exchangerate",
14
+ "exchange rate",
15
+ "brl-exchange-rate",
13
16
  "currency",
14
17
  "forex",
15
18
  "fx",
16
19
  "brl",
20
+ "currency-api",
21
+ "currency-exchange-rates",
22
+ "forex-api",
23
+ "currency-conversion",
24
+ "currency-exchange",
25
+ "currency-rates",
17
26
  "central-bank",
18
27
  "official-rates",
19
28
  "brazil",