@sonarwatch/portfolio-core 0.16.84 → 0.16.85
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 +16 -0
- package/package.json +1 -1
- package/src/Portfolio.d.ts +19 -1
- package/src/Portfolio.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.16.85](https://github.com/sonarwatch/portfolio/compare/core-0.16.84...core-0.16.85) (2025-11-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **core:** remove unused 'prediction' element from PortfolioElementType ([6f61484](https://github.com/sonarwatch/portfolio/commit/6f61484f906c78ded92791fbe5cb26df6d27b6fb))
|
|
11
|
+
* **plugins+core:** rename `side` to `sideName` in prediction attributes ([6fb7c69](https://github.com/sonarwatch/portfolio/commit/6fb7c69a91189d576ac57279c21fa1253700723d))
|
|
12
|
+
* **plugins:** rename isYes to side ([c2f6ecf](https://github.com/sonarwatch/portfolio/commit/c2f6ecf2a44330d1cd6e91904f7fdd5ac3015f15))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **plugins+core:** prediction attributes ([7ecaa2c](https://github.com/sonarwatch/portfolio/commit/7ecaa2cbfe77041998ff60d0bb3aa94f8a751b10))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
5
21
|
## [0.16.84](https://github.com/sonarwatch/portfolio/compare/core-0.16.83...core-0.16.84) (2025-11-07)
|
|
6
22
|
|
|
7
23
|
|
package/package.json
CHANGED
package/src/Portfolio.d.ts
CHANGED
|
@@ -42,6 +42,24 @@ export type PortfolioAssetAttributes = {
|
|
|
42
42
|
address: string;
|
|
43
43
|
yields: Yield[];
|
|
44
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Represents Prediction
|
|
47
|
+
*/
|
|
48
|
+
prediction?: {
|
|
49
|
+
market: {
|
|
50
|
+
marketTitle: string;
|
|
51
|
+
eventTitle?: string;
|
|
52
|
+
closeTime?: number;
|
|
53
|
+
settlementTime?: number;
|
|
54
|
+
};
|
|
55
|
+
sideName: string;
|
|
56
|
+
feesPaidValue?: UsdValue;
|
|
57
|
+
pnlValue?: UsdValue;
|
|
58
|
+
pnlPercent?: number;
|
|
59
|
+
pnlAfterFeesValue?: UsdValue;
|
|
60
|
+
pnlAfterFeesPercent?: number;
|
|
61
|
+
createdAt?: number;
|
|
62
|
+
};
|
|
45
63
|
};
|
|
46
64
|
/**
|
|
47
65
|
* Represents the type of a portfolio element.
|
|
@@ -293,7 +311,7 @@ export declare enum LeverageSide {
|
|
|
293
311
|
}
|
|
294
312
|
export type IsoLevPosition = {
|
|
295
313
|
/**
|
|
296
|
-
* Address of the
|
|
314
|
+
* Address of the leveraged asset if it exist
|
|
297
315
|
*/
|
|
298
316
|
address?: string;
|
|
299
317
|
name?: string;
|
package/src/Portfolio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"Portfolio.js","sourceRoot":"","sources":["../../../../packages/core/src/Portfolio.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AAwEX;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAClC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAwRX,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|