@allratestoday/bazg-exchange-rate 1.3.3 → 1.3.5

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 +9 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -85,10 +85,10 @@ const pair = await getRate('EUR', 'CHF', { apiKey: 'art_live_...' });
85
85
  {
86
86
  bank: 'bazg',
87
87
  name: 'Swiss Federal Office for Customs and Border Security',
88
- rate_date: '2026-09-25', // Swiss Federal Office for Customs and Border Security's own publication date
88
+ rate_date: '2026-10-07', // Swiss Federal Office for Customs and Border Security's own publication date
89
89
  source: 'EUR',
90
90
  target: 'CHF',
91
- rate: 0.9479,
91
+ rate: 0.94169,
92
92
  rate_type: 'reference',
93
93
  derived: false,
94
94
  method: 'published',
@@ -113,9 +113,10 @@ console.log(table.rate_date, table.rates.length);
113
113
  {
114
114
  bank: 'bazg',
115
115
  name: 'Swiss Federal Office for Customs and Border Security',
116
- rate_date: '2026-09-25',
116
+ rate_date: '2026-10-07',
117
117
  rates: [
118
- { "base": "EUR", "quote": "CHF", "type": "reference", "value": 0.9479 },
118
+ { "base": "EUR", "quote": "CHF", "type": "reference", "value": 0.94169 },
119
+ { "base": "EUR", "quote": "CHF", "type": "monthly_average", "value": 0.9507 },
119
120
  // … the rest of the published table (73 currencies vs CHF)
120
121
  ],
121
122
  disclaimer: '…'
@@ -155,7 +156,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
155
156
  import { getHistory } from '@allratestoday/bazg-exchange-rate';
156
157
 
157
158
  const series = await getHistory(
158
- { source: 'EUR', target: 'CHF', from: '2026-01-01', to: '2026-09-25' },
159
+ { source: 'EUR', target: 'CHF', from: '2026-01-01', to: '2026-10-07' },
159
160
  { apiKey: 'art_live_...' }
160
161
  );
161
162
  ```
@@ -168,11 +169,11 @@ const series = await getHistory(
168
169
  source: 'EUR',
169
170
  target: 'CHF',
170
171
  from: '2026-01-01',
171
- to: '2026-09-25',
172
+ to: '2026-10-07',
172
173
  count: 152,
173
174
  rates: [
174
175
  // one entry per publication date
175
- { date: '2026-09-25', rate: 0.9479, rate_type: 'reference', derived: false, method: 'published' },
176
+ { date: '2026-10-07', rate: 0.94169, rate_type: 'reference', derived: false, method: 'published' },
176
177
  // …
177
178
  ],
178
179
  disclaimer: '…'
@@ -220,6 +221,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bazg/latest?format=xml&api_k
220
221
  ## 🤖 AI agents
221
222
 
222
223
  - 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
+ - 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
223
225
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
224
226
 
225
227
  ## ⚖️ 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.3",
3
+ "version": "1.3.5",
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",