@allratestoday/boc-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.
Files changed (2) hide show
  1. package/README.md +26 -40
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -24,57 +24,42 @@
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 Bank of Canada 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/boc?source=USD&target=CAD"
33
- ```
34
-
35
- ```js
36
- const r = await fetch('https://allratestoday.com/api/open/central-bank/boc').then((x) => x.json());
37
- console.log(r.rate_date, r.rates.length); // the central bank'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
  [![Latest Bank of Canada table](https://allratestoday.com/api/open/central-bank/boc/table.svg)](https://allratestoday.com/central-bank-rates-api/boc/)
45
30
 
46
- 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 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 central bank publishes a new table; on npm it is as of the package's publish date.
31
+ The image is rendered live from the keyless endpoint, so it follows the central bank'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 central bank 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-26 by Bank of Canada — 24 rates. Updated 2026-10-27.</summary>
35
+ <summary>Table as text: published 2026-10-29 by Bank of Canada — 24 rates. Updated 2026-10-30.</summary>
51
36
 
52
37
  | Base | Quote | Type | Rate |
53
38
  | --- | --- | --- | ---: |
54
- | AUD | CAD | indicative | 0.9848 |
55
- | BRL | CAD | indicative | 0.2582 |
56
- | CHF | CAD | indicative | 1.6961 |
57
- | CNY | CAD | indicative | 0.2103 |
58
- | EUR | CAD | indicative | 1.5687 |
59
- | GBP | CAD | indicative | 1.8721 |
60
- | HKD | CAD | indicative | 0.1788 |
39
+ | AUD | CAD | indicative | 0.9833 |
40
+ | BRL | CAD | indicative | 0.2595 |
41
+ | CHF | CAD | indicative | 1.6912 |
42
+ | CNY | CAD | indicative | 0.21 |
43
+ | EUR | CAD | indicative | 1.5601 |
44
+ | GBP | CAD | indicative | 1.8676 |
45
+ | HKD | CAD | indicative | 0.1782 |
61
46
  | IDR | CAD | indicative | 0.000077 |
62
- | INR | CAD | indicative | 0.01473 |
63
- | JPY | CAD | indicative | 0.00891 |
64
- | KRW | CAD | indicative | 0.001058 |
65
- | MXN | CAD | indicative | 0.07543 |
66
- | MYR | CAD | indicative | 0.3431 |
67
- | NOK | CAD | indicative | 0.1504 |
68
- | NZD | CAD | indicative | 0.797 |
69
- | PEN | CAD | indicative | 0.4073 |
70
- | PLN | CAD | indicative | 0.3562 |
71
- | SEK | CAD | indicative | 0.1409 |
72
- | SGD | CAD | indicative | 1.0951 |
73
- | THB | CAD | indicative | 0.04151 |
74
- | TRY | CAD | indicative | 0.0282 |
75
- | TWD | CAD | indicative | 0.04305 |
76
- | USD | CAD | indicative | 1.4025 |
77
- | ZAR | CAD | indicative | 0.08428 |
47
+ | INR | CAD | indicative | 0.01468 |
48
+ | JPY | CAD | indicative | 0.00886 |
49
+ | KRW | CAD | indicative | 0.001045 |
50
+ | MXN | CAD | indicative | 0.07437 |
51
+ | MYR | CAD | indicative | 0.3445 |
52
+ | NOK | CAD | indicative | 0.1509 |
53
+ | NZD | CAD | indicative | 0.7866 |
54
+ | PEN | CAD | indicative | 0.4045 |
55
+ | PLN | CAD | indicative | 0.3553 |
56
+ | SEK | CAD | indicative | 0.1418 |
57
+ | SGD | CAD | indicative | 1.092 |
58
+ | THB | CAD | indicative | 0.04147 |
59
+ | TRY | CAD | indicative | 0.0281 |
60
+ | TWD | CAD | indicative | 0.04296 |
61
+ | USD | CAD | indicative | 1.3985 |
62
+ | ZAR | CAD | indicative | 0.0841 |
78
63
 
79
64
  </details>
80
65
 
@@ -239,6 +224,7 @@ The Bank of Canada is Canada's central bank. It publishes daily average exchange
239
224
 
240
225
  - Publisher's own page: [Daily exchange rates](https://www.bankofcanada.ca/rates/exchange/daily-exchange-rates/) · [www.bankofcanada.ca](https://www.bankofcanada.ca)
241
226
  - Publication: every business day; the exact schedule, freshness status and any current delay are on the [Bank of Canada rates page](https://allratestoday.com/central-bank-rates-api/boc/)
227
+ - In the API: usually by **21:15 UTC** (measured over the last 10 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)
242
228
  - Values are stored unmodified, with the publisher's own `rate_date` on every row — see the [methodology](https://allratestoday.com/official-rates-methodology/)
243
229
 
244
230
  ## 🧭 Reading the numbers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/boc-exchange-rate",
3
- "version": "1.3.19",
3
+ "version": "1.3.24",
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",