@allratestoday/boj-exchange-rate 1.2.2 → 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 +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,10 +70,10 @@ const pair = await getRate('USD', 'JPY', { apiKey: 'art_live_...' });
|
|
|
70
70
|
{
|
|
71
71
|
bank: 'boj',
|
|
72
72
|
name: 'Bank of Japan',
|
|
73
|
-
rate_date: '2026-08-
|
|
73
|
+
rate_date: '2026-08-20', // Bank of Japan's own publication date
|
|
74
74
|
source: 'USD',
|
|
75
75
|
target: 'JPY',
|
|
76
|
-
rate:
|
|
76
|
+
rate: 158.42,
|
|
77
77
|
rate_type: 'middle',
|
|
78
78
|
derived: false,
|
|
79
79
|
method: 'published',
|
|
@@ -98,10 +98,10 @@ console.log(table.rate_date, table.rates.length);
|
|
|
98
98
|
{
|
|
99
99
|
bank: 'boj',
|
|
100
100
|
name: 'Bank of Japan',
|
|
101
|
-
rate_date: '2026-08-
|
|
101
|
+
rate_date: '2026-08-20',
|
|
102
102
|
rates: [
|
|
103
|
-
{ "base": "USD", "quote": "JPY", "type": "middle", "value":
|
|
104
|
-
{ "base": "USD", "quote": "JPY", "type": "spot", "value":
|
|
103
|
+
{ "base": "USD", "quote": "JPY", "type": "middle", "value": 158.42 },
|
|
104
|
+
{ "base": "USD", "quote": "JPY", "type": "spot", "value": 158.45 },
|
|
105
105
|
// … the rest of the published table (1 currency vs JPY)
|
|
106
106
|
],
|
|
107
107
|
disclaimer: '…'
|
|
@@ -141,7 +141,7 @@ Paid plans. One resolved rate per publication date — ready for charting, reval
|
|
|
141
141
|
import { getHistory } from '@allratestoday/boj-exchange-rate';
|
|
142
142
|
|
|
143
143
|
const series = await getHistory(
|
|
144
|
-
{ source: 'USD', target: 'JPY', from: '2026-01-01', to: '2026-08-
|
|
144
|
+
{ source: 'USD', target: 'JPY', from: '2026-01-01', to: '2026-08-20' },
|
|
145
145
|
{ apiKey: 'art_live_...' }
|
|
146
146
|
);
|
|
147
147
|
```
|
|
@@ -154,11 +154,11 @@ const series = await getHistory(
|
|
|
154
154
|
source: 'USD',
|
|
155
155
|
target: 'JPY',
|
|
156
156
|
from: '2026-01-01',
|
|
157
|
-
to: '2026-08-
|
|
157
|
+
to: '2026-08-20',
|
|
158
158
|
count: 152,
|
|
159
159
|
rates: [
|
|
160
160
|
// one entry per publication date
|
|
161
|
-
{ date: '2026-08-
|
|
161
|
+
{ date: '2026-08-20', rate: 158.42, rate_type: 'middle', derived: false, method: 'published' },
|
|
162
162
|
// …
|
|
163
163
|
],
|
|
164
164
|
disclaimer: '…'
|
|
@@ -171,9 +171,9 @@ Pass `{ symbol: 'USD' }` instead of `source`/`target` to get the raw published r
|
|
|
171
171
|
|
|
172
172
|
## 🗺️ Currencies covered
|
|
173
173
|
|
|
174
|
-
Bank of Japan currently publishes rates covering **
|
|
174
|
+
Bank of Japan currently publishes rates covering **1 currency** against the JPY (as of the latest table):
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
🇺🇸 `USD`
|
|
177
177
|
|
|
178
178
|
## ⚖️ Published vs derived rates
|
|
179
179
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/boj-exchange-rate",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "Official Bank of Japan (Japan) daily exchange rates — 1 currency vs JPY, history since 1998. Zero-dependency Node.js/TypeScript client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"boj",
|