@allratestoday/bazg-exchange-rate 1.3.5 โ†’ 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 +83 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/@allratestoday%2Fbazg-exchange-rate.svg)](https://github.com/AllRates-Today/bazg-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/bazg-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%2Fbazg%3Fsource%3DEUR%26target%3DCHF&query=%24.rate&label=EUR%2FCHF%20published%20by%20Swiss%20Federal%20Office%20for%20Customs%20and%20Border%20Security&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/tax-authority-rates-api/bazg/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbazg%3Fsource%3DEUR%26target%3DCHF&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/tax-authority-rates-api/bazg/)
7
9
 
8
10
  **Official Swiss Federal Office for Customs and Border Security (Switzerland) daily exchange rates for Node.js and TypeScript. The published tax authority rates behind tax filings, customs valuations, audits, and compliant invoicing โ€” not market estimates, but the numbers Swiss Federal Office for Customs and Border Security itself prints, every business day.**
9
11
 
@@ -33,6 +35,79 @@ console.log(r.rate_date, r.rates.length); // the tax authority's latest publishe
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 Federal Office for Customs and Border Security table, straight from the tax authority'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 tax authority publishes a new table; the copy on npm is as of the package's publish date.
41
+
42
+ <!-- daily-table:start -->
43
+ Published **2026-10-09** by Swiss Federal Office for Customs and Border Security โ€” 144 rates, first 60 shown. Updated 2026-10-08.
44
+
45
+ | Base | Quote | Type | Rate |
46
+ | --- | --- | --- | ---: |
47
+ | AED | CHF | monthly_average | 0.223808 |
48
+ | AED | CHF | reference | 0.2290041 |
49
+ | ALL | CHF | monthly_average | 0.010393 |
50
+ | ALL | CHF | reference | 0.0103054 |
51
+ | ARS | CHF | monthly_average | 0.0005 |
52
+ | ARS | CHF | reference | 0.00056 |
53
+ | AUD | CHF | monthly_average | 0.5882 |
54
+ | AUD | CHF | reference | 0.58589 |
55
+ | AZN | CHF | monthly_average | 0.4833 |
56
+ | AZN | CHF | reference | 0.49469 |
57
+ | BAM | CHF | monthly_average | 0.486391 |
58
+ | BAM | CHF | reference | 0.4819336 |
59
+ | BDT | CHF | monthly_average | 0.006724 |
60
+ | BDT | CHF | reference | 0.006872 |
61
+ | BHD | CHF | monthly_average | 2.1912 |
62
+ | BHD | CHF | reference | 2.24271 |
63
+ | BRL | CHF | monthly_average | 0.160109 |
64
+ | BRL | CHF | reference | 0.1675318 |
65
+ | CAD | CHF | monthly_average | 0.5914 |
66
+ | CAD | CHF | reference | 0.58996 |
67
+ | CLP | CHF | monthly_average | 0.0008762 |
68
+ | CLP | CHF | reference | 0.0008609 |
69
+ | CNY | CHF | monthly_average | 0.122449 |
70
+ | CNY | CHF | reference | 0.1254889 |
71
+ | COP | CHF | monthly_average | 0.00026105 |
72
+ | COP | CHF | reference | 0.000262065 |
73
+ | CRC | CHF | monthly_average | 0.0018244 |
74
+ | CRC | CHF | reference | 0.00184815 |
75
+ | CZK | CHF | monthly_average | 0.039265 |
76
+ | CZK | CHF | reference | 0.0386331 |
77
+ | DKK | CHF | monthly_average | 0.127183 |
78
+ | DKK | CHF | reference | 0.1260621 |
79
+ | DOP | CHF | monthly_average | 0.014178 |
80
+ | DOP | CHF | reference | 0.014265 |
81
+ | DZD | CHF | monthly_average | 0.00623 |
82
+ | DZD | CHF | reference | 0.0063205 |
83
+ | EGP | CHF | monthly_average | 0.016083 |
84
+ | EGP | CHF | reference | 0.016067 |
85
+ | ETB | CHF | monthly_average | 0.005063 |
86
+ | ETB | CHF | reference | 0.0051955 |
87
+ | EUR | CHF | monthly_average | 0.9507 |
88
+ | EUR | CHF | reference | 0.94223 |
89
+ | GBP | CHF | monthly_average | 1.1085 |
90
+ | GBP | CHF | reference | 1.1114 |
91
+ | GEL | CHF | monthly_average | 0.319302 |
92
+ | GEL | CHF | reference | 0.3281022 |
93
+ | GTQ | CHF | monthly_average | 0.110533 |
94
+ | GTQ | CHF | reference | 0.1137286 |
95
+ | HKD | CHF | monthly_average | 0.104786 |
96
+ | HKD | CHF | reference | 0.1071307 |
97
+ | HNL | CHF | monthly_average | 0.031114 |
98
+ | HNL | CHF | reference | 0.0320916 |
99
+ | HUF | CHF | monthly_average | 0.0026132 |
100
+ | HUF | CHF | reference | 0.00257889 |
101
+ | IDR | CHF | monthly_average | 0.00004646 |
102
+ | IDR | CHF | reference | 0.000047069 |
103
+ | ILS | CHF | monthly_average | 0.2735 |
104
+ | ILS | CHF | reference | 0.27494 |
105
+ | INR | CHF | monthly_average | 0.008621 |
106
+ | INR | CHF | reference | 0.0086905 |
107
+
108
+ [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.
109
+ <!-- daily-table:end -->
110
+
36
111
  ## ๐Ÿ”‘ Get your API key
37
112
 
38
113
  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.
@@ -85,10 +160,10 @@ const pair = await getRate('EUR', 'CHF', { apiKey: 'art_live_...' });
85
160
  {
86
161
  bank: 'bazg',
87
162
  name: 'Swiss Federal Office for Customs and Border Security',
88
- rate_date: '2026-10-07', // Swiss Federal Office for Customs and Border Security's own publication date
163
+ rate_date: '2026-10-09', // Swiss Federal Office for Customs and Border Security's own publication date
89
164
  source: 'EUR',
90
165
  target: 'CHF',
91
- rate: 0.94169,
166
+ rate: 0.94223,
92
167
  rate_type: 'reference',
93
168
  derived: false,
94
169
  method: 'published',
@@ -113,9 +188,9 @@ console.log(table.rate_date, table.rates.length);
113
188
  {
114
189
  bank: 'bazg',
115
190
  name: 'Swiss Federal Office for Customs and Border Security',
116
- rate_date: '2026-10-07',
191
+ rate_date: '2026-10-09',
117
192
  rates: [
118
- { "base": "EUR", "quote": "CHF", "type": "reference", "value": 0.94169 },
193
+ { "base": "EUR", "quote": "CHF", "type": "reference", "value": 0.94223 },
119
194
  { "base": "EUR", "quote": "CHF", "type": "monthly_average", "value": 0.9507 },
120
195
  // โ€ฆ the rest of the published table (73 currencies vs CHF)
121
196
  ],
@@ -156,7 +231,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
156
231
  import { getHistory } from '@allratestoday/bazg-exchange-rate';
157
232
 
158
233
  const series = await getHistory(
159
- { source: 'EUR', target: 'CHF', from: '2026-01-01', to: '2026-10-07' },
234
+ { source: 'EUR', target: 'CHF', from: '2026-01-01', to: '2026-10-09' },
160
235
  { apiKey: 'art_live_...' }
161
236
  );
162
237
  ```
@@ -169,11 +244,11 @@ const series = await getHistory(
169
244
  source: 'EUR',
170
245
  target: 'CHF',
171
246
  from: '2026-01-01',
172
- to: '2026-10-07',
247
+ to: '2026-10-09',
173
248
  count: 152,
174
249
  rates: [
175
250
  // one entry per publication date
176
- { date: '2026-10-07', rate: 0.94169, rate_type: 'reference', derived: false, method: 'published' },
251
+ { date: '2026-10-09', rate: 0.94223, rate_type: 'reference', derived: false, method: 'published' },
177
252
  // โ€ฆ
178
253
  ],
179
254
  disclaimer: 'โ€ฆ'
@@ -222,6 +297,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bazg/latest?format=xml&api_k
222
297
 
223
298
  - 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
224
299
  - 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
300
+ - 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
225
301
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
226
302
 
227
303
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/bazg-exchange-rate",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
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",