@allratestoday/boc-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 +34 -34
  2. package/package.json +11 -3
package/README.md CHANGED
@@ -42,34 +42,34 @@ 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 central bank'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 central bank 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-09** by Bank of Canada — 24 rates. Updated 2026-10-12.
45
+ Published **2026-10-16** by Bank of Canada — 24 rates. Updated 2026-10-16.
46
46
 
47
47
  | Base | Quote | Type | Rate |
48
48
  | --- | --- | --- | ---: |
49
- | AUD | CAD | indicative | 0.9958 |
50
- | BRL | CAD | indicative | 0.286 |
51
- | CHF | CAD | indicative | 1.718 |
52
- | CNY | CAD | indicative | 0.2132 |
53
- | EUR | CAD | indicative | 1.5978 |
54
- | GBP | CAD | indicative | 1.8879 |
55
- | HKD | CAD | indicative | 0.1818 |
56
- | IDR | CAD | indicative | 0.00008 |
57
- | INR | CAD | indicative | 0.01475 |
58
- | JPY | CAD | indicative | 0.00902 |
59
- | KRW | CAD | indicative | 0.001063 |
60
- | MXN | CAD | indicative | 0.07767 |
61
- | MYR | CAD | indicative | 0.3493 |
62
- | NOK | CAD | indicative | 0.1491 |
63
- | NZD | CAD | indicative | 0.8005 |
64
- | PEN | CAD | indicative | 0.4143 |
49
+ | AUD | CAD | indicative | 0.9837 |
50
+ | BRL | CAD | indicative | 0.2787 |
51
+ | CHF | CAD | indicative | 1.7176 |
52
+ | CNY | CAD | indicative | 0.2117 |
53
+ | EUR | CAD | indicative | 1.5908 |
54
+ | GBP | CAD | indicative | 1.8871 |
55
+ | HKD | CAD | indicative | 0.1804 |
56
+ | IDR | CAD | indicative | 0.000079 |
57
+ | INR | CAD | indicative | 0.0149 |
58
+ | JPY | CAD | indicative | 0.00896 |
59
+ | KRW | CAD | indicative | 0.001061 |
60
+ | MXN | CAD | indicative | 0.07669 |
61
+ | MYR | CAD | indicative | 0.3468 |
62
+ | NOK | CAD | indicative | 0.1499 |
63
+ | NZD | CAD | indicative | 0.8003 |
64
+ | PEN | CAD | indicative | 0.4123 |
65
65
  | PLN | CAD | indicative | 0.3641 |
66
- | SEK | CAD | indicative | 0.1427 |
67
- | SGD | CAD | indicative | 1.114 |
68
- | THB | CAD | indicative | 0.04255 |
69
- | TRY | CAD | indicative | 0.0289 |
70
- | TWD | CAD | indicative | 0.04467 |
71
- | USD | CAD | indicative | 1.4271 |
72
- | ZAR | CAD | indicative | 0.08634 |
66
+ | SEK | CAD | indicative | 0.1428 |
67
+ | SGD | CAD | indicative | 1.106 |
68
+ | THB | CAD | indicative | 0.04233 |
69
+ | TRY | CAD | indicative | 0.0286 |
70
+ | TWD | CAD | indicative | 0.04365 |
71
+ | USD | CAD | indicative | 1.4154 |
72
+ | ZAR | CAD | indicative | 0.08598 |
73
73
 
74
74
  Source: [Official rates published by BOC, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/boc/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
75
75
  <!-- daily-table:end -->
@@ -126,10 +126,10 @@ const pair = await getRate('USD', 'CAD', { apiKey: 'art_live_...' });
126
126
  {
127
127
  bank: 'boc',
128
128
  name: 'Bank of Canada',
129
- rate_date: '2026-10-09', // Bank of Canada's own publication date
129
+ rate_date: '2026-10-13', // Bank of Canada's own publication date
130
130
  source: 'USD',
131
131
  target: 'CAD',
132
- rate: 1.4271,
132
+ rate: 1.4222,
133
133
  rate_type: 'indicative',
134
134
  derived: false,
135
135
  method: 'published',
@@ -154,9 +154,9 @@ console.log(table.rate_date, table.rates.length);
154
154
  {
155
155
  bank: 'boc',
156
156
  name: 'Bank of Canada',
157
- rate_date: '2026-10-09',
157
+ rate_date: '2026-10-13',
158
158
  rates: [
159
- { "base": "USD", "quote": "CAD", "type": "indicative", "value": 1.4271 },
159
+ { "base": "USD", "quote": "CAD", "type": "indicative", "value": 1.4222 },
160
160
  // … the rest of the published table (24 currencies vs CAD)
161
161
  ],
162
162
  disclaimer: '…'
@@ -196,7 +196,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
196
196
  import { getHistory } from '@allratestoday/boc-exchange-rate';
197
197
 
198
198
  const series = await getHistory(
199
- { source: 'USD', target: 'CAD', from: '2026-01-01', to: '2026-10-09' },
199
+ { source: 'USD', target: 'CAD', from: '2026-01-01', to: '2026-10-13' },
200
200
  { apiKey: 'art_live_...' }
201
201
  );
202
202
  ```
@@ -209,11 +209,11 @@ const series = await getHistory(
209
209
  source: 'USD',
210
210
  target: 'CAD',
211
211
  from: '2026-01-01',
212
- to: '2026-10-09',
212
+ to: '2026-10-13',
213
213
  count: 152,
214
214
  rates: [
215
215
  // one entry per publication date
216
- { date: '2026-10-09', rate: 1.4271, rate_type: 'indicative', derived: false, method: 'published' },
216
+ { date: '2026-10-13', rate: 1.4222, rate_type: 'indicative', derived: false, method: 'published' },
217
217
  // …
218
218
  ],
219
219
  disclaimer: '…'
@@ -263,7 +263,7 @@ curl "https://allratestoday.com/api/v1/central-bank/boc/latest?format=xml&api_ke
263
263
  - 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
264
264
  - 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('boc')` 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
265
265
  - 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 boc ...` command
266
- - 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`
266
+ - 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`
267
267
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
268
268
 
269
269
  ## ⚖️ Published vs derived rates
@@ -332,9 +332,9 @@ getRate('USD', 'CAD', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
332
332
 
333
333
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
334
334
 
335
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/boc.csv`)
335
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/boc.csv`)
336
336
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
337
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/boc/latest.json`
337
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/boc/latest.json`
338
338
 
339
339
  ## 🔗 Links
340
340
 
package/package.json CHANGED
@@ -1,21 +1,29 @@
1
1
  {
2
2
  "name": "@allratestoday/boc-exchange-rate",
3
- "version": "1.3.9",
3
+ "version": "1.3.14",
4
4
  "description": "Official Bank of Canada (Canada) daily exchange rates — 24 currencies vs CAD, history since 2017. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "boc",
7
+ "bank-of-canada",
7
8
  "bank",
8
- "of",
9
9
  "canada",
10
10
  "exchange-rate",
11
11
  "exchange-rates",
12
+ "exchangerate",
13
+ "exchange rate",
14
+ "cad-exchange-rate",
12
15
  "currency",
13
16
  "forex",
14
17
  "fx",
15
18
  "cad",
19
+ "currency-api",
20
+ "currency-exchange-rates",
21
+ "forex-api",
22
+ "currency-conversion",
23
+ "currency-exchange",
24
+ "currency-rates",
16
25
  "central-bank",
17
26
  "official-rates",
18
- "canada",
19
27
  "api",
20
28
  "typescript"
21
29
  ],