@brokerize/client 1.3.4 → 1.3.5
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/dist/client.d.ts
CHANGED
|
@@ -13060,12 +13060,24 @@ declare interface SummarizedTrade {
|
|
|
13060
13060
|
* @memberof SummarizedTrade
|
|
13061
13061
|
*/
|
|
13062
13062
|
profitLossAbs: Amount;
|
|
13063
|
+
/**
|
|
13064
|
+
*
|
|
13065
|
+
* @type {Amount}
|
|
13066
|
+
* @memberof SummarizedTrade
|
|
13067
|
+
*/
|
|
13068
|
+
profitLossAbsAfterFees?: Amount;
|
|
13063
13069
|
/**
|
|
13064
13070
|
*
|
|
13065
13071
|
* @type {number}
|
|
13066
13072
|
* @memberof SummarizedTrade
|
|
13067
13073
|
*/
|
|
13068
13074
|
profitLossRel: number;
|
|
13075
|
+
/**
|
|
13076
|
+
*
|
|
13077
|
+
* @type {number}
|
|
13078
|
+
* @memberof SummarizedTrade
|
|
13079
|
+
*/
|
|
13080
|
+
profitLossRelAfterFees?: number;
|
|
13069
13081
|
/**
|
|
13070
13082
|
*
|
|
13071
13083
|
* @type {Security}
|
|
@@ -64,12 +64,24 @@ export interface SummarizedTrade {
|
|
|
64
64
|
* @memberof SummarizedTrade
|
|
65
65
|
*/
|
|
66
66
|
profitLossAbs: Amount;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Amount}
|
|
70
|
+
* @memberof SummarizedTrade
|
|
71
|
+
*/
|
|
72
|
+
profitLossAbsAfterFees?: Amount;
|
|
67
73
|
/**
|
|
68
74
|
*
|
|
69
75
|
* @type {number}
|
|
70
76
|
* @memberof SummarizedTrade
|
|
71
77
|
*/
|
|
72
78
|
profitLossRel: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof SummarizedTrade
|
|
83
|
+
*/
|
|
84
|
+
profitLossRelAfterFees?: number;
|
|
73
85
|
/**
|
|
74
86
|
*
|
|
75
87
|
* @type {Security}
|
|
@@ -29,7 +29,13 @@ export function SummarizedTradeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
openAvgQuotation: AmountFromJSON(json["openAvgQuotation"]),
|
|
30
30
|
openDateTime: new Date(json["openDateTime"]),
|
|
31
31
|
profitLossAbs: AmountFromJSON(json["profitLossAbs"]),
|
|
32
|
+
profitLossAbsAfterFees: !exists(json, "profitLossAbsAfterFees")
|
|
33
|
+
? undefined
|
|
34
|
+
: AmountFromJSON(json["profitLossAbsAfterFees"]),
|
|
32
35
|
profitLossRel: json["profitLossRel"],
|
|
36
|
+
profitLossRelAfterFees: !exists(json, "profitLossRelAfterFees")
|
|
37
|
+
? undefined
|
|
38
|
+
: json["profitLossRelAfterFees"],
|
|
33
39
|
security: SecurityFromJSON(json["security"]),
|
|
34
40
|
size: AmountFromJSON(json["size"]),
|
|
35
41
|
tax: !exists(json, "tax") ? undefined : AmountFromJSON(json["tax"]),
|
|
@@ -57,7 +63,9 @@ export function SummarizedTradeToJSONRecursive(value, ignoreParent = false) {
|
|
|
57
63
|
openAvgQuotation: AmountToJSON(value.openAvgQuotation),
|
|
58
64
|
openDateTime: value.openDateTime.toISOString(),
|
|
59
65
|
profitLossAbs: AmountToJSON(value.profitLossAbs),
|
|
66
|
+
profitLossAbsAfterFees: AmountToJSON(value.profitLossAbsAfterFees),
|
|
60
67
|
profitLossRel: value.profitLossRel,
|
|
68
|
+
profitLossRelAfterFees: value.profitLossRelAfterFees,
|
|
61
69
|
security: SecurityToJSON(value.security),
|
|
62
70
|
size: AmountToJSON(value.size),
|
|
63
71
|
tax: AmountToJSON(value.tax),
|