@allratestoday/bcrp-exchange-rate 1.3.9 → 1.3.13

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 +15 -15
  2. package/package.json +11 -3
package/README.md CHANGED
@@ -42,14 +42,14 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
42
42
  The image is rendered live from the keyless endpoint above, so it follows the central bank's publications on npm and on GitHub alike without a new release. The text copy below is there 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.
43
43
 
44
44
  <!-- daily-table:start -->
45
- Published **2026-10-09** by Central Reserve Bank of Peru — 4 rates. Updated 2026-10-12.
45
+ Published **2026-10-12** by Central Reserve Bank of Peru — 4 rates. Updated 2026-10-14.
46
46
 
47
47
  | Base | Quote | Type | Rate |
48
48
  | --- | --- | --- | ---: |
49
- | EUR | PEN | buy | 3.833 |
50
- | EUR | PEN | sell | 3.851 |
51
- | USD | PEN | buy | 3.45 |
52
- | USD | PEN | sell | 3.457 |
49
+ | EUR | PEN | buy | 3.854 |
50
+ | EUR | PEN | sell | 3.867 |
51
+ | USD | PEN | buy | 3.434 |
52
+ | USD | PEN | sell | 3.448 |
53
53
 
54
54
  Source: [Official rates published by BCRP, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bcrp/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
55
55
  <!-- daily-table:end -->
@@ -106,10 +106,10 @@ const pair = await getRate('USD', 'PEN', { apiKey: 'art_live_...' });
106
106
  {
107
107
  bank: 'bcrp',
108
108
  name: 'Central Reserve Bank of Peru',
109
- rate_date: '2026-10-09', // Central Reserve Bank of Peru's own publication date
109
+ rate_date: '2026-10-12', // Central Reserve Bank of Peru's own publication date
110
110
  source: 'USD',
111
111
  target: 'PEN',
112
- rate: 3.457,
112
+ rate: 3.448,
113
113
  rate_type: 'sell',
114
114
  derived: false,
115
115
  method: 'published',
@@ -134,10 +134,10 @@ console.log(table.rate_date, table.rates.length);
134
134
  {
135
135
  bank: 'bcrp',
136
136
  name: 'Central Reserve Bank of Peru',
137
- rate_date: '2026-10-09',
137
+ rate_date: '2026-10-12',
138
138
  rates: [
139
- { "base": "USD", "quote": "PEN", "type": "sell", "value": 3.457 },
140
- { "base": "USD", "quote": "PEN", "type": "buy", "value": 3.45 },
139
+ { "base": "USD", "quote": "PEN", "type": "sell", "value": 3.448 },
140
+ { "base": "USD", "quote": "PEN", "type": "buy", "value": 3.434 },
141
141
  // … the rest of the published table (2 currencies vs PEN)
142
142
  ],
143
143
  disclaimer: '…'
@@ -177,7 +177,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
177
177
  import { getHistory } from '@allratestoday/bcrp-exchange-rate';
178
178
 
179
179
  const series = await getHistory(
180
- { source: 'USD', target: 'PEN', from: '2026-01-01', to: '2026-10-09' },
180
+ { source: 'USD', target: 'PEN', from: '2026-01-01', to: '2026-10-12' },
181
181
  { apiKey: 'art_live_...' }
182
182
  );
183
183
  ```
@@ -190,11 +190,11 @@ const series = await getHistory(
190
190
  source: 'USD',
191
191
  target: 'PEN',
192
192
  from: '2026-01-01',
193
- to: '2026-10-09',
193
+ to: '2026-10-12',
194
194
  count: 152,
195
195
  rates: [
196
196
  // one entry per publication date
197
- { date: '2026-10-09', rate: 3.457, rate_type: 'sell', derived: false, method: 'published' },
197
+ { date: '2026-10-12', rate: 3.448, rate_type: 'sell', derived: false, method: 'published' },
198
198
  // …
199
199
  ],
200
200
  disclaimer: '…'
@@ -313,9 +313,9 @@ getRate('USD', 'PEN', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
313
313
 
314
314
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
315
315
 
316
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) — one CSV per institution (`rates/bcrp.csv`)
316
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/bcrp.csv`)
317
317
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
318
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/bcrp/latest.json`
318
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/bcrp/latest.json`
319
319
 
320
320
  ## 🔗 Links
321
321
 
package/package.json CHANGED
@@ -1,23 +1,31 @@
1
1
  {
2
2
  "name": "@allratestoday/bcrp-exchange-rate",
3
- "version": "1.3.9",
3
+ "version": "1.3.13",
4
4
  "description": "Official Central Reserve Bank of Peru (Peru) daily exchange rates — 2 currencies vs PEN, history since 2016. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "bcrp",
7
+ "central-reserve-bank-of-peru",
7
8
  "central",
8
9
  "reserve",
9
10
  "bank",
10
- "of",
11
11
  "peru",
12
12
  "exchange-rate",
13
13
  "exchange-rates",
14
+ "exchangerate",
15
+ "exchange rate",
16
+ "pen-exchange-rate",
14
17
  "currency",
15
18
  "forex",
16
19
  "fx",
17
20
  "pen",
21
+ "currency-api",
22
+ "currency-exchange-rates",
23
+ "forex-api",
24
+ "currency-conversion",
25
+ "currency-exchange",
26
+ "currency-rates",
18
27
  "central-bank",
19
28
  "official-rates",
20
- "peru",
21
29
  "api",
22
30
  "typescript"
23
31
  ],