@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.
- package/README.md +87 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/bou-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/@allratestoday/bou-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/bou/)
|
|
8
|
+
[](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
|
+
[](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-
|
|
165
|
+
rate_date: '2026-10-12', // Bank of Uganda's own publication date
|
|
89
166
|
source: 'USD',
|
|
90
167
|
target: 'UGX',
|
|
91
|
-
rate:
|
|
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-
|
|
193
|
+
rate_date: '2026-10-12',
|
|
117
194
|
rates: [
|
|
118
|
-
{ "base": "USD", "quote": "UGX", "type": "reference", "value":
|
|
119
|
-
{ "base": "USD", "quote": "UGX", "type": "sell", "value":
|
|
120
|
-
{ "base": "USD", "quote": "UGX", "type": "buy", "value":
|
|
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-
|
|
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-
|
|
250
|
+
to: '2026-10-12',
|
|
174
251
|
count: 152,
|
|
175
252
|
rates: [
|
|
176
253
|
// one entry per publication date
|
|
177
|
-
{ date: '2026-10-
|
|
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.
|
|
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",
|