@allratestoday/bok-exchange-rate 1.3.7 โ†’ 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.
Files changed (2) hide show
  1. package/README.md +54 -51
  2. package/package.json +11 -2
package/README.md CHANGED
@@ -37,56 +37,58 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## ๐Ÿ“ˆ Latest published table
39
39
 
40
- Today's full Bank of Korea 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.
40
+ [![Latest Bank of Korea table](https://allratestoday.com/api/open/central-bank/bok/table.svg)](https://allratestoday.com/central-bank-rates-api/bok/)
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-08** by Bank of Korea โ€” 43 rates. Updated 2026-10-08.
45
+ Published **2026-10-14** by Bank of Korea โ€” 43 rates. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
- | AED | KRW | reference | 364.64 |
48
- | ARS | KRW | reference | 0.88 |
49
- | AUD | KRW | reference | 932.22 |
50
- | BDT | KRW | reference | 10.87 |
51
- | BHD | KRW | reference | 3551.03 |
52
- | BND | KRW | reference | 1046.62 |
53
- | BRL | KRW | reference | 266.67 |
54
- | CAD | KRW | reference | 939.43 |
55
- | CHF | KRW | reference | 1607.97 |
56
- | CNY | KRW | reference | 199.71 |
57
- | CZK | KRW | reference | 61.43 |
58
- | DKK | KRW | reference | 200.69 |
59
- | EGP | KRW | reference | 25.57 |
60
- | EUR | KRW | reference | 1500.04 |
61
- | GBP | KRW | reference | 1770.02 |
62
- | HKD | KRW | reference | 170.65 |
63
- | HUF | KRW | reference | 4.1 |
49
+ | AED | KRW | reference | 364.99 |
50
+ | ARS | KRW | reference | 0.89 |
51
+ | AUD | KRW | reference | 935.94 |
52
+ | BDT | KRW | reference | 10.89 |
53
+ | BHD | KRW | reference | 3550.05 |
54
+ | BND | KRW | reference | 1047.35 |
55
+ | BRL | KRW | reference | 266.65 |
56
+ | CAD | KRW | reference | 942.65 |
57
+ | CHF | KRW | reference | 1609.53 |
58
+ | CNY | KRW | reference | 200.23 |
59
+ | CZK | KRW | reference | 61.62 |
60
+ | DKK | KRW | reference | 200.81 |
61
+ | EGP | KRW | reference | 25.39 |
62
+ | EUR | KRW | reference | 1500.96 |
63
+ | GBP | KRW | reference | 1776.63 |
64
+ | HKD | KRW | reference | 170.8 |
65
+ | HUF | KRW | reference | 4.12 |
64
66
  | IDR | KRW | reference | 0.0749 |
65
67
  | ILS | KRW | reference | 436.13 |
66
- | INR | KRW | reference | 13.84 |
67
- | JOD | KRW | reference | 1888.86 |
68
- | JPY | KRW | reference | 8.4746 |
69
- | KWD | KRW | reference | 4345.94 |
70
- | KZT | KRW | reference | 2.99 |
68
+ | INR | KRW | reference | 14.07 |
69
+ | JOD | KRW | reference | 1890.69 |
70
+ | JPY | KRW | reference | 8.4657 |
71
+ | KWD | KRW | reference | 4348.04 |
72
+ | KZT | KRW | reference | 2.98 |
71
73
  | MNT | KRW | reference | 0.37 |
72
- | MXN | KRW | reference | 74.5 |
73
- | MYR | KRW | reference | 327.59 |
74
- | NOK | KRW | reference | 139.88 |
75
- | NZD | KRW | reference | 749.95 |
76
- | PHP | KRW | reference | 21.35 |
77
- | PKR | KRW | reference | 4.83 |
78
- | PLN | KRW | reference | 342.58 |
79
- | QAR | KRW | reference | 367.31 |
80
- | RUB | KRW | reference | 15.67 |
81
- | SAR | KRW | reference | 356.72 |
82
- | SEK | KRW | reference | 133.93 |
83
- | SGD | KRW | reference | 1046.62 |
84
- | THB | KRW | reference | 39.82 |
85
- | TRY | KRW | reference | 27.22 |
86
- | TWD | KRW | reference | 42.04 |
87
- | USD | KRW | reference | 1339.2 |
88
- | VND | KRW | reference | 0.0515 |
89
- | ZAR | KRW | reference | 80.52 |
74
+ | MXN | KRW | reference | 72.96 |
75
+ | MYR | KRW | reference | 328.07 |
76
+ | NOK | KRW | reference | 140.78 |
77
+ | NZD | KRW | reference | 752.09 |
78
+ | PHP | KRW | reference | 21.34 |
79
+ | PKR | KRW | reference | 4.84 |
80
+ | PLN | KRW | reference | 343.33 |
81
+ | QAR | KRW | reference | 367.91 |
82
+ | RUB | KRW | reference | 16.02 |
83
+ | SAR | KRW | reference | 356.92 |
84
+ | SEK | KRW | reference | 134.5 |
85
+ | SGD | KRW | reference | 1047.35 |
86
+ | THB | KRW | reference | 39.93 |
87
+ | TRY | KRW | reference | 27.15 |
88
+ | TWD | KRW | reference | 41.73 |
89
+ | USD | KRW | reference | 1340.5 |
90
+ | VND | KRW | reference | 0.0517 |
91
+ | ZAR | KRW | reference | 81.33 |
90
92
 
91
93
  Source: [Official rates published by BOK, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bok/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
92
94
  <!-- daily-table:end -->
@@ -143,10 +145,10 @@ const pair = await getRate('USD', 'KRW', { apiKey: 'art_live_...' });
143
145
  {
144
146
  bank: 'bok',
145
147
  name: 'Bank of Korea',
146
- rate_date: '2026-10-08', // Bank of Korea's own publication date
148
+ rate_date: '2026-10-14', // Bank of Korea's own publication date
147
149
  source: 'USD',
148
150
  target: 'KRW',
149
- rate: 1339.2,
151
+ rate: 1340.5,
150
152
  rate_type: 'reference',
151
153
  derived: false,
152
154
  method: 'published',
@@ -171,9 +173,9 @@ console.log(table.rate_date, table.rates.length);
171
173
  {
172
174
  bank: 'bok',
173
175
  name: 'Bank of Korea',
174
- rate_date: '2026-10-08',
176
+ rate_date: '2026-10-14',
175
177
  rates: [
176
- { "base": "USD", "quote": "KRW", "type": "reference", "value": 1339.2 },
178
+ { "base": "USD", "quote": "KRW", "type": "reference", "value": 1340.5 },
177
179
  // โ€ฆ the rest of the published table (43 currencies vs KRW)
178
180
  ],
179
181
  disclaimer: 'โ€ฆ'
@@ -213,7 +215,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
213
215
  import { getHistory } from '@allratestoday/bok-exchange-rate';
214
216
 
215
217
  const series = await getHistory(
216
- { source: 'USD', target: 'KRW', from: '2026-01-01', to: '2026-10-08' },
218
+ { source: 'USD', target: 'KRW', from: '2026-01-01', to: '2026-10-14' },
217
219
  { apiKey: 'art_live_...' }
218
220
  );
219
221
  ```
@@ -226,11 +228,11 @@ const series = await getHistory(
226
228
  source: 'USD',
227
229
  target: 'KRW',
228
230
  from: '2026-01-01',
229
- to: '2026-10-08',
231
+ to: '2026-10-14',
230
232
  count: 152,
231
233
  rates: [
232
234
  // one entry per publication date
233
- { date: '2026-10-08', rate: 1339.2, rate_type: 'reference', derived: false, method: 'published' },
235
+ { date: '2026-10-14', rate: 1340.5, rate_type: 'reference', derived: false, method: 'published' },
234
236
  // โ€ฆ
235
237
  ],
236
238
  disclaimer: 'โ€ฆ'
@@ -280,6 +282,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bok/latest?format=xml&api_ke
280
282
  - 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
281
283
  - 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('bok')` 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
282
284
  - 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 bok ...` command
285
+ - 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`
283
286
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
284
287
 
285
288
  ## โš–๏ธ Published vs derived rates
@@ -348,9 +351,9 @@ getRate('USD', 'KRW', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
348
351
 
349
352
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
350
353
 
351
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) โ€” one CSV per institution (`rates/bok.csv`)
354
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ€” one CSV per institution (`rates/bok.csv`)
352
355
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
353
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/bok/latest.json`
356
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/bok/latest.json`
354
357
 
355
358
  ## ๐Ÿ”— Links
356
359
 
package/package.json CHANGED
@@ -1,18 +1,27 @@
1
1
  {
2
2
  "name": "@allratestoday/bok-exchange-rate",
3
- "version": "1.3.7",
3
+ "version": "1.3.13",
4
4
  "description": "Official Bank of Korea (South Korea) daily exchange rates โ€” 43 currencies vs KRW, history since 1964. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "bok",
7
+ "bank-of-korea",
7
8
  "bank",
8
- "of",
9
9
  "korea",
10
10
  "exchange-rate",
11
11
  "exchange-rates",
12
+ "exchangerate",
13
+ "exchange rate",
14
+ "krw-exchange-rate",
12
15
  "currency",
13
16
  "forex",
14
17
  "fx",
15
18
  "krw",
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
27
  "south-korea",