@allratestoday/sbv-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 +29 -26
  2. package/package.json +11 -3
package/README.md CHANGED
@@ -37,32 +37,34 @@ 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 State Bank of Vietnam 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 State Bank of Vietnam table](https://allratestoday.com/api/open/central-bank/sbv/table.svg)](https://allratestoday.com/central-bank-rates-api/sbv/)
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-09** by State Bank of Vietnam โ€” 42 rates. Updated 2026-10-09.
45
+ Published **2026-10-14** by State Bank of Vietnam โ€” 42 rates. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
49
  | AED | VND | reference | 6980.7 |
48
- | AUD | VND | buy | 16962 |
50
+ | AUD | VND | buy | 17031 |
49
51
  | AUD | VND | reference | 17869.69 |
50
- | AUD | VND | sell | 18747 |
52
+ | AUD | VND | sell | 18824 |
51
53
  | BRL | VND | reference | 5145.3 |
52
- | CAD | VND | buy | 17127 |
54
+ | CAD | VND | buy | 17148 |
53
55
  | CAD | VND | reference | 18030.8 |
54
- | CAD | VND | sell | 18930 |
55
- | CHF | VND | buy | 29294 |
56
+ | CAD | VND | sell | 18953 |
57
+ | CHF | VND | buy | 29267 |
56
58
  | CHF | VND | reference | 30789 |
57
- | CHF | VND | sell | 32377 |
59
+ | CHF | VND | sell | 32348 |
58
60
  | CNY | VND | reference | 3824 |
59
61
  | DKK | VND | reference | 3850.71 |
60
- | EUR | VND | buy | 27318 |
62
+ | EUR | VND | buy | 27297 |
61
63
  | EUR | VND | reference | 28778.66 |
62
- | EUR | VND | sell | 30194 |
63
- | GBP | VND | buy | 32231 |
64
+ | EUR | VND | sell | 30170 |
65
+ | GBP | VND | buy | 32310 |
64
66
  | GBP | VND | reference | 33960.09 |
65
- | GBP | VND | sell | 35624 |
67
+ | GBP | VND | sell | 35711 |
66
68
  | HKD | VND | reference | 3267.03 |
67
69
  | IDR | VND | reference | 1.43 |
68
70
  | INR | VND | reference | 265.17 |
@@ -83,9 +85,9 @@ Published **2026-10-09** by State Bank of Vietnam โ€” 42 rates. Updated 2026-10-
83
85
  | THB | VND | reference | 761.45 |
84
86
  | TRY | VND | reference | 521.18 |
85
87
  | TWD | VND | reference | 804.78 |
86
- | USD | VND | buy | 24398 |
87
- | USD | VND | reference | 25629 |
88
- | USD | VND | sell | 26860 |
88
+ | USD | VND | buy | 24414 |
89
+ | USD | VND | reference | 25646 |
90
+ | USD | VND | sell | 26878 |
89
91
 
90
92
  Source: [Official rates published by SBV, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/sbv/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
91
93
  <!-- daily-table:end -->
@@ -142,10 +144,10 @@ const pair = await getRate('USD', 'VND', { apiKey: 'art_live_...' });
142
144
  {
143
145
  bank: 'sbv',
144
146
  name: 'State Bank of Vietnam',
145
- rate_date: '2026-10-08', // State Bank of Vietnam's own publication date
147
+ rate_date: '2026-10-14', // State Bank of Vietnam's own publication date
146
148
  source: 'USD',
147
149
  target: 'VND',
148
- rate: 25634,
150
+ rate: 25646,
149
151
  rate_type: 'reference',
150
152
  derived: false,
151
153
  method: 'published',
@@ -170,11 +172,11 @@ console.log(table.rate_date, table.rates.length);
170
172
  {
171
173
  bank: 'sbv',
172
174
  name: 'State Bank of Vietnam',
173
- rate_date: '2026-10-08',
175
+ rate_date: '2026-10-14',
174
176
  rates: [
175
- { "base": "USD", "quote": "VND", "type": "reference", "value": 25634 },
176
- { "base": "USD", "quote": "VND", "type": "sell", "value": 26869 },
177
- { "base": "USD", "quote": "VND", "type": "buy", "value": 24407 },
177
+ { "base": "USD", "quote": "VND", "type": "reference", "value": 25646 },
178
+ { "base": "USD", "quote": "VND", "type": "sell", "value": 26878 },
179
+ { "base": "USD", "quote": "VND", "type": "buy", "value": 24414 },
178
180
  // โ€ฆ the rest of the published table (28 currencies vs VND)
179
181
  ],
180
182
  disclaimer: 'โ€ฆ'
@@ -214,7 +216,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
214
216
  import { getHistory } from '@allratestoday/sbv-exchange-rate';
215
217
 
216
218
  const series = await getHistory(
217
- { source: 'USD', target: 'VND', from: '2026-01-01', to: '2026-10-08' },
219
+ { source: 'USD', target: 'VND', from: '2026-01-01', to: '2026-10-14' },
218
220
  { apiKey: 'art_live_...' }
219
221
  );
220
222
  ```
@@ -227,11 +229,11 @@ const series = await getHistory(
227
229
  source: 'USD',
228
230
  target: 'VND',
229
231
  from: '2026-01-01',
230
- to: '2026-10-08',
232
+ to: '2026-10-14',
231
233
  count: 152,
232
234
  rates: [
233
235
  // one entry per publication date
234
- { date: '2026-10-08', rate: 25634, rate_type: 'reference', derived: false, method: 'published' },
236
+ { date: '2026-10-14', rate: 25646, rate_type: 'reference', derived: false, method: 'published' },
235
237
  // โ€ฆ
236
238
  ],
237
239
  disclaimer: 'โ€ฆ'
@@ -281,6 +283,7 @@ curl "https://allratestoday.com/api/v1/central-bank/sbv/latest?format=xml&api_ke
281
283
  - 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
282
284
  - 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('sbv')` 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
283
285
  - 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 sbv ...` command
286
+ - 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`
284
287
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
285
288
 
286
289
  ## โš–๏ธ Published vs derived rates
@@ -349,9 +352,9 @@ getRate('USD', 'VND', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
349
352
 
350
353
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
351
354
 
352
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) โ€” one CSV per institution (`rates/sbv.csv`)
355
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ€” one CSV per institution (`rates/sbv.csv`)
353
356
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
354
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/sbv/latest.json`
357
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/sbv/latest.json`
355
358
 
356
359
  ## ๐Ÿ”— Links
357
360
 
package/package.json CHANGED
@@ -1,22 +1,30 @@
1
1
  {
2
2
  "name": "@allratestoday/sbv-exchange-rate",
3
- "version": "1.3.7",
3
+ "version": "1.3.13",
4
4
  "description": "Official State Bank of Vietnam (Vietnam) daily exchange rates โ€” 28 currencies vs VND, history since 2009. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "sbv",
7
+ "state-bank-of-vietnam",
7
8
  "state",
8
9
  "bank",
9
- "of",
10
10
  "vietnam",
11
11
  "exchange-rate",
12
12
  "exchange-rates",
13
+ "exchangerate",
14
+ "exchange rate",
15
+ "vnd-exchange-rate",
13
16
  "currency",
14
17
  "forex",
15
18
  "fx",
16
19
  "vnd",
20
+ "currency-api",
21
+ "currency-exchange-rates",
22
+ "forex-api",
23
+ "currency-conversion",
24
+ "currency-exchange",
25
+ "currency-rates",
17
26
  "central-bank",
18
27
  "official-rates",
19
- "vietnam",
20
28
  "api",
21
29
  "typescript"
22
30
  ],