@allratestoday/bou-exchange-rate 1.3.6 โ†’ 1.3.9

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 +87 -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%2Fbou-exchange-rate.svg)](https://github.com/AllRates-Today/bou-exchange-rate/blob/main/LICENSE)
5
5
  [![zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](https://www.npmjs.com/package/@allratestoday/bou-exchange-rate)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-types%20included-3178C6.svg)](https://www.typescriptlang.org/)
7
+ [![USD/UGX today](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbou%3Fsource%3DUSD%26target%3DUGX&query=%24.rate&label=USD%2FUGX%20published%20by%20Bank%20of%20Uganda&color=0A7E8C&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/bou/)
8
+ [![rate date](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fallratestoday.com%2Fapi%2Fopen%2Fcentral-bank%2Fbou%3Fsource%3DUSD%26target%3DUGX&query=%24.rate_date&label=rate%20date&color=555&cacheSeconds=3600)](https://allratestoday.com/central-bank-rates-api/bou/)
7
9
 
8
10
  **Official Bank of Uganda (Uganda) 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 Bank of Uganda itself prints, every business day.**
9
11
 
@@ -33,6 +35,81 @@ 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
+ [![Latest Bank of Uganda table](https://allratestoday.com/api/open/central-bank/bou/table.svg)](https://allratestoday.com/central-bank-rates-api/bou/)
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.
43
+
44
+ <!-- daily-table:start -->
45
+ Published **2026-10-12** by Bank of Uganda โ€” 99 rates, first 60 shown. Updated 2026-10-12.
46
+
47
+ | Base | Quote | Type | Rate |
48
+ | --- | --- | --- | ---: |
49
+ | AED | UGX | buy | 1111.0721 |
50
+ | AED | UGX | reference | 1112.4788 |
51
+ | AED | UGX | sell | 1113.8855 |
52
+ | AUD | UGX | buy | 2849.486858 |
53
+ | AUD | UGX | reference | 2853.386977 |
54
+ | AUD | UGX | sell | 2857.287096 |
55
+ | BIF | UGX | buy | 1.3575684 |
56
+ | BIF | UGX | reference | 1.3657442 |
57
+ | BIF | UGX | sell | 1.3739199 |
58
+ | CAD | UGX | buy | 2865.1994 |
59
+ | CAD | UGX | reference | 2869.0122 |
60
+ | CAD | UGX | sell | 2872.8249 |
61
+ | CHF | UGX | buy | 4913.5444 |
62
+ | CHF | UGX | reference | 4921.0476 |
63
+ | CHF | UGX | sell | 4928.5508 |
64
+ | CNY | UGX | buy | 609.83369 |
65
+ | CNY | UGX | reference | 610.59452 |
66
+ | CNY | UGX | sell | 611.35535 |
67
+ | DJF | UGX | buy | 22.857407 |
68
+ | DJF | UGX | reference | 22.946693 |
69
+ | DJF | UGX | sell | 23.03598 |
70
+ | DKK | UGX | buy | 611.86339 |
71
+ | DKK | UGX | reference | 612.69119 |
72
+ | DKK | UGX | sell | 613.51899 |
73
+ | ETB | UGX | buy | 24.865382 |
74
+ | ETB | UGX | reference | 25.145112 |
75
+ | ETB | UGX | sell | 25.424841 |
76
+ | EUR | UGX | buy | 4573.789633 |
77
+ | EUR | UGX | reference | 4579.802252 |
78
+ | EUR | UGX | sell | 4585.8149 |
79
+ | GBP | UGX | buy | 5409.209226 |
80
+ | GBP | UGX | reference | 5416.4499045 |
81
+ | GBP | UGX | sell | 5423.6906 |
82
+ | INR | UGX | buy | 42.622281 |
83
+ | INR | UGX | reference | 42.676731 |
84
+ | INR | UGX | sell | 42.73118 |
85
+ | JPY | UGX | buy | 25.768342 |
86
+ | JPY | UGX | reference | 25.800727 |
87
+ | JPY | UGX | sell | 25.833112 |
88
+ | KES | UGX | buy | 31.417937 |
89
+ | KES | UGX | reference | 31.480711 |
90
+ | KES | UGX | sell | 31.543485 |
91
+ | KMF | UGX | buy | 9.2451749 |
92
+ | KMF | UGX | reference | 9.2775915 |
93
+ | KMF | UGX | sell | 9.3100082 |
94
+ | KRW | UGX | buy | 3.062462 |
95
+ | KRW | UGX | reference | 3.0663291 |
96
+ | KRW | UGX | sell | 3.0701962 |
97
+ | KWD | UGX | buy | 13246.316 |
98
+ | KWD | UGX | reference | 13260.39 |
99
+ | KWD | UGX | sell | 13274.465 |
100
+ | LSL | UGX | buy | 247.33136 |
101
+ | LSL | UGX | reference | 247.82625 |
102
+ | LSL | UGX | sell | 248.32113 |
103
+ | MUR | UGX | buy | 85.595428 |
104
+ | MUR | UGX | reference | 85.971944 |
105
+ | MUR | UGX | sell | 86.348459 |
106
+ | MWK | UGX | buy | 2.3307767 |
107
+ | MWK | UGX | reference | 2.3567658 |
108
+ | MWK | UGX | sell | 2.3827548 |
109
+
110
+ [Full table on the Bank of Uganda rates page](https://allratestoday.com/central-bank-rates-api/bou/) ยท Source: [Official rates published by BOU, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/bou/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
111
+ <!-- daily-table:end -->
112
+
36
113
  ## ๐Ÿ”‘ Get your API key
37
114
 
38
115
  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 +162,10 @@ const pair = await getRate('USD', 'UGX', { apiKey: 'art_live_...' });
85
162
  {
86
163
  bank: 'bou',
87
164
  name: 'Bank of Uganda',
88
- rate_date: '2026-10-08', // Bank of Uganda's own publication date
165
+ rate_date: '2026-10-12', // Bank of Uganda's own publication date
89
166
  source: 'USD',
90
167
  target: 'UGX',
91
- rate: 4050,
168
+ rate: 4086.19,
92
169
  rate_type: 'reference',
93
170
  derived: false,
94
171
  method: 'published',
@@ -113,11 +190,11 @@ console.log(table.rate_date, table.rates.length);
113
190
  {
114
191
  bank: 'bou',
115
192
  name: 'Bank of Uganda',
116
- rate_date: '2026-10-08',
193
+ rate_date: '2026-10-12',
117
194
  rates: [
118
- { "base": "USD", "quote": "UGX", "type": "reference", "value": 4050 },
119
- { "base": "USD", "quote": "UGX", "type": "sell", "value": 4055 },
120
- { "base": "USD", "quote": "UGX", "type": "buy", "value": 4045 },
195
+ { "base": "USD", "quote": "UGX", "type": "reference", "value": 4086.19 },
196
+ { "base": "USD", "quote": "UGX", "type": "sell", "value": 4091.19 },
197
+ { "base": "USD", "quote": "UGX", "type": "buy", "value": 4081.19 },
121
198
  // โ€ฆ the rest of the published table (33 currencies vs UGX)
122
199
  ],
123
200
  disclaimer: 'โ€ฆ'
@@ -157,7 +234,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
157
234
  import { getHistory } from '@allratestoday/bou-exchange-rate';
158
235
 
159
236
  const series = await getHistory(
160
- { source: 'USD', target: 'UGX', from: '2026-01-01', to: '2026-10-08' },
237
+ { source: 'USD', target: 'UGX', from: '2026-01-01', to: '2026-10-12' },
161
238
  { apiKey: 'art_live_...' }
162
239
  );
163
240
  ```
@@ -170,11 +247,11 @@ const series = await getHistory(
170
247
  source: 'USD',
171
248
  target: 'UGX',
172
249
  from: '2026-01-01',
173
- to: '2026-10-08',
250
+ to: '2026-10-12',
174
251
  count: 152,
175
252
  rates: [
176
253
  // one entry per publication date
177
- { date: '2026-10-08', rate: 4050, rate_type: 'reference', derived: false, method: 'published' },
254
+ { date: '2026-10-12', rate: 4086.19, rate_type: 'reference', derived: false, method: 'published' },
178
255
  // โ€ฆ
179
256
  ],
180
257
  disclaimer: 'โ€ฆ'
@@ -225,6 +302,7 @@ curl "https://allratestoday.com/api/v1/central-bank/bou/latest?format=xml&api_ke
225
302
  - 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
226
303
  - 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('bou')` 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
227
304
  - 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 bou ...` command
305
+ - 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`
228
306
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
229
307
 
230
308
  ## โš–๏ธ Published vs derived rates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/bou-exchange-rate",
3
- "version": "1.3.6",
3
+ "version": "1.3.9",
4
4
  "description": "Official Bank of Uganda (Uganda) daily exchange rates โ€” 33 currencies vs UGX, current table, archive from 2026. Zero-dependency Node.js/TypeScript client.",
5
5
  "keywords": [
6
6
  "bou",