@allratestoday/sbv-exchange-rate 1.3.7 โ 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.
- package/README.md +15 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,10 +37,12 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
37
37
|
|
|
38
38
|
## ๐ Latest published table
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
[](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-
|
|
45
|
+
Published **2026-10-12** by State Bank of Vietnam โ 42 rates. Updated 2026-10-12.
|
|
44
46
|
|
|
45
47
|
| Base | Quote | Type | Rate |
|
|
46
48
|
| --- | --- | --- | ---: |
|
|
@@ -84,7 +86,7 @@ Published **2026-10-09** by State Bank of Vietnam โ 42 rates. Updated 2026-10-
|
|
|
84
86
|
| TRY | VND | reference | 521.18 |
|
|
85
87
|
| TWD | VND | reference | 804.78 |
|
|
86
88
|
| USD | VND | buy | 24398 |
|
|
87
|
-
| USD | VND | reference |
|
|
89
|
+
| USD | VND | reference | 25621 |
|
|
88
90
|
| USD | VND | sell | 26860 |
|
|
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.
|
|
@@ -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-
|
|
147
|
+
rate_date: '2026-10-12', // State Bank of Vietnam's own publication date
|
|
146
148
|
source: 'USD',
|
|
147
149
|
target: 'VND',
|
|
148
|
-
rate:
|
|
150
|
+
rate: 25621,
|
|
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-
|
|
175
|
+
rate_date: '2026-10-12',
|
|
174
176
|
rates: [
|
|
175
|
-
{ "base": "USD", "quote": "VND", "type": "reference", "value":
|
|
176
|
-
{ "base": "USD", "quote": "VND", "type": "sell", "value":
|
|
177
|
-
{ "base": "USD", "quote": "VND", "type": "buy", "value":
|
|
177
|
+
{ "base": "USD", "quote": "VND", "type": "reference", "value": 25621 },
|
|
178
|
+
{ "base": "USD", "quote": "VND", "type": "sell", "value": 26860 },
|
|
179
|
+
{ "base": "USD", "quote": "VND", "type": "buy", "value": 24398 },
|
|
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-
|
|
219
|
+
{ source: 'USD', target: 'VND', from: '2026-01-01', to: '2026-10-12' },
|
|
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-
|
|
232
|
+
to: '2026-10-12',
|
|
231
233
|
count: 152,
|
|
232
234
|
rates: [
|
|
233
235
|
// one entry per publication date
|
|
234
|
-
{ date: '2026-10-
|
|
236
|
+
{ date: '2026-10-12', rate: 25621, 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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/sbv-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
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",
|