bob-exchange-rate 1.3.7 → 1.3.8

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 +16 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -40,17 +40,17 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
40
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.
41
41
 
42
42
  <!-- daily-table:start -->
43
- Published **2026-10-09** by Bank of Botswana — 7 rates. Updated 2026-10-09.
43
+ Published **2026-10-12** by Bank of Botswana — 7 rates. Updated 2026-10-12.
44
44
 
45
45
  | Base | Quote | Type | Rate |
46
46
  | --- | --- | --- | ---: |
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 |
47
+ | BWP | CNH | reference | 0.4998 |
48
+ | BWP | EUR | reference | 0.0666 |
49
+ | BWP | GBP | reference | 0.0563 |
50
+ | BWP | JPY | reference | 11.82 |
51
+ | BWP | USD | reference | 0.0747 |
52
+ | BWP | XDR | reference | 0.0552 |
53
+ | BWP | ZAR | reference | 1.2322 |
54
54
 
55
55
  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
56
  <!-- daily-table:end -->
@@ -107,10 +107,10 @@ const pair = await getRate('USD', 'BWP', { apiKey: 'art_live_...' });
107
107
  {
108
108
  bank: 'bob',
109
109
  name: 'Bank of Botswana',
110
- rate_date: '2026-10-08', // Bank of Botswana's own publication date
110
+ rate_date: '2026-10-12', // Bank of Botswana's own publication date
111
111
  source: 'USD',
112
112
  target: 'BWP',
113
- rate: 13.459,
113
+ rate: 13.3869,
114
114
  rate_type: 'reference',
115
115
  derived: true,
116
116
  method: 'inverse', // computed from the published BWP/USD print
@@ -135,9 +135,9 @@ console.log(table.rate_date, table.rates.length);
135
135
  {
136
136
  bank: 'bob',
137
137
  name: 'Bank of Botswana',
138
- rate_date: '2026-10-08',
138
+ rate_date: '2026-10-12',
139
139
  rates: [
140
- { "base": "BWP", "quote": "USD", "type": "reference", "value": 0.0743 },
140
+ { "base": "BWP", "quote": "USD", "type": "reference", "value": 0.0747 },
141
141
  // … the rest of the published table (7 currencies vs BWP)
142
142
  ],
143
143
  disclaimer: '…'
@@ -177,7 +177,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
177
177
  import { getHistory } from 'bob-exchange-rate';
178
178
 
179
179
  const series = await getHistory(
180
- { source: 'USD', target: 'BWP', from: '2026-01-01', to: '2026-10-08' },
180
+ { source: 'USD', target: 'BWP', from: '2026-01-01', to: '2026-10-12' },
181
181
  { apiKey: 'art_live_...' }
182
182
  );
183
183
  ```
@@ -190,11 +190,11 @@ const series = await getHistory(
190
190
  source: 'USD',
191
191
  target: 'BWP',
192
192
  from: '2026-01-01',
193
- to: '2026-10-08',
193
+ to: '2026-10-12',
194
194
  count: 152,
195
195
  rates: [
196
196
  // one entry per publication date
197
- { date: '2026-10-08', rate: 13.459, rate_type: 'reference', derived: true, method: 'inverse' },
197
+ { date: '2026-10-12', rate: 13.3869, rate_type: 'reference', derived: true, method: 'inverse' },
198
198
  // …
199
199
  ],
200
200
  disclaimer: '…'
@@ -244,6 +244,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bob/latest?format=xml&api_ke
244
244
  - 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
245
  - 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
246
  - 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
247
+ - 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
248
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
248
249
 
249
250
  ## ⚖️ 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.8",
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",