cbk-exchange-rate 1.3.5 โ 1.3.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.
- package/README.md +81 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/cbk-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/cbk-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/cbk/)
|
|
8
|
+
[](https://allratestoday.com/central-bank-rates-api/cbk/)
|
|
7
9
|
|
|
8
10
|
**Official Central Bank of Kuwait (Kuwait) daily exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing โ not market estimates, but the numbers Central Bank of Kuwait itself prints, every business day.**
|
|
9
11
|
|
|
@@ -33,6 +35,79 @@ console.log(r.rate_date, r.rates.length); // the central bank's latest published
|
|
|
33
35
|
|
|
34
36
|
The open endpoint serves the *latest* table only and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables, history, and CSV/XML/Excel output.
|
|
35
37
|
|
|
38
|
+
## ๐ Latest published table
|
|
39
|
+
|
|
40
|
+
Today's full Central Bank of Kuwait table, straight from the central bank's latest publication. On GitHub it is refreshed by [a daily Action](.github/workflows/daily-table.yml) that reads the keyless endpoint above and commits only when the central bank publishes a new table; the copy on npm is as of the package's publish date.
|
|
41
|
+
|
|
42
|
+
<!-- daily-table:start -->
|
|
43
|
+
Published **2026-10-08** by Central Bank of Kuwait โ 133 rates, first 60 shown. Updated 2026-10-08.
|
|
44
|
+
|
|
45
|
+
| Base | Quote | Type | Rate |
|
|
46
|
+
| --- | --- | --- | ---: |
|
|
47
|
+
| AED | KWD | reference | 0.083896 |
|
|
48
|
+
| AFN | KWD | reference | 0.004751 |
|
|
49
|
+
| ALL | KWD | reference | 0.003757 |
|
|
50
|
+
| AMD | KWD | reference | 0.000851 |
|
|
51
|
+
| AOA | KWD | reference | 0.000335 |
|
|
52
|
+
| ARS | KWD | reference | 0.000203 |
|
|
53
|
+
| AUD | KWD | reference | 0.21438 |
|
|
54
|
+
| AZN | KWD | reference | 0.181265 |
|
|
55
|
+
| BAM | KWD | reference | 0.176343 |
|
|
56
|
+
| BBD | KWD | reference | 0.152996 |
|
|
57
|
+
| BDT | KWD | reference | 0.002502 |
|
|
58
|
+
| BGN | KWD | reference | 0.183033 |
|
|
59
|
+
| BHD | KWD | reference | 0.819371 |
|
|
60
|
+
| BIF | KWD | reference | 0.000103 |
|
|
61
|
+
| BMD | KWD | reference | 0.30815 |
|
|
62
|
+
| BND | KWD | reference | 0.240676 |
|
|
63
|
+
| BOB | KWD | reference | 0.025797 |
|
|
64
|
+
| BRL | KWD | reference | 0.06136 |
|
|
65
|
+
| BSD | KWD | reference | 0.30815 |
|
|
66
|
+
| BTN | KWD | reference | 0.003184 |
|
|
67
|
+
| BWP | KWD | reference | 0.021725 |
|
|
68
|
+
| BZD | KWD | reference | 0.153217 |
|
|
69
|
+
| CAD | KWD | reference | 0.216041 |
|
|
70
|
+
| CDF | KWD | reference | 0.000133 |
|
|
71
|
+
| CHF | KWD | reference | 0.36995 |
|
|
72
|
+
| CLP | KWD | reference | 0.000315 |
|
|
73
|
+
| CNY | KWD | reference | 0.045971 |
|
|
74
|
+
| COP | KWD | reference | 0.000095 |
|
|
75
|
+
| CRC | KWD | reference | 0.000676 |
|
|
76
|
+
| CUP | KWD | reference | 0.01284 |
|
|
77
|
+
| CVE | KWD | reference | 0.003123 |
|
|
78
|
+
| CZK | KWD | reference | 0.014145 |
|
|
79
|
+
| DJF | KWD | reference | 0.00173 |
|
|
80
|
+
| DKK | KWD | reference | 0.04619 |
|
|
81
|
+
| DOP | KWD | reference | 0.005048 |
|
|
82
|
+
| DZD | KWD | reference | 0.002291 |
|
|
83
|
+
| ECS | KWD | reference | 0.000012 |
|
|
84
|
+
| EGP | KWD | reference | 0.005884 |
|
|
85
|
+
| ERN | KWD | reference | 0.020441 |
|
|
86
|
+
| ETB | KWD | reference | 0.001908 |
|
|
87
|
+
| EUR | KWD | reference | 0.345251 |
|
|
88
|
+
| FJD | KWD | reference | 0.136896 |
|
|
89
|
+
| GBP | KWD | reference | 0.407051 |
|
|
90
|
+
| GEL | KWD | reference | 0.118748 |
|
|
91
|
+
| GHS | KWD | reference | 0.026148 |
|
|
92
|
+
| GMD | KWD | reference | 0.004133 |
|
|
93
|
+
| GNF | KWD | reference | 0.000035 |
|
|
94
|
+
| GTQ | KWD | reference | 0.040307 |
|
|
95
|
+
| GYD | KWD | reference | 0.001473 |
|
|
96
|
+
| HKD | KWD | reference | 0.039266 |
|
|
97
|
+
| HNL | KWD | reference | 0.01148 |
|
|
98
|
+
| HTG | KWD | reference | 0.002353 |
|
|
99
|
+
| HUF | KWD | reference | 0.000943 |
|
|
100
|
+
| IDR | KWD | reference | 0.000017 |
|
|
101
|
+
| INR | KWD | reference | 0.003186 |
|
|
102
|
+
| IRR | KWD | reference | 0.000007 |
|
|
103
|
+
| ISK | KWD | reference | 0.00252 |
|
|
104
|
+
| JMD | KWD | reference | 0.00194 |
|
|
105
|
+
| JOD | KWD | reference | 0.434626 |
|
|
106
|
+
| JPY | KWD | reference | 0.0019479 |
|
|
107
|
+
|
|
108
|
+
[Full table on the Central Bank of Kuwait rates page](https://allratestoday.com/central-bank-rates-api/cbk/) ยท Source: [Official rates published by CBK, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/cbk/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
109
|
+
<!-- daily-table:end -->
|
|
110
|
+
|
|
36
111
|
## ๐ Get your API key
|
|
37
112
|
|
|
38
113
|
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.
|
|
@@ -85,7 +160,7 @@ const pair = await getRate('USD', 'KWD', { apiKey: 'art_live_...' });
|
|
|
85
160
|
{
|
|
86
161
|
bank: 'cbk',
|
|
87
162
|
name: 'Central Bank of Kuwait',
|
|
88
|
-
rate_date: '2026-10-
|
|
163
|
+
rate_date: '2026-10-08', // Central Bank of Kuwait's own publication date
|
|
89
164
|
source: 'USD',
|
|
90
165
|
target: 'KWD',
|
|
91
166
|
rate: 0.30815,
|
|
@@ -113,7 +188,7 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
188
|
{
|
|
114
189
|
bank: 'cbk',
|
|
115
190
|
name: 'Central Bank of Kuwait',
|
|
116
|
-
rate_date: '2026-10-
|
|
191
|
+
rate_date: '2026-10-08',
|
|
117
192
|
rates: [
|
|
118
193
|
{ "base": "USD", "quote": "KWD", "type": "reference", "value": 0.30815 },
|
|
119
194
|
// โฆ the rest of the published table (134 currencies vs KWD)
|
|
@@ -155,7 +230,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
155
230
|
import { getHistory } from 'cbk-exchange-rate';
|
|
156
231
|
|
|
157
232
|
const series = await getHistory(
|
|
158
|
-
{ source: 'USD', target: 'KWD', from: '2026-01-01', to: '2026-10-
|
|
233
|
+
{ source: 'USD', target: 'KWD', from: '2026-01-01', to: '2026-10-08' },
|
|
159
234
|
{ apiKey: 'art_live_...' }
|
|
160
235
|
);
|
|
161
236
|
```
|
|
@@ -168,11 +243,11 @@ const series = await getHistory(
|
|
|
168
243
|
source: 'USD',
|
|
169
244
|
target: 'KWD',
|
|
170
245
|
from: '2026-01-01',
|
|
171
|
-
to: '2026-10-
|
|
246
|
+
to: '2026-10-08',
|
|
172
247
|
count: 152,
|
|
173
248
|
rates: [
|
|
174
249
|
// one entry per publication date
|
|
175
|
-
{ date: '2026-10-
|
|
250
|
+
{ date: '2026-10-08', rate: 0.30815, rate_type: 'reference', derived: false, method: 'published' },
|
|
176
251
|
// โฆ
|
|
177
252
|
],
|
|
178
253
|
disclaimer: 'โฆ'
|
|
@@ -221,6 +296,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbk/latest?format=xml&api_ke
|
|
|
221
296
|
|
|
222
297
|
- MCP server: `npx -y @allratestoday/central-bank-mcp` (stdio) or the hosted endpoint `https://allratestoday.com/api/mcp` โ tools for official rates, history, cross-bank comparison and publication calendars
|
|
223
298
|
- Already using the general SDK or MCP server? Since 2026-10-01 [`@allratestoday/sdk`](https://www.npmjs.com/package/@allratestoday/sdk) 1.4+ has `officialRates('cbk')` and [`@allratestoday/mcp-server`](https://www.npmjs.com/package/@allratestoday/mcp-server) 0.6+ has a `get_official_rates` tool โ both return this source's latest table with no key, so you can add it without a second dependency
|
|
299
|
+
- Claude Code plugin (no key): `/plugin marketplace add AllRates-Today/claude-code-plugin` then `/plugin install allratestoday@allratestoday` โ bundles both MCP servers plus an `/official-rate cbk ...` command
|
|
224
300
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
225
301
|
|
|
226
302
|
## โ๏ธ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cbk-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Official Central Bank of Kuwait (Kuwait) daily exchange rates โ 134 currencies vs KWD, history since 2008. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cbk",
|