bna-exchange-rate 1.3.9 → 1.3.14
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.
- package/README.md +57 -57
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -42,70 +42,70 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
42
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
43
|
|
|
44
44
|
<!-- daily-table:start -->
|
|
45
|
-
Published **2026-10-
|
|
45
|
+
Published **2026-10-16** by National Bank of Angola — 210 rates, first 60 shown. Updated 2026-10-16.
|
|
46
46
|
|
|
47
47
|
| Base | Quote | Type | Rate |
|
|
48
48
|
| --- | --- | --- | ---: |
|
|
49
49
|
| AED | AOA | buy | 248.57065 |
|
|
50
50
|
| AED | AOA | reference | 248.57065 |
|
|
51
51
|
| AED | AOA | sell | 248.57065 |
|
|
52
|
-
| ALL | AOA | buy | 11.
|
|
53
|
-
| ALL | AOA | reference | 11.
|
|
54
|
-
| ALL | AOA | sell | 11.
|
|
55
|
-
| ARS | AOA | buy | 0.
|
|
56
|
-
| ARS | AOA | reference | 0.
|
|
57
|
-
| ARS | AOA | sell | 0.
|
|
58
|
-
| AUD | AOA | buy |
|
|
59
|
-
| AUD | AOA | reference |
|
|
60
|
-
| AUD | AOA | sell |
|
|
61
|
-
| BGN | AOA | buy |
|
|
62
|
-
| BGN | AOA | reference |
|
|
63
|
-
| BGN | AOA | sell |
|
|
52
|
+
| ALL | AOA | buy | 11.31351 |
|
|
53
|
+
| ALL | AOA | reference | 11.31351 |
|
|
54
|
+
| ALL | AOA | sell | 11.31351 |
|
|
55
|
+
| ARS | AOA | buy | 0.60332 |
|
|
56
|
+
| ARS | AOA | reference | 0.60332 |
|
|
57
|
+
| ARS | AOA | sell | 0.60332 |
|
|
58
|
+
| AUD | AOA | buy | 635.52833 |
|
|
59
|
+
| AUD | AOA | reference | 635.52833 |
|
|
60
|
+
| AUD | AOA | sell | 635.52833 |
|
|
61
|
+
| BGN | AOA | buy | 525.25601 |
|
|
62
|
+
| BGN | AOA | reference | 525.25601 |
|
|
63
|
+
| BGN | AOA | sell | 525.25601 |
|
|
64
64
|
| BMD | AOA | buy | 913 |
|
|
65
65
|
| BMD | AOA | reference | 913 |
|
|
66
66
|
| BMD | AOA | sell | 913 |
|
|
67
|
-
| BOB | AOA | buy |
|
|
68
|
-
| BOB | AOA | reference |
|
|
69
|
-
| BOB | AOA | sell |
|
|
70
|
-
| BRL | AOA | buy |
|
|
71
|
-
| BRL | AOA | reference |
|
|
72
|
-
| BRL | AOA | sell |
|
|
67
|
+
| BOB | AOA | buy | 78.16781 |
|
|
68
|
+
| BOB | AOA | reference | 78.16781 |
|
|
69
|
+
| BOB | AOA | sell | 78.16781 |
|
|
70
|
+
| BRL | AOA | buy | 180.01853 |
|
|
71
|
+
| BRL | AOA | reference | 180.01853 |
|
|
72
|
+
| BRL | AOA | sell | 180.01853 |
|
|
73
73
|
| BSD | AOA | buy | 913 |
|
|
74
74
|
| BSD | AOA | reference | 913 |
|
|
75
75
|
| BSD | AOA | sell | 913 |
|
|
76
|
-
| BWP | AOA | buy | 67.
|
|
77
|
-
| BWP | AOA | reference | 67.
|
|
78
|
-
| BWP | AOA | sell | 67.
|
|
79
|
-
| CAD | AOA | buy |
|
|
80
|
-
| CAD | AOA | reference |
|
|
81
|
-
| CAD | AOA | sell |
|
|
82
|
-
| CDF | AOA | buy | 0.
|
|
83
|
-
| CDF | AOA | reference | 0.
|
|
84
|
-
| CDF | AOA | sell | 0.
|
|
85
|
-
| CHF | AOA | buy |
|
|
86
|
-
| CHF | AOA | reference |
|
|
87
|
-
| CHF | AOA | sell |
|
|
88
|
-
| CNY | AOA | buy | 136.
|
|
89
|
-
| CNY | AOA | reference | 136.
|
|
90
|
-
| CNY | AOA | sell | 136.
|
|
91
|
-
| CRC | AOA | buy | 2.
|
|
92
|
-
| CRC | AOA | reference | 2.
|
|
93
|
-
| CRC | AOA | sell | 2.
|
|
76
|
+
| BWP | AOA | buy | 67.01409 |
|
|
77
|
+
| BWP | AOA | reference | 67.01409 |
|
|
78
|
+
| BWP | AOA | sell | 67.01409 |
|
|
79
|
+
| CAD | AOA | buy | 644.81955 |
|
|
80
|
+
| CAD | AOA | reference | 644.81955 |
|
|
81
|
+
| CAD | AOA | sell | 644.81955 |
|
|
82
|
+
| CDF | AOA | buy | 0.39565 |
|
|
83
|
+
| CDF | AOA | reference | 0.39565 |
|
|
84
|
+
| CDF | AOA | sell | 0.39565 |
|
|
85
|
+
| CHF | AOA | buy | 1108.54784 |
|
|
86
|
+
| CHF | AOA | reference | 1108.54784 |
|
|
87
|
+
| CHF | AOA | sell | 1108.54784 |
|
|
88
|
+
| CNY | AOA | buy | 136.72372 |
|
|
89
|
+
| CNY | AOA | reference | 136.72372 |
|
|
90
|
+
| CNY | AOA | sell | 136.72372 |
|
|
91
|
+
| CRC | AOA | buy | 2.032 |
|
|
92
|
+
| CRC | AOA | reference | 2.032 |
|
|
93
|
+
| CRC | AOA | sell | 2.032 |
|
|
94
94
|
| CUP | AOA | buy | 38.04167 |
|
|
95
95
|
| CUP | AOA | reference | 38.04167 |
|
|
96
96
|
| CUP | AOA | sell | 38.04167 |
|
|
97
|
-
| CVE | AOA | buy | 9.
|
|
98
|
-
| CVE | AOA | reference | 9.
|
|
99
|
-
| CVE | AOA | sell | 9.
|
|
100
|
-
| CZK | AOA | buy |
|
|
101
|
-
| CZK | AOA | reference |
|
|
102
|
-
| CZK | AOA | sell |
|
|
103
|
-
| DKK | AOA | buy |
|
|
104
|
-
| DKK | AOA | reference |
|
|
105
|
-
| DKK | AOA | sell |
|
|
106
|
-
| EEK | AOA | buy | 65.
|
|
107
|
-
| EEK | AOA | reference | 65.
|
|
108
|
-
| EEK | AOA | sell | 65.
|
|
97
|
+
| CVE | AOA | buy | 9.33739 |
|
|
98
|
+
| CVE | AOA | reference | 9.33739 |
|
|
99
|
+
| CVE | AOA | sell | 9.33739 |
|
|
100
|
+
| CZK | AOA | buy | 42.24055 |
|
|
101
|
+
| CZK | AOA | reference | 42.24055 |
|
|
102
|
+
| CZK | AOA | sell | 42.24055 |
|
|
103
|
+
| DKK | AOA | buy | 137.4379 |
|
|
104
|
+
| DKK | AOA | reference | 137.4379 |
|
|
105
|
+
| DKK | AOA | sell | 137.4379 |
|
|
106
|
+
| EEK | AOA | buy | 65.65559 |
|
|
107
|
+
| EEK | AOA | reference | 65.65559 |
|
|
108
|
+
| EEK | AOA | sell | 65.65559 |
|
|
109
109
|
|
|
110
110
|
[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.
|
|
111
111
|
<!-- daily-table:end -->
|
|
@@ -162,7 +162,7 @@ const pair = await getRate('USD', 'AOA', { apiKey: 'art_live_...' });
|
|
|
162
162
|
{
|
|
163
163
|
bank: 'bna',
|
|
164
164
|
name: 'National Bank of Angola',
|
|
165
|
-
rate_date: '2026-10-
|
|
165
|
+
rate_date: '2026-10-13', // National Bank of Angola's own publication date
|
|
166
166
|
source: 'USD',
|
|
167
167
|
target: 'AOA',
|
|
168
168
|
rate: 913,
|
|
@@ -190,7 +190,7 @@ console.log(table.rate_date, table.rates.length);
|
|
|
190
190
|
{
|
|
191
191
|
bank: 'bna',
|
|
192
192
|
name: 'National Bank of Angola',
|
|
193
|
-
rate_date: '2026-10-
|
|
193
|
+
rate_date: '2026-10-13',
|
|
194
194
|
rates: [
|
|
195
195
|
{ "base": "USD", "quote": "AOA", "type": "reference", "value": 913 },
|
|
196
196
|
{ "base": "USD", "quote": "AOA", "type": "sell", "value": 913 },
|
|
@@ -234,7 +234,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
234
234
|
import { getHistory } from 'bna-exchange-rate';
|
|
235
235
|
|
|
236
236
|
const series = await getHistory(
|
|
237
|
-
{ source: 'USD', target: 'AOA', from: '2026-01-01', to: '2026-10-
|
|
237
|
+
{ source: 'USD', target: 'AOA', from: '2026-01-01', to: '2026-10-13' },
|
|
238
238
|
{ apiKey: 'art_live_...' }
|
|
239
239
|
);
|
|
240
240
|
```
|
|
@@ -247,11 +247,11 @@ const series = await getHistory(
|
|
|
247
247
|
source: 'USD',
|
|
248
248
|
target: 'AOA',
|
|
249
249
|
from: '2026-01-01',
|
|
250
|
-
to: '2026-10-
|
|
250
|
+
to: '2026-10-13',
|
|
251
251
|
count: 152,
|
|
252
252
|
rates: [
|
|
253
253
|
// one entry per publication date
|
|
254
|
-
{ date: '2026-10-
|
|
254
|
+
{ date: '2026-10-13', rate: 913, rate_type: 'reference', derived: false, method: 'published' },
|
|
255
255
|
// …
|
|
256
256
|
],
|
|
257
257
|
disclaimer: '…'
|
|
@@ -302,7 +302,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bna/latest?format=xml&api_ke
|
|
|
302
302
|
- 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
|
|
303
303
|
- 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
|
|
304
304
|
- 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
|
|
305
|
-
-
|
|
305
|
+
- Evaluating? 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 that covers the free-plan methods (latest table, pairs); dated tables and history need a [paid plan](https://allratestoday.com/pricing/). The MCP servers expose it as `request_trial_key`
|
|
306
306
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
307
307
|
|
|
308
308
|
## ⚖️ Published vs derived rates
|
|
@@ -371,9 +371,9 @@ getRate('USD', 'AOA', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
371
371
|
|
|
372
372
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
373
373
|
|
|
374
|
-
- Hugging Face: [
|
|
374
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/bna.csv`)
|
|
375
375
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
376
|
-
-
|
|
376
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/bna/latest.json`
|
|
377
377
|
|
|
378
378
|
## 🔗 Links
|
|
379
379
|
|
package/package.json
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bna-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
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",
|
|
7
|
+
"national-bank-of-angola",
|
|
7
8
|
"national",
|
|
8
9
|
"bank",
|
|
9
|
-
"of",
|
|
10
10
|
"angola",
|
|
11
11
|
"exchange-rate",
|
|
12
12
|
"exchange-rates",
|
|
13
|
+
"exchangerate",
|
|
14
|
+
"exchange rate",
|
|
15
|
+
"aoa-exchange-rate",
|
|
13
16
|
"currency",
|
|
14
17
|
"forex",
|
|
15
18
|
"fx",
|
|
16
19
|
"aoa",
|
|
20
|
+
"currency-api",
|
|
21
|
+
"currency-exchange-rates",
|
|
22
|
+
"forex-api",
|
|
23
|
+
"currency-conversion",
|
|
24
|
+
"currency-exchange",
|
|
25
|
+
"currency-rates",
|
|
17
26
|
"central-bank",
|
|
18
27
|
"official-rates",
|
|
19
|
-
"angola",
|
|
20
28
|
"api",
|
|
21
29
|
"typescript"
|
|
22
30
|
],
|