bcu-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.
- package/README.md +70 -69
- 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 Central Bank of Uruguay 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-
|
|
43
|
+
Published **2026-10-09** by Central Bank of Uruguay — 60 rates. Updated 2026-10-12.
|
|
44
44
|
|
|
45
45
|
| Base | Quote | Type | Rate |
|
|
46
46
|
| --- | --- | --- | ---: |
|
|
47
|
-
| ARS | UYU | buy | 0.
|
|
48
|
-
| ARS | UYU | sell | 0.
|
|
49
|
-
| AUD | UYU | buy |
|
|
50
|
-
| AUD | UYU | sell |
|
|
51
|
-
| BRL | UYU | buy | 8.
|
|
52
|
-
| BRL | UYU | sell | 8.
|
|
53
|
-
| CAD | UYU | buy | 28.
|
|
54
|
-
| CAD | UYU | sell | 28.
|
|
55
|
-
| CHF | UYU | buy | 48.
|
|
56
|
-
| CHF | UYU | sell | 48.
|
|
57
|
-
| CLP | UYU | buy | 0.
|
|
58
|
-
| CLP | UYU | sell | 0.
|
|
59
|
-
| CNY | UYU | buy |
|
|
60
|
-
| CNY | UYU | sell |
|
|
61
|
-
| COP | UYU | buy | 0.
|
|
62
|
-
| COP | UYU | sell | 0.
|
|
63
|
-
| DKK | UYU | buy | 6.
|
|
64
|
-
| DKK | UYU | sell | 6.
|
|
65
|
-
| EUR | UYU | buy | 45.
|
|
66
|
-
| EUR | UYU | sell | 45.
|
|
67
|
-
| GBP | UYU | buy | 53.
|
|
68
|
-
| GBP | UYU | sell | 53.
|
|
69
|
-
| HKD | UYU | buy | 5.
|
|
70
|
-
| HKD | UYU | sell | 5.
|
|
71
|
-
| HUF | UYU | buy | 0.
|
|
72
|
-
| HUF | UYU | sell | 0.
|
|
73
|
-
| INR | UYU | buy | 0.
|
|
74
|
-
| INR | UYU | sell | 0.
|
|
75
|
-
| ISK | UYU | buy | 0.
|
|
76
|
-
| ISK | UYU | sell | 0.
|
|
77
|
-
| JPY | UYU | buy | 0.
|
|
78
|
-
| JPY | UYU | sell | 0.
|
|
79
|
-
| KRW | UYU | buy | 0.
|
|
80
|
-
| KRW | UYU | sell | 0.
|
|
81
|
-
| MXN | UYU | buy | 2.
|
|
82
|
-
| MXN | UYU | sell | 2.
|
|
83
|
-
| MYR | UYU | buy | 9.
|
|
84
|
-
| MYR | UYU | sell | 9.
|
|
85
|
-
| NOK | UYU | buy | 4.
|
|
86
|
-
| NOK | UYU | sell | 4.
|
|
87
|
-
| NZD | UYU | buy | 22.
|
|
88
|
-
| NZD | UYU | sell | 22.
|
|
89
|
-
| PEN | UYU | buy | 11.
|
|
90
|
-
| PEN | UYU | sell | 11.
|
|
91
|
-
| PYG | UYU | buy | 0.
|
|
92
|
-
| PYG | UYU | sell | 0.
|
|
93
|
-
| RUB | UYU | buy | 0.
|
|
94
|
-
| RUB | UYU | sell | 0.
|
|
95
|
-
| SEK | UYU | buy | 4.
|
|
96
|
-
| SEK | UYU | sell | 4.
|
|
97
|
-
| TRY | UYU | buy | 0.
|
|
98
|
-
| TRY | UYU | sell | 0.
|
|
99
|
-
| USD | UYU | buy | 40.
|
|
100
|
-
| USD | UYU | sell | 40.
|
|
101
|
-
| VES | UYU | buy | 0.
|
|
102
|
-
| VES | UYU | sell | 0.
|
|
103
|
-
| XDR | UYU | buy | 54.
|
|
104
|
-
| XDR | UYU | sell | 54.
|
|
105
|
-
| ZAR | UYU | buy | 2.
|
|
106
|
-
| ZAR | UYU | sell | 2.
|
|
47
|
+
| ARS | UYU | buy | 0.026506 |
|
|
48
|
+
| ARS | UYU | sell | 0.026506 |
|
|
49
|
+
| AUD | UYU | buy | 28.064506 |
|
|
50
|
+
| AUD | UYU | sell | 28.064506 |
|
|
51
|
+
| BRL | UYU | buy | 8.062924 |
|
|
52
|
+
| BRL | UYU | sell | 8.062924 |
|
|
53
|
+
| CAD | UYU | buy | 28.169646 |
|
|
54
|
+
| CAD | UYU | sell | 28.169646 |
|
|
55
|
+
| CHF | UYU | buy | 48.426127 |
|
|
56
|
+
| CHF | UYU | sell | 48.426127 |
|
|
57
|
+
| CLP | UYU | buy | 0.041116 |
|
|
58
|
+
| CLP | UYU | sell | 0.041116 |
|
|
59
|
+
| CNY | UYU | buy | 6.004333 |
|
|
60
|
+
| CNY | UYU | sell | 6.004333 |
|
|
61
|
+
| COP | UYU | buy | 0.012604 |
|
|
62
|
+
| COP | UYU | sell | 0.012604 |
|
|
63
|
+
| DKK | UYU | buy | 6.022511 |
|
|
64
|
+
| DKK | UYU | sell | 6.022511 |
|
|
65
|
+
| EUR | UYU | buy | 45.014117 |
|
|
66
|
+
| EUR | UYU | sell | 45.014117 |
|
|
67
|
+
| GBP | UYU | buy | 53.203616 |
|
|
68
|
+
| GBP | UYU | sell | 53.203616 |
|
|
69
|
+
| HKD | UYU | buy | 5.120285 |
|
|
70
|
+
| HKD | UYU | sell | 5.120285 |
|
|
71
|
+
| HUF | UYU | buy | 0.123411 |
|
|
72
|
+
| HUF | UYU | sell | 0.123411 |
|
|
73
|
+
| INR | UYU | buy | 0.415424 |
|
|
74
|
+
| INR | UYU | sell | 0.415424 |
|
|
75
|
+
| ISK | UYU | buy | 0.329026 |
|
|
76
|
+
| ISK | UYU | sell | 0.329026 |
|
|
77
|
+
| JPY | UYU | buy | 0.253992 |
|
|
78
|
+
| JPY | UYU | sell | 0.253992 |
|
|
79
|
+
| KRW | UYU | buy | 0.029968 |
|
|
80
|
+
| KRW | UYU | sell | 0.029968 |
|
|
81
|
+
| MXN | UYU | buy | 2.17998 |
|
|
82
|
+
| MXN | UYU | sell | 2.17998 |
|
|
83
|
+
| MYR | UYU | buy | 9.842988 |
|
|
84
|
+
| MYR | UYU | sell | 9.842988 |
|
|
85
|
+
| NOK | UYU | buy | 4.203479 |
|
|
86
|
+
| NOK | UYU | sell | 4.203479 |
|
|
87
|
+
| NZD | UYU | buy | 22.559298 |
|
|
88
|
+
| NZD | UYU | sell | 22.559298 |
|
|
89
|
+
| PEN | UYU | buy | 11.671217 |
|
|
90
|
+
| PEN | UYU | sell | 11.671217 |
|
|
91
|
+
| PYG | UYU | buy | 0.007076 |
|
|
92
|
+
| PYG | UYU | sell | 0.007076 |
|
|
93
|
+
| RUB | UYU | buy | 0.470153 |
|
|
94
|
+
| RUB | UYU | sell | 0.470153 |
|
|
95
|
+
| SEK | UYU | buy | 4.022543 |
|
|
96
|
+
| SEK | UYU | sell | 4.022543 |
|
|
97
|
+
| TRY | UYU | buy | 0.814459 |
|
|
98
|
+
| TRY | UYU | sell | 0.814459 |
|
|
99
|
+
| USD | UYU | buy | 40.184 |
|
|
100
|
+
| USD | UYU | sell | 40.184 |
|
|
101
|
+
| VES | UYU | buy | 0.046025 |
|
|
102
|
+
| VES | UYU | sell | 0.046025 |
|
|
103
|
+
| XDR | UYU | buy | 54.3794 |
|
|
104
|
+
| XDR | UYU | sell | 54.3794 |
|
|
105
|
+
| ZAR | UYU | buy | 2.434538 |
|
|
106
|
+
| ZAR | UYU | sell | 2.434538 |
|
|
107
107
|
|
|
108
108
|
Source: [Official rates published by BCU, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bcu/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
109
109
|
<!-- daily-table:end -->
|
|
@@ -160,10 +160,10 @@ const pair = await getRate('USD', 'UYU', { apiKey: 'art_live_...' });
|
|
|
160
160
|
{
|
|
161
161
|
bank: 'bcu',
|
|
162
162
|
name: 'Central Bank of Uruguay',
|
|
163
|
-
rate_date: '2026-10-
|
|
163
|
+
rate_date: '2026-10-09', // Central Bank of Uruguay's own publication date
|
|
164
164
|
source: 'USD',
|
|
165
165
|
target: 'UYU',
|
|
166
|
-
rate: 40.
|
|
166
|
+
rate: 40.184,
|
|
167
167
|
rate_type: 'sell',
|
|
168
168
|
derived: false,
|
|
169
169
|
method: 'published',
|
|
@@ -188,10 +188,10 @@ console.log(table.rate_date, table.rates.length);
|
|
|
188
188
|
{
|
|
189
189
|
bank: 'bcu',
|
|
190
190
|
name: 'Central Bank of Uruguay',
|
|
191
|
-
rate_date: '2026-10-
|
|
191
|
+
rate_date: '2026-10-09',
|
|
192
192
|
rates: [
|
|
193
|
-
{ "base": "USD", "quote": "UYU", "type": "sell", "value": 40.
|
|
194
|
-
{ "base": "USD", "quote": "UYU", "type": "buy", "value": 40.
|
|
193
|
+
{ "base": "USD", "quote": "UYU", "type": "sell", "value": 40.184 },
|
|
194
|
+
{ "base": "USD", "quote": "UYU", "type": "buy", "value": 40.184 },
|
|
195
195
|
// … the rest of the published table (30 currencies vs UYU)
|
|
196
196
|
],
|
|
197
197
|
disclaimer: '…'
|
|
@@ -231,7 +231,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
231
231
|
import { getHistory } from 'bcu-exchange-rate';
|
|
232
232
|
|
|
233
233
|
const series = await getHistory(
|
|
234
|
-
{ source: 'USD', target: 'UYU', from: '2026-01-01', to: '2026-10-
|
|
234
|
+
{ source: 'USD', target: 'UYU', from: '2026-01-01', to: '2026-10-09' },
|
|
235
235
|
{ apiKey: 'art_live_...' }
|
|
236
236
|
);
|
|
237
237
|
```
|
|
@@ -244,11 +244,11 @@ const series = await getHistory(
|
|
|
244
244
|
source: 'USD',
|
|
245
245
|
target: 'UYU',
|
|
246
246
|
from: '2026-01-01',
|
|
247
|
-
to: '2026-10-
|
|
247
|
+
to: '2026-10-09',
|
|
248
248
|
count: 152,
|
|
249
249
|
rates: [
|
|
250
250
|
// one entry per publication date
|
|
251
|
-
{ date: '2026-10-
|
|
251
|
+
{ date: '2026-10-09', rate: 40.184, rate_type: 'sell', derived: false, method: 'published' },
|
|
252
252
|
// …
|
|
253
253
|
],
|
|
254
254
|
disclaimer: '…'
|
|
@@ -298,6 +298,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bcu/latest?format=xml&api_ke
|
|
|
298
298
|
- 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
|
|
299
299
|
- 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('bcu')` 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
|
|
300
300
|
- 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 bcu ...` command
|
|
301
|
+
- 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`
|
|
301
302
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
302
303
|
|
|
303
304
|
## ⚖️ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bcu-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "Official Central Bank of Uruguay (Uruguay) daily exchange rates — 30 currencies vs UYU, history since 2000. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bcu",
|