cbe-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 +46 -45
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,46 +40,46 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
|
|
|
40
40
|
Today's full Central Bank of Egypt 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 Central Bank of Egypt — 36 rates. Updated 2026-10-12.
|
|
44
44
|
|
|
45
45
|
| Base | Quote | Type | Rate |
|
|
46
46
|
| --- | --- | --- | ---: |
|
|
47
|
-
| AED | EGP | buy | 14.
|
|
48
|
-
| AED | EGP | sell | 14.
|
|
49
|
-
| AUD | EGP | buy | 36.
|
|
50
|
-
| AUD | EGP | sell | 36.
|
|
51
|
-
| BHD | EGP | buy |
|
|
52
|
-
| BHD | EGP | sell | 139.
|
|
53
|
-
| CAD | EGP | buy | 36.
|
|
54
|
-
| CAD | EGP | sell | 36.
|
|
55
|
-
| CHF | EGP | buy |
|
|
56
|
-
| CHF | EGP | sell | 63.
|
|
57
|
-
| CNY | EGP | buy | 7.
|
|
58
|
-
| CNY | EGP | sell | 7.
|
|
59
|
-
| DKK | EGP | buy | 7.
|
|
60
|
-
| DKK | EGP | sell | 7.
|
|
61
|
-
| EUR | EGP | buy | 58.
|
|
62
|
-
| EUR | EGP | sell | 58.
|
|
63
|
-
| GBP | EGP | buy | 69.
|
|
64
|
-
| GBP | EGP | sell | 69.
|
|
65
|
-
| JOD | EGP | buy |
|
|
66
|
-
| JOD | EGP | sell | 74.
|
|
67
|
-
| JPY | EGP | buy | 0.
|
|
68
|
-
| JPY | EGP | sell | 0.
|
|
69
|
-
| KWD | EGP | buy |
|
|
70
|
-
| KWD | EGP | sell |
|
|
71
|
-
| NOK | EGP | buy | 5.
|
|
72
|
-
| NOK | EGP | sell | 5.
|
|
73
|
-
| OMR | EGP | buy |
|
|
74
|
-
| OMR | EGP | sell | 136.
|
|
75
|
-
| QAR | EGP | buy | 14.
|
|
76
|
-
| QAR | EGP | sell | 14.
|
|
77
|
-
| SAR | EGP | buy |
|
|
78
|
-
| SAR | EGP | sell |
|
|
79
|
-
| SEK | EGP | buy | 5.
|
|
80
|
-
| SEK | EGP | sell | 5.
|
|
81
|
-
| USD | EGP | buy | 52.
|
|
82
|
-
| USD | EGP | sell | 52.
|
|
47
|
+
| AED | EGP | buy | 14.3207 |
|
|
48
|
+
| AED | EGP | sell | 14.3588 |
|
|
49
|
+
| AUD | EGP | buy | 36.6473 |
|
|
50
|
+
| AUD | EGP | sell | 36.7651 |
|
|
51
|
+
| BHD | EGP | buy | 139.3227 |
|
|
52
|
+
| BHD | EGP | sell | 139.7641 |
|
|
53
|
+
| CAD | EGP | buy | 36.8718 |
|
|
54
|
+
| CAD | EGP | sell | 36.9742 |
|
|
55
|
+
| CHF | EGP | buy | 63.1241 |
|
|
56
|
+
| CHF | EGP | sell | 63.3133 |
|
|
57
|
+
| CNY | EGP | buy | 7.859 |
|
|
58
|
+
| CNY | EGP | sell | 7.8805 |
|
|
59
|
+
| DKK | EGP | buy | 7.866 |
|
|
60
|
+
| DKK | EGP | sell | 7.8877 |
|
|
61
|
+
| EUR | EGP | buy | 58.7925 |
|
|
62
|
+
| EUR | EGP | sell | 58.958 |
|
|
63
|
+
| GBP | EGP | buy | 69.5862 |
|
|
64
|
+
| GBP | EGP | sell | 69.7856 |
|
|
65
|
+
| JOD | EGP | buy | 74.0863 |
|
|
66
|
+
| JOD | EGP | sell | 74.4915 |
|
|
67
|
+
| JPY | EGP | buy | 0.331576 |
|
|
68
|
+
| JPY | EGP | sell | 0.332514 |
|
|
69
|
+
| KWD | EGP | buy | 170.6726 |
|
|
70
|
+
| KWD | EGP | sell | 171.1782 |
|
|
71
|
+
| NOK | EGP | buy | 5.4914 |
|
|
72
|
+
| NOK | EGP | sell | 5.5063 |
|
|
73
|
+
| OMR | EGP | buy | 136.609 |
|
|
74
|
+
| OMR | EGP | sell | 136.987 |
|
|
75
|
+
| QAR | EGP | buy | 14.4295 |
|
|
76
|
+
| QAR | EGP | sell | 14.4691 |
|
|
77
|
+
| SAR | EGP | buy | 14.0046 |
|
|
78
|
+
| SAR | EGP | sell | 14.0423 |
|
|
79
|
+
| SEK | EGP | buy | 5.2446 |
|
|
80
|
+
| SEK | EGP | sell | 5.2588 |
|
|
81
|
+
| USD | EGP | buy | 52.6013 |
|
|
82
|
+
| USD | EGP | sell | 52.74 |
|
|
83
83
|
|
|
84
84
|
Source: [Official rates published by CBE, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/cbe/). Rates are as printed by the central bank; AllRatesToday is not affiliated with it.
|
|
85
85
|
<!-- daily-table:end -->
|
|
@@ -136,10 +136,10 @@ const pair = await getRate('USD', 'EGP', { apiKey: 'art_live_...' });
|
|
|
136
136
|
{
|
|
137
137
|
bank: 'cbe',
|
|
138
138
|
name: 'Central Bank of Egypt',
|
|
139
|
-
rate_date: '2026-10-
|
|
139
|
+
rate_date: '2026-10-12', // Central Bank of Egypt's own publication date
|
|
140
140
|
source: 'USD',
|
|
141
141
|
target: 'EGP',
|
|
142
|
-
rate: 52.
|
|
142
|
+
rate: 52.74,
|
|
143
143
|
rate_type: 'sell',
|
|
144
144
|
derived: false,
|
|
145
145
|
method: 'published',
|
|
@@ -164,10 +164,10 @@ console.log(table.rate_date, table.rates.length);
|
|
|
164
164
|
{
|
|
165
165
|
bank: 'cbe',
|
|
166
166
|
name: 'Central Bank of Egypt',
|
|
167
|
-
rate_date: '2026-10-
|
|
167
|
+
rate_date: '2026-10-12',
|
|
168
168
|
rates: [
|
|
169
|
-
{ "base": "USD", "quote": "EGP", "type": "sell", "value": 52.
|
|
170
|
-
{ "base": "USD", "quote": "EGP", "type": "buy", "value": 52.
|
|
169
|
+
{ "base": "USD", "quote": "EGP", "type": "sell", "value": 52.74 },
|
|
170
|
+
{ "base": "USD", "quote": "EGP", "type": "buy", "value": 52.6013 },
|
|
171
171
|
// … the rest of the published table (18 currencies vs EGP)
|
|
172
172
|
],
|
|
173
173
|
disclaimer: '…'
|
|
@@ -207,7 +207,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
207
207
|
import { getHistory } from 'cbe-exchange-rate';
|
|
208
208
|
|
|
209
209
|
const series = await getHistory(
|
|
210
|
-
{ source: 'USD', target: 'EGP', from: '2026-01-01', to: '2026-10-
|
|
210
|
+
{ source: 'USD', target: 'EGP', from: '2026-01-01', to: '2026-10-12' },
|
|
211
211
|
{ apiKey: 'art_live_...' }
|
|
212
212
|
);
|
|
213
213
|
```
|
|
@@ -220,11 +220,11 @@ const series = await getHistory(
|
|
|
220
220
|
source: 'USD',
|
|
221
221
|
target: 'EGP',
|
|
222
222
|
from: '2026-01-01',
|
|
223
|
-
to: '2026-10-
|
|
223
|
+
to: '2026-10-12',
|
|
224
224
|
count: 152,
|
|
225
225
|
rates: [
|
|
226
226
|
// one entry per publication date
|
|
227
|
-
{ date: '2026-10-
|
|
227
|
+
{ date: '2026-10-12', rate: 52.74, rate_type: 'sell', derived: false, method: 'published' },
|
|
228
228
|
// …
|
|
229
229
|
],
|
|
230
230
|
disclaimer: '…'
|
|
@@ -274,6 +274,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbe/latest?format=xml&api_ke
|
|
|
274
274
|
- 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
|
|
275
275
|
- 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('cbe')` 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
|
|
276
276
|
- 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 cbe ...` command
|
|
277
|
+
- 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`
|
|
277
278
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) · [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
278
279
|
|
|
279
280
|
## ⚖️ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cbe-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "Official Central Bank of Egypt (Egypt) daily exchange rates — 18 currencies vs EGP, history since 2026. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cbe",
|