@brokerize/client 1.1.2 → 1.1.3
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/README.md +4 -2
- package/dist/authorizedApiContext.d.ts +3 -0
- package/dist/authorizedApiContext.js +9 -0
- package/dist/client.d.ts +474 -79
- package/dist/modelExports.d.ts +6 -0
- package/dist/swagger/apis/DefaultApi.d.ts +37 -3
- package/dist/swagger/apis/DefaultApi.js +121 -2
- package/dist/swagger/models/GetPortfolioTradeStatisticsResponse.d.ts +28 -0
- package/dist/swagger/models/GetPortfolioTradeStatisticsResponse.js +38 -0
- package/dist/swagger/models/GetPortfolioTradesResponse.d.ts +34 -0
- package/dist/swagger/models/GetPortfolioTradesResponse.js +40 -0
- package/dist/swagger/models/SummarizedTrade.d.ts +77 -0
- package/dist/swagger/models/SummarizedTrade.js +56 -0
- package/dist/swagger/models/TokenResponse.d.ts +51 -0
- package/dist/swagger/models/{ObtainToken200Response.js → TokenResponse.js} +6 -6
- package/dist/swagger/models/TradeDraftUpdateParams.d.ts +2 -3
- package/dist/swagger/models/TradeDraftUpdateParams.js +2 -5
- package/dist/swagger/models/TradeStatistics.d.ts +65 -0
- package/dist/swagger/models/TradeStatistics.js +50 -0
- package/dist/swagger/models/TradeStatisticsDateRange.d.ts +39 -0
- package/dist/swagger/models/TradeStatisticsDateRange.js +41 -0
- package/dist/swagger/models/TradeStatisticsHoldingPeriodInDays.d.ts +39 -0
- package/dist/swagger/models/TradeStatisticsHoldingPeriodInDays.js +41 -0
- package/dist/swagger/models/TradeStatisticsItem.d.ts +35 -0
- package/dist/swagger/models/TradeStatisticsItem.js +41 -0
- package/dist/swagger/models/TradeWarning.d.ts +27 -0
- package/dist/swagger/models/TradeWarning.js +37 -0
- package/dist/swagger/models/index.d.ts +9 -2
- package/dist/swagger/models/index.js +9 -2
- package/package.json +1 -1
- package/dist/swagger/models/ObtainToken200Response.d.ts +0 -51
- package/dist/swagger/models/TradeDraftUpdateParamsOrderId.d.ts +0 -21
- package/dist/swagger/models/TradeDraftUpdateParamsOrderId.js +0 -24
|
@@ -0,0 +1,65 @@
|
|
|
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 { TradeStatisticsHoldingPeriodInDays } from "./TradeStatisticsHoldingPeriodInDays";
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TradeStatistics
|
|
16
|
+
*/
|
|
17
|
+
export interface TradeStatistics {
|
|
18
|
+
/**
|
|
19
|
+
* Which fraction of the trades where winners. 1 is 100%, so a value of 1 would indicate
|
|
20
|
+
* "all trades were winners".
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof TradeStatistics
|
|
23
|
+
*/
|
|
24
|
+
hitRate: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {TradeStatisticsHoldingPeriodInDays}
|
|
28
|
+
* @memberof TradeStatistics
|
|
29
|
+
*/
|
|
30
|
+
holdingPeriodInDays: TradeStatisticsHoldingPeriodInDays;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum number of consecutive losing trades in the given list of trades.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof TradeStatistics
|
|
35
|
+
*/
|
|
36
|
+
longestLosingStreak: number;
|
|
37
|
+
/**
|
|
38
|
+
* The maximum number of consecutive winning trades in the given list of trades.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof TradeStatistics
|
|
41
|
+
*/
|
|
42
|
+
longestWinningStreak: number;
|
|
43
|
+
/**
|
|
44
|
+
* How many trades had a negative profit/loss.
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof TradeStatistics
|
|
47
|
+
*/
|
|
48
|
+
loserCount: number;
|
|
49
|
+
/**
|
|
50
|
+
* How many trades are part of the calculation.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof TradeStatistics
|
|
53
|
+
*/
|
|
54
|
+
tradeCount: number;
|
|
55
|
+
/**
|
|
56
|
+
* How many trades had a positive profit/loss.
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof TradeStatistics
|
|
59
|
+
*/
|
|
60
|
+
winnerCount: number;
|
|
61
|
+
}
|
|
62
|
+
export declare function TradeStatisticsFromJSON(json: any): TradeStatistics;
|
|
63
|
+
export declare function TradeStatisticsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeStatistics;
|
|
64
|
+
export declare function TradeStatisticsToJSONRecursive(value?: TradeStatistics | null, ignoreParent?: boolean): any;
|
|
65
|
+
export declare function TradeStatisticsToJSON(value?: TradeStatistics | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { TradeStatisticsHoldingPeriodInDaysFromJSON, TradeStatisticsHoldingPeriodInDaysToJSON, } from "./TradeStatisticsHoldingPeriodInDays";
|
|
14
|
+
export function TradeStatisticsFromJSON(json) {
|
|
15
|
+
return TradeStatisticsFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function TradeStatisticsFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if (json === undefined || json === null) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
hitRate: json["hitRate"],
|
|
23
|
+
holdingPeriodInDays: TradeStatisticsHoldingPeriodInDaysFromJSON(json["holdingPeriodInDays"]),
|
|
24
|
+
longestLosingStreak: json["longestLosingStreak"],
|
|
25
|
+
longestWinningStreak: json["longestWinningStreak"],
|
|
26
|
+
loserCount: json["loserCount"],
|
|
27
|
+
tradeCount: json["tradeCount"],
|
|
28
|
+
winnerCount: json["winnerCount"],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function TradeStatisticsToJSONRecursive(value, ignoreParent = false) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
hitRate: value.hitRate,
|
|
40
|
+
holdingPeriodInDays: TradeStatisticsHoldingPeriodInDaysToJSON(value.holdingPeriodInDays),
|
|
41
|
+
longestLosingStreak: value.longestLosingStreak,
|
|
42
|
+
longestWinningStreak: value.longestWinningStreak,
|
|
43
|
+
loserCount: value.loserCount,
|
|
44
|
+
tradeCount: value.tradeCount,
|
|
45
|
+
winnerCount: value.winnerCount,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function TradeStatisticsToJSON(value) {
|
|
49
|
+
return TradeStatisticsToJSONRecursive(value, false);
|
|
50
|
+
}
|
|
@@ -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 "./
|
|
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 "./
|
|
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,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;
|
|
@@ -1,21 +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 TradeDraftUpdateParamsOrderId
|
|
15
|
-
*/
|
|
16
|
-
export interface TradeDraftUpdateParamsOrderId {
|
|
17
|
-
}
|
|
18
|
-
export declare function TradeDraftUpdateParamsOrderIdFromJSON(json: any): TradeDraftUpdateParamsOrderId;
|
|
19
|
-
export declare function TradeDraftUpdateParamsOrderIdFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeDraftUpdateParamsOrderId;
|
|
20
|
-
export declare function TradeDraftUpdateParamsOrderIdToJSONRecursive(value?: TradeDraftUpdateParamsOrderId | null, ignoreParent?: boolean): any;
|
|
21
|
-
export declare function TradeDraftUpdateParamsOrderIdToJSON(value?: TradeDraftUpdateParamsOrderId | null): any;
|
|
@@ -1,24 +0,0 @@
|
|
|
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 TradeDraftUpdateParamsOrderIdFromJSON(json) {
|
|
14
|
-
return TradeDraftUpdateParamsOrderIdFromJSONTyped(json, false);
|
|
15
|
-
}
|
|
16
|
-
export function TradeDraftUpdateParamsOrderIdFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
-
return json;
|
|
18
|
-
}
|
|
19
|
-
export function TradeDraftUpdateParamsOrderIdToJSONRecursive(value, ignoreParent = false) {
|
|
20
|
-
return value;
|
|
21
|
-
}
|
|
22
|
-
export function TradeDraftUpdateParamsOrderIdToJSON(value) {
|
|
23
|
-
return TradeDraftUpdateParamsOrderIdToJSONRecursive(value, false);
|
|
24
|
-
}
|