@sonarwatch/portfolio-core 0.12.24 → 0.12.25
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 +1811 -1807
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/Portfolio.d.ts +44 -0
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
|
@@ -206,6 +206,50 @@ export type PortfolioElementLiquidity = PortfolioElementCommon & {
|
|
|
206
206
|
type: 'liquidity';
|
|
207
207
|
data: PortfolioElementLiquidityData;
|
|
208
208
|
};
|
|
209
|
+
/**
|
|
210
|
+
* Represents the data of a leverage portfolio element.
|
|
211
|
+
*/
|
|
212
|
+
export type PortfolioElementLeverageData = {
|
|
213
|
+
/**
|
|
214
|
+
* The value of the portfolio element in USD.
|
|
215
|
+
*/
|
|
216
|
+
value: UsdValue;
|
|
217
|
+
/**
|
|
218
|
+
* The leverage of the portfolio element.
|
|
219
|
+
*/
|
|
220
|
+
leverage?: number;
|
|
221
|
+
/**
|
|
222
|
+
* The assets supplied in the portfolio element.
|
|
223
|
+
*/
|
|
224
|
+
suppliedAssets: PortfolioAsset[];
|
|
225
|
+
/**
|
|
226
|
+
* The assets borrowed in the portfolio element.
|
|
227
|
+
*/
|
|
228
|
+
borrowedAssets: PortfolioAsset[];
|
|
229
|
+
/**
|
|
230
|
+
* The assets rewarded in the portfolio element.
|
|
231
|
+
*/
|
|
232
|
+
rewardAssets: PortfolioAsset[];
|
|
233
|
+
/**
|
|
234
|
+
* The value of the assets supplied in USD.
|
|
235
|
+
*/
|
|
236
|
+
suppliedValue: UsdValue;
|
|
237
|
+
/**
|
|
238
|
+
* The value of the assets borrowed in USD.
|
|
239
|
+
*/
|
|
240
|
+
borrowedValue: UsdValue;
|
|
241
|
+
/**
|
|
242
|
+
* The value of the reward assets in USD.
|
|
243
|
+
*/
|
|
244
|
+
rewardValue: UsdValue;
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* Represents a leverage portfolio element.
|
|
248
|
+
*/
|
|
249
|
+
export type PortfolioElementLeverage = PortfolioElementCommon & {
|
|
250
|
+
type: 'leverage';
|
|
251
|
+
data: PortfolioElementLeverageData;
|
|
252
|
+
};
|
|
209
253
|
/**
|
|
210
254
|
* Represents the data of a borrow lend portfolio element.
|
|
211
255
|
*/
|