@allratestoday/boc-exchange-rate 1.3.7 โ 1.3.9
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 +34 -31
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,37 +37,39 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
37
37
|
|
|
38
38
|
## ๐ Latest published table
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
[](https://allratestoday.com/central-bank-rates-api/boc/)
|
|
41
|
+
|
|
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.
|
|
41
43
|
|
|
42
44
|
<!-- daily-table:start -->
|
|
43
|
-
Published **2026-10-
|
|
45
|
+
Published **2026-10-09** by Bank of Canada โ 24 rates. Updated 2026-10-12.
|
|
44
46
|
|
|
45
47
|
| Base | Quote | Type | Rate |
|
|
46
48
|
| --- | --- | --- | ---: |
|
|
47
|
-
| AUD | CAD | indicative | 0.
|
|
48
|
-
| BRL | CAD | indicative | 0.
|
|
49
|
-
| CHF | CAD | indicative | 1.
|
|
50
|
-
| CNY | CAD | indicative | 0.
|
|
51
|
-
| EUR | CAD | indicative | 1.
|
|
52
|
-
| GBP | CAD | indicative | 1.
|
|
53
|
-
| HKD | CAD | indicative | 0.
|
|
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 |
|
|
54
56
|
| IDR | CAD | indicative | 0.00008 |
|
|
55
|
-
| INR | CAD | indicative | 0.
|
|
56
|
-
| JPY | CAD | indicative | 0.
|
|
57
|
-
| KRW | CAD | indicative | 0.
|
|
58
|
-
| MXN | CAD | indicative | 0.
|
|
59
|
-
| MYR | CAD | indicative | 0.
|
|
60
|
-
| NOK | CAD | indicative | 0.
|
|
61
|
-
| NZD | CAD | indicative | 0.
|
|
62
|
-
| PEN | CAD | indicative | 0.
|
|
63
|
-
| PLN | CAD | indicative | 0.
|
|
64
|
-
| SEK | CAD | indicative | 0.
|
|
65
|
-
| SGD | CAD | indicative | 1.
|
|
66
|
-
| THB | CAD | indicative | 0.
|
|
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 |
|
|
65
|
+
| PLN | CAD | indicative | 0.3641 |
|
|
66
|
+
| SEK | CAD | indicative | 0.1427 |
|
|
67
|
+
| SGD | CAD | indicative | 1.114 |
|
|
68
|
+
| THB | CAD | indicative | 0.04255 |
|
|
67
69
|
| TRY | CAD | indicative | 0.0289 |
|
|
68
|
-
| TWD | CAD | indicative | 0.
|
|
69
|
-
| USD | CAD | indicative | 1.
|
|
70
|
-
| ZAR | CAD | indicative | 0.
|
|
70
|
+
| TWD | CAD | indicative | 0.04467 |
|
|
71
|
+
| USD | CAD | indicative | 1.4271 |
|
|
72
|
+
| ZAR | CAD | indicative | 0.08634 |
|
|
71
73
|
|
|
72
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.
|
|
73
75
|
<!-- daily-table:end -->
|
|
@@ -124,10 +126,10 @@ const pair = await getRate('USD', 'CAD', { apiKey: 'art_live_...' });
|
|
|
124
126
|
{
|
|
125
127
|
bank: 'boc',
|
|
126
128
|
name: 'Bank of Canada',
|
|
127
|
-
rate_date: '2026-10-
|
|
129
|
+
rate_date: '2026-10-09', // Bank of Canada's own publication date
|
|
128
130
|
source: 'USD',
|
|
129
131
|
target: 'CAD',
|
|
130
|
-
rate: 1.
|
|
132
|
+
rate: 1.4271,
|
|
131
133
|
rate_type: 'indicative',
|
|
132
134
|
derived: false,
|
|
133
135
|
method: 'published',
|
|
@@ -152,9 +154,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
152
154
|
{
|
|
153
155
|
bank: 'boc',
|
|
154
156
|
name: 'Bank of Canada',
|
|
155
|
-
rate_date: '2026-10-
|
|
157
|
+
rate_date: '2026-10-09',
|
|
156
158
|
rates: [
|
|
157
|
-
{ "base": "USD", "quote": "CAD", "type": "indicative", "value": 1.
|
|
159
|
+
{ "base": "USD", "quote": "CAD", "type": "indicative", "value": 1.4271 },
|
|
158
160
|
// โฆ the rest of the published table (24 currencies vs CAD)
|
|
159
161
|
],
|
|
160
162
|
disclaimer: 'โฆ'
|
|
@@ -194,7 +196,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
194
196
|
import { getHistory } from '@allratestoday/boc-exchange-rate';
|
|
195
197
|
|
|
196
198
|
const series = await getHistory(
|
|
197
|
-
{ source: 'USD', target: 'CAD', from: '2026-01-01', to: '2026-10-
|
|
199
|
+
{ source: 'USD', target: 'CAD', from: '2026-01-01', to: '2026-10-09' },
|
|
198
200
|
{ apiKey: 'art_live_...' }
|
|
199
201
|
);
|
|
200
202
|
```
|
|
@@ -207,11 +209,11 @@ const series = await getHistory(
|
|
|
207
209
|
source: 'USD',
|
|
208
210
|
target: 'CAD',
|
|
209
211
|
from: '2026-01-01',
|
|
210
|
-
to: '2026-10-
|
|
212
|
+
to: '2026-10-09',
|
|
211
213
|
count: 152,
|
|
212
214
|
rates: [
|
|
213
215
|
// one entry per publication date
|
|
214
|
-
{ date: '2026-10-
|
|
216
|
+
{ date: '2026-10-09', rate: 1.4271, rate_type: 'indicative', derived: false, method: 'published' },
|
|
215
217
|
// โฆ
|
|
216
218
|
],
|
|
217
219
|
disclaimer: 'โฆ'
|
|
@@ -261,6 +263,7 @@ curl "https://allratestoday.com/api/v1/central-bank/boc/latest?format=xml&api_ke
|
|
|
261
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
|
|
262
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
|
|
263
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`
|
|
264
267
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
265
268
|
|
|
266
269
|
## โ๏ธ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/boc-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
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",
|