@allratestoday/bazg-exchange-rate 1.3.7 โ†’ 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 +41 -38
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,73 +37,75 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## ๐Ÿ“ˆ Latest published table
39
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.
40
+ [![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
+
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.
41
43
 
42
44
  <!-- 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.
45
+ Published **2026-10-13** by Swiss Federal Office for Customs and Border Security โ€” 144 rates, first 60 shown. Updated 2026-10-12.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
49
  | AED | CHF | monthly_average | 0.223808 |
48
- | AED | CHF | reference | 0.2290041 |
50
+ | AED | CHF | reference | 0.228139 |
49
51
  | ALL | CHF | monthly_average | 0.010393 |
50
- | ALL | CHF | reference | 0.0103054 |
52
+ | ALL | CHF | reference | 0.0102847 |
51
53
  | ARS | CHF | monthly_average | 0.0005 |
52
54
  | ARS | CHF | reference | 0.00056 |
53
55
  | AUD | CHF | monthly_average | 0.5882 |
54
- | AUD | CHF | reference | 0.58589 |
56
+ | AUD | CHF | reference | 0.58571 |
55
57
  | AZN | CHF | monthly_average | 0.4833 |
56
- | AZN | CHF | reference | 0.49469 |
58
+ | AZN | CHF | reference | 0.49285 |
57
59
  | BAM | CHF | monthly_average | 0.486391 |
58
- | BAM | CHF | reference | 0.4819336 |
60
+ | BAM | CHF | reference | 0.4805523 |
59
61
  | BDT | CHF | monthly_average | 0.006724 |
60
- | BDT | CHF | reference | 0.006872 |
62
+ | BDT | CHF | reference | 0.0068431 |
61
63
  | BHD | CHF | monthly_average | 2.1912 |
62
- | BHD | CHF | reference | 2.24271 |
64
+ | BHD | CHF | reference | 2.2312 |
63
65
  | BRL | CHF | monthly_average | 0.160109 |
64
- | BRL | CHF | reference | 0.1675318 |
66
+ | BRL | CHF | reference | 0.1679251 |
65
67
  | CAD | CHF | monthly_average | 0.5914 |
66
- | CAD | CHF | reference | 0.58996 |
68
+ | CAD | CHF | reference | 0.58788 |
67
69
  | CLP | CHF | monthly_average | 0.0008762 |
68
- | CLP | CHF | reference | 0.0008609 |
70
+ | CLP | CHF | reference | 0.0008583 |
69
71
  | CNY | CHF | monthly_average | 0.122449 |
70
- | CNY | CHF | reference | 0.1254889 |
72
+ | CNY | CHF | reference | 0.1251976 |
71
73
  | COP | CHF | monthly_average | 0.00026105 |
72
- | COP | CHF | reference | 0.000262065 |
74
+ | COP | CHF | reference | 0.000264711 |
73
75
  | CRC | CHF | monthly_average | 0.0018244 |
74
- | CRC | CHF | reference | 0.00184815 |
76
+ | CRC | CHF | reference | 0.0018422 |
75
77
  | CZK | CHF | monthly_average | 0.039265 |
76
- | CZK | CHF | reference | 0.0386331 |
78
+ | CZK | CHF | reference | 0.0385672 |
77
79
  | DKK | CHF | monthly_average | 0.127183 |
78
- | DKK | CHF | reference | 0.1260621 |
80
+ | DKK | CHF | reference | 0.1256985 |
79
81
  | DOP | CHF | monthly_average | 0.014178 |
80
- | DOP | CHF | reference | 0.014265 |
82
+ | DOP | CHF | reference | 0.0138527 |
81
83
  | DZD | CHF | monthly_average | 0.00623 |
82
- | DZD | CHF | reference | 0.0063205 |
84
+ | DZD | CHF | reference | 0.0063015 |
83
85
  | EGP | CHF | monthly_average | 0.016083 |
84
- | EGP | CHF | reference | 0.016067 |
86
+ | EGP | CHF | reference | 0.0161357 |
85
87
  | ETB | CHF | monthly_average | 0.005063 |
86
- | ETB | CHF | reference | 0.0051955 |
88
+ | ETB | CHF | reference | 0.0051647 |
87
89
  | EUR | CHF | monthly_average | 0.9507 |
88
- | EUR | CHF | reference | 0.94223 |
90
+ | EUR | CHF | reference | 0.93951 |
89
91
  | GBP | CHF | monthly_average | 1.1085 |
90
- | GBP | CHF | reference | 1.1114 |
92
+ | GBP | CHF | reference | 1.11009 |
91
93
  | GEL | CHF | monthly_average | 0.319302 |
92
- | GEL | CHF | reference | 0.3281022 |
94
+ | GEL | CHF | reference | 0.3268296 |
93
95
  | GTQ | CHF | monthly_average | 0.110533 |
94
- | GTQ | CHF | reference | 0.1137286 |
96
+ | GTQ | CHF | reference | 0.1131792 |
95
97
  | HKD | CHF | monthly_average | 0.104786 |
96
- | HKD | CHF | reference | 0.1071307 |
98
+ | HKD | CHF | reference | 0.106757 |
97
99
  | HNL | CHF | monthly_average | 0.031114 |
98
- | HNL | CHF | reference | 0.0320916 |
100
+ | HNL | CHF | reference | 0.0319732 |
99
101
  | HUF | CHF | monthly_average | 0.0026132 |
100
- | HUF | CHF | reference | 0.00257889 |
102
+ | HUF | CHF | reference | 0.0025772 |
101
103
  | IDR | CHF | monthly_average | 0.00004646 |
102
- | IDR | CHF | reference | 0.000047069 |
104
+ | IDR | CHF | reference | 0.000046874 |
103
105
  | ILS | CHF | monthly_average | 0.2735 |
104
- | ILS | CHF | reference | 0.27494 |
106
+ | ILS | CHF | reference | 0.27438 |
105
107
  | INR | CHF | monthly_average | 0.008621 |
106
- | INR | CHF | reference | 0.0086905 |
108
+ | INR | CHF | reference | 0.0086576 |
107
109
 
108
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.
109
111
  <!-- daily-table:end -->
@@ -160,10 +162,10 @@ const pair = await getRate('EUR', 'CHF', { apiKey: 'art_live_...' });
160
162
  {
161
163
  bank: 'bazg',
162
164
  name: 'Swiss Federal Office for Customs and Border Security',
163
- rate_date: '2026-10-09', // Swiss Federal Office for Customs and Border Security's own publication date
165
+ rate_date: '2026-10-13', // Swiss Federal Office for Customs and Border Security's own publication date
164
166
  source: 'EUR',
165
167
  target: 'CHF',
166
- rate: 0.94223,
168
+ rate: 0.93951,
167
169
  rate_type: 'reference',
168
170
  derived: false,
169
171
  method: 'published',
@@ -188,9 +190,9 @@ console.log(table.rate_date, table.rates.length);
188
190
  {
189
191
  bank: 'bazg',
190
192
  name: 'Swiss Federal Office for Customs and Border Security',
191
- rate_date: '2026-10-09',
193
+ rate_date: '2026-10-13',
192
194
  rates: [
193
- { "base": "EUR", "quote": "CHF", "type": "reference", "value": 0.94223 },
195
+ { "base": "EUR", "quote": "CHF", "type": "reference", "value": 0.93951 },
194
196
  { "base": "EUR", "quote": "CHF", "type": "monthly_average", "value": 0.9507 },
195
197
  // โ€ฆ the rest of the published table (73 currencies vs CHF)
196
198
  ],
@@ -231,7 +233,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
231
233
  import { getHistory } from '@allratestoday/bazg-exchange-rate';
232
234
 
233
235
  const series = await getHistory(
234
- { source: 'EUR', target: 'CHF', from: '2026-01-01', to: '2026-10-09' },
236
+ { source: 'EUR', target: 'CHF', from: '2026-01-01', to: '2026-10-13' },
235
237
  { apiKey: 'art_live_...' }
236
238
  );
237
239
  ```
@@ -244,11 +246,11 @@ const series = await getHistory(
244
246
  source: 'EUR',
245
247
  target: 'CHF',
246
248
  from: '2026-01-01',
247
- to: '2026-10-09',
249
+ to: '2026-10-13',
248
250
  count: 152,
249
251
  rates: [
250
252
  // one entry per publication date
251
- { date: '2026-10-09', rate: 0.94223, rate_type: 'reference', derived: false, method: 'published' },
253
+ { date: '2026-10-13', rate: 0.93951, rate_type: 'reference', derived: false, method: 'published' },
252
254
  // โ€ฆ
253
255
  ],
254
256
  disclaimer: 'โ€ฆ'
@@ -298,6 +300,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bazg/latest?format=xml&api_k
298
300
  - 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
299
301
  - 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
302
  - 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`
301
304
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
302
305
 
303
306
  ## โš–๏ธ 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.7",
3
+ "version": "1.3.9",
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",