@carrot-protocol/boost-http-client 0.4.7-feat-http-client-performance-flow-values-dev-9323814 → 0.4.7-feat-http-client-performance-flow-values-dev-0127d3b

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.
@@ -23,6 +23,8 @@ class PositionChartingExtension extends api_1.ApiClient {
23
23
  netLiabilityBalanceValue: Number(balance.net_liability_balance_value),
24
24
  netValueValue: Number(balance.net_value_value),
25
25
  notionalLeverage: Number(balance.notional_leverage),
26
+ netAssetFlowValue: Number(balance.net_asset_flow_value),
27
+ netLiabilityFlowValue: Number(balance.net_liability_flow_value),
26
28
  }));
27
29
  return response;
28
30
  }
@@ -41,8 +43,6 @@ class PositionChartingExtension extends api_1.ApiClient {
41
43
  costBasis: Number(performance.cost_basis),
42
44
  netValueValue: Number(performance.net_value_value),
43
45
  pnlValue: Number(performance.pnl_value),
44
- netAssetFlowValue: Number(performance.net_asset_flow_value),
45
- netLiabilityFlowValue: Number(performance.net_liability_flow_value),
46
46
  }));
47
47
  return response;
48
48
  }
@@ -4,14 +4,14 @@ export interface LoanBalanceResponse {
4
4
  netLiabilityBalanceValue: number;
5
5
  netValueValue: number;
6
6
  notionalLeverage: number;
7
+ netAssetFlowValue: number;
8
+ netLiabilityFlowValue: number;
7
9
  }
8
10
  export interface PerformanceResponse {
9
11
  time: Date;
10
12
  costBasis: number;
11
13
  netValueValue: number;
12
14
  pnlValue: number;
13
- netAssetFlowValue: number;
14
- netLiabilityFlowValue: number;
15
15
  }
16
16
  export interface ApyResponse {
17
17
  time: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/boost-http-client",
3
- "version": "0.4.7-feat-http-client-performance-flow-values-dev-9323814",
3
+ "version": "0.4.7-feat-http-client-performance-flow-values-dev-0127d3b",
4
4
  "description": "HTTP client for Carrot Boost",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,12 +33,16 @@ export class PositionChartingExtension extends ApiClient {
33
33
  net_liability_balance_value: string;
34
34
  net_value_value: string;
35
35
  notional_leverage: string;
36
+ net_asset_flow_value: string;
37
+ net_liability_flow_value: string;
36
38
  }) => ({
37
39
  time: new Date(balance.time),
38
40
  netAssetBalanceValue: Number(balance.net_asset_balance_value),
39
41
  netLiabilityBalanceValue: Number(balance.net_liability_balance_value),
40
42
  netValueValue: Number(balance.net_value_value),
41
43
  notionalLeverage: Number(balance.notional_leverage),
44
+ netAssetFlowValue: Number(balance.net_asset_flow_value),
45
+ netLiabilityFlowValue: Number(balance.net_liability_flow_value),
42
46
  }),
43
47
  );
44
48
  return response;
@@ -65,15 +69,11 @@ export class PositionChartingExtension extends ApiClient {
65
69
  cost_basis: string;
66
70
  net_value_value: string;
67
71
  pnl_value: string;
68
- net_asset_flow_value: string;
69
- net_liability_flow_value: string;
70
72
  }) => ({
71
73
  time: new Date(performance.time),
72
74
  costBasis: Number(performance.cost_basis),
73
75
  netValueValue: Number(performance.net_value_value),
74
76
  pnlValue: Number(performance.pnl_value),
75
- netAssetFlowValue: Number(performance.net_asset_flow_value),
76
- netLiabilityFlowValue: Number(performance.net_liability_flow_value),
77
77
  }),
78
78
  );
79
79
  return response;
@@ -4,6 +4,8 @@ export interface LoanBalanceResponse {
4
4
  netLiabilityBalanceValue: number;
5
5
  netValueValue: number;
6
6
  notionalLeverage: number;
7
+ netAssetFlowValue: number;
8
+ netLiabilityFlowValue: number;
7
9
  }
8
10
 
9
11
  export interface PerformanceResponse {
@@ -11,8 +13,6 @@ export interface PerformanceResponse {
11
13
  costBasis: number;
12
14
  netValueValue: number;
13
15
  pnlValue: number;
14
- netAssetFlowValue: number;
15
- netLiabilityFlowValue: number;
16
16
  }
17
17
 
18
18
  export interface ApyResponse {