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

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 +71 -67
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -20,6 +20,10 @@
20
20
 
21
21
  > **Official rate, not mid-market:** every value here is a number Banco Central do Brasil itself published, fixed once printed and carrying the central bank's own `rate_date` โ€” what filings and audits require. Need the live mid-market rate for pricing or display instead? Use the [mid-market API](https://allratestoday.com/docs/) or [`@allratestoday/sdk`](https://www.npmjs.com/package/@allratestoday/sdk). The two can diverge by several percent.
22
22
 
23
+ ## ๐Ÿ”‘ Get your API key
24
+
25
+ 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.
26
+
23
27
  ## โšก Try it without a key
24
28
 
25
29
  The latest Banco Central do Brasil table is also served keyless, CORS-open and edge-cached, for evaluation, embeds and AI agents:
@@ -33,87 +37,86 @@ const r = await fetch('https://allratestoday.com/api/open/central-bank/bcb').the
33
37
  console.log(r.rate_date, r.rates.length); // the central bank's latest published table, no key
34
38
  ```
35
39
 
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.
40
+ The open endpoint serves the *latest* table only (JSON by default; add `?format=csv`, `xml` or `xlsx` for a file) and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables and history.
37
41
 
38
42
  ## ๐Ÿ“ˆ Latest published table
39
43
 
40
44
  [![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
45
 
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.
46
+ 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 same table as text is folded below 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.
43
47
 
44
48
  <!-- daily-table:start -->
45
- Published **2026-10-13** by Banco Central do Brasil โ€” 312 rates, first 60 shown. Updated 2026-10-14.
49
+ <details>
50
+ <summary>Table as text: published 2026-10-20 by Banco Central do Brasil โ€” 312 rates, first 60 shown. Updated 2026-10-20.</summary>
46
51
 
47
52
  | Base | Quote | Type | Rate |
48
53
  | --- | --- | --- | ---: |
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 |
55
- | AMD | BRL | buy | 0.01381 |
56
- | AMD | BRL | sell | 0.01389 |
57
- | AOA | BRL | buy | 0.005407 |
58
- | AOA | BRL | sell | 0.005487 |
59
- | ARS | BRL | buy | 0.003301 |
60
- | ARS | BRL | sell | 0.003302 |
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 |
54
+ | AED | BRL | buy | 1.365 |
55
+ | AED | BRL | sell | 1.3653 |
56
+ | AFN | BRL | buy | 0.07709 |
57
+ | AFN | BRL | sell | 0.07734 |
58
+ | ALL | BRL | buy | 0.06188 |
59
+ | ALL | BRL | sell | 0.06236 |
60
+ | AMD | BRL | buy | 0.01383 |
61
+ | AMD | BRL | sell | 0.01391 |
62
+ | AOA | BRL | buy | 0.005412 |
63
+ | AOA | BRL | sell | 0.005492 |
64
+ | ARS | BRL | buy | 0.003289 |
65
+ | ARS | BRL | sell | 0.003291 |
66
+ | AUD | BRL | buy | 3.5109 |
67
+ | AUD | BRL | sell | 3.5118 |
68
+ | AWG | BRL | buy | 2.7852 |
69
+ | AWG | BRL | sell | 2.8169 |
70
+ | AZN | BRL | buy | 2.9404 |
71
+ | AZN | BRL | sell | 2.9581 |
72
+ | BBD | BRL | buy | 2.4695 |
73
+ | BBD | BRL | sell | 2.5094 |
74
+ | BDT | BRL | buy | 0.04046 |
75
+ | BDT | BRL | sell | 0.04062 |
76
+ | BHD | BRL | buy | 13.284 |
77
+ | BHD | BRL | sell | 13.2997 |
78
+ | BIF | BRL | buy | 0.001665 |
79
+ | BIF | BRL | sell | 0.001678 |
80
+ | BMD | BRL | buy | 5.0134 |
81
+ | BMD | BRL | sell | 5.014 |
82
+ | BND | BRL | buy | 3.9235 |
83
+ | BND | BRL | sell | 3.9242 |
79
84
  | BOB | BRL | buy | 0.4249 |
80
85
  | 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 |
86
+ | BSD | BRL | buy | 5.0134 |
87
+ | BSD | BRL | sell | 5.014 |
88
+ | BTN | BRL | buy | 0.0528 |
89
+ | BTN | BRL | sell | 0.05283 |
90
+ | BWP | BRL | buy | 0.3474 |
91
+ | BWP | BRL | sell | 0.3876 |
92
+ | BYN | BRL | buy | 1.6809 |
93
+ | BYN | BRL | sell | 1.6876 |
94
+ | BZD | BRL | buy | 2.4792 |
95
+ | BZD | BRL | sell | 2.5067 |
96
+ | CAD | BRL | buy | 3.5685 |
97
+ | CAD | BRL | sell | 3.5692 |
98
+ | CDF | BRL | buy | 0.002161 |
99
+ | CDF | BRL | sell | 0.002178 |
100
+ | CHF | BRL | buy | 6.0688 |
101
+ | CHF | BRL | sell | 6.0717 |
102
+ | CLF | BRL | buy | 211.9465 |
103
+ | CLF | BRL | sell | 211.9719 |
104
+ | CLP | BRL | buy | 0.005145 |
105
+ | CLP | BRL | sell | 0.00515 |
106
+ | CNH | BRL | buy | 0.751 |
107
+ | CNH | BRL | sell | 0.7512 |
108
+ | CNY | BRL | buy | 0.7507 |
109
+ | CNY | BRL | sell | 0.7508 |
110
+ | COP | BRL | buy | 0.001573 |
111
+ | COP | BRL | sell | 0.001574 |
112
+ | COU | BRL | buy | 0.6668 |
113
+ | COU | BRL | sell | 0.6669 |
114
+
115
+ </details>
109
116
 
110
117
  [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.
111
118
  <!-- daily-table:end -->
112
119
 
113
- ## ๐Ÿ”‘ Get your API key
114
-
115
- 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.
116
-
117
120
  ## ๐Ÿ“ฆ Installation
118
121
 
119
122
  ```bash
@@ -301,7 +304,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bcb/latest?format=xml&api_ke
301
304
  - 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
302
305
  - 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
303
306
  - 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`
307
+ - Evaluating? 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 that covers the free-plan methods (latest table, pairs); dated tables and history need a [paid plan](https://allratestoday.com/pricing/). The MCP servers expose it as `request_trial_key`
305
308
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
306
309
 
307
310
  ## โš–๏ธ Published vs derived rates
@@ -380,7 +383,8 @@ Need the whole archive rather than an API call? The same published tables are mi
380
383
  - [All central bank sources](https://allratestoday.com/central-bank-rates-api/)
381
384
  - [Package docs on the site](https://allratestoday.com/docs/sdk/bcb-exchange-rate/) ยท [ERP integration guides](https://allratestoday.com/docs/integrations/)
382
385
  - [API documentation](https://allratestoday.com/docs/#central-bank) ยท [Interactive reference](https://allratestoday.com/api-reference/) ยท [Methodology](https://allratestoday.com/official-rates-methodology/)
383
- - [Register (free)](https://allratestoday.com/register) ยท [Pricing](https://allratestoday.com/pricing/)
386
+ - [Register (Free)](https://allratestoday.com/register) ยท [Dashboard](https://allratestoday.com/profile) ยท [Pricing](https://allratestoday.com/pricing/)
387
+ - [Status](https://allratestoday.com/status)
384
388
  - [GitHub](https://github.com/AllRates-Today/bcb-exchange-rate)
385
389
 
386
390
  ## ๐Ÿ“œ License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/bcb-exchange-rate",
3
- "version": "1.3.13",
3
+ "version": "1.3.16",
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",
@@ -12,6 +12,7 @@
12
12
  "exchange-rates",
13
13
  "exchangerate",
14
14
  "exchange rate",
15
+ "exchange rates",
15
16
  "brl-exchange-rate",
16
17
  "currency",
17
18
  "forex",