@sonarwatch/portfolio-core 0.12.33 → 0.12.34
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/CHANGELOG.md +1851 -1847
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/Portfolio.d.ts +6 -5
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# @sonarwatch/portfolio-core
|
|
2
|
-
|
|
3
|
-
This library is @sonarwatch/portfolio-core
|
|
1
|
+
# @sonarwatch/portfolio-core
|
|
2
|
+
|
|
3
|
+
This library is @sonarwatch/portfolio-core
|
package/package.json
CHANGED
package/src/Portfolio.d.ts
CHANGED
|
@@ -281,11 +281,6 @@ export type PortfolioElementBorrowLendData = {
|
|
|
281
281
|
* The yields generated by the borrowed assets.
|
|
282
282
|
*/
|
|
283
283
|
borrowedYields: Yield[][];
|
|
284
|
-
/**
|
|
285
|
-
* @deprecated
|
|
286
|
-
* The collateral ratio of the portfolio element.
|
|
287
|
-
*/
|
|
288
|
-
collateralRatio: null;
|
|
289
284
|
/**
|
|
290
285
|
* The health ratio of the portfolio element.
|
|
291
286
|
* 1 means full health or no borrow.
|
|
@@ -293,6 +288,12 @@ export type PortfolioElementBorrowLendData = {
|
|
|
293
288
|
* null means unknown.
|
|
294
289
|
*/
|
|
295
290
|
healthRatio: number | null;
|
|
291
|
+
/**
|
|
292
|
+
* Represents the date (in ms) when the loan will expire.
|
|
293
|
+
* If current date is greater than this value, the loan is expired.
|
|
294
|
+
* undefined means the loan has no expiration.
|
|
295
|
+
*/
|
|
296
|
+
expireOn?: number;
|
|
296
297
|
};
|
|
297
298
|
/**
|
|
298
299
|
* Represents a borrow lend portfolio element.
|