@allratestoday/bch-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.
- package/README.md +11 -11
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -42,11 +42,11 @@ 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-
|
|
45
|
+
Published **2026-10-14** by Banco Central de Honduras — 1 rate. Updated 2026-10-14.
|
|
46
46
|
|
|
47
47
|
| Base | Quote | Type | Rate |
|
|
48
48
|
| --- | --- | --- | ---: |
|
|
49
|
-
| USD | HNL | reference | 26.
|
|
49
|
+
| USD | HNL | reference | 26.8927 |
|
|
50
50
|
|
|
51
51
|
Source: [Official rates published by BCH, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bch/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
52
52
|
<!-- daily-table:end -->
|
|
@@ -103,10 +103,10 @@ const pair = await getRate('USD', 'HNL', { apiKey: 'art_live_...' });
|
|
|
103
103
|
{
|
|
104
104
|
bank: 'bch',
|
|
105
105
|
name: 'Banco Central de Honduras',
|
|
106
|
-
rate_date: '2026-10-
|
|
106
|
+
rate_date: '2026-10-14', // Banco Central de Honduras's own publication date
|
|
107
107
|
source: 'USD',
|
|
108
108
|
target: 'HNL',
|
|
109
|
-
rate: 26.
|
|
109
|
+
rate: 26.8927,
|
|
110
110
|
rate_type: 'reference',
|
|
111
111
|
derived: false,
|
|
112
112
|
method: 'published',
|
|
@@ -131,9 +131,9 @@ console.log(table.rate_date, table.rates.length);
|
|
|
131
131
|
{
|
|
132
132
|
bank: 'bch',
|
|
133
133
|
name: 'Banco Central de Honduras',
|
|
134
|
-
rate_date: '2026-10-
|
|
134
|
+
rate_date: '2026-10-14',
|
|
135
135
|
rates: [
|
|
136
|
-
{ "base": "USD", "quote": "HNL", "type": "reference", "value": 26.
|
|
136
|
+
{ "base": "USD", "quote": "HNL", "type": "reference", "value": 26.8927 },
|
|
137
137
|
// … the rest of the published table (1 currency vs HNL)
|
|
138
138
|
],
|
|
139
139
|
disclaimer: '…'
|
|
@@ -173,7 +173,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
173
173
|
import { getHistory } from '@allratestoday/bch-exchange-rate';
|
|
174
174
|
|
|
175
175
|
const series = await getHistory(
|
|
176
|
-
{ source: 'USD', target: 'HNL', from: '2026-01-01', to: '2026-10-
|
|
176
|
+
{ source: 'USD', target: 'HNL', from: '2026-01-01', to: '2026-10-14' },
|
|
177
177
|
{ apiKey: 'art_live_...' }
|
|
178
178
|
);
|
|
179
179
|
```
|
|
@@ -186,11 +186,11 @@ const series = await getHistory(
|
|
|
186
186
|
source: 'USD',
|
|
187
187
|
target: 'HNL',
|
|
188
188
|
from: '2026-01-01',
|
|
189
|
-
to: '2026-10-
|
|
189
|
+
to: '2026-10-14',
|
|
190
190
|
count: 152,
|
|
191
191
|
rates: [
|
|
192
192
|
// one entry per publication date
|
|
193
|
-
{ date: '2026-10-
|
|
193
|
+
{ date: '2026-10-14', rate: 26.8927, rate_type: 'reference', derived: false, method: 'published' },
|
|
194
194
|
// …
|
|
195
195
|
],
|
|
196
196
|
disclaimer: '…'
|
|
@@ -309,9 +309,9 @@ getRate('USD', 'HNL', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
|
|
|
309
309
|
|
|
310
310
|
Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
|
|
311
311
|
|
|
312
|
-
- Hugging Face: [
|
|
312
|
+
- Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) — one CSV per institution (`rates/bch.csv`)
|
|
313
313
|
- Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
|
|
314
|
-
-
|
|
314
|
+
- Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/bch/latest.json`
|
|
315
315
|
|
|
316
316
|
## 🔗 Links
|
|
317
317
|
|
package/package.json
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/bch-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"description": "Official Banco Central de Honduras (Honduras) daily exchange rates — 1 currency vs HNL, history since 2019. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bch",
|
|
7
|
+
"banco-central-de-honduras",
|
|
7
8
|
"banco",
|
|
8
9
|
"central",
|
|
9
|
-
"de",
|
|
10
10
|
"honduras",
|
|
11
11
|
"exchange-rate",
|
|
12
12
|
"exchange-rates",
|
|
13
|
+
"exchangerate",
|
|
14
|
+
"exchange rate",
|
|
15
|
+
"hnl-exchange-rate",
|
|
13
16
|
"currency",
|
|
14
17
|
"forex",
|
|
15
18
|
"fx",
|
|
16
19
|
"hnl",
|
|
20
|
+
"currency-api",
|
|
21
|
+
"currency-exchange-rates",
|
|
22
|
+
"forex-api",
|
|
23
|
+
"currency-conversion",
|
|
24
|
+
"currency-exchange",
|
|
25
|
+
"currency-rates",
|
|
17
26
|
"central-bank",
|
|
18
27
|
"official-rates",
|
|
19
|
-
"honduras",
|
|
20
28
|
"api",
|
|
21
29
|
"typescript"
|
|
22
30
|
],
|