@brokerize/client 1.1.2 → 1.1.4

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.
Files changed (33) hide show
  1. package/README.md +4 -2
  2. package/dist/authorizedApiContext.d.ts +3 -0
  3. package/dist/authorizedApiContext.js +9 -0
  4. package/dist/client.d.ts +530 -79
  5. package/dist/modelExports.d.ts +6 -0
  6. package/dist/swagger/apis/DefaultApi.d.ts +38 -3
  7. package/dist/swagger/apis/DefaultApi.js +124 -2
  8. package/dist/swagger/models/GetPortfolioTradeStatisticsResponse.d.ts +28 -0
  9. package/dist/swagger/models/GetPortfolioTradeStatisticsResponse.js +38 -0
  10. package/dist/swagger/models/GetPortfolioTradesResponse.d.ts +34 -0
  11. package/dist/swagger/models/GetPortfolioTradesResponse.js +40 -0
  12. package/dist/swagger/models/SummarizedTrade.d.ts +89 -0
  13. package/dist/swagger/models/SummarizedTrade.js +60 -0
  14. package/dist/swagger/models/TokenResponse.d.ts +51 -0
  15. package/dist/swagger/models/{ObtainToken200Response.js → TokenResponse.js} +6 -6
  16. package/dist/swagger/models/TradeDraftUpdateParams.d.ts +2 -3
  17. package/dist/swagger/models/TradeDraftUpdateParams.js +2 -5
  18. package/dist/swagger/models/TradeStatistics.d.ts +110 -0
  19. package/dist/swagger/models/TradeStatistics.js +81 -0
  20. package/dist/swagger/models/TradeStatisticsDateRange.d.ts +39 -0
  21. package/dist/swagger/models/TradeStatisticsDateRange.js +41 -0
  22. package/dist/swagger/models/TradeStatisticsHoldingPeriodInDays.d.ts +39 -0
  23. package/dist/swagger/models/TradeStatisticsHoldingPeriodInDays.js +41 -0
  24. package/dist/swagger/models/TradeStatisticsItem.d.ts +35 -0
  25. package/dist/swagger/models/TradeStatisticsItem.js +41 -0
  26. package/dist/swagger/models/TradeWarning.d.ts +27 -0
  27. package/dist/swagger/models/TradeWarning.js +37 -0
  28. package/dist/swagger/models/index.d.ts +9 -2
  29. package/dist/swagger/models/index.js +9 -2
  30. package/package.json +1 -1
  31. package/dist/swagger/models/ObtainToken200Response.d.ts +0 -51
  32. package/dist/swagger/models/TradeDraftUpdateParamsOrderId.d.ts +0 -21
  33. package/dist/swagger/models/TradeDraftUpdateParamsOrderId.js +0 -24
@@ -11,7 +11,6 @@
11
11
  * Do not edit the class manually.
12
12
  */
13
13
  import { exists } from "../runtime";
14
- import { TradeDraftUpdateParamsOrderIdFromJSON, TradeDraftUpdateParamsOrderIdToJSON, } from "./TradeDraftUpdateParamsOrderId";
15
14
  export function TradeDraftUpdateParamsFromJSON(json) {
16
15
  return TradeDraftUpdateParamsFromJSONTyped(json, false);
17
16
  }
@@ -22,9 +21,7 @@ export function TradeDraftUpdateParamsFromJSONTyped(json, ignoreDiscriminator) {
22
21
  return {
23
22
  description: !exists(json, "description") ? undefined : json["description"],
24
23
  inactive: !exists(json, "inactive") ? undefined : json["inactive"],
25
- orderId: !exists(json, "orderId")
26
- ? undefined
27
- : TradeDraftUpdateParamsOrderIdFromJSON(json["orderId"]),
24
+ orderId: !exists(json, "orderId") ? undefined : json["orderId"],
28
25
  };
29
26
  }
30
27
  export function TradeDraftUpdateParamsToJSONRecursive(value, ignoreParent = false) {
@@ -37,7 +34,7 @@ export function TradeDraftUpdateParamsToJSONRecursive(value, ignoreParent = fals
37
34
  return {
38
35
  description: value.description,
39
36
  inactive: value.inactive,
40
- orderId: TradeDraftUpdateParamsOrderIdToJSON(value.orderId),
37
+ orderId: value.orderId,
41
38
  };
42
39
  }
43
40
  export function TradeDraftUpdateParamsToJSON(value) {
@@ -0,0 +1,110 @@
1
+ /**
2
+ * brokerize
3
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
4
+ *
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import { Amount } from "./Amount";
12
+ import { SummarizedTrade } from "./SummarizedTrade";
13
+ import { TradeStatisticsHoldingPeriodInDays } from "./TradeStatisticsHoldingPeriodInDays";
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface TradeStatistics
18
+ */
19
+ export interface TradeStatistics {
20
+ /**
21
+ *
22
+ * @type {Amount}
23
+ * @memberof TradeStatistics
24
+ */
25
+ avgLossAbs?: Amount;
26
+ /**
27
+ *
28
+ * @type {Amount}
29
+ * @memberof TradeStatistics
30
+ */
31
+ avgProfitAbs?: Amount;
32
+ /**
33
+ *
34
+ * @type {Amount}
35
+ * @memberof TradeStatistics
36
+ */
37
+ avgProfitLossAbs?: Amount;
38
+ /**
39
+ *
40
+ * @type {SummarizedTrade}
41
+ * @memberof TradeStatistics
42
+ */
43
+ bestTrade?: SummarizedTrade;
44
+ /**
45
+ * Which fraction of the trades where winners. 1 is 100%, so a value of 1 would indicate
46
+ * "all trades were winners".
47
+ * @type {number}
48
+ * @memberof TradeStatistics
49
+ */
50
+ hitRate: number;
51
+ /**
52
+ *
53
+ * @type {TradeStatisticsHoldingPeriodInDays}
54
+ * @memberof TradeStatistics
55
+ */
56
+ holdingPeriodInDays: TradeStatisticsHoldingPeriodInDays;
57
+ /**
58
+ * The maximum number of consecutive losing trades in the given list of trades.
59
+ * @type {number}
60
+ * @memberof TradeStatistics
61
+ */
62
+ longestLosingStreak: number;
63
+ /**
64
+ * The maximum number of consecutive winning trades in the given list of trades.
65
+ * @type {number}
66
+ * @memberof TradeStatistics
67
+ */
68
+ longestWinningStreak: number;
69
+ /**
70
+ * How many trades had a negative profit/loss.
71
+ * @type {number}
72
+ * @memberof TradeStatistics
73
+ */
74
+ loserCount: number;
75
+ /**
76
+ * Profits/Losses. E.g. if there were 2000€ profits in winning trades and 1000€ losses in losing trades,
77
+ * the profitFactor would be 2000€ / 1000€ = 2.
78
+ * @type {number}
79
+ * @memberof TradeStatistics
80
+ */
81
+ profitFactor?: number;
82
+ /**
83
+ *
84
+ * @type {Amount}
85
+ * @memberof TradeStatistics
86
+ */
87
+ profitLossAbs?: Amount;
88
+ /**
89
+ * How many trades are part of the calculation.
90
+ * @type {number}
91
+ * @memberof TradeStatistics
92
+ */
93
+ tradeCount: number;
94
+ /**
95
+ * How many trades had a positive profit/loss.
96
+ * @type {number}
97
+ * @memberof TradeStatistics
98
+ */
99
+ winnerCount: number;
100
+ /**
101
+ *
102
+ * @type {SummarizedTrade}
103
+ * @memberof TradeStatistics
104
+ */
105
+ worstTrade?: SummarizedTrade;
106
+ }
107
+ export declare function TradeStatisticsFromJSON(json: any): TradeStatistics;
108
+ export declare function TradeStatisticsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeStatistics;
109
+ export declare function TradeStatisticsToJSONRecursive(value?: TradeStatistics | null, ignoreParent?: boolean): any;
110
+ export declare function TradeStatisticsToJSON(value?: TradeStatistics | null): any;
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * brokerize
5
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
6
+ *
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ import { exists } from "../runtime";
14
+ import { AmountFromJSON, AmountToJSON, } from "./Amount";
15
+ import { SummarizedTradeFromJSON, SummarizedTradeToJSON, } from "./SummarizedTrade";
16
+ import { TradeStatisticsHoldingPeriodInDaysFromJSON, TradeStatisticsHoldingPeriodInDaysToJSON, } from "./TradeStatisticsHoldingPeriodInDays";
17
+ export function TradeStatisticsFromJSON(json) {
18
+ return TradeStatisticsFromJSONTyped(json, false);
19
+ }
20
+ export function TradeStatisticsFromJSONTyped(json, ignoreDiscriminator) {
21
+ if (json === undefined || json === null) {
22
+ return json;
23
+ }
24
+ return {
25
+ avgLossAbs: !exists(json, "avgLossAbs")
26
+ ? undefined
27
+ : AmountFromJSON(json["avgLossAbs"]),
28
+ avgProfitAbs: !exists(json, "avgProfitAbs")
29
+ ? undefined
30
+ : AmountFromJSON(json["avgProfitAbs"]),
31
+ avgProfitLossAbs: !exists(json, "avgProfitLossAbs")
32
+ ? undefined
33
+ : AmountFromJSON(json["avgProfitLossAbs"]),
34
+ bestTrade: !exists(json, "bestTrade")
35
+ ? undefined
36
+ : SummarizedTradeFromJSON(json["bestTrade"]),
37
+ hitRate: json["hitRate"],
38
+ holdingPeriodInDays: TradeStatisticsHoldingPeriodInDaysFromJSON(json["holdingPeriodInDays"]),
39
+ longestLosingStreak: json["longestLosingStreak"],
40
+ longestWinningStreak: json["longestWinningStreak"],
41
+ loserCount: json["loserCount"],
42
+ profitFactor: !exists(json, "profitFactor")
43
+ ? undefined
44
+ : json["profitFactor"],
45
+ profitLossAbs: !exists(json, "profitLossAbs")
46
+ ? undefined
47
+ : AmountFromJSON(json["profitLossAbs"]),
48
+ tradeCount: json["tradeCount"],
49
+ winnerCount: json["winnerCount"],
50
+ worstTrade: !exists(json, "worstTrade")
51
+ ? undefined
52
+ : SummarizedTradeFromJSON(json["worstTrade"]),
53
+ };
54
+ }
55
+ export function TradeStatisticsToJSONRecursive(value, ignoreParent = false) {
56
+ if (value === undefined) {
57
+ return undefined;
58
+ }
59
+ if (value === null) {
60
+ return null;
61
+ }
62
+ return {
63
+ avgLossAbs: AmountToJSON(value.avgLossAbs),
64
+ avgProfitAbs: AmountToJSON(value.avgProfitAbs),
65
+ avgProfitLossAbs: AmountToJSON(value.avgProfitLossAbs),
66
+ bestTrade: SummarizedTradeToJSON(value.bestTrade),
67
+ hitRate: value.hitRate,
68
+ holdingPeriodInDays: TradeStatisticsHoldingPeriodInDaysToJSON(value.holdingPeriodInDays),
69
+ longestLosingStreak: value.longestLosingStreak,
70
+ longestWinningStreak: value.longestWinningStreak,
71
+ loserCount: value.loserCount,
72
+ profitFactor: value.profitFactor,
73
+ profitLossAbs: AmountToJSON(value.profitLossAbs),
74
+ tradeCount: value.tradeCount,
75
+ winnerCount: value.winnerCount,
76
+ worstTrade: SummarizedTradeToJSON(value.worstTrade),
77
+ };
78
+ }
79
+ export function TradeStatisticsToJSON(value) {
80
+ return TradeStatisticsToJSONRecursive(value, false);
81
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * brokerize
3
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
4
+ *
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ /**
12
+ *
13
+ * @export
14
+ * @interface TradeStatisticsDateRange
15
+ */
16
+ export interface TradeStatisticsDateRange {
17
+ /**
18
+ *
19
+ * @type {string}
20
+ * @memberof TradeStatisticsDateRange
21
+ */
22
+ dateString: string;
23
+ /**
24
+ *
25
+ * @type {Date}
26
+ * @memberof TradeStatisticsDateRange
27
+ */
28
+ from: Date;
29
+ /**
30
+ *
31
+ * @type {Date}
32
+ * @memberof TradeStatisticsDateRange
33
+ */
34
+ to: Date;
35
+ }
36
+ export declare function TradeStatisticsDateRangeFromJSON(json: any): TradeStatisticsDateRange;
37
+ export declare function TradeStatisticsDateRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeStatisticsDateRange;
38
+ export declare function TradeStatisticsDateRangeToJSONRecursive(value?: TradeStatisticsDateRange | null, ignoreParent?: boolean): any;
39
+ export declare function TradeStatisticsDateRangeToJSON(value?: TradeStatisticsDateRange | null): any;
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * brokerize
5
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
6
+ *
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ export function TradeStatisticsDateRangeFromJSON(json) {
14
+ return TradeStatisticsDateRangeFromJSONTyped(json, false);
15
+ }
16
+ export function TradeStatisticsDateRangeFromJSONTyped(json, ignoreDiscriminator) {
17
+ if (json === undefined || json === null) {
18
+ return json;
19
+ }
20
+ return {
21
+ dateString: json["dateString"],
22
+ from: new Date(json["from"]),
23
+ to: new Date(json["to"]),
24
+ };
25
+ }
26
+ export function TradeStatisticsDateRangeToJSONRecursive(value, ignoreParent = false) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ dateString: value.dateString,
35
+ from: value.from.toISOString(),
36
+ to: value.to.toISOString(),
37
+ };
38
+ }
39
+ export function TradeStatisticsDateRangeToJSON(value) {
40
+ return TradeStatisticsDateRangeToJSONRecursive(value, false);
41
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * brokerize
3
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
4
+ *
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ /**
12
+ *
13
+ * @export
14
+ * @interface TradeStatisticsHoldingPeriodInDays
15
+ */
16
+ export interface TradeStatisticsHoldingPeriodInDays {
17
+ /**
18
+ * The average holding period in days.
19
+ * @type {number}
20
+ * @memberof TradeStatisticsHoldingPeriodInDays
21
+ */
22
+ average: number;
23
+ /**
24
+ * The maximum holding period in days.
25
+ * @type {number}
26
+ * @memberof TradeStatisticsHoldingPeriodInDays
27
+ */
28
+ max: number;
29
+ /**
30
+ * The minimum holding period in days.
31
+ * @type {number}
32
+ * @memberof TradeStatisticsHoldingPeriodInDays
33
+ */
34
+ min: number;
35
+ }
36
+ export declare function TradeStatisticsHoldingPeriodInDaysFromJSON(json: any): TradeStatisticsHoldingPeriodInDays;
37
+ export declare function TradeStatisticsHoldingPeriodInDaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeStatisticsHoldingPeriodInDays;
38
+ export declare function TradeStatisticsHoldingPeriodInDaysToJSONRecursive(value?: TradeStatisticsHoldingPeriodInDays | null, ignoreParent?: boolean): any;
39
+ export declare function TradeStatisticsHoldingPeriodInDaysToJSON(value?: TradeStatisticsHoldingPeriodInDays | null): any;
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * brokerize
5
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
6
+ *
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ export function TradeStatisticsHoldingPeriodInDaysFromJSON(json) {
14
+ return TradeStatisticsHoldingPeriodInDaysFromJSONTyped(json, false);
15
+ }
16
+ export function TradeStatisticsHoldingPeriodInDaysFromJSONTyped(json, ignoreDiscriminator) {
17
+ if (json === undefined || json === null) {
18
+ return json;
19
+ }
20
+ return {
21
+ average: json["average"],
22
+ max: json["max"],
23
+ min: json["min"],
24
+ };
25
+ }
26
+ export function TradeStatisticsHoldingPeriodInDaysToJSONRecursive(value, ignoreParent = false) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ average: value.average,
35
+ max: value.max,
36
+ min: value.min,
37
+ };
38
+ }
39
+ export function TradeStatisticsHoldingPeriodInDaysToJSON(value) {
40
+ return TradeStatisticsHoldingPeriodInDaysToJSONRecursive(value, false);
41
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * brokerize
3
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
4
+ *
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import { TradeStatistics } from "./TradeStatistics";
12
+ import { TradeStatisticsDateRange } from "./TradeStatisticsDateRange";
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TradeStatisticsItem
17
+ */
18
+ export interface TradeStatisticsItem {
19
+ /**
20
+ *
21
+ * @type {TradeStatisticsDateRange}
22
+ * @memberof TradeStatisticsItem
23
+ */
24
+ dateRange: TradeStatisticsDateRange;
25
+ /**
26
+ *
27
+ * @type {TradeStatistics}
28
+ * @memberof TradeStatisticsItem
29
+ */
30
+ stats: TradeStatistics;
31
+ }
32
+ export declare function TradeStatisticsItemFromJSON(json: any): TradeStatisticsItem;
33
+ export declare function TradeStatisticsItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeStatisticsItem;
34
+ export declare function TradeStatisticsItemToJSONRecursive(value?: TradeStatisticsItem | null, ignoreParent?: boolean): any;
35
+ export declare function TradeStatisticsItemToJSON(value?: TradeStatisticsItem | null): any;
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * brokerize
5
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
6
+ *
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ import { TradeStatisticsFromJSON, TradeStatisticsToJSON, } from "./TradeStatistics";
14
+ import { TradeStatisticsDateRangeFromJSON, TradeStatisticsDateRangeToJSON, } from "./TradeStatisticsDateRange";
15
+ export function TradeStatisticsItemFromJSON(json) {
16
+ return TradeStatisticsItemFromJSONTyped(json, false);
17
+ }
18
+ export function TradeStatisticsItemFromJSONTyped(json, ignoreDiscriminator) {
19
+ if (json === undefined || json === null) {
20
+ return json;
21
+ }
22
+ return {
23
+ dateRange: TradeStatisticsDateRangeFromJSON(json["dateRange"]),
24
+ stats: TradeStatisticsFromJSON(json["stats"]),
25
+ };
26
+ }
27
+ export function TradeStatisticsItemToJSONRecursive(value, ignoreParent = false) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ dateRange: TradeStatisticsDateRangeToJSON(value.dateRange),
36
+ stats: TradeStatisticsToJSON(value.stats),
37
+ };
38
+ }
39
+ export function TradeStatisticsItemToJSON(value) {
40
+ return TradeStatisticsItemToJSONRecursive(value, false);
41
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * brokerize
3
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
4
+ *
5
+ *
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ /**
12
+ *
13
+ * @export
14
+ * @interface TradeWarning
15
+ */
16
+ export interface TradeWarning {
17
+ /**
18
+ *
19
+ * @type {string}
20
+ * @memberof TradeWarning
21
+ */
22
+ message: string;
23
+ }
24
+ export declare function TradeWarningFromJSON(json: any): TradeWarning;
25
+ export declare function TradeWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeWarning;
26
+ export declare function TradeWarningToJSONRecursive(value?: TradeWarning | null, ignoreParent?: boolean): any;
27
+ export declare function TradeWarningToJSON(value?: TradeWarning | null): any;
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * brokerize
5
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
6
+ *
7
+ *
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ export function TradeWarningFromJSON(json) {
14
+ return TradeWarningFromJSONTyped(json, false);
15
+ }
16
+ export function TradeWarningFromJSONTyped(json, ignoreDiscriminator) {
17
+ if (json === undefined || json === null) {
18
+ return json;
19
+ }
20
+ return {
21
+ message: json["message"],
22
+ };
23
+ }
24
+ export function TradeWarningToJSONRecursive(value, ignoreParent = false) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ message: value.message,
33
+ };
34
+ }
35
+ export function TradeWarningToJSON(value) {
36
+ return TradeWarningToJSONRecursive(value, false);
37
+ }
@@ -129,6 +129,8 @@ export * from "./GetOrderResponse";
129
129
  export * from "./GetPortfolioOrdersResponse";
130
130
  export * from "./GetPortfolioPositionsResponse";
131
131
  export * from "./GetPortfolioQuotesResponse";
132
+ export * from "./GetPortfolioTradeStatisticsResponse";
133
+ export * from "./GetPortfolioTradesResponse";
132
134
  export * from "./GetQuoteParams";
133
135
  export * from "./GetQuoteResponse";
134
136
  export * from "./GetUserResponse";
@@ -146,7 +148,6 @@ export * from "./LoginResponseReadySpecifics";
146
148
  export * from "./LoginResponseState";
147
149
  export * from "./MaintenanceStatus";
148
150
  export * from "./OAuthLoginFormConfig";
149
- export * from "./ObtainToken200Response";
150
151
  export * from "./OkResponseBody";
151
152
  export * from "./Order";
152
153
  export * from "./OrderChanges";
@@ -210,13 +211,19 @@ export * from "./SessionSyncInfoSyncedSpecifics";
210
211
  export * from "./SetClientConfigRequest";
211
212
  export * from "./SizeUnitConstraint";
212
213
  export * from "./StringMapByOrderModel";
214
+ export * from "./SummarizedTrade";
213
215
  export * from "./SyncError";
214
216
  export * from "./TakeProfitStopLossCapabilites";
215
217
  export * from "./TakeProfitStopLossDetail";
218
+ export * from "./TokenResponse";
216
219
  export * from "./TradeDraft";
217
220
  export * from "./TradeDraftCreateParams";
218
221
  export * from "./TradeDraftOrderCreate";
219
222
  export * from "./TradeDraftUpdateParams";
220
- export * from "./TradeDraftUpdateParamsOrderId";
223
+ export * from "./TradeStatistics";
224
+ export * from "./TradeStatisticsDateRange";
225
+ export * from "./TradeStatisticsHoldingPeriodInDays";
226
+ export * from "./TradeStatisticsItem";
227
+ export * from "./TradeWarning";
221
228
  export * from "./TrailingDistance";
222
229
  export * from "./ValidationDetail";
@@ -131,6 +131,8 @@ export * from "./GetOrderResponse";
131
131
  export * from "./GetPortfolioOrdersResponse";
132
132
  export * from "./GetPortfolioPositionsResponse";
133
133
  export * from "./GetPortfolioQuotesResponse";
134
+ export * from "./GetPortfolioTradeStatisticsResponse";
135
+ export * from "./GetPortfolioTradesResponse";
134
136
  export * from "./GetQuoteParams";
135
137
  export * from "./GetQuoteResponse";
136
138
  export * from "./GetUserResponse";
@@ -148,7 +150,6 @@ export * from "./LoginResponseReadySpecifics";
148
150
  export * from "./LoginResponseState";
149
151
  export * from "./MaintenanceStatus";
150
152
  export * from "./OAuthLoginFormConfig";
151
- export * from "./ObtainToken200Response";
152
153
  export * from "./OkResponseBody";
153
154
  export * from "./Order";
154
155
  export * from "./OrderChanges";
@@ -212,13 +213,19 @@ export * from "./SessionSyncInfoSyncedSpecifics";
212
213
  export * from "./SetClientConfigRequest";
213
214
  export * from "./SizeUnitConstraint";
214
215
  export * from "./StringMapByOrderModel";
216
+ export * from "./SummarizedTrade";
215
217
  export * from "./SyncError";
216
218
  export * from "./TakeProfitStopLossCapabilites";
217
219
  export * from "./TakeProfitStopLossDetail";
220
+ export * from "./TokenResponse";
218
221
  export * from "./TradeDraft";
219
222
  export * from "./TradeDraftCreateParams";
220
223
  export * from "./TradeDraftOrderCreate";
221
224
  export * from "./TradeDraftUpdateParams";
222
- export * from "./TradeDraftUpdateParamsOrderId";
225
+ export * from "./TradeStatistics";
226
+ export * from "./TradeStatisticsDateRange";
227
+ export * from "./TradeStatisticsHoldingPeriodInDays";
228
+ export * from "./TradeStatisticsItem";
229
+ export * from "./TradeWarning";
223
230
  export * from "./TrailingDistance";
224
231
  export * from "./ValidationDetail";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brokerize/client",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Client for the brokerize.com API",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/brokerize/client-js#readme",
@@ -1,51 +0,0 @@
1
- /**
2
- * brokerize
3
- * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
4
- *
5
- *
6
- *
7
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
- * https://openapi-generator.tech
9
- * Do not edit the class manually.
10
- */
11
- /**
12
- *
13
- * @export
14
- * @interface ObtainToken200Response
15
- */
16
- export interface ObtainToken200Response {
17
- /**
18
- *
19
- * @type {string}
20
- * @memberof ObtainToken200Response
21
- */
22
- accessToken: string;
23
- /**
24
- *
25
- * @type {number}
26
- * @memberof ObtainToken200Response
27
- */
28
- expiresIn: number;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof ObtainToken200Response
33
- */
34
- refreshToken: string;
35
- /**
36
- *
37
- * @type {number}
38
- * @memberof ObtainToken200Response
39
- */
40
- refreshTokenExpiresIn: number;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof ObtainToken200Response
45
- */
46
- tokenType: string;
47
- }
48
- export declare function ObtainToken200ResponseFromJSON(json: any): ObtainToken200Response;
49
- export declare function ObtainToken200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObtainToken200Response;
50
- export declare function ObtainToken200ResponseToJSONRecursive(value?: ObtainToken200Response | null, ignoreParent?: boolean): any;
51
- export declare function ObtainToken200ResponseToJSON(value?: ObtainToken200Response | null): any;