@allratestoday/bazg-exchange-rate 1.3.19 → 1.3.24
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.
- package/README.md +32 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,93 +24,78 @@
|
|
|
24
24
|
|
|
25
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
26
|
|
|
27
|
-
## ⚡ Try it without a key
|
|
28
|
-
|
|
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:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
curl "https://allratestoday.com/api/open/central-bank/bazg?source=EUR&target=CHF"
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
```js
|
|
36
|
-
const r = await fetch('https://allratestoday.com/api/open/central-bank/bazg').then((x) => x.json());
|
|
37
|
-
console.log(r.rate_date, r.rates.length); // the tax authority's latest published table, no key
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
The open endpoint serves the *latest* table only (JSON by default; add `?format=csv`, `xml` or `xlsx` for a file) and is free to use with a visible, followable link where the rates are shown: `<a href="https://allratestoday.com">Exchange rates by AllRatesToday</a>` (terms: <https://allratestoday.com/terms/#attribution>). The client below uses the keyed API, which adds point-in-time tables and history; with a key the link is appreciated, not required.
|
|
41
|
-
|
|
42
27
|
## 📈 Latest published table
|
|
43
28
|
|
|
44
29
|
[](https://allratestoday.com/tax-authority-rates-api/bazg/)
|
|
45
30
|
|
|
46
|
-
The image is rendered live from the keyless endpoint
|
|
31
|
+
The image is rendered live from the keyless endpoint, 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.
|
|
47
32
|
|
|
48
33
|
<!-- daily-table:start -->
|
|
49
34
|
<details>
|
|
50
|
-
<summary>Table as text: published 2026-10-
|
|
35
|
+
<summary>Table as text: published 2026-10-30 by Swiss Federal Office for Customs and Border Security — 144 rates, first 60 shown. Updated 2026-10-30.</summary>
|
|
51
36
|
|
|
52
37
|
| Base | Quote | Type | Rate |
|
|
53
38
|
| --- | --- | --- | ---: |
|
|
54
39
|
| AED | CHF | monthly_average | 0.223808 |
|
|
55
|
-
| AED | CHF | reference | 0.
|
|
40
|
+
| AED | CHF | reference | 0.2277939 |
|
|
56
41
|
| ALL | CHF | monthly_average | 0.010393 |
|
|
57
|
-
| ALL | CHF | reference | 0.
|
|
42
|
+
| ALL | CHF | reference | 0.0103182 |
|
|
58
43
|
| ARS | CHF | monthly_average | 0.0005 |
|
|
59
44
|
| ARS | CHF | reference | 0.00055 |
|
|
60
45
|
| AUD | CHF | monthly_average | 0.5882 |
|
|
61
|
-
| AUD | CHF | reference | 0.
|
|
46
|
+
| AUD | CHF | reference | 0.59049 |
|
|
62
47
|
| AZN | CHF | monthly_average | 0.4833 |
|
|
63
|
-
| AZN | CHF | reference | 0.
|
|
48
|
+
| AZN | CHF | reference | 0.49208 |
|
|
64
49
|
| BAM | CHF | monthly_average | 0.486391 |
|
|
65
|
-
| BAM | CHF | reference | 0.
|
|
50
|
+
| BAM | CHF | reference | 0.4769816 |
|
|
66
51
|
| BDT | CHF | monthly_average | 0.006724 |
|
|
67
|
-
| BDT | CHF | reference | 0.
|
|
52
|
+
| BDT | CHF | reference | 0.0067822 |
|
|
68
53
|
| BHD | CHF | monthly_average | 2.1912 |
|
|
69
|
-
| BHD | CHF | reference | 2.
|
|
54
|
+
| BHD | CHF | reference | 2.22967 |
|
|
70
55
|
| BRL | CHF | monthly_average | 0.160109 |
|
|
71
|
-
| BRL | CHF | reference | 0.
|
|
56
|
+
| BRL | CHF | reference | 0.1564692 |
|
|
72
57
|
| CAD | CHF | monthly_average | 0.5914 |
|
|
73
|
-
| CAD | CHF | reference | 0.
|
|
58
|
+
| CAD | CHF | reference | 0.59834 |
|
|
74
59
|
| CLP | CHF | monthly_average | 0.0008762 |
|
|
75
|
-
| CLP | CHF | reference | 0.
|
|
60
|
+
| CLP | CHF | reference | 0.00084739 |
|
|
76
61
|
| CNY | CHF | monthly_average | 0.122449 |
|
|
77
|
-
| CNY | CHF | reference | 0.
|
|
62
|
+
| CNY | CHF | reference | 0.1255491 |
|
|
78
63
|
| COP | CHF | monthly_average | 0.00026105 |
|
|
79
|
-
| COP | CHF | reference | 0.
|
|
64
|
+
| COP | CHF | reference | 0.00026765 |
|
|
80
65
|
| CRC | CHF | monthly_average | 0.0018244 |
|
|
81
|
-
| CRC | CHF | reference | 0.
|
|
66
|
+
| CRC | CHF | reference | 0.00184527 |
|
|
82
67
|
| CZK | CHF | monthly_average | 0.039265 |
|
|
83
|
-
| CZK | CHF | reference | 0.
|
|
68
|
+
| CZK | CHF | reference | 0.0382952 |
|
|
84
69
|
| DKK | CHF | monthly_average | 0.127183 |
|
|
85
|
-
| DKK | CHF | reference | 0.
|
|
70
|
+
| DKK | CHF | reference | 0.1247603 |
|
|
86
71
|
| DOP | CHF | monthly_average | 0.014178 |
|
|
87
|
-
| DOP | CHF | reference | 0.
|
|
72
|
+
| DOP | CHF | reference | 0.0140632 |
|
|
88
73
|
| DZD | CHF | monthly_average | 0.00623 |
|
|
89
|
-
| DZD | CHF | reference | 0.
|
|
74
|
+
| DZD | CHF | reference | 0.0062549 |
|
|
90
75
|
| EGP | CHF | monthly_average | 0.016083 |
|
|
91
|
-
| EGP | CHF | reference | 0.
|
|
76
|
+
| EGP | CHF | reference | 0.0149359 |
|
|
92
77
|
| ETB | CHF | monthly_average | 0.005063 |
|
|
93
|
-
| ETB | CHF | reference | 0.
|
|
78
|
+
| ETB | CHF | reference | 0.0051318 |
|
|
94
79
|
| EUR | CHF | monthly_average | 0.9507 |
|
|
95
|
-
| EUR | CHF | reference | 0.
|
|
80
|
+
| EUR | CHF | reference | 0.93241 |
|
|
96
81
|
| GBP | CHF | monthly_average | 1.1085 |
|
|
97
|
-
| GBP | CHF | reference | 1.
|
|
82
|
+
| GBP | CHF | reference | 1.11443 |
|
|
98
83
|
| GEL | CHF | monthly_average | 0.319302 |
|
|
99
|
-
| GEL | CHF | reference | 0.
|
|
84
|
+
| GEL | CHF | reference | 0.3263936 |
|
|
100
85
|
| GTQ | CHF | monthly_average | 0.110533 |
|
|
101
|
-
| GTQ | CHF | reference | 0.
|
|
86
|
+
| GTQ | CHF | reference | 0.1131059 |
|
|
102
87
|
| HKD | CHF | monthly_average | 0.104786 |
|
|
103
|
-
| HKD | CHF | reference | 0.
|
|
88
|
+
| HKD | CHF | reference | 0.1066156 |
|
|
104
89
|
| HNL | CHF | monthly_average | 0.031114 |
|
|
105
|
-
| HNL | CHF | reference | 0.
|
|
90
|
+
| HNL | CHF | reference | 0.0314938 |
|
|
106
91
|
| HUF | CHF | monthly_average | 0.0026132 |
|
|
107
|
-
| HUF | CHF | reference | 0.
|
|
92
|
+
| HUF | CHF | reference | 0.00254242 |
|
|
108
93
|
| IDR | CHF | monthly_average | 0.00004646 |
|
|
109
|
-
| IDR | CHF | reference | 0.
|
|
94
|
+
| IDR | CHF | reference | 0.000046248 |
|
|
110
95
|
| ILS | CHF | monthly_average | 0.2735 |
|
|
111
|
-
| ILS | CHF | reference | 0.
|
|
96
|
+
| ILS | CHF | reference | 0.26905 |
|
|
112
97
|
| INR | CHF | monthly_average | 0.008621 |
|
|
113
|
-
| INR | CHF | reference | 0.
|
|
98
|
+
| INR | CHF | reference | 0.008789 |
|
|
114
99
|
|
|
115
100
|
</details>
|
|
116
101
|
|
|
@@ -276,6 +261,7 @@ The Federal Office for Customs and Border Security (BAZG) sets the exchange rate
|
|
|
276
261
|
|
|
277
262
|
- Publisher's own page: [Daily customs exchange rates](https://www.bazg.admin.ch/bazg/en/home/services/services-firmen/services-firmen_einfuhr-ausfuhr-durchfuhr/kurse.html) · [www.bazg.admin.ch/bazg/en/home.html](https://www.bazg.admin.ch/bazg/en/home.html)
|
|
278
263
|
- Publication: every business day; the exact schedule, freshness status and any current delay are on the [Swiss Federal Office for Customs and Border Security rates page](https://allratestoday.com/tax-authority-rates-api/bazg/)
|
|
264
|
+
- In the API: usually by **05:15 UTC** (measured over the last 15 publications). Schedule a sync at or after that time and retry hourly until `rate_date` moves; every response carries the same figure as `available_by_utc` — see [when to poll](https://allratestoday.com/docs/#when-to-poll)
|
|
279
265
|
- Values are stored unmodified, with the publisher's own `rate_date` on every row — see the [methodology](https://allratestoday.com/official-rates-methodology/)
|
|
280
266
|
|
|
281
267
|
## 🧭 Reading the numbers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/bazg-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.24",
|
|
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",
|