bcu-exchange-rate 1.3.29 โ 1.3.30
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 +84 -84
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/bcu-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/bcu-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
-
[](https://allratestoday.com/central-bank-rates-api/bcu/)
|
|
8
8
|
[](https://allratestoday.com/central-bank-rates-api/bcu/)
|
|
9
9
|
|
|
10
10
|
**Official Central Bank of Uruguay (Uruguay) 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 Central Bank of Uruguay itself prints, every business day.**
|
|
11
11
|
|
|
12
12
|
## ๐ Why this client?
|
|
13
13
|
|
|
14
|
-
- ๐๏ธ **Official
|
|
14
|
+
- ๐๏ธ **Official rates** โ Central Bank of Uruguay's own table, with the publisher's own `rate_date` on every response
|
|
15
15
|
- ๐
**History back to 2000** โ point-in-time tables and daily series for any past date
|
|
16
|
-
- ๐ **
|
|
16
|
+
- ๐ **Official vs derived, always flagged** โ computed inverse/cross pairs carry `derived: true`, never mixed with official prints
|
|
17
17
|
- โก **Zero dependencies** โ pure ESM + CJS over global `fetch`; Node 18+, Bun, Deno, and edge runtimes
|
|
18
18
|
- ๐ท **Type-safe** โ full TypeScript definitions shipped with the package
|
|
19
19
|
- ๐งพ **Compliance-grade metadata** โ `rate_type`, publication date, and source disclaimer on every response
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
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.
|
|
26
26
|
|
|
27
|
-
## ๐ Latest
|
|
27
|
+
## ๐ Latest official table
|
|
28
28
|
|
|
29
29
|
[](https://allratestoday.com/central-bank-rates-api/bcu/)
|
|
30
30
|
|
|
@@ -32,70 +32,70 @@ The image is rendered live from the keyless endpoint, so it follows the central
|
|
|
32
32
|
|
|
33
33
|
<!-- daily-table:start -->
|
|
34
34
|
<details>
|
|
35
|
-
<summary>Table as text: published 2026-11-
|
|
35
|
+
<summary>Table as text: published 2026-11-10 by Central Bank of Uruguay โ 60 rates. Updated 2026-11-11.</summary>
|
|
36
36
|
|
|
37
37
|
| Base | Quote | Type | Rate |
|
|
38
38
|
| --- | --- | --- | ---: |
|
|
39
|
-
| ARS | UYU | buy | 0.
|
|
40
|
-
| ARS | UYU | sell | 0.
|
|
41
|
-
| AUD | UYU | buy | 27.
|
|
42
|
-
| AUD | UYU | sell | 27.
|
|
43
|
-
| BRL | UYU | buy | 7.
|
|
44
|
-
| BRL | UYU | sell | 7.
|
|
45
|
-
| CAD | UYU | buy | 28.
|
|
46
|
-
| CAD | UYU | sell | 28.
|
|
47
|
-
| CHF | UYU | buy | 49.
|
|
48
|
-
| CHF | UYU | sell | 49.
|
|
49
|
-
| CLP | UYU | buy | 0.
|
|
50
|
-
| CLP | UYU | sell | 0.
|
|
51
|
-
| CNY | UYU | buy | 6.
|
|
52
|
-
| CNY | UYU | sell | 6.
|
|
53
|
-
| COP | UYU | buy | 0.
|
|
54
|
-
| COP | UYU | sell | 0.
|
|
55
|
-
| DKK | UYU | buy | 6.
|
|
56
|
-
| DKK | UYU | sell | 6.
|
|
57
|
-
| EUR | UYU | buy | 45.
|
|
58
|
-
| EUR | UYU | sell | 45.
|
|
59
|
-
| GBP | UYU | buy | 54.
|
|
60
|
-
| GBP | UYU | sell | 54.
|
|
61
|
-
| HKD | UYU | buy | 5.
|
|
62
|
-
| HKD | UYU | sell | 5.
|
|
63
|
-
| HUF | UYU | buy | 0.
|
|
64
|
-
| HUF | UYU | sell | 0.
|
|
65
|
-
| INR | UYU | buy | 0.
|
|
66
|
-
| INR | UYU | sell | 0.
|
|
67
|
-
| ISK | UYU | buy | 0.
|
|
68
|
-
| ISK | UYU | sell | 0.
|
|
69
|
-
| JPY | UYU | buy | 0.
|
|
70
|
-
| JPY | UYU | sell | 0.
|
|
71
|
-
| KRW | UYU | buy | 0.
|
|
72
|
-
| KRW | UYU | sell | 0.
|
|
73
|
-
| MXN | UYU | buy | 2.
|
|
74
|
-
| MXN | UYU | sell | 2.
|
|
75
|
-
| MYR | UYU | buy | 9.
|
|
76
|
-
| MYR | UYU | sell | 9.
|
|
77
|
-
| NOK | UYU | buy | 4.
|
|
78
|
-
| NOK | UYU | sell | 4.
|
|
79
|
-
| NZD | UYU | buy | 22.
|
|
80
|
-
| NZD | UYU | sell | 22.
|
|
81
|
-
| PEN | UYU | buy | 11.
|
|
82
|
-
| PEN | UYU | sell | 11.
|
|
83
|
-
| PYG | UYU | buy | 0.
|
|
84
|
-
| PYG | UYU | sell | 0.
|
|
85
|
-
| RUB | UYU | buy | 0.
|
|
86
|
-
| RUB | UYU | sell | 0.
|
|
87
|
-
| SEK | UYU | buy | 4.
|
|
88
|
-
| SEK | UYU | sell | 4.
|
|
89
|
-
| TRY | UYU | buy | 0.
|
|
90
|
-
| TRY | UYU | sell | 0.
|
|
91
|
-
| USD | UYU | buy | 40.
|
|
92
|
-
| USD | UYU | sell | 40.
|
|
93
|
-
| VES | UYU | buy | 0.
|
|
94
|
-
| VES | UYU | sell | 0.
|
|
95
|
-
| XDR | UYU | buy | 54.
|
|
96
|
-
| XDR | UYU | sell | 54.
|
|
97
|
-
| ZAR | UYU | buy | 2.
|
|
98
|
-
| ZAR | UYU | sell | 2.
|
|
39
|
+
| ARS | UYU | buy | 0.026218 |
|
|
40
|
+
| ARS | UYU | sell | 0.026218 |
|
|
41
|
+
| AUD | UYU | buy | 27.796034 |
|
|
42
|
+
| AUD | UYU | sell | 27.796034 |
|
|
43
|
+
| BRL | UYU | buy | 7.251074 |
|
|
44
|
+
| BRL | UYU | sell | 7.251074 |
|
|
45
|
+
| CAD | UYU | buy | 28.564681 |
|
|
46
|
+
| CAD | UYU | sell | 28.564681 |
|
|
47
|
+
| CHF | UYU | buy | 49.090138 |
|
|
48
|
+
| CHF | UYU | sell | 49.090138 |
|
|
49
|
+
| CLP | UYU | buy | 0.041178 |
|
|
50
|
+
| CLP | UYU | sell | 0.041178 |
|
|
51
|
+
| CNY | UYU | buy | 6.067263 |
|
|
52
|
+
| CNY | UYU | sell | 6.067263 |
|
|
53
|
+
| COP | UYU | buy | 0.012283 |
|
|
54
|
+
| COP | UYU | sell | 0.012283 |
|
|
55
|
+
| DKK | UYU | buy | 6.051044 |
|
|
56
|
+
| DKK | UYU | sell | 6.051044 |
|
|
57
|
+
| EUR | UYU | buy | 45.23136 |
|
|
58
|
+
| EUR | UYU | sell | 45.23136 |
|
|
59
|
+
| GBP | UYU | buy | 54.06045 |
|
|
60
|
+
| GBP | UYU | sell | 54.06045 |
|
|
61
|
+
| HKD | UYU | buy | 5.164748 |
|
|
62
|
+
| HKD | UYU | sell | 5.164748 |
|
|
63
|
+
| HUF | UYU | buy | 0.124124 |
|
|
64
|
+
| HUF | UYU | sell | 0.124124 |
|
|
65
|
+
| INR | UYU | buy | 0.431363 |
|
|
66
|
+
| INR | UYU | sell | 0.431363 |
|
|
67
|
+
| ISK | UYU | buy | 0.330767 |
|
|
68
|
+
| ISK | UYU | sell | 0.330767 |
|
|
69
|
+
| JPY | UYU | buy | 0.255141 |
|
|
70
|
+
| JPY | UYU | sell | 0.255141 |
|
|
71
|
+
| KRW | UYU | buy | 0.030171 |
|
|
72
|
+
| KRW | UYU | sell | 0.030171 |
|
|
73
|
+
| MXN | UYU | buy | 2.17358 |
|
|
74
|
+
| MXN | UYU | sell | 2.17358 |
|
|
75
|
+
| MYR | UYU | buy | 9.99482 |
|
|
76
|
+
| MYR | UYU | sell | 9.99482 |
|
|
77
|
+
| NOK | UYU | buy | 4.260718 |
|
|
78
|
+
| NOK | UYU | sell | 4.260718 |
|
|
79
|
+
| NZD | UYU | buy | 22.678484 |
|
|
80
|
+
| NZD | UYU | sell | 22.678484 |
|
|
81
|
+
| PEN | UYU | buy | 11.882405 |
|
|
82
|
+
| PEN | UYU | sell | 11.882405 |
|
|
83
|
+
| PYG | UYU | buy | 0.006546 |
|
|
84
|
+
| PYG | UYU | sell | 0.006546 |
|
|
85
|
+
| RUB | UYU | buy | 0.485823 |
|
|
86
|
+
| RUB | UYU | sell | 0.485823 |
|
|
87
|
+
| SEK | UYU | buy | 4.102484 |
|
|
88
|
+
| SEK | UYU | sell | 4.102484 |
|
|
89
|
+
| TRY | UYU | buy | 0.806677 |
|
|
90
|
+
| TRY | UYU | sell | 0.806677 |
|
|
91
|
+
| USD | UYU | buy | 40.519 |
|
|
92
|
+
| USD | UYU | sell | 40.519 |
|
|
93
|
+
| VES | UYU | buy | 0.045181 |
|
|
94
|
+
| VES | UYU | sell | 0.045181 |
|
|
95
|
+
| XDR | UYU | buy | 54.939712 |
|
|
96
|
+
| XDR | UYU | sell | 54.939712 |
|
|
97
|
+
| ZAR | UYU | buy | 2.450128 |
|
|
98
|
+
| ZAR | UYU | sell | 2.450128 |
|
|
99
99
|
|
|
100
100
|
</details>
|
|
101
101
|
|
|
@@ -129,8 +129,8 @@ console.log(pair.rate, pair.rate_date); // the official Central Bank of Uruguay
|
|
|
129
129
|
|
|
130
130
|
## ๐ API reference
|
|
131
131
|
|
|
132
|
-
- [Latest pair rate](#latest-pair-rate) โ one pair from the latest
|
|
133
|
-
- [Full
|
|
132
|
+
- [Latest pair rate](#latest-pair-rate) โ one pair from the latest official table
|
|
133
|
+
- [Full official table](#full-official-table) โ everything the central bank printed, in one call
|
|
134
134
|
- [Table for a date](#table-for-a-date) โ the official table for an invoice or filing date
|
|
135
135
|
- [Daily time series](#daily-time-series) โ one pair across a date range
|
|
136
136
|
|
|
@@ -138,7 +138,7 @@ console.log(pair.rate, pair.rate_date); // the official Central Bank of Uruguay
|
|
|
138
138
|
|
|
139
139
|
### Latest pair rate
|
|
140
140
|
|
|
141
|
-
Free plan and up. Pairs the central bank does not print directly are resolved from its table and flagged (see *
|
|
141
|
+
Free plan and up. Pairs the central bank does not print directly are resolved from its table and flagged (see *Official vs derived rates* below).
|
|
142
142
|
|
|
143
143
|
```js
|
|
144
144
|
const pair = await getRate('USD', 'UYU', { apiKey: 'art_live_...' });
|
|
@@ -150,10 +150,10 @@ const pair = await getRate('USD', 'UYU', { apiKey: 'art_live_...' });
|
|
|
150
150
|
{
|
|
151
151
|
bank: 'bcu',
|
|
152
152
|
name: 'Central Bank of Uruguay',
|
|
153
|
-
rate_date: '2026-10
|
|
153
|
+
rate_date: '2026-11-10', // Central Bank of Uruguay's own publication date
|
|
154
154
|
source: 'USD',
|
|
155
155
|
target: 'UYU',
|
|
156
|
-
rate: 40.
|
|
156
|
+
rate: 40.519,
|
|
157
157
|
rate_type: 'sell',
|
|
158
158
|
derived: false,
|
|
159
159
|
method: 'published',
|
|
@@ -161,7 +161,7 @@ const pair = await getRate('USD', 'UYU', { apiKey: 'art_live_...' });
|
|
|
161
161
|
}
|
|
162
162
|
```
|
|
163
163
|
|
|
164
|
-
### Full
|
|
164
|
+
### Full official table
|
|
165
165
|
|
|
166
166
|
Free plan and up. The complete table for the latest publication date.
|
|
167
167
|
|
|
@@ -178,11 +178,11 @@ console.log(table.rate_date, table.rates.length);
|
|
|
178
178
|
{
|
|
179
179
|
bank: 'bcu',
|
|
180
180
|
name: 'Central Bank of Uruguay',
|
|
181
|
-
rate_date: '2026-10
|
|
181
|
+
rate_date: '2026-11-10',
|
|
182
182
|
rates: [
|
|
183
|
-
{ "base": "USD", "quote": "UYU", "type": "sell", "value": 40.
|
|
184
|
-
{ "base": "USD", "quote": "UYU", "type": "buy", "value": 40.
|
|
185
|
-
// โฆ the rest of the
|
|
183
|
+
{ "base": "USD", "quote": "UYU", "type": "sell", "value": 40.519 },
|
|
184
|
+
{ "base": "USD", "quote": "UYU", "type": "buy", "value": 40.519 },
|
|
185
|
+
// โฆ the rest of the official table (30 currencies vs UYU)
|
|
186
186
|
],
|
|
187
187
|
disclaimer: 'โฆ'
|
|
188
188
|
}
|
|
@@ -221,7 +221,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
221
221
|
import { getHistory } from 'bcu-exchange-rate';
|
|
222
222
|
|
|
223
223
|
const series = await getHistory(
|
|
224
|
-
{ source: 'USD', target: 'UYU', from: '2026-01-01', to: '2026-10
|
|
224
|
+
{ source: 'USD', target: 'UYU', from: '2026-01-01', to: '2026-11-10' },
|
|
225
225
|
{ apiKey: 'art_live_...' }
|
|
226
226
|
);
|
|
227
227
|
```
|
|
@@ -234,11 +234,11 @@ const series = await getHistory(
|
|
|
234
234
|
source: 'USD',
|
|
235
235
|
target: 'UYU',
|
|
236
236
|
from: '2026-01-01',
|
|
237
|
-
to: '2026-10
|
|
237
|
+
to: '2026-11-10',
|
|
238
238
|
count: 152,
|
|
239
239
|
rates: [
|
|
240
240
|
// one entry per publication date
|
|
241
|
-
{ date: '2026-10
|
|
241
|
+
{ date: '2026-11-10', rate: 40.519, rate_type: 'sell', derived: false, method: 'published' },
|
|
242
242
|
// โฆ
|
|
243
243
|
],
|
|
244
244
|
disclaimer: 'โฆ'
|
|
@@ -292,7 +292,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bcu/latest?format=xml&api_ke
|
|
|
292
292
|
- 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`
|
|
293
293
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
294
294
|
|
|
295
|
-
## โ๏ธ
|
|
295
|
+
## โ๏ธ Official vs derived rates
|
|
296
296
|
|
|
297
297
|
If Central Bank of Uruguay does not print a pair directly, the API resolves it from the central bank's own table and says so โ official and computed values are never confused:
|
|
298
298
|
|
|
@@ -342,21 +342,21 @@ getRate('USD', 'UYU', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
342
342
|
|
|
343
343
|
## ๐ก Quota tips
|
|
344
344
|
|
|
345
|
-
- Rates change once per business day โ cache the
|
|
345
|
+
- Rates change once per business day โ cache the official table locally and a small monthly quota goes a long way.
|
|
346
346
|
- Every request counts toward your AllRatesToday quota, shared across all AllRatesToday endpoints on your key.
|
|
347
347
|
|
|
348
348
|
## ๐ Methods reference
|
|
349
349
|
|
|
350
350
|
| Method | Plan | Description |
|
|
351
351
|
| ------ | ---- | ----------- |
|
|
352
|
-
| `getRate(source, target, { apiKey })` | Free | Latest rate for one pair, resolved from the
|
|
353
|
-
| `getLatestRates({ apiKey })` | Free | The central bank's full latest
|
|
352
|
+
| `getRate(source, target, { apiKey })` | Free | Latest rate for one pair, resolved from the official table |
|
|
353
|
+
| `getLatestRates({ apiKey })` | Free | The central bank's full latest official table |
|
|
354
354
|
| `getRatesForDate(date, { apiKey, source?, target? })` | Paid | The official table (or one pair) for a YYYY-MM-DD date |
|
|
355
355
|
| `getHistory({ symbol \| source+target, from?, to? }, { apiKey })` | Paid | Daily series since 2000 |
|
|
356
356
|
|
|
357
357
|
## ๐ฅ Bulk data (no key)
|
|
358
358
|
|
|
359
|
-
Need the whole archive rather than an API call? The same
|
|
359
|
+
Need the whole archive rather than an API call? The same official tables are mirrored daily as open data:
|
|
360
360
|
|
|
361
361
|
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ one CSV per institution (`rates/bcu.csv`)
|
|
362
362
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
@@ -366,7 +366,7 @@ Need the whole archive rather than an API call? The same published tables are mi
|
|
|
366
366
|
|
|
367
367
|
- **Website:** [allratestoday.com](https://allratestoday.com)
|
|
368
368
|
- [Central Bank of Uruguay rates page](https://allratestoday.com/central-bank-rates-api/bcu/) โ live table, publication cadence, FAQ
|
|
369
|
-
- [All central bank sources](https://allratestoday.com/central-bank-rates-api/)
|
|
369
|
+
- [All central bank sources](https://allratestoday.com/central-bank-rates-api/) ยท [Full list of 130+ central banks and tax authorities](https://allratestoday.com/central-bank-rates-api/institutions/) โ one API, the same response shape for every source
|
|
370
370
|
- [Download central bank rates](https://allratestoday.com/download-central-bank-rates/) โ every bank's latest table and history as Excel, CSV or JSON
|
|
371
371
|
- [Package docs on the site](https://allratestoday.com/docs/sdk/bcu-exchange-rate/) ยท [ERP integration guides](https://allratestoday.com/docs/integrations/)
|
|
372
372
|
- [API documentation](https://allratestoday.com/docs/#central-bank) ยท [Interactive reference](https://allratestoday.com/api-reference/) ยท [Methodology](https://allratestoday.com/official-rates-methodology/)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bcu-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.30",
|
|
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",
|