@allratestoday/cbo-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 +83 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
[](https://github.com/AllRates-Today/cbo-exchange-rate/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/@allratestoday/cbo-exchange-rate)
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://allratestoday.com/central-bank-rates-api/cbo/)
|
|
8
|
+
[](https://allratestoday.com/central-bank-rates-api/cbo/)
|
|
7
9
|
|
|
8
10
|
**Official Central Bank of Oman (Oman) 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 Central Bank of Oman 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/cbo/)
|
|
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 Central Bank of Oman โ 96 rates, first 60 shown. Updated 2026-10-12.
|
|
46
|
+
|
|
47
|
+
| Base | Quote | Type | Rate |
|
|
48
|
+
| --- | --- | --- | ---: |
|
|
49
|
+
| AED | OMR | buy | 0.1045438 |
|
|
50
|
+
| AED | OMR | sell | 0.1048218 |
|
|
51
|
+
| AUD | OMR | buy | 0.2680704 |
|
|
52
|
+
| AUD | OMR | sell | 0.268807 |
|
|
53
|
+
| BDT | OMR | buy | 0.003111 |
|
|
54
|
+
| BDT | OMR | sell | 0.0031436 |
|
|
55
|
+
| BHD | OMR | buy | 1.0164108 |
|
|
56
|
+
| BHD | OMR | sell | 1.0195975 |
|
|
57
|
+
| BRL | OMR | buy | 0.0769894 |
|
|
58
|
+
| BRL | OMR | sell | 0.07721 |
|
|
59
|
+
| CAD | OMR | buy | 0.2693225 |
|
|
60
|
+
| CAD | OMR | sell | 0.2700428 |
|
|
61
|
+
| CHF | OMR | buy | 0.4625391 |
|
|
62
|
+
| CHF | OMR | sell | 0.4637995 |
|
|
63
|
+
| CNY | OMR | buy | 0.0573631 |
|
|
64
|
+
| CNY | OMR | sell | 0.0575374 |
|
|
65
|
+
| CZK | OMR | buy | 0.0176508 |
|
|
66
|
+
| CZK | OMR | sell | 0.0177025 |
|
|
67
|
+
| DKK | OMR | buy | 0.0575876 |
|
|
68
|
+
| DKK | OMR | sell | 0.0577419 |
|
|
69
|
+
| EGP | OMR | buy | 0.0073282 |
|
|
70
|
+
| EGP | OMR | sell | 0.0073567 |
|
|
71
|
+
| ETB | OMR | buy | 0.0023852 |
|
|
72
|
+
| ETB | OMR | sell | 0.0023951 |
|
|
73
|
+
| EUR | OMR | buy | 0.4303872 |
|
|
74
|
+
| EUR | OMR | sell | 0.431585 |
|
|
75
|
+
| GBP | OMR | buy | 0.5086464 |
|
|
76
|
+
| GBP | OMR | sell | 0.5100095 |
|
|
77
|
+
| HKD | OMR | buy | 0.0489309 |
|
|
78
|
+
| HKD | OMR | sell | 0.0490596 |
|
|
79
|
+
| IDR | OMR | buy | 0.0000231 |
|
|
80
|
+
| IDR | OMR | sell | 0.0000232 |
|
|
81
|
+
| INR | OMR | buy | 0.0040073 |
|
|
82
|
+
| INR | OMR | sell | 0.0040186 |
|
|
83
|
+
| JOD | OMR | buy | 0.5419901 |
|
|
84
|
+
| JOD | OMR | sell | 0.5440158 |
|
|
85
|
+
| JPY | OMR | buy | 0.0024262 |
|
|
86
|
+
| JPY | OMR | sell | 0.0024327 |
|
|
87
|
+
| KES | OMR | buy | 0.0029566 |
|
|
88
|
+
| KES | OMR | sell | 0.0029704 |
|
|
89
|
+
| KRW | OMR | buy | 0.0002879 |
|
|
90
|
+
| KRW | OMR | sell | 0.0002887 |
|
|
91
|
+
| KWD | OMR | buy | 1.2335368 |
|
|
92
|
+
| KWD | OMR | sell | 1.238659 |
|
|
93
|
+
| LBP | OMR | buy | 0.0000043 |
|
|
94
|
+
| LBP | OMR | sell | 0.0000043 |
|
|
95
|
+
| LKR | OMR | buy | 0.0011609 |
|
|
96
|
+
| LKR | OMR | sell | 0.0011644 |
|
|
97
|
+
| MAD | OMR | buy | 0.0391198 |
|
|
98
|
+
| MAD | OMR | sell | 0.0394568 |
|
|
99
|
+
| MYR | OMR | buy | 0.0940024 |
|
|
100
|
+
| MYR | OMR | sell | 0.0943512 |
|
|
101
|
+
| NOK | OMR | buy | 0.0401585 |
|
|
102
|
+
| NOK | OMR | sell | 0.0402766 |
|
|
103
|
+
| NZD | OMR | buy | 0.2153472 |
|
|
104
|
+
| NZD | OMR | sell | 0.2159465 |
|
|
105
|
+
| PHP | OMR | buy | 0.0061195 |
|
|
106
|
+
| PHP | OMR | sell | 0.0061382 |
|
|
107
|
+
| PKR | OMR | buy | 0.0013843 |
|
|
108
|
+
| PKR | OMR | sell | 0.0013906 |
|
|
109
|
+
|
|
110
|
+
[Full table on the Central Bank of Oman rates page](https://allratestoday.com/central-bank-rates-api/cbo/) ยท Source: [Official rates published by CBO, served by AllRatesToday](https://allratestoday.com/central-bank-rates-api/cbo/). 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,7 +162,7 @@ const pair = await getRate('USD', 'OMR', { apiKey: 'art_live_...' });
|
|
|
85
162
|
{
|
|
86
163
|
bank: 'cbo',
|
|
87
164
|
name: 'Central Bank of Oman',
|
|
88
|
-
rate_date: '2026-10-
|
|
165
|
+
rate_date: '2026-10-12', // Central Bank of Oman's own publication date
|
|
89
166
|
source: 'USD',
|
|
90
167
|
target: 'OMR',
|
|
91
168
|
rate: 0.385,
|
|
@@ -113,7 +190,7 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
190
|
{
|
|
114
191
|
bank: 'cbo',
|
|
115
192
|
name: 'Central Bank of Oman',
|
|
116
|
-
rate_date: '2026-10-
|
|
193
|
+
rate_date: '2026-10-12',
|
|
117
194
|
rates: [
|
|
118
195
|
{ "base": "USD", "quote": "OMR", "type": "sell", "value": 0.385 },
|
|
119
196
|
{ "base": "USD", "quote": "OMR", "type": "buy", "value": 0.384 },
|
|
@@ -156,7 +233,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
156
233
|
import { getHistory } from '@allratestoday/cbo-exchange-rate';
|
|
157
234
|
|
|
158
235
|
const series = await getHistory(
|
|
159
|
-
{ source: 'USD', target: 'OMR', from: '2026-01-01', to: '2026-10-
|
|
236
|
+
{ source: 'USD', target: 'OMR', from: '2026-01-01', to: '2026-10-12' },
|
|
160
237
|
{ apiKey: 'art_live_...' }
|
|
161
238
|
);
|
|
162
239
|
```
|
|
@@ -169,11 +246,11 @@ const series = await getHistory(
|
|
|
169
246
|
source: 'USD',
|
|
170
247
|
target: 'OMR',
|
|
171
248
|
from: '2026-01-01',
|
|
172
|
-
to: '2026-10-
|
|
249
|
+
to: '2026-10-12',
|
|
173
250
|
count: 152,
|
|
174
251
|
rates: [
|
|
175
252
|
// one entry per publication date
|
|
176
|
-
{ date: '2026-10-
|
|
253
|
+
{ date: '2026-10-12', rate: 0.385, rate_type: 'sell', derived: false, method: 'published' },
|
|
177
254
|
// โฆ
|
|
178
255
|
],
|
|
179
256
|
disclaimer: 'โฆ'
|
|
@@ -224,6 +301,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbo/latest?format=xml&api_ke
|
|
|
224
301
|
- 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
302
|
- 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('cbo')` 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
|
|
226
303
|
- 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 cbo ...` command
|
|
304
|
+
- 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`
|
|
227
305
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
228
306
|
|
|
229
307
|
## โ๏ธ Published vs derived rates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/cbo-exchange-rate",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
4
4
|
"description": "Official Central Bank of Oman (Oman) daily exchange rates โ 48 currencies vs OMR, history since 2022. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cbo",
|