@allratestoday/bazg-exchange-rate 1.3.9 → 1.3.14

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 -41
  2. package/package.json +12 -3
package/README.md CHANGED
@@ -42,72 +42,72 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
42
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.
43
43
 
44
44
  <!-- daily-table:start -->
45
- Published **2026-10-13** by Swiss Federal Office for Customs and Border Security — 144 rates, first 60 shown. Updated 2026-10-12.
45
+ Published **2026-10-19** by Swiss Federal Office for Customs and Border Security — 144 rates, first 60 shown. Updated 2026-10-16.
46
46
 
47
47
  | Base | Quote | Type | Rate |
48
48
  | --- | --- | --- | ---: |
49
49
  | AED | CHF | monthly_average | 0.223808 |
50
- | AED | CHF | reference | 0.228139 |
50
+ | AED | CHF | reference | 0.2277114 |
51
51
  | ALL | CHF | monthly_average | 0.010393 |
52
- | ALL | CHF | reference | 0.0102847 |
52
+ | ALL | CHF | reference | 0.0103207 |
53
53
  | ARS | CHF | monthly_average | 0.0005 |
54
54
  | ARS | CHF | reference | 0.00056 |
55
55
  | AUD | CHF | monthly_average | 0.5882 |
56
- | AUD | CHF | reference | 0.58571 |
56
+ | AUD | CHF | reference | 0.57907 |
57
57
  | AZN | CHF | monthly_average | 0.4833 |
58
- | AZN | CHF | reference | 0.49285 |
58
+ | AZN | CHF | reference | 0.4919 |
59
59
  | BAM | CHF | monthly_average | 0.486391 |
60
- | BAM | CHF | reference | 0.4805523 |
60
+ | BAM | CHF | reference | 0.4795704 |
61
61
  | BDT | CHF | monthly_average | 0.006724 |
62
- | BDT | CHF | reference | 0.0068431 |
62
+ | BDT | CHF | reference | 0.0068393 |
63
63
  | BHD | CHF | monthly_average | 2.1912 |
64
- | BHD | CHF | reference | 2.2312 |
64
+ | BHD | CHF | reference | 2.22547 |
65
65
  | BRL | CHF | monthly_average | 0.160109 |
66
- | BRL | CHF | reference | 0.1679251 |
66
+ | BRL | CHF | reference | 0.1640564 |
67
67
  | CAD | CHF | monthly_average | 0.5914 |
68
- | CAD | CHF | reference | 0.58788 |
68
+ | CAD | CHF | reference | 0.58919 |
69
69
  | CLP | CHF | monthly_average | 0.0008762 |
70
- | CLP | CHF | reference | 0.0008583 |
70
+ | CLP | CHF | reference | 0.0008523 |
71
71
  | CNY | CHF | monthly_average | 0.122449 |
72
- | CNY | CHF | reference | 0.1251976 |
72
+ | CNY | CHF | reference | 0.1249745 |
73
73
  | COP | CHF | monthly_average | 0.00026105 |
74
- | COP | CHF | reference | 0.000264711 |
74
+ | COP | CHF | reference | 0.000263317 |
75
75
  | CRC | CHF | monthly_average | 0.0018244 |
76
- | CRC | CHF | reference | 0.0018422 |
76
+ | CRC | CHF | reference | 0.00184221 |
77
77
  | CZK | CHF | monthly_average | 0.039265 |
78
- | CZK | CHF | reference | 0.0385672 |
78
+ | CZK | CHF | reference | 0.0385566 |
79
79
  | DKK | CHF | monthly_average | 0.127183 |
80
- | DKK | CHF | reference | 0.1256985 |
80
+ | DKK | CHF | reference | 0.1254329 |
81
81
  | DOP | CHF | monthly_average | 0.014178 |
82
- | DOP | CHF | reference | 0.0138527 |
82
+ | DOP | CHF | reference | 0.0137101 |
83
83
  | DZD | CHF | monthly_average | 0.00623 |
84
- | DZD | CHF | reference | 0.0063015 |
84
+ | DZD | CHF | reference | 0.0062883 |
85
85
  | EGP | CHF | monthly_average | 0.016083 |
86
- | EGP | CHF | reference | 0.0161357 |
86
+ | EGP | CHF | reference | 0.0156589 |
87
87
  | ETB | CHF | monthly_average | 0.005063 |
88
- | ETB | CHF | reference | 0.0051647 |
88
+ | ETB | CHF | reference | 0.0051655 |
89
89
  | EUR | CHF | monthly_average | 0.9507 |
90
- | EUR | CHF | reference | 0.93951 |
90
+ | EUR | CHF | reference | 0.93759 |
91
91
  | GBP | CHF | monthly_average | 1.1085 |
92
- | GBP | CHF | reference | 1.11009 |
92
+ | GBP | CHF | reference | 1.1099 |
93
93
  | GEL | CHF | monthly_average | 0.319302 |
94
- | GEL | CHF | reference | 0.3268296 |
94
+ | GEL | CHF | reference | 0.326301 |
95
95
  | GTQ | CHF | monthly_average | 0.110533 |
96
- | GTQ | CHF | reference | 0.1131792 |
96
+ | GTQ | CHF | reference | 0.1129799 |
97
97
  | HKD | CHF | monthly_average | 0.104786 |
98
- | HKD | CHF | reference | 0.106757 |
98
+ | HKD | CHF | reference | 0.1065348 |
99
99
  | HNL | CHF | monthly_average | 0.031114 |
100
- | HNL | CHF | reference | 0.0319732 |
100
+ | HNL | CHF | reference | 0.0312358 |
101
101
  | HUF | CHF | monthly_average | 0.0026132 |
102
- | HUF | CHF | reference | 0.0025772 |
102
+ | HUF | CHF | reference | 0.00257627 |
103
103
  | IDR | CHF | monthly_average | 0.00004646 |
104
- | IDR | CHF | reference | 0.000046874 |
104
+ | IDR | CHF | reference | 0.000046465 |
105
105
  | ILS | CHF | monthly_average | 0.2735 |
106
- | ILS | CHF | reference | 0.27438 |
106
+ | ILS | CHF | reference | 0.27076 |
107
107
  | INR | CHF | monthly_average | 0.008621 |
108
- | INR | CHF | reference | 0.0086576 |
108
+ | INR | CHF | reference | 0.0088244 |
109
109
 
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.
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/tax-authority-rates-api/bazg/). Rates are as printed by the tax authority; AllRatesToday is not affiliated with it.
111
111
  <!-- daily-table:end -->
112
112
 
113
113
  ## 🔑 Get your API key
@@ -162,10 +162,10 @@ const pair = await getRate('EUR', 'CHF', { apiKey: 'art_live_...' });
162
162
  {
163
163
  bank: 'bazg',
164
164
  name: 'Swiss Federal Office for Customs and Border Security',
165
- rate_date: '2026-10-13', // Swiss Federal Office for Customs and Border Security's own publication date
165
+ rate_date: '2026-10-15', // Swiss Federal Office for Customs and Border Security's own publication date
166
166
  source: 'EUR',
167
167
  target: 'CHF',
168
- rate: 0.93951,
168
+ rate: 0.94191,
169
169
  rate_type: 'reference',
170
170
  derived: false,
171
171
  method: 'published',
@@ -190,9 +190,9 @@ console.log(table.rate_date, table.rates.length);
190
190
  {
191
191
  bank: 'bazg',
192
192
  name: 'Swiss Federal Office for Customs and Border Security',
193
- rate_date: '2026-10-13',
193
+ rate_date: '2026-10-15',
194
194
  rates: [
195
- { "base": "EUR", "quote": "CHF", "type": "reference", "value": 0.93951 },
195
+ { "base": "EUR", "quote": "CHF", "type": "reference", "value": 0.94191 },
196
196
  { "base": "EUR", "quote": "CHF", "type": "monthly_average", "value": 0.9507 },
197
197
  // … the rest of the published table (73 currencies vs CHF)
198
198
  ],
@@ -233,7 +233,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
233
233
  import { getHistory } from '@allratestoday/bazg-exchange-rate';
234
234
 
235
235
  const series = await getHistory(
236
- { source: 'EUR', target: 'CHF', from: '2026-01-01', to: '2026-10-13' },
236
+ { source: 'EUR', target: 'CHF', from: '2026-01-01', to: '2026-10-15' },
237
237
  { apiKey: 'art_live_...' }
238
238
  );
239
239
  ```
@@ -246,11 +246,11 @@ const series = await getHistory(
246
246
  source: 'EUR',
247
247
  target: 'CHF',
248
248
  from: '2026-01-01',
249
- to: '2026-10-13',
249
+ to: '2026-10-15',
250
250
  count: 152,
251
251
  rates: [
252
252
  // one entry per publication date
253
- { date: '2026-10-13', rate: 0.93951, rate_type: 'reference', derived: false, method: 'published' },
253
+ { date: '2026-10-15', rate: 0.94191, rate_type: 'reference', derived: false, method: 'published' },
254
254
  // …
255
255
  ],
256
256
  disclaimer: '…'
@@ -300,7 +300,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bazg/latest?format=xml&api_k
300
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
301
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
302
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`
303
+ - 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
304
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
305
305
 
306
306
  ## ⚖️ Published vs derived rates
@@ -369,9 +369,9 @@ getRate('EUR', 'CHF', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
369
369
 
370
370
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
371
371
 
372
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/bazg.csv`)
372
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/bazg.csv`)
373
373
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
374
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/bazg/latest.json`
374
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/bazg/latest.json`
375
375
 
376
376
  ## 🔗 Links
377
377
 
package/package.json CHANGED
@@ -1,24 +1,33 @@
1
1
  {
2
2
  "name": "@allratestoday/bazg-exchange-rate",
3
- "version": "1.3.9",
3
+ "version": "1.3.14",
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",
7
+ "swiss-federal-office-for-customs-and-border-security",
7
8
  "swiss",
8
9
  "federal",
9
10
  "office",
10
11
  "for",
11
12
  "customs",
12
- "and",
13
13
  "border",
14
14
  "security",
15
15
  "exchange-rate",
16
16
  "exchange-rates",
17
+ "exchangerate",
18
+ "exchange rate",
19
+ "chf-exchange-rate",
17
20
  "currency",
18
21
  "forex",
19
22
  "fx",
20
23
  "chf",
21
- "central-bank",
24
+ "currency-api",
25
+ "currency-exchange-rates",
26
+ "forex-api",
27
+ "currency-conversion",
28
+ "currency-exchange",
29
+ "currency-rates",
30
+ "tax-authority",
22
31
  "official-rates",
23
32
  "switzerland",
24
33
  "api",