@allratestoday/cbo-exchange-rate 1.3.7 โ†’ 1.3.13

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 +65 -62
  2. package/package.json +11 -3
package/README.md CHANGED
@@ -37,73 +37,75 @@ The open endpoint serves the *latest* table only and asks for a visible attribut
37
37
 
38
38
  ## ๐Ÿ“ˆ Latest published table
39
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.
40
+ [![Latest Central Bank of Oman table](https://allratestoday.com/api/open/central-bank/cbo/table.svg)](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.
41
43
 
42
44
  <!-- daily-table:start -->
43
- Published **2026-10-08** by Central Bank of Oman โ€” 96 rates, first 60 shown. Updated 2026-10-08.
45
+ Published **2026-10-14** by Central Bank of Oman โ€” 96 rates, first 60 shown. Updated 2026-10-14.
44
46
 
45
47
  | Base | Quote | Type | Rate |
46
48
  | --- | --- | --- | ---: |
47
49
  | 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 |
50
+ | AED | OMR | sell | 0.1048218 |
51
+ | AUD | OMR | buy | 0.2687232 |
52
+ | AUD | OMR | sell | 0.2694615 |
53
+ | BDT | OMR | buy | 0.003103 |
54
+ | BDT | OMR | sell | 0.0031263 |
55
+ | BHD | OMR | buy | 1.0162763 |
56
+ | BHD | OMR | sell | 1.0199486 |
57
+ | BRL | OMR | buy | 0.0763784 |
58
+ | BRL | OMR | sell | 0.0765941 |
59
+ | CAD | OMR | buy | 0.2704606 |
60
+ | CAD | OMR | sell | 0.2711841 |
61
+ | CHF | OMR | buy | 0.4615939 |
62
+ | CHF | OMR | sell | 0.4628516 |
63
+ | CNY | OMR | buy | 0.0573682 |
64
+ | CNY | OMR | sell | 0.0575408 |
65
+ | CZK | OMR | buy | 0.0176639 |
66
+ | CZK | OMR | sell | 0.0177157 |
67
+ | DKK | OMR | buy | 0.0575833 |
68
+ | DKK | OMR | sell | 0.0577385 |
69
+ | EGP | OMR | buy | 0.0072618 |
70
+ | EGP | OMR | sell | 0.0072951 |
69
71
  | 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 |
72
+ | ETB | OMR | sell | 0.002392 |
73
+ | EUR | OMR | buy | 0.4304256 |
74
+ | EUR | OMR | sell | 0.431585 |
75
+ | GBP | OMR | buy | 0.5096832 |
76
+ | GBP | OMR | sell | 0.511049 |
77
+ | HKD | OMR | buy | 0.0489272 |
78
+ | HKD | OMR | sell | 0.0490552 |
77
79
  | IDR | OMR | buy | 0.0000231 |
78
80
  | IDR | OMR | sell | 0.0000232 |
79
- | INR | OMR | buy | 0.0039694 |
80
- | INR | OMR | sell | 0.00398 |
81
- | JOD | OMR | buy | 0.5419901 |
81
+ | INR | OMR | buy | 0.004044 |
82
+ | INR | OMR | sell | 0.004055 |
83
+ | JOD | OMR | buy | 0.5409213 |
82
84
  | 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 |
85
+ | JPY | OMR | buy | 0.0024273 |
86
+ | JPY | OMR | sell | 0.0024338 |
87
+ | KES | OMR | buy | 0.0029577 |
88
+ | KES | OMR | sell | 0.0029707 |
89
+ | KRW | OMR | buy | 0.000287 |
90
+ | KRW | OMR | sell | 0.0002878 |
91
+ | KWD | OMR | buy | 1.2304537 |
92
+ | KWD | OMR | sell | 1.2357567 |
91
93
  | LBP | OMR | buy | 0.0000043 |
92
94
  | 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 |
95
+ | LKR | OMR | buy | 0.0011609 |
96
+ | LKR | OMR | sell | 0.0011644 |
97
+ | MAD | OMR | buy | 0.0391997 |
98
+ | MAD | OMR | sell | 0.0393234 |
99
+ | MYR | OMR | buy | 0.0940255 |
100
+ | MYR | OMR | sell | 0.0943512 |
101
+ | NOK | OMR | buy | 0.0404228 |
102
+ | NOK | OMR | sell | 0.0405404 |
103
+ | NZD | OMR | buy | 0.2159616 |
104
+ | NZD | OMR | sell | 0.2165625 |
105
+ | PHP | OMR | buy | 0.0061126 |
106
+ | PHP | OMR | sell | 0.006132 |
107
+ | PKR | OMR | buy | 0.0013834 |
108
+ | PKR | OMR | sell | 0.001391 |
107
109
 
108
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.
109
111
  <!-- daily-table:end -->
@@ -160,7 +162,7 @@ const pair = await getRate('USD', 'OMR', { apiKey: 'art_live_...' });
160
162
  {
161
163
  bank: 'cbo',
162
164
  name: 'Central Bank of Oman',
163
- rate_date: '2026-10-08', // Central Bank of Oman's own publication date
165
+ rate_date: '2026-10-14', // Central Bank of Oman's own publication date
164
166
  source: 'USD',
165
167
  target: 'OMR',
166
168
  rate: 0.385,
@@ -188,7 +190,7 @@ console.log(table.rate_date, table.rates.length);
188
190
  {
189
191
  bank: 'cbo',
190
192
  name: 'Central Bank of Oman',
191
- rate_date: '2026-10-08',
193
+ rate_date: '2026-10-14',
192
194
  rates: [
193
195
  { "base": "USD", "quote": "OMR", "type": "sell", "value": 0.385 },
194
196
  { "base": "USD", "quote": "OMR", "type": "buy", "value": 0.384 },
@@ -231,7 +233,7 @@ Paid plans. One resolved rate per publication date โ€” ready for charting, reval
231
233
  import { getHistory } from '@allratestoday/cbo-exchange-rate';
232
234
 
233
235
  const series = await getHistory(
234
- { source: 'USD', target: 'OMR', from: '2026-01-01', to: '2026-10-08' },
236
+ { source: 'USD', target: 'OMR', from: '2026-01-01', to: '2026-10-14' },
235
237
  { apiKey: 'art_live_...' }
236
238
  );
237
239
  ```
@@ -244,11 +246,11 @@ const series = await getHistory(
244
246
  source: 'USD',
245
247
  target: 'OMR',
246
248
  from: '2026-01-01',
247
- to: '2026-10-08',
249
+ to: '2026-10-14',
248
250
  count: 152,
249
251
  rates: [
250
252
  // one entry per publication date
251
- { date: '2026-10-08', rate: 0.385, rate_type: 'sell', derived: false, method: 'published' },
253
+ { date: '2026-10-14', rate: 0.385, rate_type: 'sell', derived: false, method: 'published' },
252
254
  // โ€ฆ
253
255
  ],
254
256
  disclaimer: 'โ€ฆ'
@@ -299,6 +301,7 @@ curl "https://allratestoday.com/api/v1/central-bank/cbo/latest?format=xml&api_ke
299
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
300
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
301
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`
302
305
  - Machine-readable site guide: [llms.txt](https://allratestoday.com/llms.txt) ยท [for-ai-agents](https://allratestoday.com/for-ai-agents/)
303
306
 
304
307
  ## โš–๏ธ Published vs derived rates
@@ -367,9 +370,9 @@ getRate('USD', 'OMR', { apiKey: 'art_live_...' }).then((pair) => console.log(pai
367
370
 
368
371
  Need the whole archive rather than an API call? The same published tables are mirrored daily as open data:
369
372
 
370
- - Hugging Face: [AllRates/central-bank-exchange-rates](https://huggingface.co/datasets/AllRates/central-bank-exchange-rates) โ€” one CSV per institution (`rates/cbo.csv`)
373
+ - Hugging Face: [AllRatesToday/central-bank-exchange-rates](https://huggingface.co/datasets/AllRatesToday/central-bank-exchange-rates) โ€” one CSV per institution (`rates/cbo.csv`)
371
374
  - Kaggle: [allratestoday/central-bank-exchange-rates](https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates)
372
- - CDN JSON: `https://cdn.jsdelivr.net/gh/AllRates-Today/central-bank-exchange-rates@main/data/cbo/latest.json`
375
+ - Raw JSON on GitHub: `https://raw.githubusercontent.com/AllRates-Today/central-bank-exchange-rates/main/data/cbo/latest.json`
373
376
 
374
377
  ## ๐Ÿ”— Links
375
378
 
package/package.json CHANGED
@@ -1,22 +1,30 @@
1
1
  {
2
2
  "name": "@allratestoday/cbo-exchange-rate",
3
- "version": "1.3.7",
3
+ "version": "1.3.13",
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",
7
+ "central-bank-of-oman",
7
8
  "central",
8
9
  "bank",
9
- "of",
10
10
  "oman",
11
11
  "exchange-rate",
12
12
  "exchange-rates",
13
+ "exchangerate",
14
+ "exchange rate",
15
+ "omr-exchange-rate",
13
16
  "currency",
14
17
  "forex",
15
18
  "fx",
16
19
  "omr",
20
+ "currency-api",
21
+ "currency-exchange-rates",
22
+ "forex-api",
23
+ "currency-conversion",
24
+ "currency-exchange",
25
+ "currency-rates",
17
26
  "central-bank",
18
27
  "official-rates",
19
- "oman",
20
28
  "api",
21
29
  "typescript"
22
30
  ],