@allratestoday/bazg-exchange-rate 1.3.13 โ†’ 1.3.16

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 -40
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -20,6 +20,10 @@
20
20
 
21
21
  > **Official rate, not mid-market:** every value here is a number Swiss Federal Office for Customs and Border Security itself published, fixed once printed and carrying the tax authority's own `rate_date` โ€” what filings and audits require. Need the live mid-market rate for pricing or display instead? Use the [mid-market API](https://allratestoday.com/docs/) or [`@allratestoday/sdk`](https://www.npmjs.com/package/@allratestoday/sdk). The two can diverge by several percent.
22
22
 
23
+ ## ๐Ÿ”‘ Get your API key
24
+
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
+
23
27
  ## โšก Try it without a key
24
28
 
25
29
  The latest Swiss Federal Office for Customs and Border Security table is also served keyless, CORS-open and edge-cached, for evaluation, embeds and AI agents:
@@ -33,86 +37,85 @@ const r = await fetch('https://allratestoday.com/api/open/central-bank/bazg').th
33
37
  console.log(r.rate_date, r.rates.length); // the tax authority's latest published table, no key
34
38
  ```
35
39
 
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.
40
+ The open endpoint serves the *latest* table only (JSON by default; add `?format=csv`, `xml` or `xlsx` for a file) and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables and history.
37
41
 
38
42
  ## ๐Ÿ“ˆ Latest published table
39
43
 
40
44
  [![Latest Swiss Federal Office for Customs and Border Security table](https://allratestoday.com/api/open/central-bank/bazg/table.svg)](https://allratestoday.com/tax-authority-rates-api/bazg/)
41
45
 
42
- The image is rendered live from the keyless endpoint above, so it follows the tax authority'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 tax authority publishes a new table; on npm it is as of the package's publish date.
46
+ The image is rendered live from the keyless endpoint above, so it follows the tax authority'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 tax authority publishes a new table; on npm it is as of the package's publish date.
43
47
 
44
48
  <!-- daily-table:start -->
45
- Published **2026-10-15** by Swiss Federal Office for Customs and Border Security โ€” 144 rates, first 60 shown. Updated 2026-10-14.
49
+ <details>
50
+ <summary>Table as text: published 2026-10-21 by Swiss Federal Office for Customs and Border Security โ€” 144 rates, first 60 shown. Updated 2026-10-20.</summary>
46
51
 
47
52
  | Base | Quote | Type | Rate |
48
53
  | --- | --- | --- | ---: |
49
54
  | AED | CHF | monthly_average | 0.223808 |
50
- | AED | CHF | reference | 0.2289766 |
55
+ | AED | CHF | reference | 0.22725 |
51
56
  | ALL | CHF | monthly_average | 0.010393 |
52
- | ALL | CHF | reference | 0.0103473 |
57
+ | ALL | CHF | reference | 0.0103467 |
53
58
  | ARS | CHF | monthly_average | 0.0005 |
54
- | ARS | CHF | reference | 0.00056 |
59
+ | ARS | CHF | reference | 0.00055 |
55
60
  | AUD | CHF | monthly_average | 0.5882 |
56
- | AUD | CHF | reference | 0.58807 |
61
+ | AUD | CHF | reference | 0.58252 |
57
62
  | AZN | CHF | monthly_average | 0.4833 |
58
- | AZN | CHF | reference | 0.49463 |
63
+ | AZN | CHF | reference | 0.49089 |
59
64
  | BAM | CHF | monthly_average | 0.486391 |
60
- | BAM | CHF | reference | 0.4818757 |
65
+ | BAM | CHF | reference | 0.4788053 |
61
66
  | BDT | CHF | monthly_average | 0.006724 |
62
- | BDT | CHF | reference | 0.0068763 |
67
+ | BDT | CHF | reference | 0.0067876 |
63
68
  | BHD | CHF | monthly_average | 2.1912 |
64
- | BHD | CHF | reference | 2.24071 |
69
+ | BHD | CHF | reference | 2.22126 |
65
70
  | BRL | CHF | monthly_average | 0.160109 |
66
- | BRL | CHF | reference | 0.1673051 |
71
+ | BRL | CHF | reference | 0.1655975 |
67
72
  | CAD | CHF | monthly_average | 0.5914 |
68
- | CAD | CHF | reference | 0.59217 |
73
+ | CAD | CHF | reference | 0.59219 |
69
74
  | CLP | CHF | monthly_average | 0.0008762 |
70
- | CLP | CHF | reference | 0.00085629 |
75
+ | CLP | CHF | reference | 0.00085095 |
71
76
  | CNY | CHF | monthly_average | 0.122449 |
72
- | CNY | CHF | reference | 0.1256575 |
77
+ | CNY | CHF | reference | 0.1248936 |
73
78
  | COP | CHF | monthly_average | 0.00026105 |
74
- | COP | CHF | reference | 0.000266862 |
79
+ | COP | CHF | reference | 0.000267387 |
75
80
  | CRC | CHF | monthly_average | 0.0018244 |
76
- | CRC | CHF | reference | 0.00185204 |
81
+ | CRC | CHF | reference | 0.00184123 |
77
82
  | CZK | CHF | monthly_average | 0.039265 |
78
- | CZK | CHF | reference | 0.0387049 |
83
+ | CZK | CHF | reference | 0.0385095 |
79
84
  | DKK | CHF | monthly_average | 0.127183 |
80
- | DKK | CHF | reference | 0.1260147 |
85
+ | DKK | CHF | reference | 0.1252087 |
81
86
  | DOP | CHF | monthly_average | 0.014178 |
82
- | DOP | CHF | reference | 0.0138773 |
87
+ | DOP | CHF | reference | 0.0139822 |
83
88
  | DZD | CHF | monthly_average | 0.00623 |
84
- | DZD | CHF | reference | 0.0063219 |
89
+ | DZD | CHF | reference | 0.0062751 |
85
90
  | EGP | CHF | monthly_average | 0.016083 |
86
- | EGP | CHF | reference | 0.0159363 |
91
+ | EGP | CHF | reference | 0.0154876 |
87
92
  | ETB | CHF | monthly_average | 0.005063 |
88
- | ETB | CHF | reference | 0.0051816 |
93
+ | ETB | CHF | reference | 0.0051556 |
89
94
  | EUR | CHF | monthly_average | 0.9507 |
90
- | EUR | CHF | reference | 0.94191 |
95
+ | EUR | CHF | reference | 0.9359 |
91
96
  | GBP | CHF | monthly_average | 1.1085 |
92
- | GBP | CHF | reference | 1.11509 |
97
+ | GBP | CHF | reference | 1.1113 |
93
98
  | GEL | CHF | monthly_average | 0.319302 |
94
- | GEL | CHF | reference | 0.3277943 |
99
+ | GEL | CHF | reference | 0.3253264 |
95
100
  | GTQ | CHF | monthly_average | 0.110533 |
96
- | GTQ | CHF | reference | 0.1137126 |
101
+ | GTQ | CHF | reference | 0.1125846 |
97
102
  | HKD | CHF | monthly_average | 0.104786 |
98
- | HKD | CHF | reference | 0.1071105 |
103
+ | HKD | CHF | reference | 0.1063025 |
99
104
  | HNL | CHF | monthly_average | 0.031114 |
100
- | HNL | CHF | reference | 0.0316697 |
105
+ | HNL | CHF | reference | 0.0320804 |
101
106
  | HUF | CHF | monthly_average | 0.0026132 |
102
- | HUF | CHF | reference | 0.00259209 |
107
+ | HUF | CHF | reference | 0.00258236 |
103
108
  | IDR | CHF | monthly_average | 0.00004646 |
104
- | IDR | CHF | reference | 0.000046984 |
109
+ | IDR | CHF | reference | 0.000046334 |
105
110
  | ILS | CHF | monthly_average | 0.2735 |
106
- | ILS | CHF | reference | 0.27473 |
111
+ | ILS | CHF | reference | 0.26987 |
107
112
  | INR | CHF | monthly_average | 0.008621 |
108
- | INR | CHF | reference | 0.0088428 |
113
+ | INR | CHF | reference | 0.0087891 |
109
114
 
110
- [Full table on the Swiss Federal Office for Customs and Border Security rates page](https://allratestoday.com/tax-authority-rates-api/bazg/) ยท Source: [Official rates published by BAZG, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bazg/). Rates are as printed by the tax authority; AllRatesToday is not affiliated with it.
111
- <!-- daily-table:end -->
115
+ </details>
112
116
 
113
- ## ๐Ÿ”‘ Get your API key
114
-
115
- 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.
117
+ [Full table on the Swiss Federal Office for Customs and Border Security rates page](https://allratestoday.com/tax-authority-rates-api/bazg/) ยท Source: [Official rates published by BAZG, served by AllRatesToday](https://allratestoday.com/tax-authority-rates-api/bazg/). Rates are as printed by the tax authority; AllRatesToday is not affiliated with it.
118
+ <!-- daily-table:end -->
116
119
 
117
120
  ## ๐Ÿ“ฆ Installation
118
121
 
@@ -300,7 +303,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bazg/latest?format=xml&api_k
300
303
  - 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
301
304
  - 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('bazg')` 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
302
305
  - 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 bazg ...` command
303
- - 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`
306
+ - Evaluating? 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 that covers the free-plan methods (latest table, pairs); dated tables and history need a [paid plan](https://allratestoday.com/pricing/). The MCP servers expose it as `request_trial_key`
304
307
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
305
308
 
306
309
  ## โš–๏ธ Published vs derived rates
@@ -379,7 +382,8 @@ Need the whole archive rather than an API call? The same published tables are mi
379
382
  - [All tax authority sources](https://allratestoday.com/tax-authority-rates-api/)
380
383
  - [Package docs on the site](https://allratestoday.com/docs/sdk/bazg-exchange-rate/) ยท [ERP integration guides](https://allratestoday.com/docs/integrations/)
381
384
  - [API documentation](https://allratestoday.com/docs/#central-bank) ยท [Interactive reference](https://allratestoday.com/api-reference/) ยท [Methodology](https://allratestoday.com/official-rates-methodology/)
382
- - [Register (free)](https://allratestoday.com/register) ยท [Pricing](https://allratestoday.com/pricing/)
385
+ - [Register (Free)](https://allratestoday.com/register) ยท [Dashboard](https://allratestoday.com/profile) ยท [Pricing](https://allratestoday.com/pricing/)
386
+ - [Status](https://allratestoday.com/status)
383
387
  - [GitHub](https://github.com/AllRates-Today/bazg-exchange-rate)
384
388
 
385
389
  ## ๐Ÿ“œ License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/bazg-exchange-rate",
3
- "version": "1.3.13",
3
+ "version": "1.3.16",
4
4
  "description": "Official Swiss Federal Office for Customs and Border Security (Switzerland) daily exchange rates โ€” 73 currencies vs CHF, history since 2000. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "bazg",
@@ -16,6 +16,7 @@
16
16
  "exchange-rates",
17
17
  "exchangerate",
18
18
  "exchange rate",
19
+ "exchange rates",
19
20
  "chf-exchange-rate",
20
21
  "currency",
21
22
  "forex",