cbb-exchange-rate 1.3.19 → 1.3.24
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 +29 -43
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,65 +24,50 @@
|
|
|
24
24
|
|
|
25
25
|
Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) — no credit card required. Latest rates are on every plan, including free.
|
|
26
26
|
|
|
27
|
-
## ⚡ Try it without a key
|
|
28
|
-
|
|
29
|
-
The latest Central Bank of Bahrain table is also served keyless, CORS-open and edge-cached, for evaluation, embeds and AI agents:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
curl "https://allratestoday.com/api/open/central-bank/cbb?source=USD&target=BHD"
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
```js
|
|
36
|
-
const r = await fetch('https://allratestoday.com/api/open/central-bank/cbb').then((x) => x.json());
|
|
37
|
-
console.log(r.rate_date, r.rates.length); // the central bank's latest published table, no key
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
The open endpoint serves the *latest* table only (JSON by default; add `?format=csv`, `xml` or `xlsx` for a file) and is free to use with a visible, followable link where the rates are shown: `<a href="https://allratestoday.com">Exchange rates by AllRatesToday</a>` (terms: <https://allratestoday.com/terms/#attribution>). The client below uses the keyed API, which adds point-in-time tables and history; with a key the link is appreciated, not required.
|
|
41
|
-
|
|
42
27
|
## 📈 Latest published table
|
|
43
28
|
|
|
44
29
|
[](https://allratestoday.com/central-bank-rates-api/cbb/)
|
|
45
30
|
|
|
46
|
-
The image is rendered live from the keyless endpoint
|
|
31
|
+
The image is rendered live from the keyless endpoint, so it follows the central bank's publications on npm and on GitHub alike without a new release. The same table as text is folded below 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.
|
|
47
32
|
|
|
48
33
|
<!-- daily-table:start -->
|
|
49
34
|
<details>
|
|
50
|
-
<summary>Table as text: published 2026-10-
|
|
35
|
+
<summary>Table as text: published 2026-10-29 by Central Bank of Bahrain — 33 rates. Updated 2026-10-30.</summary>
|
|
51
36
|
|
|
52
37
|
| Base | Quote | Type | Rate |
|
|
53
38
|
| --- | --- | --- | ---: |
|
|
54
39
|
| AED | BHD | reference | 0.102391 |
|
|
55
40
|
| ANG | BHD | reference | 0.210101 |
|
|
56
|
-
| AUD | BHD | reference | 0.
|
|
57
|
-
| BDT | BHD | reference | 0.
|
|
58
|
-
| CAD | BHD | reference | 0.
|
|
59
|
-
| CHF | BHD | reference | 0.
|
|
60
|
-
| CNY | BHD | reference | 0.
|
|
61
|
-
| EGP | BHD | reference | 0.
|
|
62
|
-
| EUR | BHD | reference | 0.
|
|
63
|
-
| GBP | BHD | reference | 0.
|
|
64
|
-
| HKD | BHD | reference | 0.
|
|
41
|
+
| AUD | BHD | reference | 0.265156 |
|
|
42
|
+
| BDT | BHD | reference | 0.003036 |
|
|
43
|
+
| CAD | BHD | reference | 0.268773 |
|
|
44
|
+
| CHF | BHD | reference | 0.453629 |
|
|
45
|
+
| CNY | BHD | reference | 0.056412 |
|
|
46
|
+
| EGP | BHD | reference | 0.0067 |
|
|
47
|
+
| EUR | BHD | reference | 0.418936 |
|
|
48
|
+
| GBP | BHD | reference | 0.500771 |
|
|
49
|
+
| HKD | BHD | reference | 0.04794 |
|
|
65
50
|
| IDR | BHD | reference | 0.000021 |
|
|
66
|
-
| ILS | BHD | reference | 0.
|
|
67
|
-
| INR | BHD | reference | 0.
|
|
68
|
-
| JOD | BHD | reference | 0.
|
|
69
|
-
| JPY | BHD | reference | 0.
|
|
70
|
-
| KWD | BHD | reference | 1.
|
|
51
|
+
| ILS | BHD | reference | 0.120614 |
|
|
52
|
+
| INR | BHD | reference | 0.003949 |
|
|
53
|
+
| JOD | BHD | reference | 0.530514 |
|
|
54
|
+
| JPY | BHD | reference | 0.002381 |
|
|
55
|
+
| KWD | BHD | reference | 1.208798 |
|
|
71
56
|
| LBP | BHD | reference | 0.000004 |
|
|
72
57
|
| LKR | BHD | reference | 0.001132 |
|
|
73
|
-
| MAD | BHD | reference | 0.
|
|
74
|
-
| NOK | BHD | reference | 0.
|
|
75
|
-
| NPR | BHD | reference | 0.
|
|
76
|
-
| NZD | BHD | reference | 0.
|
|
77
|
-
| OMR | BHD | reference | 0.
|
|
78
|
-
| PHP | BHD | reference | 0.
|
|
58
|
+
| MAD | BHD | reference | 0.038195 |
|
|
59
|
+
| NOK | BHD | reference | 0.040619 |
|
|
60
|
+
| NPR | BHD | reference | 0.002469 |
|
|
61
|
+
| NZD | BHD | reference | 0.21147 |
|
|
62
|
+
| OMR | BHD | reference | 0.976809 |
|
|
63
|
+
| PHP | BHD | reference | 0.005886 |
|
|
79
64
|
| PKR | BHD | reference | 0.001357 |
|
|
80
|
-
| QAR | BHD | reference | 0.
|
|
81
|
-
| SAR | BHD | reference | 0.
|
|
82
|
-
| SGD | BHD | reference | 0.
|
|
83
|
-
| THB | BHD | reference | 0.
|
|
84
|
-
| TND | BHD | reference | 0.
|
|
85
|
-
| TRY | BHD | reference | 0.
|
|
65
|
+
| QAR | BHD | reference | 0.103166 |
|
|
66
|
+
| SAR | BHD | reference | 0.100224 |
|
|
67
|
+
| SGD | BHD | reference | 0.293412 |
|
|
68
|
+
| THB | BHD | reference | 0.01115 |
|
|
69
|
+
| TND | BHD | reference | 0.124919 |
|
|
70
|
+
| TRY | BHD | reference | 0.007547 |
|
|
86
71
|
| USD | BHD | reference | 0.376081 |
|
|
87
72
|
|
|
88
73
|
</details>
|
|
@@ -248,6 +233,7 @@ The Central Bank of Bahrain regulates Bahrain's financial sector and issues the
|
|
|
248
233
|
|
|
249
234
|
- Publisher's own page: [Facilities, interest and exchange rates](https://www.cbb.gov.bh/facilities-interest-rates/) · [www.cbb.gov.bh](https://www.cbb.gov.bh)
|
|
250
235
|
- Publication: every business day; the exact schedule, freshness status and any current delay are on the [Central Bank of Bahrain rates page](https://allratestoday.com/central-bank-rates-api/cbb/)
|
|
236
|
+
- In the API: usually by **23:15 UTC** (measured over the last 13 publications). Schedule a sync at or after that time and retry hourly until `rate_date` moves; every response carries the same figure as `available_by_utc` — see [when to poll](https://allratestoday.com/docs/#when-to-poll)
|
|
251
237
|
- Values are stored unmodified, with the publisher's own `rate_date` on every row — see the [methodology](https://allratestoday.com/official-rates-methodology/)
|
|
252
238
|
|
|
253
239
|
## 🧭 Reading the numbers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cbb-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.24",
|
|
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",
|