boe-exchange-rate 1.3.8 → 1.3.13

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 +36 -34
  2. package/package.json +11 -2
package/README.md CHANGED
@@ -37,36 +37,38 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## 📈 Latest published table
39
39
 
40
- Today's full Bank of England table, straight from the central bank's latest publication. On GitHub it is refreshed by [a daily Action](.github/workflows/daily-table.yml) that reads the keyless endpoint above and commits only when the central bank publishes a new table; the copy on npm is as of the package's publish date.
40
+ [![Latest Bank of England table](https://allratestoday.com/api/open/central-bank/boe/table.svg)](https://allratestoday.com/central-bank-rates-api/boe/)
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-08** by Bank of England — 23 rates. Updated 2026-10-12.
45
+ Published **2026-10-12** by Bank of England — 23 rates. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
- | GBP | AUD | reference | 1.8995 |
48
- | GBP | CAD | reference | 1.8819 |
49
- | GBP | CHF | reference | 1.1016 |
50
- | GBP | CNY | reference | 8.8672 |
51
- | GBP | DKK | reference | 8.8205 |
52
- | GBP | EUR | reference | 1.18 |
53
- | GBP | HKD | reference | 10.38 |
54
- | GBP | ILS | reference | 4.051 |
55
- | GBP | INR | reference | 128.003 |
56
- | GBP | JPY | reference | 209.234 |
57
- | GBP | KRW | reference | 1774.6637 |
58
- | GBP | MYR | reference | 5.4112 |
59
- | GBP | NOK | reference | 12.6469 |
60
- | GBP | NZD | reference | 2.3606 |
61
- | GBP | PLN | reference | 5.1685 |
62
- | GBP | SAR | reference | 4.9654 |
63
- | GBP | SEK | reference | 13.2058 |
64
- | GBP | SGD | reference | 1.6941 |
65
- | GBP | THB | reference | 44.5369 |
66
- | GBP | TRY | reference | 65.0892 |
67
- | GBP | TWD | reference | 42.2462 |
68
- | GBP | USD | reference | 1.3226 |
69
- | GBP | ZAR | reference | 21.9891 |
49
+ | GBP | AUD | reference | 1.8985 |
50
+ | GBP | CAD | reference | 1.8868 |
51
+ | GBP | CHF | reference | 1.1029 |
52
+ | GBP | CNY | reference | 8.8497 |
53
+ | GBP | DKK | reference | 8.8442 |
54
+ | GBP | EUR | reference | 1.1832 |
55
+ | GBP | HKD | reference | 10.3738 |
56
+ | GBP | ILS | reference | 4.0626 |
57
+ | GBP | INR | reference | 126.6098 |
58
+ | GBP | JPY | reference | 209.7736 |
59
+ | GBP | KRW | reference | 1763.9969 |
60
+ | GBP | MYR | reference | 5.399 |
61
+ | GBP | NOK | reference | 12.6433 |
62
+ | GBP | NZD | reference | 2.3634 |
63
+ | GBP | PLN | reference | 5.1883 |
64
+ | GBP | SAR | reference | 4.9648 |
65
+ | GBP | SEK | reference | 13.2498 |
66
+ | GBP | SGD | reference | 1.693 |
67
+ | GBP | THB | reference | 44.4373 |
68
+ | GBP | TRY | reference | 65.2111 |
69
+ | GBP | TWD | reference | 42.235 |
70
+ | GBP | USD | reference | 1.322 |
71
+ | GBP | ZAR | reference | 21.8744 |
70
72
 
71
73
  Source: [Official rates published by BOE, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/boe/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
72
74
  <!-- daily-table:end -->
@@ -123,10 +125,10 @@ const pair = await getRate('GBP', 'USD', { apiKey: 'art_live_...' });
123
125
  {
124
126
  bank: 'boe',
125
127
  name: 'Bank of England',
126
- rate_date: '2026-10-08', // Bank of England's own publication date
128
+ rate_date: '2026-10-12', // Bank of England's own publication date
127
129
  source: 'GBP',
128
130
  target: 'USD',
129
- rate: 1.3226,
131
+ rate: 1.322,
130
132
  rate_type: 'reference',
131
133
  derived: false,
132
134
  method: 'published',
@@ -151,9 +153,9 @@ console.log(table.rate_date, table.rates.length);
151
153
  {
152
154
  bank: 'boe',
153
155
  name: 'Bank of England',
154
- rate_date: '2026-10-08',
156
+ rate_date: '2026-10-12',
155
157
  rates: [
156
- { "base": "GBP", "quote": "USD", "type": "reference", "value": 1.3226 },
158
+ { "base": "GBP", "quote": "USD", "type": "reference", "value": 1.322 },
157
159
  // … the rest of the published table (23 currencies vs GBP)
158
160
  ],
159
161
  disclaimer: '…'
@@ -193,7 +195,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
193
195
  import { getHistory } from 'boe-exchange-rate';
194
196
 
195
197
  const series = await getHistory(
196
- { source: 'GBP', target: 'USD', from: '2026-01-01', to: '2026-10-08' },
198
+ { source: 'GBP', target: 'USD', from: '2026-01-01', to: '2026-10-12' },
197
199
  { apiKey: 'art_live_...' }
198
200
  );
199
201
  ```
@@ -206,11 +208,11 @@ const series = await getHistory(
206
208
  source: 'GBP',
207
209
  target: 'USD',
208
210
  from: '2026-01-01',
209
- to: '2026-10-08',
211
+ to: '2026-10-12',
210
212
  count: 152,
211
213
  rates: [
212
214
  // one entry per publication date
213
- { date: '2026-10-08', rate: 1.3226, rate_type: 'reference', derived: false, method: 'published' },
215
+ { date: '2026-10-12', rate: 1.322, rate_type: 'reference', derived: false, method: 'published' },
214
216
  // …
215
217
  ],
216
218
  disclaimer: '…'
@@ -329,9 +331,9 @@ getRate('GBP', 'USD', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
329
331
 
330
332
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
331
333
 
332
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/boe.csv`)
334
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/boe.csv`)
333
335
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
334
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/boe/latest.json`
336
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/boe/latest.json`
335
337
 
336
338
  ## 🔗 Links
337
339
 
package/package.json CHANGED
@@ -1,18 +1,27 @@
1
1
  {
2
2
  "name": "boe-exchange-rate",
3
- "version": "1.3.8",
3
+ "version": "1.3.13",
4
4
  "description": "Official Bank of England (United Kingdom) daily exchange rates — 23 currencies vs GBP, history since 2016. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "boe",
7
+ "bank-of-england",
7
8
  "bank",
8
- "of",
9
9
  "england",
10
10
  "exchange-rate",
11
11
  "exchange-rates",
12
+ "exchangerate",
13
+ "exchange rate",
14
+ "gbp-exchange-rate",
12
15
  "currency",
13
16
  "forex",
14
17
  "fx",
15
18
  "gbp",
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
27
  "united-kingdom",