bdi-exchange-rate 1.3.6 โ 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.
- package/README.md +83 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/bdi-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/bdi-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/bdi/)
|
|
8
|
+
[](https://allratestoday.com/central-bank-rates-api/bdi/)
|
|
7
9
|
|
|
8
10
|
**Official Banca d'Italia (Italy) 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 Banca d'Italia 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 Banca d'Italia 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-12** by Banca d'Italia โ 149 rates, first 60 shown. Updated 2026-10-12.
|
|
44
|
+
|
|
45
|
+
| Base | Quote | Type | Rate |
|
|
46
|
+
| --- | --- | --- | ---: |
|
|
47
|
+
| EUR | AED | reference | 4.1062 |
|
|
48
|
+
| EUR | AFN | reference | 72.6776 |
|
|
49
|
+
| EUR | ALL | reference | 91.56 |
|
|
50
|
+
| EUR | AMD | reference | 405 |
|
|
51
|
+
| EUR | AOA | reference | 1027.604 |
|
|
52
|
+
| EUR | ARS | reference | 1694.3876 |
|
|
53
|
+
| EUR | AUD | reference | 1.6032 |
|
|
54
|
+
| EUR | AWG | reference | 2.0014 |
|
|
55
|
+
| EUR | AZN | reference | 1.9008 |
|
|
56
|
+
| EUR | BAM | reference | 1.95583 |
|
|
57
|
+
| EUR | BBD | reference | 2.2362 |
|
|
58
|
+
| EUR | BDT | reference | 137.8338 |
|
|
59
|
+
| EUR | BHD | reference | 0.42 |
|
|
60
|
+
| EUR | BIF | reference | 3366.219 |
|
|
61
|
+
| EUR | BMD | reference | 1.1181 |
|
|
62
|
+
| EUR | BND | reference | 1.4314 |
|
|
63
|
+
| EUR | BOB | reference | 13.1153 |
|
|
64
|
+
| EUR | BRL | reference | 5.5819 |
|
|
65
|
+
| EUR | BSD | reference | 1.1181 |
|
|
66
|
+
| EUR | BTN | reference | 107.086 |
|
|
67
|
+
| EUR | BWP | reference | 15.4861 |
|
|
68
|
+
| EUR | BZD | reference | 2.2362 |
|
|
69
|
+
| EUR | CAD | reference | 1.5946 |
|
|
70
|
+
| EUR | CDF | reference | 2532.4965 |
|
|
71
|
+
| EUR | CHF | reference | 0.9312 |
|
|
72
|
+
| EUR | CLP | reference | 1093.18 |
|
|
73
|
+
| EUR | CNY | reference | 7.4832 |
|
|
74
|
+
| EUR | COP | reference | 3568.99 |
|
|
75
|
+
| EUR | CRC | reference | 508.2771 |
|
|
76
|
+
| EUR | CUP | reference | 26.8344 |
|
|
77
|
+
| EUR | CVE | reference | 110.265 |
|
|
78
|
+
| EUR | CZK | reference | 24.391 |
|
|
79
|
+
| EUR | DJF | reference | 198.71 |
|
|
80
|
+
| EUR | DKK | reference | 7.4748 |
|
|
81
|
+
| EUR | DOP | reference | 68.7305 |
|
|
82
|
+
| EUR | DZD | reference | 150.4752 |
|
|
83
|
+
| EUR | EGP | reference | 58.71 |
|
|
84
|
+
| EUR | ERN | reference | 17.1964 |
|
|
85
|
+
| EUR | ETB | reference | 181.4793 |
|
|
86
|
+
| EUR | FJD | reference | 2.5319 |
|
|
87
|
+
| EUR | FKP | reference | 0.84478 |
|
|
88
|
+
| EUR | GBP | reference | 0.84478 |
|
|
89
|
+
| EUR | GEL | reference | 2.9005 |
|
|
90
|
+
| EUR | GHS | reference | 13.1631 |
|
|
91
|
+
| EUR | GIP | reference | 0.84478 |
|
|
92
|
+
| EUR | GMD | reference | 80.47 |
|
|
93
|
+
| EUR | GNF | reference | 9839.4431 |
|
|
94
|
+
| EUR | GTQ | reference | 8.5461 |
|
|
95
|
+
| EUR | GYD | reference | 233.9289 |
|
|
96
|
+
| EUR | HKD | reference | 8.7743 |
|
|
97
|
+
| EUR | HNL | reference | 30.0503 |
|
|
98
|
+
| EUR | HTG | reference | 145.9666 |
|
|
99
|
+
| EUR | HUF | reference | 365.13 |
|
|
100
|
+
| EUR | IDR | reference | 20036.18 |
|
|
101
|
+
| EUR | ILS | reference | 3.432 |
|
|
102
|
+
| EUR | INR | reference | 107.086 |
|
|
103
|
+
| EUR | IQD | reference | 1695.04 |
|
|
104
|
+
| EUR | ISK | reference | 136.4 |
|
|
105
|
+
| EUR | JMD | reference | 177.6926 |
|
|
106
|
+
| EUR | JOD | reference | 0.7927 |
|
|
107
|
+
|
|
108
|
+
[Full table on the Banca d'Italia rates page](https://allratestoday.com/central-bank-rates-api/bdi/) ยท Source: [Official rates published by BDI, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bdi/). 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,10 +160,10 @@ const pair = await getRate('USD', 'EUR', { apiKey: 'art_live_...' });
|
|
|
85
160
|
{
|
|
86
161
|
bank: 'bdi',
|
|
87
162
|
name: 'Banca d\'Italia',
|
|
88
|
-
rate_date: '2026-10-
|
|
163
|
+
rate_date: '2026-10-12', // Banca d'Italia's own publication date
|
|
89
164
|
source: 'USD',
|
|
90
165
|
target: 'EUR',
|
|
91
|
-
rate: 0.
|
|
166
|
+
rate: 0.894374,
|
|
92
167
|
rate_type: 'reference',
|
|
93
168
|
derived: true,
|
|
94
169
|
method: 'inverse', // computed from the published EUR/USD print
|
|
@@ -113,9 +188,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
188
|
{
|
|
114
189
|
bank: 'bdi',
|
|
115
190
|
name: 'Banca d\'Italia',
|
|
116
|
-
rate_date: '2026-10-
|
|
191
|
+
rate_date: '2026-10-12',
|
|
117
192
|
rates: [
|
|
118
|
-
{ "base": "EUR", "quote": "USD", "type": "reference", "value": 1.
|
|
193
|
+
{ "base": "EUR", "quote": "USD", "type": "reference", "value": 1.1181 },
|
|
119
194
|
// โฆ the rest of the published table (150 currencies vs EUR)
|
|
120
195
|
],
|
|
121
196
|
disclaimer: 'โฆ'
|
|
@@ -155,7 +230,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
155
230
|
import { getHistory } from 'bdi-exchange-rate';
|
|
156
231
|
|
|
157
232
|
const series = await getHistory(
|
|
158
|
-
{ source: 'USD', target: 'EUR', from: '2026-01-01', to: '2026-10-
|
|
233
|
+
{ source: 'USD', target: 'EUR', from: '2026-01-01', to: '2026-10-12' },
|
|
159
234
|
{ apiKey: 'art_live_...' }
|
|
160
235
|
);
|
|
161
236
|
```
|
|
@@ -168,11 +243,11 @@ const series = await getHistory(
|
|
|
168
243
|
source: 'USD',
|
|
169
244
|
target: 'EUR',
|
|
170
245
|
from: '2026-01-01',
|
|
171
|
-
to: '2026-10-
|
|
246
|
+
to: '2026-10-12',
|
|
172
247
|
count: 152,
|
|
173
248
|
rates: [
|
|
174
249
|
// one entry per publication date
|
|
175
|
-
{ date: '2026-10-
|
|
250
|
+
{ date: '2026-10-12', rate: 0.894374, rate_type: 'reference', derived: true, method: 'inverse' },
|
|
176
251
|
// โฆ
|
|
177
252
|
],
|
|
178
253
|
disclaimer: 'โฆ'
|
|
@@ -222,6 +297,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bdi/latest?format=xml&api_ke
|
|
|
222
297
|
- 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
|
|
223
298
|
- 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('bdi')` 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
|
|
224
299
|
- 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 bdi ...` command
|
|
300
|
+
- 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`
|
|
225
301
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
226
302
|
|
|
227
303
|
## โ๏ธ Published vs derived rates
|
package/package.json
CHANGED