@allratestoday/bnb-exchange-rate 1.3.19 → 1.3.24

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 +32 -45
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -24,61 +24,47 @@
24
24
 
25
25
  Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) — no credit card required. Latest rates are on every plan, including free.
26
26
 
27
- ## ⚡ Try it without a key
28
-
29
- The latest Bulgarian National Bank table is also served keyless, CORS-open and edge-cached, for evaluation, embeds and AI agents:
30
-
31
- ```bash
32
- curl "https://allratestoday.com/api/open/central-bank/bnb?source=EUR&target=USD"
33
- ```
34
-
35
- ```js
36
- const r = await fetch('https://allratestoday.com/api/open/central-bank/bnb').then((x) => x.json());
37
- console.log(r.rate_date, r.rates.length); // the central bank's latest published table, no key
38
- ```
39
-
40
- The open endpoint serves the *latest* table only (JSON by default; add `?format=csv`, `xml` or `xlsx` for a file) and is free to use with a visible, followable link where the rates are shown: `<a href="https://allratestoday.com">Exchange rates by AllRatesToday</a>` (terms: <https://allratestoday.com/terms/#attribution>). The client below uses the keyed API, which adds point-in-time tables and history; with a key the link is appreciated, not required.
41
-
42
27
  ## 📈 Latest published table
43
28
 
44
29
  [![Latest Bulgarian National Bank table](https://allratestoday.com/api/open/central-bank/bnb/table.svg)](https://allratestoday.com/central-bank-rates-api/bnb/)
45
30
 
46
- 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 same table as text is folded below 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.
31
+ The image is rendered live from the keyless endpoint, so it follows the central bank's publications on npm and on GitHub alike without a new release. The same table as text is folded below 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.
47
32
 
48
33
  <!-- daily-table:start -->
49
34
  <details>
50
- <summary>Table as text: published 2026-10-26 by Bulgarian National Bank — 28 rates. Updated 2026-10-27.</summary>
35
+ <summary>Table as text: published 2026-10-29 by Bulgarian National Bank — 29 rates. Updated 2026-10-30.</summary>
51
36
 
52
37
  | Base | Quote | Type | Rate |
53
38
  | --- | --- | --- | ---: |
54
- | EUR | AUD | reference | 1.5927 |
55
- | EUR | CAD | reference | 1.5695 |
56
- | EUR | CHF | reference | 0.9243 |
57
- | EUR | CNY | reference | 7.4603 |
58
- | EUR | CZK | reference | 24.369 |
59
- | EUR | DKK | reference | 7.4747 |
60
- | EUR | GBP | reference | 0.8382 |
61
- | EUR | HKD | reference | 8.7768 |
62
- | EUR | HUF | reference | 367.45 |
63
- | EUR | IDR | reference | 20320.32 |
64
- | EUR | ILS | reference | 3.4458 |
65
- | EUR | INR | reference | 106.4935 |
66
- | EUR | ISK | reference | 136.4 |
67
- | EUR | JPY | reference | 176.15 |
68
- | EUR | KRW | reference | 1482.72 |
69
- | EUR | MXN | reference | 20.8271 |
70
- | EUR | MYR | reference | 4.5731 |
71
- | EUR | NOK | reference | 10.4545 |
72
- | EUR | NZD | reference | 1.9695 |
73
- | EUR | PHP | reference | 71.54 |
74
- | EUR | PLN | reference | 4.4038 |
75
- | EUR | RON | reference | 5.3473 |
76
- | EUR | SEK | reference | 11.1385 |
77
- | EUR | SGD | reference | 1.4327 |
78
- | EUR | THB | reference | 37.821 |
79
- | EUR | TRY | reference | 55.6746 |
80
- | EUR | USD | reference | 1.1188 |
81
- | EUR | ZAR | reference | 18.6046 |
39
+ | EUR | AUD | reference | 1.5842 |
40
+ | EUR | BRL | reference | 5.9563 |
41
+ | EUR | CAD | reference | 1.5577 |
42
+ | EUR | CHF | reference | 0.9222 |
43
+ | EUR | CNY | reference | 7.4144 |
44
+ | EUR | CZK | reference | 24.336 |
45
+ | EUR | DKK | reference | 7.4736 |
46
+ | EUR | GBP | reference | 0.83578 |
47
+ | EUR | HKD | reference | 8.733 |
48
+ | EUR | HUF | reference | 365.95 |
49
+ | EUR | IDR | reference | 20193.16 |
50
+ | EUR | ILS | reference | 3.468 |
51
+ | EUR | INR | reference | 106.0345 |
52
+ | EUR | ISK | reference | 135.8 |
53
+ | EUR | JPY | reference | 175.92 |
54
+ | EUR | KRW | reference | 1488.4 |
55
+ | EUR | MXN | reference | 20.8661 |
56
+ | EUR | MYR | reference | 4.5182 |
57
+ | EUR | NOK | reference | 10.3315 |
58
+ | EUR | NZD | reference | 1.9817 |
59
+ | EUR | PHP | reference | 71.052 |
60
+ | EUR | PLN | reference | 4.3938 |
61
+ | EUR | RON | reference | 5.3441 |
62
+ | EUR | SEK | reference | 10.9995 |
63
+ | EUR | SGD | reference | 1.4265 |
64
+ | EUR | THB | reference | 37.569 |
65
+ | EUR | TRY | reference | 55.4691 |
66
+ | EUR | USD | reference | 1.113 |
67
+ | EUR | ZAR | reference | 18.5218 |
82
68
 
83
69
  </details>
84
70
 
@@ -243,6 +229,7 @@ The Bulgarian National Bank, founded in 1879, is one of the world's oldest centr
243
229
 
244
230
  - Publisher's own page: [Exchange rates of foreign currencies](https://www.bnb.bg/Statistics/StExternalSector/StExchangeRates/StERForeignCurrencies/index.htm) · [www.bnb.bg](https://www.bnb.bg)
245
231
  - Publication: every business day; the exact schedule, freshness status and any current delay are on the [Bulgarian National Bank rates page](https://allratestoday.com/central-bank-rates-api/bnb/)
232
+ - In the API: usually by **15:20 UTC** (measured over the last 10 publications). Schedule a sync at or after that time and retry hourly until `rate_date` moves; every response carries the same figure as `available_by_utc` — see [when to poll](https://allratestoday.com/docs/#when-to-poll)
246
233
  - Values are stored unmodified, with the publisher's own `rate_date` on every row — see the [methodology](https://allratestoday.com/official-rates-methodology/)
247
234
 
248
235
  ## 🧭 Reading the numbers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/bnb-exchange-rate",
3
- "version": "1.3.19",
3
+ "version": "1.3.24",
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",