cbu-exchange-rate 1.3.27 โ 1.3.30
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 +92 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/cbu-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/cbu-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
-
[](https://allratestoday.com/central-bank-rates-api/cbu/)
|
|
8
8
|
[](https://allratestoday.com/central-bank-rates-api/cbu/)
|
|
9
9
|
|
|
10
10
|
**Official Central Bank of Uzbekistan (Uzbekistan) 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 Uzbekistan itself prints, every business day.**
|
|
11
11
|
|
|
12
12
|
## ๐ Why this client?
|
|
13
13
|
|
|
14
|
-
- ๐๏ธ **Official
|
|
14
|
+
- ๐๏ธ **Official rates** โ Central Bank of Uzbekistan's own table, with the publisher's own `rate_date` on every response
|
|
15
15
|
- ๐
**History back to 2016** โ point-in-time tables and daily series for any past date
|
|
16
|
-
- ๐ **
|
|
16
|
+
- ๐ **Official vs derived, always flagged** โ computed inverse/cross pairs carry `derived: true`, never mixed with official prints
|
|
17
17
|
- โก **Zero dependencies** โ pure ESM + CJS over global `fetch`; Node 18+, Bun, Deno, and edge runtimes
|
|
18
18
|
- ๐ท **Type-safe** โ full TypeScript definitions shipped with the package
|
|
19
19
|
- ๐งพ **Compliance-grade metadata** โ `rate_type`, publication date, and source disclaimer on every response
|
|
@@ -24,14 +24,82 @@
|
|
|
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
|
-
## ๐ Latest
|
|
27
|
+
## ๐ Latest official table
|
|
28
28
|
|
|
29
29
|
[](https://allratestoday.com/central-bank-rates-api/cbu/)
|
|
30
30
|
|
|
31
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.
|
|
32
32
|
|
|
33
33
|
<!-- daily-table:start -->
|
|
34
|
-
|
|
34
|
+
<details>
|
|
35
|
+
<summary>Table as text: published 2026-11-11 by Central Bank of Uzbekistan โ 74 rates, first 60 shown. Updated 2026-11-11.</summary>
|
|
36
|
+
|
|
37
|
+
| Base | Quote | Type | Rate |
|
|
38
|
+
| --- | --- | --- | ---: |
|
|
39
|
+
| AED | UZS | reference | 3260.28 |
|
|
40
|
+
| AFN | UZS | reference | 183.4 |
|
|
41
|
+
| AMD | UZS | reference | 33.15 |
|
|
42
|
+
| ARS | UZS | reference | 7.75 |
|
|
43
|
+
| AUD | UZS | reference | 8275.25 |
|
|
44
|
+
| AZN | UZS | reference | 7043.54 |
|
|
45
|
+
| BDT | UZS | reference | 96.04 |
|
|
46
|
+
| BHD | UZS | reference | 31744.49 |
|
|
47
|
+
| BND | UZS | reference | 9367.14 |
|
|
48
|
+
| BRL | UZS | reference | 2174.05 |
|
|
49
|
+
| BYN | UZS | reference | 3999.07 |
|
|
50
|
+
| CAD | UZS | reference | 8474.78 |
|
|
51
|
+
| CHF | UZS | reference | 14584.68 |
|
|
52
|
+
| CNY | UZS | reference | 1795.1 |
|
|
53
|
+
| CUP | UZS | reference | 498.92 |
|
|
54
|
+
| CZK | UZS | reference | 551.95 |
|
|
55
|
+
| DKK | UZS | reference | 1796.82 |
|
|
56
|
+
| DZD | UZS | reference | 87.86 |
|
|
57
|
+
| EGP | UZS | reference | 224.78 |
|
|
58
|
+
| EUR | UZS | reference | 13432.46 |
|
|
59
|
+
| GBP | UZS | reference | 16076.32 |
|
|
60
|
+
| GEL | UZS | reference | 4619.61 |
|
|
61
|
+
| HKD | UZS | reference | 1526.36 |
|
|
62
|
+
| HUF | UZS | reference | 37 |
|
|
63
|
+
| IDR | UZS | reference | 0.663 |
|
|
64
|
+
| ILS | UZS | reference | 3787.09 |
|
|
65
|
+
| INR | UZS | reference | 127.47 |
|
|
66
|
+
| IQD | UZS | reference | 7.9 |
|
|
67
|
+
| IRR | UZS | reference | 0.006 |
|
|
68
|
+
| ISK | UZS | reference | 97.9 |
|
|
69
|
+
| JOD | UZS | reference | 16888.6 |
|
|
70
|
+
| JPY | UZS | reference | 75.69 |
|
|
71
|
+
| KGS | UZS | reference | 136.89 |
|
|
72
|
+
| KHR | UZS | reference | 2.94 |
|
|
73
|
+
| KRW | UZS | reference | 8.94 |
|
|
74
|
+
| KWD | UZS | reference | 38876.69 |
|
|
75
|
+
| KZT | UZS | reference | 26.8 |
|
|
76
|
+
| LAK | UZS | reference | 0.53 |
|
|
77
|
+
| LBP | UZS | reference | 0.13 |
|
|
78
|
+
| LYD | UZS | reference | 1867.88 |
|
|
79
|
+
| MAD | UZS | reference | 1228.26 |
|
|
80
|
+
| MDL | UZS | reference | 666.33 |
|
|
81
|
+
| MMK | UZS | reference | 5.7 |
|
|
82
|
+
| MNT | UZS | reference | 3.32 |
|
|
83
|
+
| MXN | UZS | reference | 646.91 |
|
|
84
|
+
| MYR | UZS | reference | 2952.17 |
|
|
85
|
+
| NOK | UZS | reference | 1268.34 |
|
|
86
|
+
| NZD | UZS | reference | 6742.57 |
|
|
87
|
+
| OMR | UZS | reference | 31101.35 |
|
|
88
|
+
| PHP | UZS | reference | 190.34 |
|
|
89
|
+
| PKR | UZS | reference | 43.29 |
|
|
90
|
+
| PLN | UZS | reference | 3059.83 |
|
|
91
|
+
| QAR | UZS | reference | 3285.05 |
|
|
92
|
+
| RON | UZS | reference | 2513.49 |
|
|
93
|
+
| RSD | UZS | reference | 114.2 |
|
|
94
|
+
| RUB | UZS | reference | 144.58 |
|
|
95
|
+
| SAR | UZS | reference | 3190.18 |
|
|
96
|
+
| SDG | UZS | reference | 19.95 |
|
|
97
|
+
| SEK | UZS | reference | 1223.11 |
|
|
98
|
+
| SGD | UZS | reference | 9367.14 |
|
|
99
|
+
|
|
100
|
+
</details>
|
|
101
|
+
|
|
102
|
+
[Full table on the Central Bank of Uzbekistan rates page](https://allratestoday.com/central-bank-rates-api/cbu/) ยท Source: [Official rates published by CBU, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/cbu/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
35
103
|
<!-- daily-table:end -->
|
|
36
104
|
|
|
37
105
|
## ๐ฆ Installation
|
|
@@ -61,8 +129,8 @@ console.log(pair.rate, pair.rate_date); // the official Central Bank of Uzbekist
|
|
|
61
129
|
|
|
62
130
|
## ๐ API reference
|
|
63
131
|
|
|
64
|
-
- [Latest pair rate](#latest-pair-rate) โ one pair from the latest
|
|
65
|
-
- [Full
|
|
132
|
+
- [Latest pair rate](#latest-pair-rate) โ one pair from the latest official table
|
|
133
|
+
- [Full official table](#full-official-table) โ everything the central bank printed, in one call
|
|
66
134
|
- [Table for a date](#table-for-a-date) โ the official table for an invoice or filing date
|
|
67
135
|
- [Daily time series](#daily-time-series) โ one pair across a date range
|
|
68
136
|
|
|
@@ -70,7 +138,7 @@ console.log(pair.rate, pair.rate_date); // the official Central Bank of Uzbekist
|
|
|
70
138
|
|
|
71
139
|
### Latest pair rate
|
|
72
140
|
|
|
73
|
-
Free plan and up. Pairs the central bank does not print directly are resolved from its table and flagged (see *
|
|
141
|
+
Free plan and up. Pairs the central bank does not print directly are resolved from its table and flagged (see *Official vs derived rates* below).
|
|
74
142
|
|
|
75
143
|
```js
|
|
76
144
|
const pair = await getRate('USD', 'UZS', { apiKey: 'art_live_...' });
|
|
@@ -82,10 +150,10 @@ const pair = await getRate('USD', 'UZS', { apiKey: 'art_live_...' });
|
|
|
82
150
|
{
|
|
83
151
|
bank: 'cbu',
|
|
84
152
|
name: 'Central Bank of Uzbekistan',
|
|
85
|
-
rate_date: '2026-
|
|
153
|
+
rate_date: '2026-11-11', // Central Bank of Uzbekistan's own publication date
|
|
86
154
|
source: 'USD',
|
|
87
155
|
target: 'UZS',
|
|
88
|
-
rate:
|
|
156
|
+
rate: 11974.02,
|
|
89
157
|
rate_type: 'reference',
|
|
90
158
|
derived: false,
|
|
91
159
|
method: 'published',
|
|
@@ -93,7 +161,7 @@ const pair = await getRate('USD', 'UZS', { apiKey: 'art_live_...' });
|
|
|
93
161
|
}
|
|
94
162
|
```
|
|
95
163
|
|
|
96
|
-
### Full
|
|
164
|
+
### Full official table
|
|
97
165
|
|
|
98
166
|
Free plan and up. The complete table for the latest publication date.
|
|
99
167
|
|
|
@@ -110,10 +178,10 @@ console.log(table.rate_date, table.rates.length);
|
|
|
110
178
|
{
|
|
111
179
|
bank: 'cbu',
|
|
112
180
|
name: 'Central Bank of Uzbekistan',
|
|
113
|
-
rate_date: '2026-
|
|
181
|
+
rate_date: '2026-11-11',
|
|
114
182
|
rates: [
|
|
115
|
-
{ "base": "USD", "quote": "UZS", "type": "reference", "value":
|
|
116
|
-
// โฆ the rest of the
|
|
183
|
+
{ "base": "USD", "quote": "UZS", "type": "reference", "value": 11974.02 },
|
|
184
|
+
// โฆ the rest of the official table (75 currencies vs UZS)
|
|
117
185
|
],
|
|
118
186
|
disclaimer: 'โฆ'
|
|
119
187
|
}
|
|
@@ -152,7 +220,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
152
220
|
import { getHistory } from 'cbu-exchange-rate';
|
|
153
221
|
|
|
154
222
|
const series = await getHistory(
|
|
155
|
-
{ source: 'USD', target: 'UZS', from: '2026-01-01', to: '2026-
|
|
223
|
+
{ source: 'USD', target: 'UZS', from: '2026-01-01', to: '2026-11-11' },
|
|
156
224
|
{ apiKey: 'art_live_...' }
|
|
157
225
|
);
|
|
158
226
|
```
|
|
@@ -165,11 +233,11 @@ const series = await getHistory(
|
|
|
165
233
|
source: 'USD',
|
|
166
234
|
target: 'UZS',
|
|
167
235
|
from: '2026-01-01',
|
|
168
|
-
to: '2026-
|
|
236
|
+
to: '2026-11-11',
|
|
169
237
|
count: 152,
|
|
170
238
|
rates: [
|
|
171
239
|
// one entry per publication date
|
|
172
|
-
{ date: '2026-
|
|
240
|
+
{ date: '2026-11-11', rate: 11974.02, rate_type: 'reference', derived: false, method: 'published' },
|
|
173
241
|
// โฆ
|
|
174
242
|
],
|
|
175
243
|
disclaimer: 'โฆ'
|
|
@@ -223,7 +291,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbu/latest?format=xml&api_ke
|
|
|
223
291
|
- Evaluating? Agents can self-issue a trial key with no signup: `POST https://allratestoday.com/api/agent/keys` (send `Content-Type: application/json`) returns a 100-call key valid 7 days that covers the free-plan methods (latest table, pairs); dated tables and history need a [paid plan](https://allratestoday.com/pricing/). The MCP servers expose it as `request_trial_key`
|
|
224
292
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
225
293
|
|
|
226
|
-
## โ๏ธ
|
|
294
|
+
## โ๏ธ Official vs derived rates
|
|
227
295
|
|
|
228
296
|
If Central Bank of Uzbekistan does not print a pair directly, the API resolves it from the central bank's own table and says so โ official and computed values are never confused:
|
|
229
297
|
|
|
@@ -273,21 +341,21 @@ getRate('USD', 'UZS', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
273
341
|
|
|
274
342
|
## ๐ก Quota tips
|
|
275
343
|
|
|
276
|
-
- Rates change once per business day โ cache the
|
|
344
|
+
- Rates change once per business day โ cache the official table locally and a small monthly quota goes a long way.
|
|
277
345
|
- Every request counts toward your AllRatesToday quota, shared across all AllRatesToday endpoints on your key.
|
|
278
346
|
|
|
279
347
|
## ๐ Methods reference
|
|
280
348
|
|
|
281
349
|
| Method | Plan | Description |
|
|
282
350
|
| ------ | ---- | ----------- |
|
|
283
|
-
| `getRate(source, target, { apiKey })` | Free | Latest rate for one pair, resolved from the
|
|
284
|
-
| `getLatestRates({ apiKey })` | Free | The central bank's full latest
|
|
351
|
+
| `getRate(source, target, { apiKey })` | Free | Latest rate for one pair, resolved from the official table |
|
|
352
|
+
| `getLatestRates({ apiKey })` | Free | The central bank's full latest official table |
|
|
285
353
|
| `getRatesForDate(date, { apiKey, source?, target? })` | Paid | The official table (or one pair) for a YYYY-MM-DD date |
|
|
286
354
|
| `getHistory({ symbol \| source+target, from?, to? }, { apiKey })` | Paid | Daily series since 2016 |
|
|
287
355
|
|
|
288
356
|
## ๐ฅ Bulk data (no key)
|
|
289
357
|
|
|
290
|
-
Need the whole archive rather than an API call? The same
|
|
358
|
+
Need the whole archive rather than an API call? The same official tables are mirrored daily as open data:
|
|
291
359
|
|
|
292
360
|
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ one CSV per institution (`rates/cbu.csv`)
|
|
293
361
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
@@ -297,7 +365,7 @@ Need the whole archive rather than an API call? The same published tables are mi
|
|
|
297
365
|
|
|
298
366
|
- **Website:** [allratestoday.com](https://allratestoday.com)
|
|
299
367
|
- [Central Bank of Uzbekistan rates page](https://allratestoday.com/central-bank-rates-api/cbu/) โ live table, publication cadence, FAQ
|
|
300
|
-
- [All central bank sources](https://allratestoday.com/central-bank-rates-api/)
|
|
368
|
+
- [All central bank sources](https://allratestoday.com/central-bank-rates-api/) ยท [Full list of 130+ central banks and tax authorities](https://allratestoday.com/central-bank-rates-api/institutions/) โ one API, the same response shape for every source
|
|
301
369
|
- [Download central bank rates](https://allratestoday.com/download-central-bank-rates/) โ every bank's latest table and history as Excel, CSV or JSON
|
|
302
370
|
- [Package docs on the site](https://allratestoday.com/docs/sdk/cbu-exchange-rate/) ยท [ERP integration guides](https://allratestoday.com/docs/integrations/)
|
|
303
371
|
- [API documentation](https://allratestoday.com/docs/#central-bank) ยท [Interactive reference](https://allratestoday.com/api-reference/) ยท [Methodology](https://allratestoday.com/official-rates-methodology/)
|
|
@@ -305,6 +373,7 @@ Need the whole archive rather than an API call? The same published tables are mi
|
|
|
305
373
|
- [Status](https://allratestoday.com/status)
|
|
306
374
|
- [Postman collection](https://allratestoday.com/postman/)
|
|
307
375
|
- [ChatGPT app](https://chatgpt.com/plugins/plugin_asdk_app_6ae1e76098f48191a285ac3f5ab7a83b) โ ask ChatGPT for live and official central bank rates
|
|
376
|
+
- [OpenAPI reference on Bump.sh](https://bump.sh/allratestoday/doc/allratestoday-api) โ also on [SwaggerHub](https://app.swaggerhub.com/apis-docs/allratestoday/allratestoday-exchange-rate-central-bank-rates-api/2.2.0)
|
|
308
377
|
- [GitHub](https://github.com/AllRates-Today/cbu-exchange-rate)
|
|
309
378
|
|
|
310
379
|
## ๐ License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cbu-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.30",
|
|
4
4
|
"description": "Official Central Bank of Uzbekistan (Uzbekistan) daily exchange rates โ 75 currencies vs UZS, history since 2016. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cbu",
|