@allratestoday/sdk 1.4.7 → 1.4.8
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 +4 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -95,6 +95,8 @@ console.log(data);
|
|
|
95
95
|
|
|
96
96
|
### Historical Exchange Rates
|
|
97
97
|
|
|
98
|
+
> Historical methods (`forDate`, `timeSeries`, `getHistoricalRates` and `convert` with a `date`) need a paid plan from €4.99/month. Free and trial keys get latest rates only and receive a 403 `historical_requires_paid_plan` for history.
|
|
99
|
+
|
|
98
100
|
Travel back in time to get rates from any date:
|
|
99
101
|
|
|
100
102
|
```typescript
|
|
@@ -282,8 +284,8 @@ console.log(sources.map((s) => `${s.code} ${s.latest}${s.stale ? ' (stale)' : ''
|
|
|
282
284
|
```
|
|
283
285
|
|
|
284
286
|
Always cite the returned `rate_date` — it is the institution's publication date,
|
|
285
|
-
not the time of your call. Dated tables
|
|
286
|
-
|
|
287
|
+
not the time of your call. Dated tables and history need a paid plan and use
|
|
288
|
+
`/api/v1/central-bank/{bank}/{date}`; publication calendars work on any key. See the
|
|
287
289
|
[central bank rates API](https://allratestoday.com/central-bank-rates-api/).
|
|
288
290
|
|
|
289
291
|
### Historical Rates by Period
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allratestoday/sdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.8",
|
|
4
4
|
"description": "Exchange Rate API — Real-time mid-market currency exchange rates for Node.js and browsers. 160+ currencies, zero dependencies, free tier.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|