@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 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, history and publication calendars sit
286
- behind the free key on `/api/v1/central-bank/{bank}/{date}`; see the
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
@@ -311,7 +311,7 @@ var AllRatesToday = class {
311
311
  from: { currency: r.source, amount: 1 },
312
312
  to: { currency: r.target, amount: r.rate },
313
313
  rate: r.rate,
314
- source: "interbank"
314
+ source: "mid-market"
315
315
  };
316
316
  }
317
317
  return raw;
package/dist/index.mjs CHANGED
@@ -285,7 +285,7 @@ var AllRatesToday = class {
285
285
  from: { currency: r.source, amount: 1 },
286
286
  to: { currency: r.target, amount: r.rate },
287
287
  rate: r.rate,
288
- source: "interbank"
288
+ source: "mid-market"
289
289
  };
290
290
  }
291
291
  return raw;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allratestoday/sdk",
3
- "version": "1.4.7",
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",