bcu-exchange-rate 1.3.27 โ 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 +93 -24
- 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,14 +24,82 @@
|
|
|
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
|
|
|
31
31
|
The image is rendered live from the keyless endpoint, so it follows the central bank's publications on npm and on GitHub alike without a new release. The same table as text is folded below 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.
|
|
32
32
|
|
|
33
33
|
<!-- daily-table:start -->
|
|
34
|
-
|
|
34
|
+
<details>
|
|
35
|
+
<summary>Table as text: published 2026-11-10 by Central Bank of Uruguay โ 60 rates. Updated 2026-11-11.</summary>
|
|
36
|
+
|
|
37
|
+
| Base | Quote | Type | Rate |
|
|
38
|
+
| --- | --- | --- | ---: |
|
|
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
|
+
|
|
100
|
+
</details>
|
|
101
|
+
|
|
102
|
+
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.
|
|
35
103
|
<!-- daily-table:end -->
|
|
36
104
|
|
|
37
105
|
## ๐ฆ Installation
|
|
@@ -61,8 +129,8 @@ console.log(pair.rate, pair.rate_date); // the official Central Bank of Uruguay
|
|
|
61
129
|
|
|
62
130
|
## ๐ API reference
|
|
63
131
|
|
|
64
|
-
- [Latest pair rate](#latest-pair-rate) โ one pair from the latest
|
|
65
|
-
- [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
|
|
66
134
|
- [Table for a date](#table-for-a-date) โ the official table for an invoice or filing date
|
|
67
135
|
- [Daily time series](#daily-time-series) โ one pair across a date range
|
|
68
136
|
|
|
@@ -70,7 +138,7 @@ console.log(pair.rate, pair.rate_date); // the official Central Bank of Uruguay
|
|
|
70
138
|
|
|
71
139
|
### Latest pair rate
|
|
72
140
|
|
|
73
|
-
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).
|
|
74
142
|
|
|
75
143
|
```js
|
|
76
144
|
const pair = await getRate('USD', 'UYU', { apiKey: 'art_live_...' });
|
|
@@ -82,10 +150,10 @@ const pair = await getRate('USD', 'UYU', { apiKey: 'art_live_...' });
|
|
|
82
150
|
{
|
|
83
151
|
bank: 'bcu',
|
|
84
152
|
name: 'Central Bank of Uruguay',
|
|
85
|
-
rate_date: '2026-10
|
|
153
|
+
rate_date: '2026-11-10', // Central Bank of Uruguay's own publication date
|
|
86
154
|
source: 'USD',
|
|
87
155
|
target: 'UYU',
|
|
88
|
-
rate: 40.
|
|
156
|
+
rate: 40.519,
|
|
89
157
|
rate_type: 'sell',
|
|
90
158
|
derived: false,
|
|
91
159
|
method: 'published',
|
|
@@ -93,7 +161,7 @@ const pair = await getRate('USD', 'UYU', { apiKey: 'art_live_...' });
|
|
|
93
161
|
}
|
|
94
162
|
```
|
|
95
163
|
|
|
96
|
-
### Full
|
|
164
|
+
### Full official table
|
|
97
165
|
|
|
98
166
|
Free plan and up. The complete table for the latest publication date.
|
|
99
167
|
|
|
@@ -110,11 +178,11 @@ console.log(table.rate_date, table.rates.length);
|
|
|
110
178
|
{
|
|
111
179
|
bank: 'bcu',
|
|
112
180
|
name: 'Central Bank of Uruguay',
|
|
113
|
-
rate_date: '2026-10
|
|
181
|
+
rate_date: '2026-11-10',
|
|
114
182
|
rates: [
|
|
115
|
-
{ "base": "USD", "quote": "UYU", "type": "sell", "value": 40.
|
|
116
|
-
{ "base": "USD", "quote": "UYU", "type": "buy", "value": 40.
|
|
117
|
-
// โฆ 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)
|
|
118
186
|
],
|
|
119
187
|
disclaimer: 'โฆ'
|
|
120
188
|
}
|
|
@@ -153,7 +221,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
153
221
|
import { getHistory } from 'bcu-exchange-rate';
|
|
154
222
|
|
|
155
223
|
const series = await getHistory(
|
|
156
|
-
{ source: 'USD', target: 'UYU', from: '2026-01-01', to: '2026-10
|
|
224
|
+
{ source: 'USD', target: 'UYU', from: '2026-01-01', to: '2026-11-10' },
|
|
157
225
|
{ apiKey: 'art_live_...' }
|
|
158
226
|
);
|
|
159
227
|
```
|
|
@@ -166,11 +234,11 @@ const series = await getHistory(
|
|
|
166
234
|
source: 'USD',
|
|
167
235
|
target: 'UYU',
|
|
168
236
|
from: '2026-01-01',
|
|
169
|
-
to: '2026-10
|
|
237
|
+
to: '2026-11-10',
|
|
170
238
|
count: 152,
|
|
171
239
|
rates: [
|
|
172
240
|
// one entry per publication date
|
|
173
|
-
{ date: '2026-10
|
|
241
|
+
{ date: '2026-11-10', rate: 40.519, rate_type: 'sell', derived: false, method: 'published' },
|
|
174
242
|
// โฆ
|
|
175
243
|
],
|
|
176
244
|
disclaimer: 'โฆ'
|
|
@@ -224,7 +292,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bcu/latest?format=xml&api_ke
|
|
|
224
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`
|
|
225
293
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
226
294
|
|
|
227
|
-
## โ๏ธ
|
|
295
|
+
## โ๏ธ Official vs derived rates
|
|
228
296
|
|
|
229
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:
|
|
230
298
|
|
|
@@ -274,21 +342,21 @@ getRate('USD', 'UYU', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
274
342
|
|
|
275
343
|
## ๐ก Quota tips
|
|
276
344
|
|
|
277
|
-
- 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.
|
|
278
346
|
- Every request counts toward your AllRatesToday quota, shared across all AllRatesToday endpoints on your key.
|
|
279
347
|
|
|
280
348
|
## ๐ Methods reference
|
|
281
349
|
|
|
282
350
|
| Method | Plan | Description |
|
|
283
351
|
| ------ | ---- | ----------- |
|
|
284
|
-
| `getRate(source, target, { apiKey })` | Free | Latest rate for one pair, resolved from the
|
|
285
|
-
| `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 |
|
|
286
354
|
| `getRatesForDate(date, { apiKey, source?, target? })` | Paid | The official table (or one pair) for a YYYY-MM-DD date |
|
|
287
355
|
| `getHistory({ symbol \| source+target, from?, to? }, { apiKey })` | Paid | Daily series since 2000 |
|
|
288
356
|
|
|
289
357
|
## ๐ฅ Bulk data (no key)
|
|
290
358
|
|
|
291
|
-
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:
|
|
292
360
|
|
|
293
361
|
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ one CSV per institution (`rates/bcu.csv`)
|
|
294
362
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
@@ -298,7 +366,7 @@ Need the whole archive rather than an API call? The same published tables are mi
|
|
|
298
366
|
|
|
299
367
|
- **Website:** [allratestoday.com](https://allratestoday.com)
|
|
300
368
|
- [Central Bank of Uruguay rates page](https://allratestoday.com/central-bank-rates-api/bcu/) โ live table, publication cadence, FAQ
|
|
301
|
-
- [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
|
|
302
370
|
- [Download central bank rates](https://allratestoday.com/download-central-bank-rates/) โ every bank's latest table and history as Excel, CSV or JSON
|
|
303
371
|
- [Package docs on the site](https://allratestoday.com/docs/sdk/bcu-exchange-rate/) ยท [ERP integration guides](https://allratestoday.com/docs/integrations/)
|
|
304
372
|
- [API documentation](https://allratestoday.com/docs/#central-bank) ยท [Interactive reference](https://allratestoday.com/api-reference/) ยท [Methodology](https://allratestoday.com/official-rates-methodology/)
|
|
@@ -306,6 +374,7 @@ Need the whole archive rather than an API call? The same published tables are mi
|
|
|
306
374
|
- [Status](https://allratestoday.com/status)
|
|
307
375
|
- [Postman collection](https://allratestoday.com/postman/)
|
|
308
376
|
- [ChatGPT app](https://chatgpt.com/plugins/plugin_asdk_app_6ae1e76098f48191a285ac3f5ab7a83b) โ ask ChatGPT for live and official central bank rates
|
|
377
|
+
- [OpenAPI reference on Bump.sh](https://bump.sh/allratestoday/doc/allratestoday-api) โ also on [SwaggerHub](https://app.swaggerhub.com/apis-docs/allratestoday/allratestoday-exchange-rate-central-bank-rates-api/2.2.0)
|
|
309
378
|
- [GitHub](https://github.com/AllRates-Today/bcu-exchange-rate)
|
|
310
379
|
|
|
311
380
|
## ๐ License
|
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",
|