@allratestoday/bcb-exchange-rate 1.0.3 → 1.1.2

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 CHANGED
@@ -1,10 +1,10 @@
1
1
  # Banco Central do Brasil Exchange Rate API client
2
2
 
3
- Official **Banco Central do Brasil** (Brazil) daily exchange rates in Node.js / TypeScript — ~155 currencies against the BRL, with history back to 2016. Zero dependencies, works in Node 18+, Bun, Deno, and edge runtimes (uses global `fetch`).
3
+ Official **Banco Central do Brasil** (Brazil) daily exchange rates in Node.js / TypeScript — 156 currencies against the BRL, with history back to 2016. Zero dependencies, works in Node 18+, Bun, Deno, and edge runtimes (uses global `fetch`).
4
4
 
5
5
  These are the *published central bank rates* required for tax filings, customs valuations, audits, and compliant invoicing — not moving market rates. Every response carries the publisher's own publication date.
6
6
 
7
- Powered by [AllRatesToday](https://allratestoday.com/central-bank-rates-api/bcb/). Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) — 300 requests/month, no credit card.
7
+ Powered by [AllRatesToday](https://allratestoday.com/central-bank-rates-api/bcb/). Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) — no credit card required.
8
8
 
9
9
  ## Install
10
10
 
@@ -42,6 +42,14 @@ const series = await getHistory(
42
42
  );
43
43
  ```
44
44
 
45
+ ## Currencies covered
46
+
47
+ Banco Central do Brasil currently publishes rates covering **157 currencies** (as of the latest table):
48
+
49
+ `AED` · `AFN` · `ALL` · `AMD` · `AOA` · `ARS` · `AUD` · `AWG` · `AZN` · `BBD` · `BDT` · `BHD` · `BIF` · `BMD` · `BND` · `BOB` · `BRL` · `BSD` · `BTN` · `BWP` · `BYN` · `BZD` · `CAD` · `CDF` · `CHF` · `CLF` · `CLP` · `CNH` · `CNY` · `COP` · `COU` · `CRC` · `CUP` · `CVE` · `CZK` · `DJF` · `DKK` · `DOP` · `DZD` · `EGP` · `ERN` · `ETB` · `EUR` · `FJD` · `FKP` · `GBP` · `GEL` · `GHS` · `GIP` · `GMD` · `GNF` · `GTQ` · `GYD` · `HKD` · `HNL` · `HTG` · `HUF` · `IDR` · `ILS` · `INR` · `IQD` · `IRR` · `ISK` · `JMD` · `JOD` · `JPY` · `KES` · `KGS` · `KHR` · `KMF` · `KRW` · `KWD` · `KYD` · `KZT` · `LAK` · `LBP` · `LKR` · `LRD` · `LSL` · `LYD` · `MAD` · `MDL` · `MGA` · `MKD` · `MMK` · `MNT` · `MOP` · `MRO` · `MRU` · `MUR` · `MVR` · `MWK` · `MXN` · `MYR` · `MZN` · `NAD` · `NGN` · `NIO` · `NOK` · `NPR` · `NZD` · `OMR` · `PAB` · `PEN` · `PGK` · `PHP` · `PKR` · `PLN` · `PYG` · `QAR` · `RON` · `RSD` · `RUB` · `RWF` · `SAR` · `SBD` · `SCR` · `SDG` · `SDR` · `SEK` · `SGD` · `SHP` · `SLL` · `SOS` · `SRD` · `SSP` · `STN` · `SVC` · `SYP` · `SZL` · `THB` · `TJS` · `TMT` · `TND` · `TOP` · `TRY` · `TTD` · `TWD` · `TZS` · `UAH` · `UGX` · `USD` · `UYU` · `UZS` · `VES` · `VND` · `VUV` · `WST` · `XAF` · `XAU` · `XCD` · `XCG` · `XOF` · `XPF` · `YER` · `ZAR` · `ZMW`
50
+
51
+ Pairs the central bank does not print directly are resolved from this table (see below).
52
+
45
53
  ## Published vs derived rates
46
54
 
47
55
  If Banco Central do Brasil does not print a pair directly, the API resolves it from the bank's table (inverse, or a cross rate via BRL) and flags it `derived: true` with the `method` — so official and computed values are never confused.
package/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
  // Banco Central do Brasil exchange rates via the AllRatesToday API.
3
3
  const BASE = 'https://allratestoday.com/api/v1/central-bank/bcb';
4
- const KEY_HINT = 'An apiKey is required — get a free key at https://allratestoday.com/register (300 requests/month, no credit card).';
4
+ const KEY_HINT = 'An apiKey is required — get a free key at https://allratestoday.com/register (no credit card required).';
5
5
 
6
6
  async function request(path, params, options) {
7
7
  const apiKey = options && options.apiKey;
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // Banco Central do Brasil exchange rates via the AllRatesToday API.
2
2
  const BASE = 'https://allratestoday.com/api/v1/central-bank/bcb';
3
- const KEY_HINT = 'An apiKey is required — get a free key at https://allratestoday.com/register (300 requests/month, no credit card).';
3
+ const KEY_HINT = 'An apiKey is required — get a free key at https://allratestoday.com/register (no credit card required).';
4
4
 
5
5
  async function request(path, params, options) {
6
6
  const apiKey = options && options.apiKey;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@allratestoday/bcb-exchange-rate",
3
- "version": "1.0.3",
4
- "description": "Official Banco Central do Brasil (Brazil) daily exchange rates — ~155 currencies vs BRL, history since 2016. Zero-dependency Node.js/TypeScript client.",
3
+ "version": "1.1.2",
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
7
  "banco",