bob-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.
Files changed (2) hide show
  1. package/README.md +19 -16
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,20 +37,22 @@ 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 Botswana 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 Botswana table](https://allratestoday.com/api/open/central-bank/bob/table.svg)](https://allratestoday.com/central-bank-rates-api/bob/)
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-09** by Bank of Botswana โ€” 7 rates. Updated 2026-10-09.
45
+ Published **2026-10-12** by Bank of Botswana โ€” 7 rates. Updated 2026-10-12.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
- | BWP | CNH | reference | 0.4997 |
48
- | BWP | EUR | reference | 0.0665 |
49
- | BWP | GBP | reference | 0.0564 |
50
- | BWP | JPY | reference | 11.8 |
51
- | BWP | USD | reference | 0.0746 |
52
- | BWP | XDR | reference | 0.0551 |
53
- | BWP | ZAR | reference | 1.2339 |
49
+ | BWP | CNH | reference | 0.4998 |
50
+ | BWP | EUR | reference | 0.0666 |
51
+ | BWP | GBP | reference | 0.0563 |
52
+ | BWP | JPY | reference | 11.82 |
53
+ | BWP | USD | reference | 0.0747 |
54
+ | BWP | XDR | reference | 0.0552 |
55
+ | BWP | ZAR | reference | 1.2322 |
54
56
 
55
57
  Source: [Official rates published by BOB, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bob/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
56
58
  <!-- daily-table:end -->
@@ -107,10 +109,10 @@ const pair = await getRate('USD', 'BWP', { apiKey: 'art_live_...' });
107
109
  {
108
110
  bank: 'bob',
109
111
  name: 'Bank of Botswana',
110
- rate_date: '2026-10-08', // Bank of Botswana's own publication date
112
+ rate_date: '2026-10-12', // Bank of Botswana's own publication date
111
113
  source: 'USD',
112
114
  target: 'BWP',
113
- rate: 13.459,
115
+ rate: 13.3869,
114
116
  rate_type: 'reference',
115
117
  derived: true,
116
118
  method: 'inverse', // computed from the published BWP/USD print
@@ -135,9 +137,9 @@ console.log(table.rate_date, table.rates.length);
135
137
  {
136
138
  bank: 'bob',
137
139
  name: 'Bank of Botswana',
138
- rate_date: '2026-10-08',
140
+ rate_date: '2026-10-12',
139
141
  rates: [
140
- { "base": "BWP", "quote": "USD", "type": "reference", "value": 0.0743 },
142
+ { "base": "BWP", "quote": "USD", "type": "reference", "value": 0.0747 },
141
143
  // โ€ฆ the rest of the published table (7 currencies vs BWP)
142
144
  ],
143
145
  disclaimer: 'โ€ฆ'
@@ -177,7 +179,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
177
179
  import { getHistory } from 'bob-exchange-rate';
178
180
 
179
181
  const series = await getHistory(
180
- { source: 'USD', target: 'BWP', from: '2026-01-01', to: '2026-10-08' },
182
+ { source: 'USD', target: 'BWP', from: '2026-01-01', to: '2026-10-12' },
181
183
  { apiKey: 'art_live_...' }
182
184
  );
183
185
  ```
@@ -190,11 +192,11 @@ const series = await getHistory(
190
192
  source: 'USD',
191
193
  target: 'BWP',
192
194
  from: '2026-01-01',
193
- to: '2026-10-08',
195
+ to: '2026-10-12',
194
196
  count: 152,
195
197
  rates: [
196
198
  // one entry per publication date
197
- { date: '2026-10-08', rate: 13.459, rate_type: 'reference', derived: true, method: 'inverse' },
199
+ { date: '2026-10-12', rate: 13.3869, rate_type: 'reference', derived: true, method: 'inverse' },
198
200
  // โ€ฆ
199
201
  ],
200
202
  disclaimer: 'โ€ฆ'
@@ -244,6 +246,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bob/latest?format=xml&api_ke
244
246
  - 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
245
247
  - 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('bob')` 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
246
248
  - 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 bob ...` command
249
+ - 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`
247
250
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
248
251
 
249
252
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bob-exchange-rate",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "description": "Official Bank of Botswana (Botswana) daily exchange rates โ€” 7 currencies vs BWP, current table, archive from 2026. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "bob",