@allratestoday/cbb-exchange-rate 1.2.3 → 1.2.7

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 +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -70,7 +70,7 @@ const pair = await getRate('USD', 'BHD', { apiKey: 'art_live_...' });
70
70
  {
71
71
  bank: 'cbb',
72
72
  name: 'Central Bank of Bahrain',
73
- rate_date: '2026-08-13', // Central Bank of Bahrain's own publication date
73
+ rate_date: '2026-08-24', // Central Bank of Bahrain's own publication date
74
74
  source: 'USD',
75
75
  target: 'BHD',
76
76
  rate: 0.376081,
@@ -98,7 +98,7 @@ console.log(table.rate_date, table.rates.length);
98
98
  {
99
99
  bank: 'cbb',
100
100
  name: 'Central Bank of Bahrain',
101
- rate_date: '2026-08-13',
101
+ rate_date: '2026-08-24',
102
102
  rates: [
103
103
  { "base": "USD", "quote": "BHD", "type": "reference", "value": 0.376081 },
104
104
  // … the rest of the published table (33 currencies vs BHD)
@@ -140,7 +140,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
140
140
  import { getHistory } from '@allratestoday/cbb-exchange-rate';
141
141
 
142
142
  const series = await getHistory(
143
- { source: 'USD', target: 'BHD', from: '2026-01-01', to: '2026-08-13' },
143
+ { source: 'USD', target: 'BHD', from: '2026-01-01', to: '2026-08-24' },
144
144
  { apiKey: 'art_live_...' }
145
145
  );
146
146
  ```
@@ -153,11 +153,11 @@ const series = await getHistory(
153
153
  source: 'USD',
154
154
  target: 'BHD',
155
155
  from: '2026-01-01',
156
- to: '2026-08-13',
156
+ to: '2026-08-24',
157
157
  count: 152,
158
158
  rates: [
159
159
  // one entry per publication date
160
- { date: '2026-08-13', rate: 0.376081, rate_type: 'reference', derived: false, method: 'published' },
160
+ { date: '2026-08-24', rate: 0.376081, rate_type: 'reference', derived: false, method: 'published' },
161
161
  // …
162
162
  ],
163
163
  disclaimer: '…'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/cbb-exchange-rate",
3
- "version": "1.2.3",
3
+ "version": "1.2.7",
4
4
  "description": "Official Central Bank of Bahrain (Bahrain) daily exchange rates — 33 currencies vs BHD, history since 2016. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "cbb",