@allratestoday/bch-exchange-rate 1.3.7 โ†’ 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 -12
  2. package/package.json +11 -3
package/README.md CHANGED
@@ -37,14 +37,16 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## ๐Ÿ“ˆ Latest published table
39
39
 
40
- Today's full Banco Central de Honduras table, straight from the central bank's latest publication. On GitHub it is refreshed by [a daily Action](.github/workflows/daily-table.yml) that reads the keyless endpoint above and commits only when the central bank publishes a new table; the copy on npm is as of the package's publish date.
40
+ [![Latest Banco Central de Honduras table](https://allratestoday.com/api/open/central-bank/bch/table.svg)](https://allratestoday.com/central-bank-rates-api/bch/)
41
+
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.
41
43
 
42
44
  <!-- daily-table:start -->
43
- Published **2026-10-07** by Banco Central de Honduras โ€” 1 rate. Updated 2026-10-08.
45
+ Published **2026-10-14** by Banco Central de Honduras โ€” 1 rate. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
- | USD | HNL | reference | 26.8883 |
49
+ | USD | HNL | reference | 26.8927 |
48
50
 
49
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.
50
52
  <!-- daily-table:end -->
@@ -101,10 +103,10 @@ const pair = await getRate('USD', 'HNL', { apiKey: 'art_live_...' });
101
103
  {
102
104
  bank: 'bch',
103
105
  name: 'Banco Central de Honduras',
104
- rate_date: '2026-10-07', // Banco Central de Honduras's own publication date
106
+ rate_date: '2026-10-14', // Banco Central de Honduras's own publication date
105
107
  source: 'USD',
106
108
  target: 'HNL',
107
- rate: 26.8883,
109
+ rate: 26.8927,
108
110
  rate_type: 'reference',
109
111
  derived: false,
110
112
  method: 'published',
@@ -129,9 +131,9 @@ console.log(table.rate_date, table.rates.length);
129
131
  {
130
132
  bank: 'bch',
131
133
  name: 'Banco Central de Honduras',
132
- rate_date: '2026-10-07',
134
+ rate_date: '2026-10-14',
133
135
  rates: [
134
- { "base": "USD", "quote": "HNL", "type": "reference", "value": 26.8883 },
136
+ { "base": "USD", "quote": "HNL", "type": "reference", "value": 26.8927 },
135
137
  // โ€ฆ the rest of the published table (1 currency vs HNL)
136
138
  ],
137
139
  disclaimer: 'โ€ฆ'
@@ -171,7 +173,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
171
173
  import { getHistory } from '@allratestoday/bch-exchange-rate';
172
174
 
173
175
  const series = await getHistory(
174
- { source: 'USD', target: 'HNL', from: '2026-01-01', to: '2026-10-07' },
176
+ { source: 'USD', target: 'HNL', from: '2026-01-01', to: '2026-10-14' },
175
177
  { apiKey: 'art_live_...' }
176
178
  );
177
179
  ```
@@ -184,11 +186,11 @@ const series = await getHistory(
184
186
  source: 'USD',
185
187
  target: 'HNL',
186
188
  from: '2026-01-01',
187
- to: '2026-10-07',
189
+ to: '2026-10-14',
188
190
  count: 152,
189
191
  rates: [
190
192
  // one entry per publication date
191
- { date: '2026-10-07', rate: 26.8883, rate_type: 'reference', derived: false, method: 'published' },
193
+ { date: '2026-10-14', rate: 26.8927, rate_type: 'reference', derived: false, method: 'published' },
192
194
  // โ€ฆ
193
195
  ],
194
196
  disclaimer: 'โ€ฆ'
@@ -238,6 +240,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bch/latest?format=xml&api_ke
238
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
239
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
240
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
+ - Need dated tables or history for an evaluation? 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; the MCP servers expose it as `request_trial_key`
241
244
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
242
245
 
243
246
  ## โš–๏ธ Published vs derived rates
@@ -306,9 +309,9 @@ getRate('USD', 'HNL', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
306
309
 
307
310
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
308
311
 
309
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) โ€” one CSV per institution (`rates/bch.csv`)
312
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ€” one CSV per institution (`rates/bch.csv`)
310
313
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
311
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/bch/latest.json`
314
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/bch/latest.json`
312
315
 
313
316
  ## ๐Ÿ”— Links
314
317
 
package/package.json CHANGED
@@ -1,22 +1,30 @@
1
1
  {
2
2
  "name": "@allratestoday/bch-exchange-rate",
3
- "version": "1.3.7",
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
  ],