bnb-exchange-rate 1.3.7 → 1.3.8
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 +38 -37
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,39 +40,39 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
40
40
|
Today's full Bulgarian National Bank 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.
|
|
41
41
|
|
|
42
42
|
<!-- daily-table:start -->
|
|
43
|
-
Published **2026-10-
|
|
43
|
+
Published **2026-10-12** by Bulgarian National Bank — 29 rates. Updated 2026-10-12.
|
|
44
44
|
|
|
45
45
|
| Base | Quote | Type | Rate |
|
|
46
46
|
| --- | --- | --- | ---: |
|
|
47
|
-
| EUR | AUD | reference | 1.
|
|
48
|
-
| EUR | BRL | reference | 5.
|
|
49
|
-
| EUR | CAD | reference | 1.
|
|
50
|
-
| EUR | CHF | reference | 0.
|
|
51
|
-
| EUR | CNY | reference | 7.
|
|
52
|
-
| EUR | CZK | reference | 24.
|
|
53
|
-
| EUR | DKK | reference | 7.
|
|
54
|
-
| EUR | GBP | reference | 0.
|
|
55
|
-
| EUR | HKD | reference | 8.
|
|
56
|
-
| EUR | HUF | reference |
|
|
57
|
-
| EUR | IDR | reference |
|
|
58
|
-
| EUR | ILS | reference | 3.
|
|
59
|
-
| EUR | INR | reference |
|
|
60
|
-
| EUR | ISK | reference |
|
|
61
|
-
| EUR | JPY | reference | 177.
|
|
62
|
-
| EUR | KRW | reference |
|
|
63
|
-
| EUR | MXN | reference | 20.
|
|
64
|
-
| EUR | MYR | reference | 4.
|
|
65
|
-
| EUR | NOK | reference | 10.
|
|
66
|
-
| EUR | NZD | reference |
|
|
67
|
-
| EUR | PHP | reference | 70.
|
|
68
|
-
| EUR | PLN | reference | 4.
|
|
69
|
-
| EUR | RON | reference | 5.
|
|
70
|
-
| EUR | SEK | reference | 11.
|
|
71
|
-
| EUR | SGD | reference | 1.
|
|
72
|
-
| EUR | THB | reference | 37.
|
|
73
|
-
| EUR | TRY | reference | 55.
|
|
74
|
-
| EUR | USD | reference | 1.
|
|
75
|
-
| EUR | ZAR | reference | 18.
|
|
47
|
+
| EUR | AUD | reference | 1.6032 |
|
|
48
|
+
| EUR | BRL | reference | 5.5819 |
|
|
49
|
+
| EUR | CAD | reference | 1.5946 |
|
|
50
|
+
| EUR | CHF | reference | 0.9312 |
|
|
51
|
+
| EUR | CNY | reference | 7.4832 |
|
|
52
|
+
| EUR | CZK | reference | 24.391 |
|
|
53
|
+
| EUR | DKK | reference | 7.4748 |
|
|
54
|
+
| EUR | GBP | reference | 0.84478 |
|
|
55
|
+
| EUR | HKD | reference | 8.7743 |
|
|
56
|
+
| EUR | HUF | reference | 365.13 |
|
|
57
|
+
| EUR | IDR | reference | 20036.18 |
|
|
58
|
+
| EUR | ILS | reference | 3.432 |
|
|
59
|
+
| EUR | INR | reference | 107.086 |
|
|
60
|
+
| EUR | ISK | reference | 136.4 |
|
|
61
|
+
| EUR | JPY | reference | 177.33 |
|
|
62
|
+
| EUR | KRW | reference | 1490.53 |
|
|
63
|
+
| EUR | MXN | reference | 20.5081 |
|
|
64
|
+
| EUR | MYR | reference | 4.5663 |
|
|
65
|
+
| EUR | NOK | reference | 10.6955 |
|
|
66
|
+
| EUR | NZD | reference | 1.9968 |
|
|
67
|
+
| EUR | PHP | reference | 70.169 |
|
|
68
|
+
| EUR | PLN | reference | 4.385 |
|
|
69
|
+
| EUR | RON | reference | 5.337 |
|
|
70
|
+
| EUR | SEK | reference | 11.1965 |
|
|
71
|
+
| EUR | SGD | reference | 1.4314 |
|
|
72
|
+
| EUR | THB | reference | 37.585 |
|
|
73
|
+
| EUR | TRY | reference | 55.1635 |
|
|
74
|
+
| EUR | USD | reference | 1.1181 |
|
|
75
|
+
| EUR | ZAR | reference | 18.4945 |
|
|
76
76
|
|
|
77
77
|
Source: [Official rates published by BNB, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bnb/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
78
78
|
<!-- daily-table:end -->
|
|
@@ -129,10 +129,10 @@ const pair = await getRate('EUR', 'USD', { apiKey: 'art_live_...' });
|
|
|
129
129
|
{
|
|
130
130
|
bank: 'bnb',
|
|
131
131
|
name: 'Bulgarian National Bank',
|
|
132
|
-
rate_date: '2026-10-
|
|
132
|
+
rate_date: '2026-10-12', // Bulgarian National Bank's own publication date
|
|
133
133
|
source: 'EUR',
|
|
134
134
|
target: 'USD',
|
|
135
|
-
rate: 1.
|
|
135
|
+
rate: 1.1181,
|
|
136
136
|
rate_type: 'reference',
|
|
137
137
|
derived: false,
|
|
138
138
|
method: 'published',
|
|
@@ -157,9 +157,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
157
157
|
{
|
|
158
158
|
bank: 'bnb',
|
|
159
159
|
name: 'Bulgarian National Bank',
|
|
160
|
-
rate_date: '2026-10-
|
|
160
|
+
rate_date: '2026-10-12',
|
|
161
161
|
rates: [
|
|
162
|
-
{ "base": "EUR", "quote": "USD", "type": "reference", "value": 1.
|
|
162
|
+
{ "base": "EUR", "quote": "USD", "type": "reference", "value": 1.1181 },
|
|
163
163
|
// … the rest of the published table (29 currencies vs EUR)
|
|
164
164
|
],
|
|
165
165
|
disclaimer: '…'
|
|
@@ -199,7 +199,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
199
199
|
import { getHistory } from 'bnb-exchange-rate';
|
|
200
200
|
|
|
201
201
|
const series = await getHistory(
|
|
202
|
-
{ source: 'EUR', target: 'USD', from: '2026-01-01', to: '2026-10-
|
|
202
|
+
{ source: 'EUR', target: 'USD', from: '2026-01-01', to: '2026-10-12' },
|
|
203
203
|
{ apiKey: 'art_live_...' }
|
|
204
204
|
);
|
|
205
205
|
```
|
|
@@ -212,11 +212,11 @@ const series = await getHistory(
|
|
|
212
212
|
source: 'EUR',
|
|
213
213
|
target: 'USD',
|
|
214
214
|
from: '2026-01-01',
|
|
215
|
-
to: '2026-10-
|
|
215
|
+
to: '2026-10-12',
|
|
216
216
|
count: 152,
|
|
217
217
|
rates: [
|
|
218
218
|
// one entry per publication date
|
|
219
|
-
{ date: '2026-10-
|
|
219
|
+
{ date: '2026-10-12', rate: 1.1181, rate_type: 'reference', derived: false, method: 'published' },
|
|
220
220
|
// …
|
|
221
221
|
],
|
|
222
222
|
disclaimer: '…'
|
|
@@ -266,6 +266,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bnb/latest?format=xml&api_ke
|
|
|
266
266
|
- 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
|
|
267
267
|
- 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('bnb')` 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
|
|
268
268
|
- 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 bnb ...` command
|
|
269
|
+
- 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`
|
|
269
270
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
270
271
|
|
|
271
272
|
## ⚖️ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bnb-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "Official Bulgarian National Bank (Bulgaria) daily exchange rates — 29 currencies vs EUR, history since 2016. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bnb",
|