bcrd-exchange-rate 1.2.2 → 1.3.0

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 +19 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -70,11 +70,11 @@ const pair = await getRate('USD', 'DOP', { apiKey: 'art_live_...' });
70
70
  {
71
71
  bank: 'bcrd',
72
72
  name: 'Banco Central de la República Dominicana',
73
- rate_date: '2026-08-10', // Banco Central de la República Dominicana's own publication date
73
+ rate_date: '2026-09-08', // Banco Central de la República Dominicana's own publication date
74
74
  source: 'USD',
75
75
  target: 'DOP',
76
- rate: 58.199,
77
- rate_type: 'reference',
76
+ rate: 58.8666,
77
+ rate_type: 'sell',
78
78
  derived: false,
79
79
  method: 'published',
80
80
  disclaimer: '…'
@@ -98,11 +98,10 @@ console.log(table.rate_date, table.rates.length);
98
98
  {
99
99
  bank: 'bcrd',
100
100
  name: 'Banco Central de la República Dominicana',
101
- rate_date: '2026-08-10',
101
+ rate_date: '2026-09-08',
102
102
  rates: [
103
- { "base": "USD", "quote": "DOP", "type": "reference", "value": 58.199 },
104
- { "base": "USD", "quote": "DOP", "type": "sell", "value": 58.5403 },
105
- { "base": "USD", "quote": "DOP", "type": "buy", "value": 58.199 },
103
+ { "base": "USD", "quote": "DOP", "type": "sell", "value": 58.8666 },
104
+ { "base": "USD", "quote": "DOP", "type": "buy", "value": 58.6307 },
106
105
  // … the rest of the published table (14 currencies vs DOP)
107
106
  ],
108
107
  disclaimer: '…'
@@ -142,7 +141,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
142
141
  import { getHistory } from 'bcrd-exchange-rate';
143
142
 
144
143
  const series = await getHistory(
145
- { source: 'USD', target: 'DOP', from: '2026-01-01', to: '2026-08-10' },
144
+ { source: 'USD', target: 'DOP', from: '2026-01-01', to: '2026-09-08' },
146
145
  { apiKey: 'art_live_...' }
147
146
  );
148
147
  ```
@@ -155,11 +154,11 @@ const series = await getHistory(
155
154
  source: 'USD',
156
155
  target: 'DOP',
157
156
  from: '2026-01-01',
158
- to: '2026-08-10',
157
+ to: '2026-09-08',
159
158
  count: 152,
160
159
  rates: [
161
160
  // one entry per publication date
162
- { date: '2026-08-10', rate: 58.199, rate_type: 'reference', derived: false, method: 'published' },
161
+ { date: '2026-09-08', rate: 58.8666, rate_type: 'sell', derived: false, method: 'published' },
163
162
  // …
164
163
  ],
165
164
  disclaimer: '…'
@@ -172,9 +171,9 @@ Pass `{ symbol: 'USD' }` instead of `source`/`target` to get the raw published r
172
171
 
173
172
  ## 🗺️ Currencies covered
174
173
 
175
- Banco Central de la República Dominicana currently publishes rates covering **15 currencies** (as of the latest table):
174
+ Banco Central de la República Dominicana currently publishes rates covering **14 currencies** against the DOP (as of the latest table):
176
175
 
177
- `AUD` · `BRL` · `CAD` · `CHF` · `CNY` · `DKK` · `DOP` · `EUR` · `GBP` · `JPY` · `NOK` · `SEK` · `USD` · `VES` · `XDR`
176
+ 🇦🇺 `AUD` · 🇧🇷 `BRL` · 🇨🇦 `CAD` · 🇨🇭 `CHF` · 🇨🇳 `CNY` · 🇩🇰 `DKK` · 🇪🇺 `EUR` · 🇬🇧 `GBP` · 🇯🇵 `JPY` · 🇳🇴 `NOK` · 🇸🇪 `SEK` · 🇺🇸 `USD` · 🇻🇪 `VES` · `XDR`
178
177
 
179
178
  ## ⚖️ Published vs derived rates
180
179
 
@@ -238,6 +237,14 @@ getRate('USD', 'DOP', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
238
237
  | `getRatesForDate(date, { apiKey, source?, target? })` | Paid | The official table (or one pair) for a YYYY-MM-DD date |
239
238
  | `getHistory({ symbol \| source+target, from?, to? }, { apiKey })` | Paid | Daily series since 1991 |
240
239
 
240
+ ## 📥 Bulk data (no key)
241
+
242
+ Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
243
+
244
+ - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/bcrd.csv`)
245
+ - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
246
+ - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/bcrd/latest.json`
247
+
241
248
  ## 🔗 Links
242
249
 
243
250
  - [Banco Central de la República Dominicana rates page](https://allratestoday.com/central-bank-rates-api/bcrd/) — live table, publication cadence, FAQ
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bcrd-exchange-rate",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "Official Banco Central de la República Dominicana (Dominican Republic) daily exchange rates — 14 currencies vs DOP, history since 1991. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "bcrd",