@allratestoday/brh-exchange-rate 1.3.5 → 1.3.7

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 +28 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
  [![license](https://img.shields.io/npm/l/@allratestoday%2Fbrh-exchange-rate.svg)](https://github.com/AllRates-Today/brh-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/brh-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/HTG today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbrh%3Fsource%3DUSD%26target%3DHTG&query=%24.rate&label=USD%2FHTG%20published%20by%20Banque%20de%20la%20R%C3%A9publique%20d'Ha%C3%AFti&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/brh/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbrh%3Fsource%3DUSD%26target%3DHTG&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/brh/)
7
9
 
8
10
  **Official Banque de la République d'Haïti (Haiti) daily exchange rates for Node.js and TypeScript. The published central bank rates behind tax filings, customs valuations, audits, and compliant invoicing — not market estimates, but the numbers Banque de la République d'Haïti itself prints, every business day.**
9
11
 
@@ -33,6 +35,22 @@ console.log(r.rate_date, r.rates.length); // the central bank's latest published
33
35
 
34
36
  The open endpoint serves the *latest* table only and asks for a visible attribution link. The client below uses the keyed API, which adds point-in-time tables, history, and CSV/XML/Excel output.
35
37
 
38
+ ## 📈 Latest published table
39
+
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
+
42
+ <!-- daily-table:start -->
43
+ Published **2026-10-08** by Banque de la République d'Haïti — 3 rates. Updated 2026-10-08.
44
+
45
+ | Base | Quote | Type | Rate |
46
+ | --- | --- | --- | ---: |
47
+ | USD | HTG | buy | 130.2504 |
48
+ | USD | HTG | reference | 130.5102 |
49
+ | USD | HTG | sell | 131.3703 |
50
+
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
+ <!-- daily-table:end -->
53
+
36
54
  ## 🔑 Get your API key
37
55
 
38
56
  Get a free API key at [allratestoday.com/register](https://allratestoday.com/register) — no credit card required. Latest rates are on every plan, including free.
@@ -85,10 +103,10 @@ const pair = await getRate('USD', 'HTG', { apiKey: 'art_live_...' });
85
103
  {
86
104
  bank: 'brh',
87
105
  name: 'Banque de la République d\'Haïti',
88
- rate_date: '2026-10-06', // Banque de la République d'Haïti's own publication date
106
+ rate_date: '2026-10-08', // Banque de la République d'Haïti's own publication date
89
107
  source: 'USD',
90
108
  target: 'HTG',
91
- rate: 130.4713,
109
+ rate: 130.5102,
92
110
  rate_type: 'reference',
93
111
  derived: false,
94
112
  method: 'published',
@@ -113,11 +131,11 @@ console.log(table.rate_date, table.rates.length);
113
131
  {
114
132
  bank: 'brh',
115
133
  name: 'Banque de la République d\'Haïti',
116
- rate_date: '2026-10-06',
134
+ rate_date: '2026-10-08',
117
135
  rates: [
118
- { "base": "USD", "quote": "HTG", "type": "reference", "value": 130.4713 },
119
- { "base": "USD", "quote": "HTG", "type": "sell", "value": 131.3579 },
120
- { "base": "USD", "quote": "HTG", "type": "buy", "value": 130.1854 },
136
+ { "base": "USD", "quote": "HTG", "type": "reference", "value": 130.5102 },
137
+ { "base": "USD", "quote": "HTG", "type": "sell", "value": 131.3703 },
138
+ { "base": "USD", "quote": "HTG", "type": "buy", "value": 130.2504 },
121
139
  // … the rest of the published table (1 currency vs HTG)
122
140
  ],
123
141
  disclaimer: '…'
@@ -157,7 +175,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
157
175
  import { getHistory } from '@allratestoday/brh-exchange-rate';
158
176
 
159
177
  const series = await getHistory(
160
- { source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-10-06' },
178
+ { source: 'USD', target: 'HTG', from: '2026-01-01', to: '2026-10-08' },
161
179
  { apiKey: 'art_live_...' }
162
180
  );
163
181
  ```
@@ -170,11 +188,11 @@ const series = await getHistory(
170
188
  source: 'USD',
171
189
  target: 'HTG',
172
190
  from: '2026-01-01',
173
- to: '2026-10-06',
191
+ to: '2026-10-08',
174
192
  count: 152,
175
193
  rates: [
176
194
  // one entry per publication date
177
- { date: '2026-10-06', rate: 130.4713, rate_type: 'reference', derived: false, method: 'published' },
195
+ { date: '2026-10-08', rate: 130.5102, rate_type: 'reference', derived: false, method: 'published' },
178
196
  // …
179
197
  ],
180
198
  disclaimer: '…'
@@ -223,6 +241,7 @@ curl "https://allratestoday.com/api/v1/central-bank/brh/latest?format=xml&api_ke
223
241
 
224
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
225
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
+ - 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
226
245
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
227
246
 
228
247
  ## ⚖️ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/brh-exchange-rate",
3
- "version": "1.3.5",
3
+ "version": "1.3.7",
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",