@allratestoday/bch-exchange-rate 1.3.9 → 1.3.14
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 +12 -12
- 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-16** by Banco Central de Honduras — 1 rate. Updated 2026-10-16.
|
|
46
46
|
|
|
47
47
|
| Base | Quote | Type | Rate |
|
|
48
48
|
| --- | --- | --- | ---: |
|
|
49
|
-
| USD | HNL | reference | 26.
|
|
49
|
+
| USD | HNL | reference | 26.891 |
|
|
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: '…'
|
|
@@ -240,7 +240,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bch/latest?format=xml&api_ke
|
|
|
240
240
|
- MCP server: `npx -y @allratestoday/central-bank-mcp` (stdio) or the hosted endpoint `https://allratestoday.com/api/mcp` — tools for official rates, history, cross-bank comparison and publication calendars
|
|
241
241
|
- Already using the general SDK or MCP server? Since 2026-10-01 [`@allratestoday/sdk`](https://www.npmjs.com/package/@allratestoday/sdk) 1.4+ has `officialRates('bch')` and [`@allratestoday/mcp-server`](https://www.npmjs.com/package/@allratestoday/mcp-server) 0.6+ has a `get_official_rates` tool — both return this source's latest table with no key, so you can add it without a second dependency
|
|
242
242
|
- Claude Code plugin (no key): `/plugin marketplace add AllRates-Today/claude-code-plugin` then `/plugin install allratestoday@allratestoday` — bundles both MCP servers plus an `/official-rate bch ...` command
|
|
243
|
-
-
|
|
243
|
+
- 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`
|
|
244
244
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
245
245
|
|
|
246
246
|
## ⚖️ Published vs derived rates
|
|
@@ -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.14",
|
|
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
|
],
|