@allratestoday/bcp-exchange-rate 1.2.2 → 1.2.3
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 +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,10 +70,10 @@ const pair = await getRate('USD', 'PYG', { apiKey: 'art_live_...' });
|
|
|
70
70
|
{
|
|
71
71
|
bank: 'bcp',
|
|
72
72
|
name: 'Banco Central del Paraguay',
|
|
73
|
-
rate_date: '2026-08-
|
|
73
|
+
rate_date: '2026-08-12', // Banco Central del Paraguay's own publication date
|
|
74
74
|
source: 'USD',
|
|
75
75
|
target: 'PYG',
|
|
76
|
-
rate:
|
|
76
|
+
rate: 5974.57,
|
|
77
77
|
rate_type: 'reference',
|
|
78
78
|
derived: false,
|
|
79
79
|
method: 'published',
|
|
@@ -98,9 +98,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
98
98
|
{
|
|
99
99
|
bank: 'bcp',
|
|
100
100
|
name: 'Banco Central del Paraguay',
|
|
101
|
-
rate_date: '2026-08-
|
|
101
|
+
rate_date: '2026-08-12',
|
|
102
102
|
rates: [
|
|
103
|
-
{ "base": "USD", "quote": "PYG", "type": "reference", "value":
|
|
103
|
+
{ "base": "USD", "quote": "PYG", "type": "reference", "value": 5974.57 },
|
|
104
104
|
// … the rest of the published table (26 currencies vs PYG)
|
|
105
105
|
],
|
|
106
106
|
disclaimer: '…'
|
|
@@ -140,7 +140,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
140
140
|
import { getHistory } from '@allratestoday/bcp-exchange-rate';
|
|
141
141
|
|
|
142
142
|
const series = await getHistory(
|
|
143
|
-
{ source: 'USD', target: 'PYG', from: '2026-01-01', to: '2026-08-
|
|
143
|
+
{ source: 'USD', target: 'PYG', from: '2026-01-01', to: '2026-08-12' },
|
|
144
144
|
{ apiKey: 'art_live_...' }
|
|
145
145
|
);
|
|
146
146
|
```
|
|
@@ -153,11 +153,11 @@ const series = await getHistory(
|
|
|
153
153
|
source: 'USD',
|
|
154
154
|
target: 'PYG',
|
|
155
155
|
from: '2026-01-01',
|
|
156
|
-
to: '2026-08-
|
|
156
|
+
to: '2026-08-12',
|
|
157
157
|
count: 152,
|
|
158
158
|
rates: [
|
|
159
159
|
// one entry per publication date
|
|
160
|
-
{ date: '2026-08-
|
|
160
|
+
{ date: '2026-08-12', rate: 5974.57, rate_type: 'reference', derived: false, method: 'published' },
|
|
161
161
|
// …
|
|
162
162
|
],
|
|
163
163
|
disclaimer: '…'
|
|
@@ -170,9 +170,9 @@ Pass `{ symbol: 'USD' }` instead of `source`/`target` to get the raw published r
|
|
|
170
170
|
|
|
171
171
|
## 🗺️ Currencies covered
|
|
172
172
|
|
|
173
|
-
Banco Central del Paraguay currently publishes rates covering **
|
|
173
|
+
Banco Central del Paraguay currently publishes rates covering **26 currencies** against the PYG (as of the latest table):
|
|
174
174
|
|
|
175
|
-
`AED` · `ARS` · `AUD` · `BOB` · `BRL` · `CAD` · `CHF` · `CLP` · `CNY` · `COP` · `DKK` · `EUR` · `GBP` · `JPY` · `MXN` · `NOK` · `NZD` · `PEN` ·
|
|
175
|
+
🇦🇪 `AED` · 🇦🇷 `ARS` · 🇦🇺 `AUD` · 🇧🇴 `BOB` · 🇧🇷 `BRL` · 🇨🇦 `CAD` · 🇨🇭 `CHF` · 🇨🇱 `CLP` · 🇨🇳 `CNY` · 🇨🇴 `COP` · 🇩🇰 `DKK` · 🇪🇺 `EUR` · 🇬🇧 `GBP` · 🇯🇵 `JPY` · 🇲🇽 `MXN` · 🇳🇴 `NOK` · 🇳🇿 `NZD` · 🇵🇪 `PEN` · 🇸🇪 `SEK` · 🇸🇬 `SGD` · 🇹🇼 `TWD` · 🇺🇸 `USD` · 🇺🇾 `UYU` · `XAU` · `XDR` · 🇿🇦 `ZAR`
|
|
176
176
|
|
|
177
177
|
## ⚖️ Published vs derived rates
|
|
178
178
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/bcp-exchange-rate",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Official Banco Central del Paraguay (Paraguay) daily exchange rates — 26 currencies vs PYG, history since 2016. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bcp",
|