brh-exchange-rate 1.3.7 → 1.3.8
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 +14 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,13 +40,13 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
40
40
|
Today's full Banque de la République d'Haïti 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.
|
|
41
41
|
|
|
42
42
|
<!-- daily-table:start -->
|
|
43
|
-
Published **2026-10-
|
|
43
|
+
Published **2026-10-12** by Banque de la République d'Haïti — 3 rates. Updated 2026-10-12.
|
|
44
44
|
|
|
45
45
|
| Base | Quote | Type | Rate |
|
|
46
46
|
| --- | --- | --- | ---: |
|
|
47
|
-
| USD | HTG | buy | 130.
|
|
48
|
-
| USD | HTG | reference | 130.
|
|
49
|
-
| USD | HTG | sell | 131.
|
|
47
|
+
| USD | HTG | buy | 130.3146 |
|
|
48
|
+
| USD | HTG | reference | 130.5488 |
|
|
49
|
+
| USD | HTG | sell | 131.295 |
|
|
50
50
|
|
|
51
51
|
Source: [Official rates published by BRH, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/brh/). 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', 'HTG', { apiKey: 'art_live_...' });
|
|
|
103
103
|
{
|
|
104
104
|
bank: 'brh',
|
|
105
105
|
name: 'Banque de la République d\'Haïti',
|
|
106
|
-
rate_date: '2026-10-
|
|
106
|
+
rate_date: '2026-10-12', // Banque de la République d'Haïti's own publication date
|
|
107
107
|
source: 'USD',
|
|
108
108
|
target: 'HTG',
|
|
109
|
-
rate: 130.
|
|
109
|
+
rate: 130.5488,
|
|
110
110
|
rate_type: 'reference',
|
|
111
111
|
derived: false,
|
|
112
112
|
method: 'published',
|
|
@@ -131,11 +131,11 @@ console.log(table.rate_date, table.rates.length);
|
|
|
131
131
|
{
|
|
132
132
|
bank: 'brh',
|
|
133
133
|
name: 'Banque de la République d\'Haïti',
|
|
134
|
-
rate_date: '2026-10-
|
|
134
|
+
rate_date: '2026-10-12',
|
|
135
135
|
rates: [
|
|
136
|
-
{ "base": "USD", "quote": "HTG", "type": "reference", "value": 130.
|
|
137
|
-
{ "base": "USD", "quote": "HTG", "type": "sell", "value": 131.
|
|
138
|
-
{ "base": "USD", "quote": "HTG", "type": "buy", "value": 130.
|
|
136
|
+
{ "base": "USD", "quote": "HTG", "type": "reference", "value": 130.5488 },
|
|
137
|
+
{ "base": "USD", "quote": "HTG", "type": "sell", "value": 131.295 },
|
|
138
|
+
{ "base": "USD", "quote": "HTG", "type": "buy", "value": 130.3146 },
|
|
139
139
|
// … the rest of the published table (1 currency vs HTG)
|
|
140
140
|
],
|
|
141
141
|
disclaimer: '…'
|
|
@@ -175,7 +175,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
175
175
|
import { getHistory } from 'brh-exchange-rate';
|
|
176
176
|
|
|
177
177
|
const series = await getHistory(
|
|
178
|
-
{ source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-10-
|
|
178
|
+
{ source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-10-12' },
|
|
179
179
|
{ apiKey: 'art_live_...' }
|
|
180
180
|
);
|
|
181
181
|
```
|
|
@@ -188,11 +188,11 @@ const series = await getHistory(
|
|
|
188
188
|
source: 'USD',
|
|
189
189
|
target: 'HTG',
|
|
190
190
|
from: '2026-01-01',
|
|
191
|
-
to: '2026-10-
|
|
191
|
+
to: '2026-10-12',
|
|
192
192
|
count: 152,
|
|
193
193
|
rates: [
|
|
194
194
|
// one entry per publication date
|
|
195
|
-
{ date: '2026-10-
|
|
195
|
+
{ date: '2026-10-12', rate: 130.5488, rate_type: 'reference', derived: false, method: 'published' },
|
|
196
196
|
// …
|
|
197
197
|
],
|
|
198
198
|
disclaimer: '…'
|
|
@@ -242,6 +242,7 @@ curl "https://allratestoday.com/api/v1/central-bank/brh/latest?format=xml&api_ke
|
|
|
242
242
|
- 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
|
|
243
243
|
- 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('brh')` 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
|
|
244
244
|
- 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 brh ...` command
|
|
245
|
+
- 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`
|
|
245
246
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
246
247
|
|
|
247
248
|
## ⚖️ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brh-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "Official Banque de la République d'Haïti (Haiti) daily exchange rates — 1 currency vs HTG, current table, archive from 2026. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"brh",
|