@allratestoday/cbo-exchange-rate 1.2.6 → 1.2.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 +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ const pair = await getRate('USD', 'OMR', { apiKey: 'art_live_...' });
|
|
|
70
70
|
{
|
|
71
71
|
bank: 'cbo',
|
|
72
72
|
name: 'Central Bank of Oman',
|
|
73
|
-
rate_date: '2026-08-
|
|
73
|
+
rate_date: '2026-08-24', // Central Bank of Oman's own publication date
|
|
74
74
|
source: 'USD',
|
|
75
75
|
target: 'OMR',
|
|
76
76
|
rate: 0.385,
|
|
@@ -98,7 +98,7 @@ console.log(table.rate_date, table.rates.length);
|
|
|
98
98
|
{
|
|
99
99
|
bank: 'cbo',
|
|
100
100
|
name: 'Central Bank of Oman',
|
|
101
|
-
rate_date: '2026-08-
|
|
101
|
+
rate_date: '2026-08-24',
|
|
102
102
|
rates: [
|
|
103
103
|
{ "base": "USD", "quote": "OMR", "type": "sell", "value": 0.385 },
|
|
104
104
|
{ "base": "USD", "quote": "OMR", "type": "buy", "value": 0.384 },
|
|
@@ -141,7 +141,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
141
141
|
import { getHistory } from '@allratestoday/cbo-exchange-rate';
|
|
142
142
|
|
|
143
143
|
const series = await getHistory(
|
|
144
|
-
{ source: 'USD', target: 'OMR', from: '2026-01-01', to: '2026-08-
|
|
144
|
+
{ source: 'USD', target: 'OMR', from: '2026-01-01', to: '2026-08-24' },
|
|
145
145
|
{ apiKey: 'art_live_...' }
|
|
146
146
|
);
|
|
147
147
|
```
|
|
@@ -154,11 +154,11 @@ const series = await getHistory(
|
|
|
154
154
|
source: 'USD',
|
|
155
155
|
target: 'OMR',
|
|
156
156
|
from: '2026-01-01',
|
|
157
|
-
to: '2026-08-
|
|
157
|
+
to: '2026-08-24',
|
|
158
158
|
count: 152,
|
|
159
159
|
rates: [
|
|
160
160
|
// one entry per publication date
|
|
161
|
-
{ date: '2026-08-
|
|
161
|
+
{ date: '2026-08-24', rate: 0.385, rate_type: 'sell', derived: false, method: 'published' },
|
|
162
162
|
// …
|
|
163
163
|
],
|
|
164
164
|
disclaimer: '…'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/cbo-exchange-rate",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.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",
|