bna-exchange-rate 1.3.5 โ†’ 1.3.7

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 +81 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/bna-exchange-rate.svg)](https://github.com/AllRates-Today/bna-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/bna-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/AOA today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbna%3Fsource%3DUSD%26target%3DAOA&query=%24.rate&label=USD%2FAOA%20published%20by%20National%20Bank%20of%20Angola&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/bna/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbna%3Fsource%3DUSD%26target%3DAOA&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/bna/)
7
9
 
8
10
  **Official National Bank of Angola (Angola) 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 National Bank of Angola itself prints, every business day.**
9
11
 
@@ -33,6 +35,79 @@ 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
+ 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
+
42
+ <!-- daily-table:start -->
43
+ Published **2026-10-08** by National Bank of Angola โ€” 210 rates, first 60 shown. Updated 2026-10-08.
44
+
45
+ | Base | Quote | Type | Rate |
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 |
62
+ | BMD | AOA | buy | 913 |
63
+ | BMD | AOA | reference | 913 |
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 |
71
+ | BSD | AOA | buy | 913 |
72
+ | BSD | AOA | reference | 913 |
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 |
92
+ | CUP | AOA | buy | 38.04167 |
93
+ | CUP | AOA | reference | 38.04167 |
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 |
107
+
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
+ <!-- daily-table:end -->
110
+
36
111
  ## ๐Ÿ”‘ Get your API key
37
112
 
38
113
  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,7 +160,7 @@ const pair = await getRate('USD', 'AOA', { apiKey: 'art_live_...' });
85
160
  {
86
161
  bank: 'bna',
87
162
  name: 'National Bank of Angola',
88
- rate_date: '2026-10-06', // National Bank of Angola's own publication date
163
+ rate_date: '2026-10-08', // National Bank of Angola's own publication date
89
164
  source: 'USD',
90
165
  target: 'AOA',
91
166
  rate: 913,
@@ -113,7 +188,7 @@ console.log(table.rate_date, table.rates.length);
113
188
  {
114
189
  bank: 'bna',
115
190
  name: 'National Bank of Angola',
116
- rate_date: '2026-10-06',
191
+ rate_date: '2026-10-08',
117
192
  rates: [
118
193
  { "base": "USD", "quote": "AOA", "type": "reference", "value": 913 },
119
194
  { "base": "USD", "quote": "AOA", "type": "sell", "value": 913 },
@@ -157,7 +232,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
157
232
  import { getHistory } from 'bna-exchange-rate';
158
233
 
159
234
  const series = await getHistory(
160
- { source: 'USD', target: 'AOA', from: '2026-01-01', to: '2026-10-06' },
235
+ { source: 'USD', target: 'AOA', from: '2026-01-01', to: '2026-10-08' },
161
236
  { apiKey: 'art_live_...' }
162
237
  );
163
238
  ```
@@ -170,11 +245,11 @@ const series = await getHistory(
170
245
  source: 'USD',
171
246
  target: 'AOA',
172
247
  from: '2026-01-01',
173
- to: '2026-10-06',
248
+ to: '2026-10-08',
174
249
  count: 152,
175
250
  rates: [
176
251
  // one entry per publication date
177
- { date: '2026-10-06', rate: 913, rate_type: 'reference', derived: false, method: 'published' },
252
+ { date: '2026-10-08', rate: 913, rate_type: 'reference', derived: false, method: 'published' },
178
253
  // โ€ฆ
179
254
  ],
180
255
  disclaimer: 'โ€ฆ'
@@ -224,6 +299,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bna/latest?format=xml&api_ke
224
299
 
225
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
226
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
+ - 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
227
303
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
228
304
 
229
305
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bna-exchange-rate",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
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",