@allratestoday/cbbh-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.
- package/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ const pair = await getRate('EUR', 'BAM', { apiKey: 'art_live_...' });
|
|
|
70
70
|
{
|
|
71
71
|
bank: 'cbbh',
|
|
72
72
|
name: 'Central Bank of Bosnia and Herzegovina',
|
|
73
|
-
rate_date: '2026-08-
|
|
73
|
+
rate_date: '2026-08-13', // Central Bank of Bosnia and Herzegovina's own publication date
|
|
74
74
|
source: 'EUR',
|
|
75
75
|
target: 'BAM',
|
|
76
76
|
rate: 1.95583,
|
|
@@ -98,7 +98,7 @@ console.log(table.rate_date, table.rates.length);
|
|
|
98
98
|
{
|
|
99
99
|
bank: 'cbbh',
|
|
100
100
|
name: 'Central Bank of Bosnia and Herzegovina',
|
|
101
|
-
rate_date: '2026-08-
|
|
101
|
+
rate_date: '2026-08-13',
|
|
102
102
|
rates: [
|
|
103
103
|
{ "base": "EUR", "quote": "BAM", "type": "middle", "value": 1.95583 },
|
|
104
104
|
{ "base": "EUR", "quote": "BAM", "type": "sell", "value": 1.95583 },
|
|
@@ -142,7 +142,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
142
142
|
import { getHistory } from '@allratestoday/cbbh-exchange-rate';
|
|
143
143
|
|
|
144
144
|
const series = await getHistory(
|
|
145
|
-
{ source: 'EUR', target: 'BAM', from: '2026-01-01', to: '2026-08-
|
|
145
|
+
{ source: 'EUR', target: 'BAM', from: '2026-01-01', to: '2026-08-13' },
|
|
146
146
|
{ apiKey: 'art_live_...' }
|
|
147
147
|
);
|
|
148
148
|
```
|
|
@@ -155,11 +155,11 @@ const series = await getHistory(
|
|
|
155
155
|
source: 'EUR',
|
|
156
156
|
target: 'BAM',
|
|
157
157
|
from: '2026-01-01',
|
|
158
|
-
to: '2026-08-
|
|
158
|
+
to: '2026-08-13',
|
|
159
159
|
count: 152,
|
|
160
160
|
rates: [
|
|
161
161
|
// one entry per publication date
|
|
162
|
-
{ date: '2026-08-
|
|
162
|
+
{ date: '2026-08-13', rate: 1.95583, rate_type: 'middle', derived: false, method: 'published' },
|
|
163
163
|
// …
|
|
164
164
|
],
|
|
165
165
|
disclaimer: '…'
|
|
@@ -172,9 +172,9 @@ Pass `{ symbol: 'EUR' }` instead of `source`/`target` to get the raw published r
|
|
|
172
172
|
|
|
173
173
|
## 🗺️ Currencies covered
|
|
174
174
|
|
|
175
|
-
Central Bank of Bosnia and Herzegovina currently publishes rates covering **
|
|
175
|
+
Central Bank of Bosnia and Herzegovina currently publishes rates covering **17 currencies** against the BAM (as of the latest table):
|
|
176
176
|
|
|
177
|
-
`AUD` ·
|
|
177
|
+
🇦🇺 `AUD` · 🇨🇦 `CAD` · 🇨🇭 `CHF` · 🇨🇳 `CNY` · 🇨🇿 `CZK` · 🇩🇰 `DKK` · 🇪🇺 `EUR` · 🇬🇧 `GBP` · 🇭🇺 `HUF` · 🇯🇵 `JPY` · 🇳🇴 `NOK` · 🇷🇸 `RSD` · 🇷🇺 `RUB` · 🇸🇪 `SEK` · 🇹🇷 `TRY` · 🇺🇸 `USD` · `XDR`
|
|
178
178
|
|
|
179
179
|
## ⚖️ Published vs derived rates
|
|
180
180
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/cbbh-exchange-rate",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Official Central Bank of Bosnia and Herzegovina (Bosnia and Herzegovina) daily exchange rates — 17 currencies vs BAM, history since 2016. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cbbh",
|