bna-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 +58 -57
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -40,70 +40,70 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
40
40
  Today's full National Bank of Angola 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-08** by National Bank of Angola — 210 rates, first 60 shown. Updated 2026-10-08.
43
+ Published **2026-10-12** by National Bank of Angola — 209 rates, first 60 shown. Updated 2026-10-12.
44
44
 
45
45
  | Base | Quote | Type | Rate |
46
46
  | --- | --- | --- | ---: |
47
- | AED | AOA | buy | 248.57742 |
48
- | AED | AOA | reference | 248.57742 |
49
- | AED | AOA | sell | 248.57742 |
50
- | ALL | AOA | buy | 11.20658 |
51
- | ALL | AOA | reference | 11.20658 |
52
- | ALL | AOA | sell | 11.20658 |
53
- | ARS | AOA | buy | 0.6017 |
54
- | ARS | AOA | reference | 0.6017 |
55
- | ARS | AOA | sell | 0.6017 |
56
- | AUD | AOA | buy | 634.11585 |
57
- | AUD | AOA | reference | 634.11585 |
58
- | AUD | AOA | sell | 634.11585 |
59
- | BGN | AOA | buy | 522.43076 |
60
- | BGN | AOA | reference | 522.43076 |
61
- | BGN | AOA | sell | 522.43076 |
47
+ | AED | AOA | buy | 248.57065 |
48
+ | AED | AOA | reference | 248.57065 |
49
+ | AED | AOA | sell | 248.57065 |
50
+ | ALL | AOA | buy | 11.2052 |
51
+ | ALL | AOA | reference | 11.2052 |
52
+ | ALL | AOA | sell | 11.2052 |
53
+ | ARS | AOA | buy | 0.60223 |
54
+ | ARS | AOA | reference | 0.60223 |
55
+ | ARS | AOA | sell | 0.60223 |
56
+ | AUD | AOA | buy | 636.72502 |
57
+ | AUD | AOA | reference | 636.72502 |
58
+ | AUD | AOA | sell | 636.72502 |
59
+ | BGN | AOA | buy | 522.04243 |
60
+ | BGN | AOA | reference | 522.04243 |
61
+ | BGN | AOA | sell | 522.04243 |
62
62
  | BMD | AOA | buy | 913 |
63
63
  | BMD | AOA | reference | 913 |
64
64
  | BMD | AOA | sell | 913 |
65
- | BOB | AOA | buy | 77.04641 |
66
- | BOB | AOA | reference | 77.04641 |
67
- | BOB | AOA | sell | 77.04641 |
68
- | BRL | AOA | buy | 181.94137 |
69
- | BRL | AOA | reference | 181.94137 |
70
- | BRL | AOA | sell | 181.94137 |
65
+ | BOB | AOA | buy | 77.83461 |
66
+ | BOB | AOA | reference | 77.83461 |
67
+ | BOB | AOA | sell | 77.83461 |
68
+ | BRL | AOA | buy | 183.09803 |
69
+ | BRL | AOA | reference | 183.09803 |
70
+ | BRL | AOA | sell | 183.09803 |
71
71
  | BSD | AOA | buy | 913 |
72
72
  | BSD | AOA | reference | 913 |
73
73
  | BSD | AOA | sell | 913 |
74
- | BWP | AOA | buy | 67.74454 |
75
- | BWP | AOA | reference | 67.74454 |
76
- | BWP | AOA | sell | 67.74454 |
77
- | CAD | AOA | buy | 640.4321 |
78
- | CAD | AOA | reference | 640.4321 |
79
- | CAD | AOA | sell | 640.4321 |
80
- | CDF | AOA | buy | 0.39546 |
81
- | CDF | AOA | reference | 0.39546 |
82
- | CDF | AOA | sell | 0.39546 |
83
- | CHF | AOA | buy | 1095.90685 |
84
- | CHF | AOA | reference | 1095.90685 |
85
- | CHF | AOA | sell | 1095.90685 |
86
- | CNY | AOA | buy | 136.24629 |
87
- | CNY | AOA | reference | 136.24629 |
88
- | CNY | AOA | sell | 136.24629 |
89
- | CRC | AOA | buy | 2.01092 |
90
- | CRC | AOA | reference | 2.01092 |
91
- | CRC | AOA | sell | 2.01092 |
74
+ | BWP | AOA | buy | 67.927 |
75
+ | BWP | AOA | reference | 67.927 |
76
+ | BWP | AOA | sell | 67.927 |
77
+ | CAD | AOA | buy | 640.25245 |
78
+ | CAD | AOA | reference | 640.25245 |
79
+ | CAD | AOA | sell | 640.25245 |
80
+ | CDF | AOA | buy | 0.39541 |
81
+ | CDF | AOA | reference | 0.39541 |
82
+ | CDF | AOA | sell | 0.39541 |
83
+ | CHF | AOA | buy | 1096.43329 |
84
+ | CHF | AOA | reference | 1096.43329 |
85
+ | CHF | AOA | sell | 1096.43329 |
86
+ | CNY | AOA | buy | 136.4071 |
87
+ | CNY | AOA | reference | 136.4071 |
88
+ | CNY | AOA | sell | 136.4071 |
89
+ | CRC | AOA | buy | 2.02327 |
90
+ | CRC | AOA | reference | 2.02327 |
91
+ | CRC | AOA | sell | 2.02327 |
92
92
  | CUP | AOA | buy | 38.04167 |
93
93
  | CUP | AOA | reference | 38.04167 |
94
94
  | CUP | AOA | sell | 38.04167 |
95
- | CVE | AOA | buy | 9.31166 |
96
- | CVE | AOA | reference | 9.31166 |
97
- | CVE | AOA | sell | 9.31166 |
98
- | CZK | AOA | buy | 41.87228 |
99
- | CZK | AOA | reference | 41.87228 |
100
- | CZK | AOA | sell | 41.87228 |
101
- | DKK | AOA | buy | 136.71349 |
102
- | DKK | AOA | reference | 136.71349 |
103
- | DKK | AOA | sell | 136.71349 |
104
- | EEK | AOA | buy | 65.30291 |
105
- | EEK | AOA | reference | 65.30291 |
106
- | EEK | AOA | sell | 65.30291 |
95
+ | CVE | AOA | buy | 9.31217 |
96
+ | CVE | AOA | reference | 9.31217 |
97
+ | CVE | AOA | sell | 9.31217 |
98
+ | CZK | AOA | buy | 41.86441 |
99
+ | CZK | AOA | reference | 41.86441 |
100
+ | CZK | AOA | sell | 41.86441 |
101
+ | DKK | AOA | buy | 136.59281 |
102
+ | DKK | AOA | reference | 136.59281 |
103
+ | DKK | AOA | sell | 136.59281 |
104
+ | EEK | AOA | buy | 65.25437 |
105
+ | EEK | AOA | reference | 65.25437 |
106
+ | EEK | AOA | sell | 65.25437 |
107
107
 
108
108
  [Full table on the National Bank of Angola rates page](https://allratestoday.com/central-bank-rates-api/bna/) · Source: [Official rates published by BNA, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bna/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
109
109
  <!-- daily-table:end -->
@@ -160,7 +160,7 @@ const pair = await getRate('USD', 'AOA', { apiKey: 'art_live_...' });
160
160
  {
161
161
  bank: 'bna',
162
162
  name: 'National Bank of Angola',
163
- rate_date: '2026-10-08', // National Bank of Angola's own publication date
163
+ rate_date: '2026-10-12', // National Bank of Angola's own publication date
164
164
  source: 'USD',
165
165
  target: 'AOA',
166
166
  rate: 913,
@@ -188,7 +188,7 @@ console.log(table.rate_date, table.rates.length);
188
188
  {
189
189
  bank: 'bna',
190
190
  name: 'National Bank of Angola',
191
- rate_date: '2026-10-08',
191
+ rate_date: '2026-10-12',
192
192
  rates: [
193
193
  { "base": "USD", "quote": "AOA", "type": "reference", "value": 913 },
194
194
  { "base": "USD", "quote": "AOA", "type": "sell", "value": 913 },
@@ -232,7 +232,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
232
232
  import { getHistory } from 'bna-exchange-rate';
233
233
 
234
234
  const series = await getHistory(
235
- { source: 'USD', target: 'AOA', from: '2026-01-01', to: '2026-10-08' },
235
+ { source: 'USD', target: 'AOA', from: '2026-01-01', to: '2026-10-12' },
236
236
  { apiKey: 'art_live_...' }
237
237
  );
238
238
  ```
@@ -245,11 +245,11 @@ const series = await getHistory(
245
245
  source: 'USD',
246
246
  target: 'AOA',
247
247
  from: '2026-01-01',
248
- to: '2026-10-08',
248
+ to: '2026-10-12',
249
249
  count: 152,
250
250
  rates: [
251
251
  // one entry per publication date
252
- { date: '2026-10-08', rate: 913, rate_type: 'reference', derived: false, method: 'published' },
252
+ { date: '2026-10-12', rate: 913, rate_type: 'reference', derived: false, method: 'published' },
253
253
  // …
254
254
  ],
255
255
  disclaimer: '…'
@@ -300,6 +300,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bna/latest?format=xml&api_ke
300
300
  - 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
301
301
  - 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('bna')` 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
302
302
  - 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 bna ...` command
303
+ - 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`
303
304
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
304
305
 
305
306
  ## ⚖️ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bna-exchange-rate",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "Official National Bank of Angola (Angola) daily exchange rates — 70 currencies vs AOA, history since 1999. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "bna",