@allratestoday/bazg-exchange-rate 1.3.9 → 1.3.13

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 +39 -39
  2. package/package.json +12 -3
package/README.md CHANGED
@@ -42,70 +42,70 @@ 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-15** by Swiss Federal Office for Customs and Border Security — 144 rates, first 60 shown. Updated 2026-10-14.
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.2289766 |
51
51
  | ALL | CHF | monthly_average | 0.010393 |
52
- | ALL | CHF | reference | 0.0102847 |
52
+ | ALL | CHF | reference | 0.0103473 |
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.58807 |
57
57
  | AZN | CHF | monthly_average | 0.4833 |
58
- | AZN | CHF | reference | 0.49285 |
58
+ | AZN | CHF | reference | 0.49463 |
59
59
  | BAM | CHF | monthly_average | 0.486391 |
60
- | BAM | CHF | reference | 0.4805523 |
60
+ | BAM | CHF | reference | 0.4818757 |
61
61
  | BDT | CHF | monthly_average | 0.006724 |
62
- | BDT | CHF | reference | 0.0068431 |
62
+ | BDT | CHF | reference | 0.0068763 |
63
63
  | BHD | CHF | monthly_average | 2.1912 |
64
- | BHD | CHF | reference | 2.2312 |
64
+ | BHD | CHF | reference | 2.24071 |
65
65
  | BRL | CHF | monthly_average | 0.160109 |
66
- | BRL | CHF | reference | 0.1679251 |
66
+ | BRL | CHF | reference | 0.1673051 |
67
67
  | CAD | CHF | monthly_average | 0.5914 |
68
- | CAD | CHF | reference | 0.58788 |
68
+ | CAD | CHF | reference | 0.59217 |
69
69
  | CLP | CHF | monthly_average | 0.0008762 |
70
- | CLP | CHF | reference | 0.0008583 |
70
+ | CLP | CHF | reference | 0.00085629 |
71
71
  | CNY | CHF | monthly_average | 0.122449 |
72
- | CNY | CHF | reference | 0.1251976 |
72
+ | CNY | CHF | reference | 0.1256575 |
73
73
  | COP | CHF | monthly_average | 0.00026105 |
74
- | COP | CHF | reference | 0.000264711 |
74
+ | COP | CHF | reference | 0.000266862 |
75
75
  | CRC | CHF | monthly_average | 0.0018244 |
76
- | CRC | CHF | reference | 0.0018422 |
76
+ | CRC | CHF | reference | 0.00185204 |
77
77
  | CZK | CHF | monthly_average | 0.039265 |
78
- | CZK | CHF | reference | 0.0385672 |
78
+ | CZK | CHF | reference | 0.0387049 |
79
79
  | DKK | CHF | monthly_average | 0.127183 |
80
- | DKK | CHF | reference | 0.1256985 |
80
+ | DKK | CHF | reference | 0.1260147 |
81
81
  | DOP | CHF | monthly_average | 0.014178 |
82
- | DOP | CHF | reference | 0.0138527 |
82
+ | DOP | CHF | reference | 0.0138773 |
83
83
  | DZD | CHF | monthly_average | 0.00623 |
84
- | DZD | CHF | reference | 0.0063015 |
84
+ | DZD | CHF | reference | 0.0063219 |
85
85
  | EGP | CHF | monthly_average | 0.016083 |
86
- | EGP | CHF | reference | 0.0161357 |
86
+ | EGP | CHF | reference | 0.0159363 |
87
87
  | ETB | CHF | monthly_average | 0.005063 |
88
- | ETB | CHF | reference | 0.0051647 |
88
+ | ETB | CHF | reference | 0.0051816 |
89
89
  | EUR | CHF | monthly_average | 0.9507 |
90
- | EUR | CHF | reference | 0.93951 |
90
+ | EUR | CHF | reference | 0.94191 |
91
91
  | GBP | CHF | monthly_average | 1.1085 |
92
- | GBP | CHF | reference | 1.11009 |
92
+ | GBP | CHF | reference | 1.11509 |
93
93
  | GEL | CHF | monthly_average | 0.319302 |
94
- | GEL | CHF | reference | 0.3268296 |
94
+ | GEL | CHF | reference | 0.3277943 |
95
95
  | GTQ | CHF | monthly_average | 0.110533 |
96
- | GTQ | CHF | reference | 0.1131792 |
96
+ | GTQ | CHF | reference | 0.1137126 |
97
97
  | HKD | CHF | monthly_average | 0.104786 |
98
- | HKD | CHF | reference | 0.106757 |
98
+ | HKD | CHF | reference | 0.1071105 |
99
99
  | HNL | CHF | monthly_average | 0.031114 |
100
- | HNL | CHF | reference | 0.0319732 |
100
+ | HNL | CHF | reference | 0.0316697 |
101
101
  | HUF | CHF | monthly_average | 0.0026132 |
102
- | HUF | CHF | reference | 0.0025772 |
102
+ | HUF | CHF | reference | 0.00259209 |
103
103
  | IDR | CHF | monthly_average | 0.00004646 |
104
- | IDR | CHF | reference | 0.000046874 |
104
+ | IDR | CHF | reference | 0.000046984 |
105
105
  | ILS | CHF | monthly_average | 0.2735 |
106
- | ILS | CHF | reference | 0.27438 |
106
+ | ILS | CHF | reference | 0.27473 |
107
107
  | INR | CHF | monthly_average | 0.008621 |
108
- | INR | CHF | reference | 0.0086576 |
108
+ | INR | CHF | reference | 0.0088428 |
109
109
 
110
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
111
  <!-- daily-table:end -->
@@ -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: '…'
@@ -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.13",
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",