@allratestoday/cbo-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.
- package/README.md +81 -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,79 @@ 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 Central Bank of Oman 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 Central Bank of Oman โ 96 rates, first 60 shown. Updated 2026-10-08.
|
|
44
|
+
|
|
45
|
+
| Base | Quote | Type | Rate |
|
|
46
|
+
| --- | --- | --- | ---: |
|
|
47
|
+
| AED | OMR | buy | 0.1045438 |
|
|
48
|
+
| AED | OMR | sell | 0.1048189 |
|
|
49
|
+
| AUD | OMR | buy | 0.2671104 |
|
|
50
|
+
| AUD | OMR | sell | 0.2678445 |
|
|
51
|
+
| BDT | OMR | buy | 0.0031139 |
|
|
52
|
+
| BDT | OMR | sell | 0.0031466 |
|
|
53
|
+
| BHD | OMR | buy | 1.0183786 |
|
|
54
|
+
| BHD | OMR | sell | 1.0212202 |
|
|
55
|
+
| BRL | OMR | buy | 0.0765459 |
|
|
56
|
+
| BRL | OMR | sell | 0.0767651 |
|
|
57
|
+
| CAD | OMR | buy | 0.2692281 |
|
|
58
|
+
| CAD | OMR | sell | 0.2699481 |
|
|
59
|
+
| CHF | OMR | buy | 0.4609844 |
|
|
60
|
+
| CHF | OMR | sell | 0.4622404 |
|
|
61
|
+
| CNY | OMR | buy | 0.0572656 |
|
|
62
|
+
| CNY | OMR | sell | 0.0574455 |
|
|
63
|
+
| CZK | OMR | buy | 0.0176211 |
|
|
64
|
+
| CZK | OMR | sell | 0.0176731 |
|
|
65
|
+
| DKK | OMR | buy | 0.0575531 |
|
|
66
|
+
| DKK | OMR | sell | 0.0577073 |
|
|
67
|
+
| EGP | OMR | buy | 0.0073232 |
|
|
68
|
+
| EGP | OMR | sell | 0.0073548 |
|
|
69
|
+
| ETB | OMR | buy | 0.0023852 |
|
|
70
|
+
| ETB | OMR | sell | 0.0023927 |
|
|
71
|
+
| EUR | OMR | buy | 0.430272 |
|
|
72
|
+
| EUR | OMR | sell | 0.4314695 |
|
|
73
|
+
| GBP | OMR | buy | 0.5071872 |
|
|
74
|
+
| GBP | OMR | sell | 0.5085465 |
|
|
75
|
+
| HKD | OMR | buy | 0.0489303 |
|
|
76
|
+
| HKD | OMR | sell | 0.049059 |
|
|
77
|
+
| IDR | OMR | buy | 0.0000231 |
|
|
78
|
+
| IDR | OMR | sell | 0.0000232 |
|
|
79
|
+
| INR | OMR | buy | 0.0039694 |
|
|
80
|
+
| INR | OMR | sell | 0.00398 |
|
|
81
|
+
| JOD | OMR | buy | 0.5419901 |
|
|
82
|
+
| JOD | OMR | sell | 0.543939 |
|
|
83
|
+
| JPY | OMR | buy | 0.0024276 |
|
|
84
|
+
| JPY | OMR | sell | 0.0024341 |
|
|
85
|
+
| KES | OMR | buy | 0.0029541 |
|
|
86
|
+
| KES | OMR | sell | 0.0029675 |
|
|
87
|
+
| KRW | OMR | buy | 0.0002871 |
|
|
88
|
+
| KRW | OMR | sell | 0.0002879 |
|
|
89
|
+
| KWD | OMR | buy | 1.2354417 |
|
|
90
|
+
| KWD | OMR | sell | 1.2418954 |
|
|
91
|
+
| LBP | OMR | buy | 0.0000043 |
|
|
92
|
+
| LBP | OMR | sell | 0.0000043 |
|
|
93
|
+
| LKR | OMR | buy | 0.0011604 |
|
|
94
|
+
| LKR | OMR | sell | 0.0011639 |
|
|
95
|
+
| MAD | OMR | buy | 0.0385244 |
|
|
96
|
+
| MAD | OMR | sell | 0.0386476 |
|
|
97
|
+
| MYR | OMR | buy | 0.093922 |
|
|
98
|
+
| MYR | OMR | sell | 0.0942588 |
|
|
99
|
+
| NOK | OMR | buy | 0.0401216 |
|
|
100
|
+
| NOK | OMR | sell | 0.0402396 |
|
|
101
|
+
| NZD | OMR | buy | 0.2150784 |
|
|
102
|
+
| NZD | OMR | sell | 0.215677 |
|
|
103
|
+
| PHP | OMR | buy | 0.0061146 |
|
|
104
|
+
| PHP | OMR | sell | 0.006134 |
|
|
105
|
+
| PKR | OMR | buy | 0.0013844 |
|
|
106
|
+
| PKR | OMR | sell | 0.0013905 |
|
|
107
|
+
|
|
108
|
+
[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.
|
|
109
|
+
<!-- daily-table:end -->
|
|
110
|
+
|
|
36
111
|
## ๐ Get your API key
|
|
37
112
|
|
|
38
113
|
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 +160,7 @@ const pair = await getRate('USD', 'OMR', { apiKey: 'art_live_...' });
|
|
|
85
160
|
{
|
|
86
161
|
bank: 'cbo',
|
|
87
162
|
name: 'Central Bank of Oman',
|
|
88
|
-
rate_date: '2026-10-
|
|
163
|
+
rate_date: '2026-10-08', // Central Bank of Oman's own publication date
|
|
89
164
|
source: 'USD',
|
|
90
165
|
target: 'OMR',
|
|
91
166
|
rate: 0.385,
|
|
@@ -113,7 +188,7 @@ console.log(table.rate_date, table.rates.length);
|
|
|
113
188
|
{
|
|
114
189
|
bank: 'cbo',
|
|
115
190
|
name: 'Central Bank of Oman',
|
|
116
|
-
rate_date: '2026-10-
|
|
191
|
+
rate_date: '2026-10-08',
|
|
117
192
|
rates: [
|
|
118
193
|
{ "base": "USD", "quote": "OMR", "type": "sell", "value": 0.385 },
|
|
119
194
|
{ "base": "USD", "quote": "OMR", "type": "buy", "value": 0.384 },
|
|
@@ -156,7 +231,7 @@ Paid plans. One resolved rate per publication date โ ready for charting, reval
|
|
|
156
231
|
import { getHistory } from '@allratestoday/cbo-exchange-rate';
|
|
157
232
|
|
|
158
233
|
const series = await getHistory(
|
|
159
|
-
{ source: 'USD', target: 'OMR', from: '2026-01-01', to: '2026-10-
|
|
234
|
+
{ source: 'USD', target: 'OMR', from: '2026-01-01', to: '2026-10-08' },
|
|
160
235
|
{ apiKey: 'art_live_...' }
|
|
161
236
|
);
|
|
162
237
|
```
|
|
@@ -169,11 +244,11 @@ const series = await getHistory(
|
|
|
169
244
|
source: 'USD',
|
|
170
245
|
target: 'OMR',
|
|
171
246
|
from: '2026-01-01',
|
|
172
|
-
to: '2026-10-
|
|
247
|
+
to: '2026-10-08',
|
|
173
248
|
count: 152,
|
|
174
249
|
rates: [
|
|
175
250
|
// one entry per publication date
|
|
176
|
-
{ date: '2026-10-
|
|
251
|
+
{ date: '2026-10-08', rate: 0.385, rate_type: 'sell', derived: false, method: 'published' },
|
|
177
252
|
// โฆ
|
|
178
253
|
],
|
|
179
254
|
disclaimer: 'โฆ'
|
|
@@ -223,6 +298,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbo/latest?format=xml&api_ke
|
|
|
223
298
|
|
|
224
299
|
- 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
300
|
- 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
|
|
301
|
+
- 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
|
|
226
302
|
- Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
|
|
227
303
|
|
|
228
304
|
## โ๏ธ 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.7",
|
|
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",
|