@allratestoday/boe-exchange-rate 1.3.6 โ†’ 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.
Files changed (2) hide show
  1. package/README.md +48 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/@allratestoday%2Fboe-exchange-rate.svg)](https://github.com/AllRates-Today/boe-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/boe-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![GBP/USD today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fboe%3Fsource%3DGBP%26target%3DUSD&query=%24.rate&label=GBP%2FUSD%20published%20by%20Bank%20of%20England&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/boe/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fboe%3Fsource%3DGBP%26target%3DUSD&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/boe/)
7
9
 
8
10
  **Official Bank of England (the United Kingdom) daily exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing โ€” not market estimates, but the numbers Bank of England itself prints, every business day.**
9
11
 
@@ -33,6 +35,44 @@ console.log(r.rate_date, r.rates.length); // the central bank's latest published
33
35
 
34
36
  The open endpoint serves the *latest* table only and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables, history, and CSV/XML/Excel output.
35
37
 
38
+ ## ๐Ÿ“ˆ Latest published table
39
+
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.
43
+
44
+ <!-- daily-table:start -->
45
+ Published **2026-10-08** by Bank of England โ€” 23 rates. Updated 2026-10-12.
46
+
47
+ | Base | Quote | Type | Rate |
48
+ | --- | --- | --- | ---: |
49
+ | GBP | AUD | reference | 1.8995 |
50
+ | GBP | CAD | reference | 1.8819 |
51
+ | GBP | CHF | reference | 1.1016 |
52
+ | GBP | CNY | reference | 8.8672 |
53
+ | GBP | DKK | reference | 8.8205 |
54
+ | GBP | EUR | reference | 1.18 |
55
+ | GBP | HKD | reference | 10.38 |
56
+ | GBP | ILS | reference | 4.051 |
57
+ | GBP | INR | reference | 128.003 |
58
+ | GBP | JPY | reference | 209.234 |
59
+ | GBP | KRW | reference | 1774.6637 |
60
+ | GBP | MYR | reference | 5.4112 |
61
+ | GBP | NOK | reference | 12.6469 |
62
+ | GBP | NZD | reference | 2.3606 |
63
+ | GBP | PLN | reference | 5.1685 |
64
+ | GBP | SAR | reference | 4.9654 |
65
+ | GBP | SEK | reference | 13.2058 |
66
+ | GBP | SGD | reference | 1.6941 |
67
+ | GBP | THB | reference | 44.5369 |
68
+ | GBP | TRY | reference | 65.0892 |
69
+ | GBP | TWD | reference | 42.2462 |
70
+ | GBP | USD | reference | 1.3226 |
71
+ | GBP | ZAR | reference | 21.9891 |
72
+
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.
74
+ <!-- daily-table:end -->
75
+
36
76
  ## ๐Ÿ”‘ Get your API key
37
77
 
38
78
  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.
@@ -85,10 +125,10 @@ const pair = await getRate('GBP', 'USD', { apiKey: 'art_live_...' });
85
125
  {
86
126
  bank: 'boe',
87
127
  name: 'Bank of England',
88
- rate_date: '2026-10-07', // Bank of England's own publication date
128
+ rate_date: '2026-10-08', // Bank of England's own publication date
89
129
  source: 'GBP',
90
130
  target: 'USD',
91
- rate: 1.322,
131
+ rate: 1.3226,
92
132
  rate_type: 'reference',
93
133
  derived: false,
94
134
  method: 'published',
@@ -113,9 +153,9 @@ console.log(table.rate_date, table.rates.length);
113
153
  {
114
154
  bank: 'boe',
115
155
  name: 'Bank of England',
116
- rate_date: '2026-10-07',
156
+ rate_date: '2026-10-08',
117
157
  rates: [
118
- { "base": "GBP", "quote": "USD", "type": "reference", "value": 1.322 },
158
+ { "base": "GBP", "quote": "USD", "type": "reference", "value": 1.3226 },
119
159
  // โ€ฆ the rest of the published table (23 currencies vs GBP)
120
160
  ],
121
161
  disclaimer: 'โ€ฆ'
@@ -155,7 +195,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
155
195
  import { getHistory } from '@allratestoday/boe-exchange-rate';
156
196
 
157
197
  const series = await getHistory(
158
- { source: 'GBP', target: 'USD', from: '2026-01-01', to: '2026-10-07' },
198
+ { source: 'GBP', target: 'USD', from: '2026-01-01', to: '2026-10-08' },
159
199
  { apiKey: 'art_live_...' }
160
200
  );
161
201
  ```
@@ -168,11 +208,11 @@ const series = await getHistory(
168
208
  source: 'GBP',
169
209
  target: 'USD',
170
210
  from: '2026-01-01',
171
- to: '2026-10-07',
211
+ to: '2026-10-08',
172
212
  count: 152,
173
213
  rates: [
174
214
  // one entry per publication date
175
- { date: '2026-10-07', rate: 1.322, rate_type: 'reference', derived: false, method: 'published' },
215
+ { date: '2026-10-08', rate: 1.3226, rate_type: 'reference', derived: false, method: 'published' },
176
216
  // โ€ฆ
177
217
  ],
178
218
  disclaimer: 'โ€ฆ'
@@ -222,6 +262,7 @@ curl "https://allratestoday.com/api/v1/central-bank/boe/latest?format=xml&api_ke
222
262
  - 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
223
263
  - 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('boe')` 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
224
264
  - 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 boe ...` command
265
+ - 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`
225
266
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
226
267
 
227
268
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/boe-exchange-rate",
3
- "version": "1.3.6",
3
+ "version": "1.3.9",
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",