bcu-exchange-rate 1.3.29 โ†’ 1.3.31

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 +85 -84
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -4,16 +4,16 @@
4
4
  [![license](https://img.shields.io/npm/l/bcu-exchange-rate.svg)](https://github.com/AllRates-Today/bcu-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/bcu-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
- [![USD/UYU today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbcu%3Fsource%3DUSD%26target%3DUYU&query=%24.rate&label=USD%2FUYU%20published%20by%20Central%20Bank%20of%20Uruguay&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/bcu/)
7
+ [![USD/UYU today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbcu%3Fsource%3DUSD%26target%3DUYU&query=%24.rate&label=USD%2FUYU%20official%2C%20Central%20Bank%20of%20Uruguay&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/bcu/)
8
8
  [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbcu%3Fsource%3DUSD%26target%3DUYU&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](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 published rates** โ€” Central Bank of Uruguay's own table, with the publisher's own `rate_date` on every response
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
- - ๐Ÿ”€ **Published vs derived, always flagged** โ€” computed inverse/cross pairs carry `derived: true`, never mixed with official prints
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 published table
27
+ ## ๐Ÿ“ˆ Latest official table
28
28
 
29
29
  [![Latest Central Bank of Uruguay table](https://allratestoday.com/api/open/central-bank/bcu/table.svg)](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-06 by Central Bank of Uruguay โ€” 60 rates. Updated 2026-11-08.</summary>
35
+ <summary>Table as text: published 2026-11-13 by Central Bank of Uruguay โ€” 60 rates. Updated 2026-11-15.</summary>
36
36
 
37
37
  | Base | Quote | Type | Rate |
38
38
  | --- | --- | --- | ---: |
39
- | ARS | UYU | buy | 0.026176 |
40
- | ARS | UYU | sell | 0.026176 |
41
- | AUD | UYU | buy | 27.780373 |
42
- | AUD | UYU | sell | 27.780373 |
43
- | BRL | UYU | buy | 7.353829 |
44
- | BRL | UYU | sell | 7.353829 |
45
- | CAD | UYU | buy | 28.628353 |
46
- | CAD | UYU | sell | 28.628353 |
47
- | CHF | UYU | buy | 49.31602 |
48
- | CHF | UYU | sell | 49.31602 |
49
- | CLP | UYU | buy | 0.041359 |
50
- | CLP | UYU | sell | 0.041359 |
51
- | CNY | UYU | buy | 6.061955 |
52
- | CNY | UYU | sell | 6.061955 |
53
- | COP | UYU | buy | 0.012489 |
54
- | COP | UYU | sell | 0.012489 |
55
- | DKK | UYU | buy | 6.031223 |
56
- | DKK | UYU | sell | 6.031223 |
57
- | EUR | UYU | buy | 45.080411 |
58
- | EUR | UYU | sell | 45.080411 |
59
- | GBP | UYU | buy | 54.023684 |
60
- | GBP | UYU | sell | 54.023684 |
61
- | HKD | UYU | buy | 5.159904 |
62
- | HKD | UYU | sell | 5.159904 |
63
- | HUF | UYU | buy | 0.124168 |
64
- | HUF | UYU | sell | 0.124168 |
65
- | INR | UYU | buy | 0.430732 |
66
- | INR | UYU | sell | 0.430732 |
67
- | ISK | UYU | buy | 0.329765 |
68
- | ISK | UYU | sell | 0.329765 |
69
- | JPY | UYU | buy | 0.255424 |
70
- | JPY | UYU | sell | 0.255424 |
71
- | KRW | UYU | buy | 0.029718 |
72
- | KRW | UYU | sell | 0.029718 |
73
- | MXN | UYU | buy | 2.171502 |
74
- | MXN | UYU | sell | 2.171502 |
75
- | MYR | UYU | buy | 9.971404 |
76
- | MYR | UYU | sell | 9.971404 |
77
- | NOK | UYU | buy | 4.275702 |
78
- | NOK | UYU | sell | 4.275702 |
79
- | NZD | UYU | buy | 22.416836 |
80
- | NZD | UYU | sell | 22.416836 |
81
- | PEN | UYU | buy | 11.816482 |
82
- | PEN | UYU | sell | 11.816482 |
83
- | PYG | UYU | buy | 0.00636 |
84
- | PYG | UYU | sell | 0.00636 |
85
- | RUB | UYU | buy | 0.491455 |
86
- | RUB | UYU | sell | 0.491455 |
87
- | SEK | UYU | buy | 4.08931 |
88
- | SEK | UYU | sell | 4.08931 |
89
- | TRY | UYU | buy | 0.80657 |
90
- | TRY | UYU | sell | 0.80657 |
91
- | USD | UYU | buy | 40.449 |
92
- | USD | UYU | sell | 40.449 |
93
- | VES | UYU | buy | 0.045277 |
94
- | VES | UYU | sell | 0.045277 |
95
- | XDR | UYU | buy | 54.763092 |
96
- | XDR | UYU | sell | 54.763092 |
97
- | ZAR | UYU | buy | 2.446635 |
98
- | ZAR | UYU | sell | 2.446635 |
39
+ | ARS | UYU | buy | 0.026315 |
40
+ | ARS | UYU | sell | 0.026315 |
41
+ | AUD | UYU | buy | 27.522075 |
42
+ | AUD | UYU | sell | 27.522075 |
43
+ | BRL | UYU | buy | 7.189824 |
44
+ | BRL | UYU | sell | 7.189824 |
45
+ | CAD | UYU | buy | 28.462994 |
46
+ | CAD | UYU | sell | 28.462994 |
47
+ | CHF | UYU | buy | 48.369462 |
48
+ | CHF | UYU | sell | 48.369462 |
49
+ | CLP | UYU | buy | 0.040813 |
50
+ | CLP | UYU | sell | 0.040813 |
51
+ | CNY | UYU | buy | 6.087693 |
52
+ | CNY | UYU | sell | 6.087693 |
53
+ | COP | UYU | buy | 0.012236 |
54
+ | COP | UYU | sell | 0.012236 |
55
+ | DKK | UYU | buy | 5.99106 |
56
+ | DKK | UYU | sell | 5.99106 |
57
+ | EUR | UYU | buy | 44.78175 |
58
+ | EUR | UYU | sell | 44.78175 |
59
+ | GBP | UYU | buy | 53.64307 |
60
+ | GBP | UYU | sell | 53.64307 |
61
+ | HKD | UYU | buy | 5.176343 |
62
+ | HKD | UYU | sell | 5.176343 |
63
+ | HUF | UYU | buy | 0.12287 |
64
+ | HUF | UYU | sell | 0.12287 |
65
+ | INR | UYU | buy | 0.430909 |
66
+ | INR | UYU | sell | 0.430909 |
67
+ | ISK | UYU | buy | 0.32809 |
68
+ | ISK | UYU | sell | 0.32809 |
69
+ | JPY | UYU | buy | 0.254296 |
70
+ | JPY | UYU | sell | 0.254296 |
71
+ | KRW | UYU | buy | 0.0304 |
72
+ | KRW | UYU | sell | 0.0304 |
73
+ | MXN | UYU | buy | 2.190713 |
74
+ | MXN | UYU | sell | 2.190713 |
75
+ | MYR | UYU | buy | 9.94271 |
76
+ | MYR | UYU | sell | 9.94271 |
77
+ | NOK | UYU | buy | 4.243928 |
78
+ | NOK | UYU | sell | 4.243928 |
79
+ | NZD | UYU | buy | 22.437578 |
80
+ | NZD | UYU | sell | 22.437578 |
81
+ | PEN | UYU | buy | 11.939144 |
82
+ | PEN | UYU | sell | 11.939144 |
83
+ | PYG | UYU | buy | 0.00655 |
84
+ | PYG | UYU | sell | 0.00655 |
85
+ | RUB | UYU | buy | 0.488956 |
86
+ | RUB | UYU | sell | 0.488956 |
87
+ | SEK | UYU | buy | 4.031669 |
88
+ | SEK | UYU | sell | 4.031669 |
89
+ | TRY | UYU | buy | 0.806363 |
90
+ | TRY | UYU | sell | 0.806363 |
91
+ | USD | UYU | buy | 40.611 |
92
+ | USD | UYU | sell | 40.611 |
93
+ | VES | UYU | buy | 0.04466 |
94
+ | VES | UYU | sell | 0.04466 |
95
+ | XDR | UYU | buy | 54.710733 |
96
+ | XDR | UYU | sell | 54.710733 |
97
+ | ZAR | UYU | buy | 2.399454 |
98
+ | ZAR | UYU | sell | 2.399454 |
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 published table
133
- - [Full published table](#full-published-table) โ€” everything the central bank printed, in one call
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 *Published vs derived rates* below).
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-13', // Central Bank of Uruguay's own publication date
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.2,
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 published table
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-13',
181
+ rate_date: '2026-11-10',
182
182
  rates: [
183
- { "base": "USD", "quote": "UYU", "type": "sell", "value": 40.2 },
184
- { "base": "USD", "quote": "UYU", "type": "buy", "value": 40.2 },
185
- // โ€ฆ the rest of the published table (30 currencies vs UYU)
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-13' },
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-13',
237
+ to: '2026-11-10',
238
238
  count: 152,
239
239
  rates: [
240
240
  // one entry per publication date
241
- { date: '2026-10-13', rate: 40.2, rate_type: 'sell', derived: false, method: 'published' },
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
- ## โš–๏ธ Published vs derived rates
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 published table locally and a small monthly quota goes a long way.
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 published table |
353
- | `getLatestRates({ apiKey })` | Free | The central bank's full latest published table |
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 published tables are mirrored daily as open data:
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,8 +366,9 @@ 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
+ - [Bank Exchange Rate API](https://allratestoday.com/bank-exchange-rate-api/) โ€” live buy and sell rates from 1,200+ commercial banks in 120+ countries ยท [npm](https://www.npmjs.com/package/bank-exchange-rates) ยท [GitHub](https://github.com/AllRates-Today/bank-exchange-rates)
371
372
  - [Package docs on the site](https://allratestoday.com/docs/sdk/bcu-exchange-rate/) ยท [ERP integration guides](https://allratestoday.com/docs/integrations/)
372
373
  - [API documentation](https://allratestoday.com/docs/#central-bank) ยท [Interactive reference](https://allratestoday.com/api-reference/) ยท [Methodology](https://allratestoday.com/official-rates-methodology/)
373
374
  - [Register (Free)](https://allratestoday.com/register) ยท [Dashboard](https://allratestoday.com/profile) ยท [Pricing](https://allratestoday.com/pricing/)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bcu-exchange-rate",
3
- "version": "1.3.29",
3
+ "version": "1.3.31",
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",
@@ -10,6 +10,7 @@
10
10
  "uruguay",
11
11
  "exchange-rate",
12
12
  "exchange-rates",
13
+ "exchange-rate-api",
13
14
  "exchangerate",
14
15
  "exchange rate",
15
16
  "exchange rates",