@allratestoday/sbv-exchange-rate 1.3.9 → 1.3.14
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 +51 -51
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -42,52 +42,52 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
42
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
43
|
|
|
44
44
|
<!-- daily-table:start -->
|
|
45
|
-
Published **2026-10-
|
|
45
|
+
Published **2026-10-17** by State Bank of Vietnam — 42 rates. Updated 2026-10-16.
|
|
46
46
|
|
|
47
47
|
| Base | Quote | Type | Rate |
|
|
48
48
|
| --- | --- | --- | ---: |
|
|
49
|
-
| AED | VND | reference |
|
|
50
|
-
| AUD | VND | buy |
|
|
51
|
-
| AUD | VND | reference |
|
|
52
|
-
| AUD | VND | sell |
|
|
53
|
-
| BRL | VND | reference |
|
|
54
|
-
| CAD | VND | buy |
|
|
55
|
-
| CAD | VND | reference |
|
|
56
|
-
| CAD | VND | sell |
|
|
57
|
-
| CHF | VND | buy |
|
|
58
|
-
| CHF | VND | reference |
|
|
59
|
-
| CHF | VND | sell |
|
|
60
|
-
| CNY | VND | reference |
|
|
61
|
-
| DKK | VND | reference |
|
|
62
|
-
| EUR | VND | buy |
|
|
63
|
-
| EUR | VND | reference |
|
|
64
|
-
| EUR | VND | sell |
|
|
65
|
-
| GBP | VND | buy |
|
|
66
|
-
| GBP | VND | reference |
|
|
67
|
-
| GBP | VND | sell |
|
|
68
|
-
| HKD | VND | reference | 3267.
|
|
49
|
+
| AED | VND | reference | 6983.06 |
|
|
50
|
+
| AUD | VND | buy | 16864 |
|
|
51
|
+
| AUD | VND | reference | 17941.94 |
|
|
52
|
+
| AUD | VND | sell | 18639 |
|
|
53
|
+
| BRL | VND | reference | 5102.06 |
|
|
54
|
+
| CAD | VND | buy | 17155 |
|
|
55
|
+
| CAD | VND | reference | 18061.84 |
|
|
56
|
+
| CAD | VND | sell | 18960 |
|
|
57
|
+
| CHF | VND | buy | 29423 |
|
|
58
|
+
| CHF | VND | reference | 30831.93 |
|
|
59
|
+
| CHF | VND | sell | 32521 |
|
|
60
|
+
| CNY | VND | reference | 3832.68 |
|
|
61
|
+
| DKK | VND | reference | 3846.42 |
|
|
62
|
+
| EUR | VND | buy | 27316 |
|
|
63
|
+
| EUR | VND | reference | 28746.6 |
|
|
64
|
+
| EUR | VND | sell | 30191 |
|
|
65
|
+
| GBP | VND | buy | 32327 |
|
|
66
|
+
| GBP | VND | reference | 34037.37 |
|
|
67
|
+
| GBP | VND | sell | 35729 |
|
|
68
|
+
| HKD | VND | reference | 3267.84 |
|
|
69
69
|
| IDR | VND | reference | 1.43 |
|
|
70
|
-
| INR | VND | reference |
|
|
70
|
+
| INR | VND | reference | 269.93 |
|
|
71
71
|
| JPY | VND | buy | 154 |
|
|
72
|
-
| JPY | VND | reference |
|
|
72
|
+
| JPY | VND | reference | 162.12 |
|
|
73
73
|
| JPY | VND | sell | 170 |
|
|
74
|
-
| KHR | VND | reference | 6.
|
|
75
|
-
| KRW | VND | reference | 19.
|
|
74
|
+
| KHR | VND | reference | 6.32 |
|
|
75
|
+
| KRW | VND | reference | 19.17 |
|
|
76
76
|
| LAK | VND | reference | 1.15 |
|
|
77
|
-
| MOP | VND | reference |
|
|
78
|
-
| MYR | VND | reference |
|
|
79
|
-
| NOK | VND | reference |
|
|
80
|
-
| NZD | VND | reference |
|
|
81
|
-
| PLN | VND | reference |
|
|
82
|
-
| RUB | VND | reference |
|
|
83
|
-
| SEK | VND | reference |
|
|
84
|
-
| SGD | VND | reference |
|
|
85
|
-
| THB | VND | reference |
|
|
86
|
-
| TRY | VND | reference |
|
|
87
|
-
| TWD | VND | reference |
|
|
88
|
-
| USD | VND | buy |
|
|
89
|
-
| USD | VND | reference |
|
|
90
|
-
| USD | VND | sell |
|
|
77
|
+
| MOP | VND | reference | 3172.83 |
|
|
78
|
+
| MYR | VND | reference | 6285.78 |
|
|
79
|
+
| NOK | VND | reference | 2701.26 |
|
|
80
|
+
| NZD | VND | reference | 14425.88 |
|
|
81
|
+
| PLN | VND | reference | 6580.79 |
|
|
82
|
+
| RUB | VND | reference | 306.59 |
|
|
83
|
+
| SEK | VND | reference | 2578.65 |
|
|
84
|
+
| SGD | VND | reference | 20037.5 |
|
|
85
|
+
| THB | VND | reference | 764.87 |
|
|
86
|
+
| TRY | VND | reference | 519.43 |
|
|
87
|
+
| TWD | VND | reference | 797.1 |
|
|
88
|
+
| USD | VND | buy | 24406 |
|
|
89
|
+
| USD | VND | reference | 25637 |
|
|
90
|
+
| USD | VND | sell | 26868 |
|
|
91
91
|
|
|
92
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.
|
|
93
93
|
<!-- daily-table:end -->
|
|
@@ -144,10 +144,10 @@ const pair = await getRate('USD', 'VND', { apiKey: 'art_live_...' });
|
|
|
144
144
|
{
|
|
145
145
|
bank: 'sbv',
|
|
146
146
|
name: 'State Bank of Vietnam',
|
|
147
|
-
rate_date: '2026-10-
|
|
147
|
+
rate_date: '2026-10-14', // State Bank of Vietnam's own publication date
|
|
148
148
|
source: 'USD',
|
|
149
149
|
target: 'VND',
|
|
150
|
-
rate:
|
|
150
|
+
rate: 25646,
|
|
151
151
|
rate_type: 'reference',
|
|
152
152
|
derived: false,
|
|
153
153
|
method: 'published',
|
|
@@ -172,11 +172,11 @@ console.log(table.rate_date, table.rates.length);
|
|
|
172
172
|
{
|
|
173
173
|
bank: 'sbv',
|
|
174
174
|
name: 'State Bank of Vietnam',
|
|
175
|
-
rate_date: '2026-10-
|
|
175
|
+
rate_date: '2026-10-14',
|
|
176
176
|
rates: [
|
|
177
|
-
{ "base": "USD", "quote": "VND", "type": "reference", "value":
|
|
178
|
-
{ "base": "USD", "quote": "VND", "type": "sell", "value":
|
|
179
|
-
{ "base": "USD", "quote": "VND", "type": "buy", "value":
|
|
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 },
|
|
180
180
|
// … the rest of the published table (28 currencies vs VND)
|
|
181
181
|
],
|
|
182
182
|
disclaimer: '…'
|
|
@@ -216,7 +216,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
216
216
|
import { getHistory } from '@allratestoday/sbv-exchange-rate';
|
|
217
217
|
|
|
218
218
|
const series = await getHistory(
|
|
219
|
-
{ source: 'USD', target: 'VND', from: '2026-01-01', to: '2026-10-
|
|
219
|
+
{ source: 'USD', target: 'VND', from: '2026-01-01', to: '2026-10-14' },
|
|
220
220
|
{ apiKey: 'art_live_...' }
|
|
221
221
|
);
|
|
222
222
|
```
|
|
@@ -229,11 +229,11 @@ const series = await getHistory(
|
|
|
229
229
|
source: 'USD',
|
|
230
230
|
target: 'VND',
|
|
231
231
|
from: '2026-01-01',
|
|
232
|
-
to: '2026-10-
|
|
232
|
+
to: '2026-10-14',
|
|
233
233
|
count: 152,
|
|
234
234
|
rates: [
|
|
235
235
|
// one entry per publication date
|
|
236
|
-
{ date: '2026-10-
|
|
236
|
+
{ date: '2026-10-14', rate: 25646, rate_type: 'reference', derived: false, method: 'published' },
|
|
237
237
|
// …
|
|
238
238
|
],
|
|
239
239
|
disclaimer: '…'
|
|
@@ -283,7 +283,7 @@ curl "https://allratestoday.com/api/v1/central-bank/sbv/latest?format=xml&api_ke
|
|
|
283
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
|
|
284
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
|
|
285
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
|
-
-
|
|
286
|
+
- 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`
|
|
287
287
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
288
288
|
|
|
289
289
|
## ⚖️ Published vs derived rates
|
|
@@ -352,9 +352,9 @@ getRate('USD', 'VND', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
352
352
|
|
|
353
353
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
354
354
|
|
|
355
|
-
- Hugging Face: [
|
|
355
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/sbv.csv`)
|
|
356
356
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
357
|
-
-
|
|
357
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/sbv/latest.json`
|
|
358
358
|
|
|
359
359
|
## 🔗 Links
|
|
360
360
|
|
package/package.json
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/sbv-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
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
|
],
|