snb-exchange-rate 1.3.6 โ†’ 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.
Files changed (2) hide show
  1. package/README.md +44 -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,47 @@ 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
+ [![Latest Swiss National Bank table](https://allratestoday.com/api/open/central-bank/snb/table.svg)](https://allratestoday.com/central-bank-rates-api/snb/)
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.
43
+
44
+ <!-- daily-table:start -->
45
+ Published **2026-09-30** by Swiss National Bank โ€” 26 rates. Updated 2026-10-12.
46
+
47
+ | Base | Quote | Type | Rate |
48
+ | --- | --- | --- | ---: |
49
+ | ARS | CHF | monthly_average | 0.00054 |
50
+ | AUD | CHF | monthly_average | 0.58343 |
51
+ | BRL | CHF | monthly_average | 0.1593254 |
52
+ | CAD | CHF | monthly_average | 0.58688 |
53
+ | CNY | CHF | monthly_average | 0.1221011 |
54
+ | CZK | CHF | monthly_average | 0.0388224 |
55
+ | DKK | CHF | monthly_average | 0.1261671 |
56
+ | EUR | CHF | monthly_average | 0.94312 |
57
+ | GBP | CHF | monthly_average | 1.0993 |
58
+ | HKD | CHF | monthly_average | 0.1044552 |
59
+ | HUF | CHF | monthly_average | 0.0025839 |
60
+ | JPY | CHF | monthly_average | 0.0052383 |
61
+ | KRW | CHF | monthly_average | 0.0006029 |
62
+ | MXN | CHF | monthly_average | 0.0475407 |
63
+ | MYR | CHF | monthly_average | 0.2013008 |
64
+ | NOK | CHF | monthly_average | 0.0873072 |
65
+ | NZD | CHF | monthly_average | 0.47256 |
66
+ | PLN | CHF | monthly_average | 0.2170834 |
67
+ | RUB | CHF | monthly_average | 0.00964 |
68
+ | SEK | CHF | monthly_average | 0.0839625 |
69
+ | SGD | CHF | monthly_average | 0.64366 |
70
+ | THB | CHF | monthly_average | 0.0246599 |
71
+ | TRY | CHF | monthly_average | 0.0168369 |
72
+ | USD | CHF | monthly_average | 0.81926 |
73
+ | XDR | CHF | monthly_average | 1.11928 |
74
+ | ZAR | CHF | monthly_average | 0.05052 |
75
+
76
+ 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.
77
+ <!-- daily-table:end -->
78
+
36
79
  ## ๐Ÿ”‘ Get your API key
37
80
 
38
81
  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.
@@ -222,6 +265,7 @@ curl "https://allratestoday.com/api/v1/central-bank/snb/latest?format=xml&api_ke
222
265
  - 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
223
266
  - 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('snb')` 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
224
267
  - 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 snb ...` command
268
+ - 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`
225
269
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
226
270
 
227
271
  ## โš–๏ธ Published vs derived rates
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.9",
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",