bob-exchange-rate 1.3.8 → 1.3.13
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 +15 -13
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -37,20 +37,22 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
37
37
|
|
|
38
38
|
## 📈 Latest published table
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
[](https://allratestoday.com/central-bank-rates-api/bob/)
|
|
41
|
+
|
|
42
|
+
The image is rendered live from the keyless endpoint above, so it follows the central bank's publications on npm and on GitHub alike without a new release. The text copy below is there for search and copy-paste: on GitHub [a daily Action](.github/workflows/daily-table.yml) refreshes it whenever the central bank publishes a new table; on npm it is as of the package's publish date.
|
|
41
43
|
|
|
42
44
|
<!-- daily-table:start -->
|
|
43
|
-
Published **2026-10-
|
|
45
|
+
Published **2026-10-14** by Bank of Botswana — 7 rates. Updated 2026-10-14.
|
|
44
46
|
|
|
45
47
|
| Base | Quote | Type | Rate |
|
|
46
48
|
| --- | --- | --- | ---: |
|
|
47
|
-
| BWP | CNH | reference | 0.
|
|
48
|
-
| BWP | EUR | reference | 0.
|
|
49
|
+
| BWP | CNH | reference | 0.5002 |
|
|
50
|
+
| BWP | EUR | reference | 0.0667 |
|
|
49
51
|
| BWP | GBP | reference | 0.0563 |
|
|
50
|
-
| BWP | JPY | reference | 11.
|
|
52
|
+
| BWP | JPY | reference | 11.83 |
|
|
51
53
|
| BWP | USD | reference | 0.0747 |
|
|
52
54
|
| BWP | XDR | reference | 0.0552 |
|
|
53
|
-
| BWP | ZAR | reference | 1.
|
|
55
|
+
| BWP | ZAR | reference | 1.2305 |
|
|
54
56
|
|
|
55
57
|
Source: [Official rates published by BOB, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bob/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
56
58
|
<!-- daily-table:end -->
|
|
@@ -107,7 +109,7 @@ const pair = await getRate('USD', 'BWP', { apiKey: 'art_live_...' });
|
|
|
107
109
|
{
|
|
108
110
|
bank: 'bob',
|
|
109
111
|
name: 'Bank of Botswana',
|
|
110
|
-
rate_date: '2026-10-
|
|
112
|
+
rate_date: '2026-10-14', // Bank of Botswana's own publication date
|
|
111
113
|
source: 'USD',
|
|
112
114
|
target: 'BWP',
|
|
113
115
|
rate: 13.3869,
|
|
@@ -135,7 +137,7 @@ console.log(table.rate_date, table.rates.length);
|
|
|
135
137
|
{
|
|
136
138
|
bank: 'bob',
|
|
137
139
|
name: 'Bank of Botswana',
|
|
138
|
-
rate_date: '2026-10-
|
|
140
|
+
rate_date: '2026-10-14',
|
|
139
141
|
rates: [
|
|
140
142
|
{ "base": "BWP", "quote": "USD", "type": "reference", "value": 0.0747 },
|
|
141
143
|
// … the rest of the published table (7 currencies vs BWP)
|
|
@@ -177,7 +179,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
177
179
|
import { getHistory } from 'bob-exchange-rate';
|
|
178
180
|
|
|
179
181
|
const series = await getHistory(
|
|
180
|
-
{ source: 'USD', target: 'BWP', from: '2026-01-01', to: '2026-10-
|
|
182
|
+
{ source: 'USD', target: 'BWP', from: '2026-01-01', to: '2026-10-14' },
|
|
181
183
|
{ apiKey: 'art_live_...' }
|
|
182
184
|
);
|
|
183
185
|
```
|
|
@@ -190,11 +192,11 @@ const series = await getHistory(
|
|
|
190
192
|
source: 'USD',
|
|
191
193
|
target: 'BWP',
|
|
192
194
|
from: '2026-01-01',
|
|
193
|
-
to: '2026-10-
|
|
195
|
+
to: '2026-10-14',
|
|
194
196
|
count: 152,
|
|
195
197
|
rates: [
|
|
196
198
|
// one entry per publication date
|
|
197
|
-
{ date: '2026-10-
|
|
199
|
+
{ date: '2026-10-14', rate: 13.3869, rate_type: 'reference', derived: true, method: 'inverse' },
|
|
198
200
|
// …
|
|
199
201
|
],
|
|
200
202
|
disclaimer: '…'
|
|
@@ -313,9 +315,9 @@ getRate('USD', 'BWP', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
313
315
|
|
|
314
316
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
315
317
|
|
|
316
|
-
- Hugging Face: [
|
|
318
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/bob.csv`)
|
|
317
319
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
318
|
-
-
|
|
320
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/bob/latest.json`
|
|
319
321
|
|
|
320
322
|
## 🔗 Links
|
|
321
323
|
|
package/package.json
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bob-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"description": "Official Bank of Botswana (Botswana) daily exchange rates — 7 currencies vs BWP, current table, archive from 2026. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bob",
|
|
7
|
+
"bank-of-botswana",
|
|
7
8
|
"bank",
|
|
8
|
-
"of",
|
|
9
9
|
"botswana",
|
|
10
10
|
"exchange-rate",
|
|
11
11
|
"exchange-rates",
|
|
12
|
+
"exchangerate",
|
|
13
|
+
"exchange rate",
|
|
14
|
+
"bwp-exchange-rate",
|
|
12
15
|
"currency",
|
|
13
16
|
"forex",
|
|
14
17
|
"fx",
|
|
15
18
|
"bwp",
|
|
19
|
+
"currency-api",
|
|
20
|
+
"currency-exchange-rates",
|
|
21
|
+
"forex-api",
|
|
22
|
+
"currency-conversion",
|
|
23
|
+
"currency-exchange",
|
|
24
|
+
"currency-rates",
|
|
16
25
|
"central-bank",
|
|
17
26
|
"official-rates",
|
|
18
|
-
"botswana",
|
|
19
27
|
"api",
|
|
20
28
|
"typescript"
|
|
21
29
|
],
|