@allratestoday/bcrd-exchange-rate 1.2.2 → 1.2.3

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 +11 -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-08-12', // 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.7482,
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-08-12',
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.7482 },
104
+ { "base": "USD", "quote": "DOP", "type": "buy", "value": 58.402 },
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 '@allratestoday/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-08-12' },
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-08-12',
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-08-12', rate: 58.7482, 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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/bcrd-exchange-rate",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
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",