snb-exchange-rate 1.3.6 → 1.3.7

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 +41 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/snb-exchange-rate.svg)](https://github.com/AllRates-Today/snb-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/snb-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![EUR/CHF today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fsnb%3Fsource%3DEUR%26target%3DCHF&query=%24.rate&label=EUR%2FCHF%20published%20by%20Swiss%20National%20Bank&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/snb/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fsnb%3Fsource%3DEUR%26target%3DCHF&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/snb/)
7
9
 
8
10
  **Official Swiss National Bank (Switzerland) monthly exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing — not market estimates, but the numbers Swiss National Bank itself prints, every month.**
9
11
 
@@ -33,6 +35,45 @@ console.log(r.rate_date, r.rates.length); // the central bank's latest published
33
35
 
34
36
  The open endpoint serves the *latest* table only and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables, history, and CSV/XML/Excel output.
35
37
 
38
+ ## 📈 Latest published table
39
+
40
+ Today's full Swiss 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
+
42
+ <!-- daily-table:start -->
43
+ Published **2026-09-30** by Swiss National Bank — 26 rates. Updated 2026-10-08.
44
+
45
+ | Base | Quote | Type | Rate |
46
+ | --- | --- | --- | ---: |
47
+ | ARS | CHF | monthly_average | 0.00054 |
48
+ | AUD | CHF | monthly_average | 0.58343 |
49
+ | BRL | CHF | monthly_average | 0.1593254 |
50
+ | CAD | CHF | monthly_average | 0.58688 |
51
+ | CNY | CHF | monthly_average | 0.1221011 |
52
+ | CZK | CHF | monthly_average | 0.0388224 |
53
+ | DKK | CHF | monthly_average | 0.1261671 |
54
+ | EUR | CHF | monthly_average | 0.94312 |
55
+ | GBP | CHF | monthly_average | 1.0993 |
56
+ | HKD | CHF | monthly_average | 0.1044552 |
57
+ | HUF | CHF | monthly_average | 0.0025839 |
58
+ | JPY | CHF | monthly_average | 0.0052383 |
59
+ | KRW | CHF | monthly_average | 0.0006029 |
60
+ | MXN | CHF | monthly_average | 0.0475407 |
61
+ | MYR | CHF | monthly_average | 0.2013008 |
62
+ | NOK | CHF | monthly_average | 0.0873072 |
63
+ | NZD | CHF | monthly_average | 0.47256 |
64
+ | PLN | CHF | monthly_average | 0.2170834 |
65
+ | RUB | CHF | monthly_average | 0.00964 |
66
+ | SEK | CHF | monthly_average | 0.0839625 |
67
+ | SGD | CHF | monthly_average | 0.64366 |
68
+ | THB | CHF | monthly_average | 0.0246599 |
69
+ | TRY | CHF | monthly_average | 0.0168369 |
70
+ | USD | CHF | monthly_average | 0.81926 |
71
+ | XDR | CHF | monthly_average | 1.11928 |
72
+ | ZAR | CHF | monthly_average | 0.05052 |
73
+
74
+ Source: [Official rates published by SNB, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/snb/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
75
+ <!-- daily-table:end -->
76
+
36
77
  ## 🔑 Get your API key
37
78
 
38
79
  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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snb-exchange-rate",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "Official Swiss National Bank (Switzerland) monthly exchange rates — 26 currencies vs CHF, history since 1914. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "snb",