@allratestoday/bcb-exchange-rate 1.3.19 → 1.3.24
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.
- package/README.md +63 -77
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,93 +24,78 @@
|
|
|
24
24
|
|
|
25
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
26
|
|
|
27
|
-
## ⚡ Try it without a key
|
|
28
|
-
|
|
29
|
-
The latest Banco Central do Brasil table is also served keyless, CORS-open and edge-cached, for evaluation, embeds and AI agents:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
curl "https://allratestoday.com/api/open/central-bank/bcb?source=USD&target=BRL"
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
```js
|
|
36
|
-
const r = await fetch('https://allratestoday.com/api/open/central-bank/bcb').then((x) => x.json());
|
|
37
|
-
console.log(r.rate_date, r.rates.length); // the central bank's latest published table, no key
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
The open endpoint serves the *latest* table only (JSON by default; add `?format=csv`, `xml` or `xlsx` for a file) and is free to use with a visible, followable link where the rates are shown: `<a href="https://allratestoday.com">Exchange rates by AllRatesToday</a>` (terms: <https://allratestoday.com/terms/#attribution>). The client below uses the keyed API, which adds point-in-time tables and history; with a key the link is appreciated, not required.
|
|
41
|
-
|
|
42
27
|
## 📈 Latest published table
|
|
43
28
|
|
|
44
29
|
[](https://allratestoday.com/central-bank-rates-api/bcb/)
|
|
45
30
|
|
|
46
|
-
The image is rendered live from the keyless endpoint
|
|
31
|
+
The image is rendered live from the keyless endpoint, 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.
|
|
47
32
|
|
|
48
33
|
<!-- daily-table:start -->
|
|
49
34
|
<details>
|
|
50
|
-
<summary>Table as text: published 2026-10-
|
|
35
|
+
<summary>Table as text: published 2026-10-29 by Banco Central do Brasil — 312 rates, first 60 shown. Updated 2026-10-30.</summary>
|
|
51
36
|
|
|
52
37
|
| Base | Quote | Type | Rate |
|
|
53
38
|
| --- | --- | --- | ---: |
|
|
54
|
-
| AED | BRL | buy | 1.
|
|
55
|
-
| AED | BRL | sell | 1.
|
|
56
|
-
| AFN | BRL | buy | 0.
|
|
57
|
-
| AFN | BRL | sell | 0.
|
|
58
|
-
| ALL | BRL | buy | 0.
|
|
59
|
-
| ALL | BRL | sell | 0.
|
|
60
|
-
| AMD | BRL | buy | 0.
|
|
61
|
-
| AMD | BRL | sell | 0.
|
|
62
|
-
| AOA | BRL | buy | 0.
|
|
63
|
-
| AOA | BRL | sell | 0.
|
|
64
|
-
| ARS | BRL | buy | 0.
|
|
65
|
-
| ARS | BRL | sell | 0.
|
|
66
|
-
| AUD | BRL | buy | 3.
|
|
67
|
-
| AUD | BRL | sell | 3.
|
|
68
|
-
| AWG | BRL | buy |
|
|
69
|
-
| AWG | BRL | sell | 3.
|
|
70
|
-
| AZN | BRL | buy | 3.
|
|
71
|
-
| AZN | BRL | sell | 3.
|
|
72
|
-
| BBD | BRL | buy | 2.
|
|
73
|
-
| BBD | BRL | sell | 2.
|
|
74
|
-
| BDT | BRL | buy | 0.
|
|
75
|
-
| BDT | BRL | sell | 0.
|
|
76
|
-
| BHD | BRL | buy | 14.
|
|
77
|
-
| BHD | BRL | sell | 14.
|
|
78
|
-
| BIF | BRL | buy | 0.
|
|
79
|
-
| BIF | BRL | sell | 0.
|
|
80
|
-
| BMD | BRL | buy | 5.
|
|
81
|
-
| BMD | BRL | sell | 5.
|
|
82
|
-
| BND | BRL | buy | 4.
|
|
83
|
-
| BND | BRL | sell | 4.
|
|
84
|
-
| BOB | BRL | buy | 0.
|
|
85
|
-
| BOB | BRL | sell | 0.
|
|
86
|
-
| BSD | BRL | buy | 5.
|
|
87
|
-
| BSD | BRL | sell | 5.
|
|
88
|
-
| BTN | BRL | buy | 0.
|
|
89
|
-
| BTN | BRL | sell | 0.
|
|
90
|
-
| BWP | BRL | buy | 0.
|
|
91
|
-
| BWP | BRL | sell | 0.
|
|
92
|
-
| BYN | BRL | buy | 1.
|
|
93
|
-
| BYN | BRL | sell | 1.
|
|
94
|
-
| BZD | BRL | buy | 2.
|
|
95
|
-
| BZD | BRL | sell | 2.
|
|
96
|
-
| CAD | BRL | buy | 3.
|
|
97
|
-
| CAD | BRL | sell | 3.
|
|
98
|
-
| CDF | BRL | buy | 0.
|
|
99
|
-
| CDF | BRL | sell | 0.
|
|
100
|
-
| CHF | BRL | buy | 6.
|
|
101
|
-
| CHF | BRL | sell | 6.
|
|
102
|
-
| CLF | BRL | buy |
|
|
103
|
-
| CLF | BRL | sell |
|
|
104
|
-
| CLP | BRL | buy | 0.
|
|
105
|
-
| CLP | BRL | sell | 0.
|
|
106
|
-
| CNH | BRL | buy | 0.
|
|
107
|
-
| CNH | BRL | sell | 0.
|
|
108
|
-
| CNY | BRL | buy | 0.
|
|
109
|
-
| CNY | BRL | sell | 0.
|
|
110
|
-
| COP | BRL | buy | 0.
|
|
111
|
-
| COP | BRL | sell | 0.
|
|
112
|
-
| COU | BRL | buy | 0.
|
|
113
|
-
| COU | BRL | sell | 0.
|
|
39
|
+
| AED | BRL | buy | 1.463 |
|
|
40
|
+
| AED | BRL | sell | 1.4633 |
|
|
41
|
+
| AFN | BRL | buy | 0.08251 |
|
|
42
|
+
| AFN | BRL | sell | 0.08277 |
|
|
43
|
+
| ALL | BRL | buy | 0.06546 |
|
|
44
|
+
| ALL | BRL | sell | 0.06633 |
|
|
45
|
+
| AMD | BRL | buy | 0.01484 |
|
|
46
|
+
| AMD | BRL | sell | 0.01493 |
|
|
47
|
+
| AOA | BRL | buy | 0.005822 |
|
|
48
|
+
| AOA | BRL | sell | 0.005887 |
|
|
49
|
+
| ARS | BRL | buy | 0.003489 |
|
|
50
|
+
| ARS | BRL | sell | 0.003491 |
|
|
51
|
+
| AUD | BRL | buy | 3.781 |
|
|
52
|
+
| AUD | BRL | sell | 3.7841 |
|
|
53
|
+
| AWG | BRL | buy | 2.9854 |
|
|
54
|
+
| AWG | BRL | sell | 3.0193 |
|
|
55
|
+
| AZN | BRL | buy | 3.1518 |
|
|
56
|
+
| AZN | BRL | sell | 3.1707 |
|
|
57
|
+
| BBD | BRL | buy | 2.6471 |
|
|
58
|
+
| BBD | BRL | sell | 2.6898 |
|
|
59
|
+
| BDT | BRL | buy | 0.0432 |
|
|
60
|
+
| BDT | BRL | sell | 0.04338 |
|
|
61
|
+
| BHD | BRL | buy | 14.2352 |
|
|
62
|
+
| BHD | BRL | sell | 14.2519 |
|
|
63
|
+
| BIF | BRL | buy | 0.001785 |
|
|
64
|
+
| BIF | BRL | sell | 0.001799 |
|
|
65
|
+
| BMD | BRL | buy | 5.3738 |
|
|
66
|
+
| BMD | BRL | sell | 5.3744 |
|
|
67
|
+
| BND | BRL | buy | 4.1963 |
|
|
68
|
+
| BND | BRL | sell | 4.1991 |
|
|
69
|
+
| BOB | BRL | buy | 0.4452 |
|
|
70
|
+
| BOB | BRL | sell | 0.4509 |
|
|
71
|
+
| BSD | BRL | buy | 5.3738 |
|
|
72
|
+
| BSD | BRL | sell | 5.3744 |
|
|
73
|
+
| BTN | BRL | buy | 0.05641 |
|
|
74
|
+
| BTN | BRL | sell | 0.05642 |
|
|
75
|
+
| BWP | BRL | buy | 0.3686 |
|
|
76
|
+
| BWP | BRL | sell | 0.4117 |
|
|
77
|
+
| BYN | BRL | buy | 1.8136 |
|
|
78
|
+
| BYN | BRL | sell | 1.8205 |
|
|
79
|
+
| BZD | BRL | buy | 2.6574 |
|
|
80
|
+
| BZD | BRL | sell | 2.6869 |
|
|
81
|
+
| CAD | BRL | buy | 3.8439 |
|
|
82
|
+
| CAD | BRL | sell | 3.8452 |
|
|
83
|
+
| CDF | BRL | buy | 0.002316 |
|
|
84
|
+
| CDF | BRL | sell | 0.002328 |
|
|
85
|
+
| CHF | BRL | buy | 6.4995 |
|
|
86
|
+
| CHF | BRL | sell | 6.501 |
|
|
87
|
+
| CLF | BRL | buy | 223.4748 |
|
|
88
|
+
| CLF | BRL | sell | 223.4998 |
|
|
89
|
+
| CLP | BRL | buy | 0.005419 |
|
|
90
|
+
| CLP | BRL | sell | 0.005423 |
|
|
91
|
+
| CNH | BRL | buy | 0.807 |
|
|
92
|
+
| CNH | BRL | sell | 0.8072 |
|
|
93
|
+
| CNY | BRL | buy | 0.8067 |
|
|
94
|
+
| CNY | BRL | sell | 0.8068 |
|
|
95
|
+
| COP | BRL | buy | 0.001697 |
|
|
96
|
+
| COP | BRL | sell | 0.001698 |
|
|
97
|
+
| COU | BRL | buy | 0.7142 |
|
|
98
|
+
| COU | BRL | sell | 0.7143 |
|
|
114
99
|
|
|
115
100
|
</details>
|
|
116
101
|
|
|
@@ -276,6 +261,7 @@ Banco Central do Brasil is Brazil's central bank. Its PTAX rate — the official
|
|
|
276
261
|
|
|
277
262
|
- Publisher's own page: [PTAX exchange rates](https://www.bcb.gov.br/en/financialstability/exchangerate) · [www.bcb.gov.br](https://www.bcb.gov.br)
|
|
278
263
|
- Publication: every business day; the exact schedule, freshness status and any current delay are on the [Banco Central do Brasil rates page](https://allratestoday.com/central-bank-rates-api/bcb/)
|
|
264
|
+
- In the API: usually by **17:15 UTC** (measured over the last 10 publications). Schedule a sync at or after that time and retry hourly until `rate_date` moves; every response carries the same figure as `available_by_utc` — see [when to poll](https://allratestoday.com/docs/#when-to-poll)
|
|
279
265
|
- Values are stored unmodified, with the publisher's own `rate_date` on every row — see the [methodology](https://allratestoday.com/official-rates-methodology/)
|
|
280
266
|
|
|
281
267
|
## 🧭 Reading the numbers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/bcb-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.24",
|
|
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",
|