@allratestoday/nbk-exchange-rate 1.3.6 โ†’ 1.3.9

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.
Files changed (2) hide show
  1. package/README.md +73 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/@allratestoday%2Fnbk-exchange-rate.svg)](https://github.com/AllRates-Today/nbk-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/nbk-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/KZT today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fnbk%3Fsource%3DUSD%26target%3DKZT&query=%24.rate&label=USD%2FKZT%20published%20by%20National%20Bank%20of%20Kazakhstan&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/nbk/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fnbk%3Fsource%3DUSD%26target%3DKZT&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/nbk/)
7
9
 
8
10
  **Official National Bank of Kazakhstan (Kazakhstan) 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 National Bank of Kazakhstan itself prints, every business day.**
9
11
 
@@ -33,6 +35,69 @@ 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
+ [![Latest National Bank of Kazakhstan table](https://allratestoday.com/api/open/central-bank/nbk/table.svg)](https://allratestoday.com/central-bank-rates-api/nbk/)
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.
43
+
44
+ <!-- daily-table:start -->
45
+ Published **2026-10-12** by National Bank of Kazakhstan โ€” 48 rates. Updated 2026-10-12.
46
+
47
+ | Base | Quote | Type | Rate |
48
+ | --- | --- | --- | ---: |
49
+ | AED | KZT | reference | 123.6 |
50
+ | AMD | KZT | reference | 1.259 |
51
+ | AUD | KZT | reference | 316.57 |
52
+ | AZN | KZT | reference | 267.81 |
53
+ | BRL | KZT | reference | 90.45 |
54
+ | BYN | KZT | reference | 149.57 |
55
+ | CAD | KZT | reference | 318.84 |
56
+ | CHF | KZT | reference | 546.18 |
57
+ | CNY | KZT | reference | 67.83 |
58
+ | CZK | KZT | reference | 20.89 |
59
+ | DKK | KZT | reference | 68.06 |
60
+ | EGP | KZT | reference | 8.68 |
61
+ | EUR | KZT | reference | 508.72 |
62
+ | GBP | KZT | reference | 600.1 |
63
+ | GEL | KZT | reference | 177.11 |
64
+ | HKD | KZT | reference | 57.85 |
65
+ | HUF | KZT | reference | 1.394 |
66
+ | IDR | KZT | reference | 0.02539 |
67
+ | ILS | KZT | reference | 148.61 |
68
+ | INR | KZT | reference | 4.69 |
69
+ | IRR | KZT | reference | 0.000257 |
70
+ | JPY | KZT | reference | 2.87 |
71
+ | KGS | KZT | reference | 5.19 |
72
+ | KRW | KZT | reference | 0.3386 |
73
+ | KWD | KZT | reference | 1473.32 |
74
+ | MDL | KZT | reference | 25.56 |
75
+ | MNT | KZT | reference | 0.1263 |
76
+ | MXN | KZT | reference | 24.94 |
77
+ | MYR | KZT | reference | 111.18 |
78
+ | NOK | KZT | reference | 47.4 |
79
+ | OMR | KZT | reference | 1179.1 |
80
+ | PKR | KZT | reference | 1.64 |
81
+ | PLN | KZT | reference | 116.15 |
82
+ | QAR | KZT | reference | 124.78 |
83
+ | RON | KZT | reference | 95.31 |
84
+ | RUB | KZT | reference | 5.35 |
85
+ | SAR | KZT | reference | 120.91 |
86
+ | SEK | KZT | reference | 45.51 |
87
+ | SGD | KZT | reference | 354.55 |
88
+ | THB | KZT | reference | 13.55 |
89
+ | TJS | KZT | reference | 49.61 |
90
+ | TRY | KZT | reference | 9.24 |
91
+ | UAH | KZT | reference | 10.11 |
92
+ | USD | KZT | reference | 453.93 |
93
+ | UZS | KZT | reference | 0.0382 |
94
+ | VND | KZT | reference | 0.01754 |
95
+ | XDR | KZT | reference | 613.64 |
96
+ | ZAR | KZT | reference | 27.44 |
97
+
98
+ Source: [Official rates published by NBK, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/nbk/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
99
+ <!-- daily-table:end -->
100
+
36
101
  ## ๐Ÿ”‘ Get your API key
37
102
 
38
103
  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,10 +150,10 @@ const pair = await getRate('USD', 'KZT', { apiKey: 'art_live_...' });
85
150
  {
86
151
  bank: 'nbk',
87
152
  name: 'National Bank of Kazakhstan',
88
- rate_date: '2026-10-08', // National Bank of Kazakhstan's own publication date
153
+ rate_date: '2026-10-12', // National Bank of Kazakhstan's own publication date
89
154
  source: 'USD',
90
155
  target: 'KZT',
91
- rate: 447.14,
156
+ rate: 453.93,
92
157
  rate_type: 'reference',
93
158
  derived: false,
94
159
  method: 'published',
@@ -113,9 +178,9 @@ console.log(table.rate_date, table.rates.length);
113
178
  {
114
179
  bank: 'nbk',
115
180
  name: 'National Bank of Kazakhstan',
116
- rate_date: '2026-10-08',
181
+ rate_date: '2026-10-12',
117
182
  rates: [
118
- { "base": "USD", "quote": "KZT", "type": "reference", "value": 447.14 },
183
+ { "base": "USD", "quote": "KZT", "type": "reference", "value": 453.93 },
119
184
  // โ€ฆ the rest of the published table (48 currencies vs KZT)
120
185
  ],
121
186
  disclaimer: 'โ€ฆ'
@@ -155,7 +220,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
155
220
  import { getHistory } from '@allratestoday/nbk-exchange-rate';
156
221
 
157
222
  const series = await getHistory(
158
- { source: 'USD', target: 'KZT', from: '2026-01-01', to: '2026-10-08' },
223
+ { source: 'USD', target: 'KZT', from: '2026-01-01', to: '2026-10-12' },
159
224
  { apiKey: 'art_live_...' }
160
225
  );
161
226
  ```
@@ -168,11 +233,11 @@ const series = await getHistory(
168
233
  source: 'USD',
169
234
  target: 'KZT',
170
235
  from: '2026-01-01',
171
- to: '2026-10-08',
236
+ to: '2026-10-12',
172
237
  count: 152,
173
238
  rates: [
174
239
  // one entry per publication date
175
- { date: '2026-10-08', rate: 447.14, rate_type: 'reference', derived: false, method: 'published' },
240
+ { date: '2026-10-12', rate: 453.93, rate_type: 'reference', derived: false, method: 'published' },
176
241
  // โ€ฆ
177
242
  ],
178
243
  disclaimer: 'โ€ฆ'
@@ -222,6 +287,7 @@ curl "https://allratestoday.com/api/v1/central-bank/nbk/latest?format=xml&api_ke
222
287
  - 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
288
  - 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('nbk')` 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
224
289
  - 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 nbk ...` command
290
+ - Need dated tables or history for an evaluation? 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; the MCP servers expose it as `request_trial_key`
225
291
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
226
292
 
227
293
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/nbk-exchange-rate",
3
- "version": "1.3.6",
3
+ "version": "1.3.9",
4
4
  "description": "Official National Bank of Kazakhstan (Kazakhstan) daily exchange rates โ€” 48 currencies vs KZT, history since 2016. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "nbk",