@brokerize/client 1.10.0 → 1.12.0
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 +45 -0
- package/dist/apiCtx.d.ts +10 -2
- package/dist/apiCtx.js +4 -4
- package/dist/authorizedApiContext.d.ts +5 -0
- package/dist/authorizedApiContext.js +12 -4
- package/dist/cjs/apiCtx.d.ts +10 -2
- package/dist/cjs/apiCtx.js +4 -4
- package/dist/cjs/authorizedApiContext.d.ts +5 -0
- package/dist/cjs/authorizedApiContext.js +11 -3
- package/dist/cjs/errors.d.ts +74 -0
- package/dist/cjs/errors.js +95 -1
- package/dist/cjs/index.d.ts +4 -4
- package/dist/cjs/index.js +6 -4
- package/dist/cjs/modelExports.d.ts +3 -0
- package/dist/cjs/modelExports.js +5 -1
- package/dist/cjs/swagger/models/BrokerClientCfg.d.ts +7 -0
- package/dist/cjs/swagger/models/BrokerClientCfg.js +5 -0
- package/dist/cjs/swagger/models/BrokerMeta.d.ts +15 -0
- package/dist/cjs/swagger/models/BrokerMeta.js +2 -0
- package/dist/cjs/swagger/models/ClientConfigUpdateOAuthLoginForm.d.ts +12 -1
- package/dist/cjs/swagger/models/ClientConfigUpdateOAuthLoginForm.js +2 -0
- package/dist/cjs/swagger/models/OAuthLoginFormConfig.d.ts +12 -1
- package/dist/cjs/swagger/models/OAuthLoginFormConfig.js +2 -0
- package/dist/cjs/swagger/models/Order.d.ts +9 -1
- package/dist/cjs/swagger/models/OrderCreate.d.ts +2 -1
- package/dist/cjs/swagger/models/PortfolioOrderDetailsSyncInfo.d.ts +60 -0
- package/dist/cjs/swagger/models/PortfolioOrderDetailsSyncInfo.js +51 -0
- package/dist/cjs/swagger/models/PortfolioOrderDetailsSyncInfoStatus.d.ts +22 -0
- package/dist/cjs/swagger/models/PortfolioOrderDetailsSyncInfoStatus.js +35 -0
- package/dist/cjs/swagger/models/PortfolioSyncInfoComplete.d.ts +7 -0
- package/dist/cjs/swagger/models/PortfolioSyncInfoComplete.js +6 -0
- package/dist/cjs/swagger/models/PortfolioSyncInfoCompleteSpecifics.d.ts +7 -0
- package/dist/cjs/swagger/models/PortfolioSyncInfoCompleteSpecifics.js +5 -0
- package/dist/cjs/swagger/models/PortfolioSyncInfoIncomplete.d.ts +7 -0
- package/dist/cjs/swagger/models/PortfolioSyncInfoIncomplete.js +6 -0
- package/dist/cjs/swagger/models/PortfolioSyncInfoIncompleteSpecifics.d.ts +7 -0
- package/dist/cjs/swagger/models/PortfolioSyncInfoIncompleteSpecifics.js +5 -0
- package/dist/cjs/swagger/models/SmartbrokerClientCfg.d.ts +27 -0
- package/dist/cjs/swagger/models/SmartbrokerClientCfg.js +46 -0
- package/dist/cjs/swagger/models/SummarizedTrade.d.ts +14 -0
- package/dist/cjs/swagger/models/SummarizedTrade.js +4 -0
- package/dist/cjs/swagger/models/TradeWarning.d.ts +31 -1
- package/dist/cjs/swagger/models/TradeWarning.js +13 -0
- package/dist/cjs/swagger/models/TradeWarningReason.d.ts +46 -0
- package/dist/cjs/swagger/models/TradeWarningReason.js +59 -0
- package/dist/cjs/swagger/models/index.d.ts +4 -0
- package/dist/cjs/swagger/models/index.js +4 -0
- package/dist/cjs/websocketClient.d.ts +109 -2
- package/dist/cjs/websocketClient.js +416 -74
- package/dist/cjs/websocketTypes.d.ts +10 -0
- package/dist/client.d.ts +437 -61
- package/dist/errors.d.ts +74 -0
- package/dist/errors.js +89 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -5
- package/dist/modelExports.d.ts +3 -0
- package/dist/modelExports.js +2 -0
- package/dist/swagger/models/BrokerClientCfg.d.ts +7 -0
- package/dist/swagger/models/BrokerClientCfg.js +5 -0
- package/dist/swagger/models/BrokerMeta.d.ts +15 -0
- package/dist/swagger/models/BrokerMeta.js +2 -0
- package/dist/swagger/models/ClientConfigUpdateOAuthLoginForm.d.ts +12 -1
- package/dist/swagger/models/ClientConfigUpdateOAuthLoginForm.js +2 -0
- package/dist/swagger/models/OAuthLoginFormConfig.d.ts +12 -1
- package/dist/swagger/models/OAuthLoginFormConfig.js +2 -0
- package/dist/swagger/models/Order.d.ts +9 -1
- package/dist/swagger/models/OrderCreate.d.ts +2 -1
- package/dist/swagger/models/PortfolioOrderDetailsSyncInfo.d.ts +60 -0
- package/dist/swagger/models/PortfolioOrderDetailsSyncInfo.js +45 -0
- package/dist/swagger/models/PortfolioOrderDetailsSyncInfoStatus.d.ts +22 -0
- package/dist/swagger/models/PortfolioOrderDetailsSyncInfoStatus.js +29 -0
- package/dist/swagger/models/PortfolioSyncInfoComplete.d.ts +7 -0
- package/dist/swagger/models/PortfolioSyncInfoComplete.js +6 -0
- package/dist/swagger/models/PortfolioSyncInfoCompleteSpecifics.d.ts +7 -0
- package/dist/swagger/models/PortfolioSyncInfoCompleteSpecifics.js +5 -0
- package/dist/swagger/models/PortfolioSyncInfoIncomplete.d.ts +7 -0
- package/dist/swagger/models/PortfolioSyncInfoIncomplete.js +6 -0
- package/dist/swagger/models/PortfolioSyncInfoIncompleteSpecifics.d.ts +7 -0
- package/dist/swagger/models/PortfolioSyncInfoIncompleteSpecifics.js +5 -0
- package/dist/swagger/models/SmartbrokerClientCfg.d.ts +27 -0
- package/dist/swagger/models/SmartbrokerClientCfg.js +40 -0
- package/dist/swagger/models/SummarizedTrade.d.ts +14 -0
- package/dist/swagger/models/SummarizedTrade.js +4 -0
- package/dist/swagger/models/TradeWarning.d.ts +31 -1
- package/dist/swagger/models/TradeWarning.js +13 -0
- package/dist/swagger/models/TradeWarningReason.d.ts +46 -0
- package/dist/swagger/models/TradeWarningReason.js +53 -0
- package/dist/swagger/models/index.d.ts +4 -0
- package/dist/swagger/models/index.js +4 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/websocketClient.d.ts +109 -2
- package/dist/websocketClient.js +416 -74
- package/dist/websocketTypes.d.ts +10 -0
- package/package.json +11 -10
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* https://openapi-generator.tech
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
|
+
import { PortfolioOrderDetailsSyncInfo } from "./PortfolioOrderDetailsSyncInfo";
|
|
11
12
|
/**
|
|
12
13
|
*
|
|
13
14
|
* @export
|
|
@@ -26,6 +27,12 @@ export interface PortfolioSyncInfoComplete {
|
|
|
26
27
|
* @memberof PortfolioSyncInfoComplete
|
|
27
28
|
*/
|
|
28
29
|
lastSync: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {PortfolioOrderDetailsSyncInfo}
|
|
33
|
+
* @memberof PortfolioSyncInfoComplete
|
|
34
|
+
*/
|
|
35
|
+
orderDetails?: PortfolioOrderDetailsSyncInfo;
|
|
29
36
|
}
|
|
30
37
|
/**
|
|
31
38
|
* @export
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* https://openapi-generator.tech
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
|
+
import { exists } from "../runtime.js";
|
|
14
|
+
import { PortfolioOrderDetailsSyncInfoFromJSON, PortfolioOrderDetailsSyncInfoToJSON, } from "./PortfolioOrderDetailsSyncInfo.js";
|
|
13
15
|
/**
|
|
14
16
|
* @export
|
|
15
17
|
*/
|
|
@@ -26,6 +28,9 @@ export function PortfolioSyncInfoCompleteFromJSONTyped(json, ignoreDiscriminator
|
|
|
26
28
|
return {
|
|
27
29
|
status: json["status"],
|
|
28
30
|
lastSync: new Date(json["lastSync"]),
|
|
31
|
+
orderDetails: !exists(json, "orderDetails")
|
|
32
|
+
? undefined
|
|
33
|
+
: PortfolioOrderDetailsSyncInfoFromJSON(json["orderDetails"]),
|
|
29
34
|
};
|
|
30
35
|
}
|
|
31
36
|
export function PortfolioSyncInfoCompleteToJSONRecursive(value, ignoreParent = false) {
|
|
@@ -38,6 +43,7 @@ export function PortfolioSyncInfoCompleteToJSONRecursive(value, ignoreParent = f
|
|
|
38
43
|
return {
|
|
39
44
|
status: value.status,
|
|
40
45
|
lastSync: value.lastSync.toISOString(),
|
|
46
|
+
orderDetails: PortfolioOrderDetailsSyncInfoToJSON(value.orderDetails),
|
|
41
47
|
};
|
|
42
48
|
}
|
|
43
49
|
export function PortfolioSyncInfoCompleteToJSON(value) {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* https://openapi-generator.tech
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
|
+
import { PortfolioOrderDetailsSyncInfo } from "./PortfolioOrderDetailsSyncInfo";
|
|
11
12
|
/**
|
|
12
13
|
*
|
|
13
14
|
* @export
|
|
@@ -20,6 +21,12 @@ export interface PortfolioSyncInfoCompleteSpecifics {
|
|
|
20
21
|
* @memberof PortfolioSyncInfoCompleteSpecifics
|
|
21
22
|
*/
|
|
22
23
|
lastSync?: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {PortfolioOrderDetailsSyncInfo}
|
|
27
|
+
* @memberof PortfolioSyncInfoCompleteSpecifics
|
|
28
|
+
*/
|
|
29
|
+
orderDetails?: PortfolioOrderDetailsSyncInfo;
|
|
23
30
|
}
|
|
24
31
|
export declare function PortfolioSyncInfoCompleteSpecificsFromJSON(json: any): PortfolioSyncInfoCompleteSpecifics;
|
|
25
32
|
export declare function PortfolioSyncInfoCompleteSpecificsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortfolioSyncInfoCompleteSpecifics;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
import { exists } from "../runtime.js";
|
|
14
|
+
import { PortfolioOrderDetailsSyncInfoFromJSON, PortfolioOrderDetailsSyncInfoToJSON, } from "./PortfolioOrderDetailsSyncInfo.js";
|
|
14
15
|
export function PortfolioSyncInfoCompleteSpecificsFromJSON(json) {
|
|
15
16
|
return PortfolioSyncInfoCompleteSpecificsFromJSONTyped(json, false);
|
|
16
17
|
}
|
|
@@ -22,6 +23,9 @@ export function PortfolioSyncInfoCompleteSpecificsFromJSONTyped(json, ignoreDisc
|
|
|
22
23
|
lastSync: !exists(json, "lastSync")
|
|
23
24
|
? undefined
|
|
24
25
|
: new Date(json["lastSync"]),
|
|
26
|
+
orderDetails: !exists(json, "orderDetails")
|
|
27
|
+
? undefined
|
|
28
|
+
: PortfolioOrderDetailsSyncInfoFromJSON(json["orderDetails"]),
|
|
25
29
|
};
|
|
26
30
|
}
|
|
27
31
|
export function PortfolioSyncInfoCompleteSpecificsToJSONRecursive(value, ignoreParent = false) {
|
|
@@ -33,6 +37,7 @@ export function PortfolioSyncInfoCompleteSpecificsToJSONRecursive(value, ignoreP
|
|
|
33
37
|
}
|
|
34
38
|
return {
|
|
35
39
|
lastSync: value.lastSync === undefined ? undefined : value.lastSync.toISOString(),
|
|
40
|
+
orderDetails: PortfolioOrderDetailsSyncInfoToJSON(value.orderDetails),
|
|
36
41
|
};
|
|
37
42
|
}
|
|
38
43
|
export function PortfolioSyncInfoCompleteSpecificsToJSON(value) {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* https://openapi-generator.tech
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
|
+
import { PortfolioOrderDetailsSyncInfo } from "./PortfolioOrderDetailsSyncInfo";
|
|
11
12
|
/**
|
|
12
13
|
*
|
|
13
14
|
* @export
|
|
@@ -26,6 +27,12 @@ export interface PortfolioSyncInfoIncomplete {
|
|
|
26
27
|
* @memberof PortfolioSyncInfoIncomplete
|
|
27
28
|
*/
|
|
28
29
|
lastSync: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {PortfolioOrderDetailsSyncInfo}
|
|
33
|
+
* @memberof PortfolioSyncInfoIncomplete
|
|
34
|
+
*/
|
|
35
|
+
orderDetails?: PortfolioOrderDetailsSyncInfo;
|
|
29
36
|
}
|
|
30
37
|
/**
|
|
31
38
|
* @export
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* https://openapi-generator.tech
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
|
+
import { exists } from "../runtime.js";
|
|
14
|
+
import { PortfolioOrderDetailsSyncInfoFromJSON, PortfolioOrderDetailsSyncInfoToJSON, } from "./PortfolioOrderDetailsSyncInfo.js";
|
|
13
15
|
/**
|
|
14
16
|
* @export
|
|
15
17
|
*/
|
|
@@ -26,6 +28,9 @@ export function PortfolioSyncInfoIncompleteFromJSONTyped(json, ignoreDiscriminat
|
|
|
26
28
|
return {
|
|
27
29
|
status: json["status"],
|
|
28
30
|
lastSync: new Date(json["lastSync"]),
|
|
31
|
+
orderDetails: !exists(json, "orderDetails")
|
|
32
|
+
? undefined
|
|
33
|
+
: PortfolioOrderDetailsSyncInfoFromJSON(json["orderDetails"]),
|
|
29
34
|
};
|
|
30
35
|
}
|
|
31
36
|
export function PortfolioSyncInfoIncompleteToJSONRecursive(value, ignoreParent = false) {
|
|
@@ -38,6 +43,7 @@ export function PortfolioSyncInfoIncompleteToJSONRecursive(value, ignoreParent =
|
|
|
38
43
|
return {
|
|
39
44
|
status: value.status,
|
|
40
45
|
lastSync: value.lastSync.toISOString(),
|
|
46
|
+
orderDetails: PortfolioOrderDetailsSyncInfoToJSON(value.orderDetails),
|
|
41
47
|
};
|
|
42
48
|
}
|
|
43
49
|
export function PortfolioSyncInfoIncompleteToJSON(value) {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* https://openapi-generator.tech
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
|
+
import { PortfolioOrderDetailsSyncInfo } from "./PortfolioOrderDetailsSyncInfo";
|
|
11
12
|
/**
|
|
12
13
|
*
|
|
13
14
|
* @export
|
|
@@ -20,6 +21,12 @@ export interface PortfolioSyncInfoIncompleteSpecifics {
|
|
|
20
21
|
* @memberof PortfolioSyncInfoIncompleteSpecifics
|
|
21
22
|
*/
|
|
22
23
|
lastSync?: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {PortfolioOrderDetailsSyncInfo}
|
|
27
|
+
* @memberof PortfolioSyncInfoIncompleteSpecifics
|
|
28
|
+
*/
|
|
29
|
+
orderDetails?: PortfolioOrderDetailsSyncInfo;
|
|
23
30
|
}
|
|
24
31
|
export declare function PortfolioSyncInfoIncompleteSpecificsFromJSON(json: any): PortfolioSyncInfoIncompleteSpecifics;
|
|
25
32
|
export declare function PortfolioSyncInfoIncompleteSpecificsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortfolioSyncInfoIncompleteSpecifics;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
import { exists } from "../runtime.js";
|
|
14
|
+
import { PortfolioOrderDetailsSyncInfoFromJSON, PortfolioOrderDetailsSyncInfoToJSON, } from "./PortfolioOrderDetailsSyncInfo.js";
|
|
14
15
|
export function PortfolioSyncInfoIncompleteSpecificsFromJSON(json) {
|
|
15
16
|
return PortfolioSyncInfoIncompleteSpecificsFromJSONTyped(json, false);
|
|
16
17
|
}
|
|
@@ -22,6 +23,9 @@ export function PortfolioSyncInfoIncompleteSpecificsFromJSONTyped(json, ignoreDi
|
|
|
22
23
|
lastSync: !exists(json, "lastSync")
|
|
23
24
|
? undefined
|
|
24
25
|
: new Date(json["lastSync"]),
|
|
26
|
+
orderDetails: !exists(json, "orderDetails")
|
|
27
|
+
? undefined
|
|
28
|
+
: PortfolioOrderDetailsSyncInfoFromJSON(json["orderDetails"]),
|
|
25
29
|
};
|
|
26
30
|
}
|
|
27
31
|
export function PortfolioSyncInfoIncompleteSpecificsToJSONRecursive(value, ignoreParent = false) {
|
|
@@ -33,6 +37,7 @@ export function PortfolioSyncInfoIncompleteSpecificsToJSONRecursive(value, ignor
|
|
|
33
37
|
}
|
|
34
38
|
return {
|
|
35
39
|
lastSync: value.lastSync === undefined ? undefined : value.lastSync.toISOString(),
|
|
40
|
+
orderDetails: PortfolioOrderDetailsSyncInfoToJSON(value.orderDetails),
|
|
36
41
|
};
|
|
37
42
|
}
|
|
38
43
|
export function PortfolioSyncInfoIncompleteSpecificsToJSON(value) {
|
|
@@ -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 SmartbrokerClientCfg
|
|
15
|
+
*/
|
|
16
|
+
export interface SmartbrokerClientCfg {
|
|
17
|
+
/**
|
|
18
|
+
* If the client must use a different broker-provided clientId, it can be configured here.
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof SmartbrokerClientCfg
|
|
21
|
+
*/
|
|
22
|
+
clientIdProd?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function SmartbrokerClientCfgFromJSON(json: any): SmartbrokerClientCfg;
|
|
25
|
+
export declare function SmartbrokerClientCfgFromJSONTyped(json: any, ignoreDiscriminator: boolean): SmartbrokerClientCfg;
|
|
26
|
+
export declare function SmartbrokerClientCfgToJSONRecursive(value?: SmartbrokerClientCfg | null, ignoreParent?: boolean): any;
|
|
27
|
+
export declare function SmartbrokerClientCfgToJSON(value?: SmartbrokerClientCfg | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
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.js";
|
|
14
|
+
export function SmartbrokerClientCfgFromJSON(json) {
|
|
15
|
+
return SmartbrokerClientCfgFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function SmartbrokerClientCfgFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if (json === undefined || json === null) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
clientIdProd: !exists(json, "clientIdProd")
|
|
23
|
+
? undefined
|
|
24
|
+
: json["clientIdProd"],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function SmartbrokerClientCfgToJSONRecursive(value, ignoreParent = false) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
clientIdProd: value.clientIdProd,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function SmartbrokerClientCfgToJSON(value) {
|
|
39
|
+
return SmartbrokerClientCfgToJSONRecursive(value, false);
|
|
40
|
+
}
|
|
@@ -28,6 +28,20 @@ export interface SummarizedTrade {
|
|
|
28
28
|
* @memberof SummarizedTrade
|
|
29
29
|
*/
|
|
30
30
|
closeDateTime: Date;
|
|
31
|
+
/**
|
|
32
|
+
* True if this trade was not closed by a sale but by the instrument being booked out — it knocked
|
|
33
|
+
* out or expired, and the issuer removed the position from the depot without a sell order ever
|
|
34
|
+
* reaching the order archive.
|
|
35
|
+
*
|
|
36
|
+
* The closing execution is therefore synthetic: brokerize derives it from the knock-out date and
|
|
37
|
+
* prices it with the instrument's closing price on that day (0 where none is known, which is the
|
|
38
|
+
* floor rather than a claim — the issuer's buy-back, if there was one, is not in the archive). The
|
|
39
|
+
* P/L is otherwise computed exactly like any other trade's, FIFO-matched against the position's own
|
|
40
|
+
* buys. Absent on an ordinary trade.
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
* @memberof SummarizedTrade
|
|
43
|
+
*/
|
|
44
|
+
closedByKnockOut?: boolean;
|
|
31
45
|
/**
|
|
32
46
|
*
|
|
33
47
|
* @type {string}
|
|
@@ -23,6 +23,9 @@ export function SummarizedTradeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
23
|
return {
|
|
24
24
|
closeAvgQuotation: AmountFromJSON(json["closeAvgQuotation"]),
|
|
25
25
|
closeDateTime: new Date(json["closeDateTime"]),
|
|
26
|
+
closedByKnockOut: !exists(json, "closedByKnockOut")
|
|
27
|
+
? undefined
|
|
28
|
+
: json["closedByKnockOut"],
|
|
26
29
|
details: json["details"],
|
|
27
30
|
fees: !exists(json, "fees") ? undefined : AmountFromJSON(json["fees"]),
|
|
28
31
|
id: json["id"],
|
|
@@ -57,6 +60,7 @@ export function SummarizedTradeToJSONRecursive(value, ignoreParent = false) {
|
|
|
57
60
|
return {
|
|
58
61
|
closeAvgQuotation: AmountToJSON(value.closeAvgQuotation),
|
|
59
62
|
closeDateTime: value.closeDateTime.toISOString(),
|
|
63
|
+
closedByKnockOut: value.closedByKnockOut,
|
|
60
64
|
details: value.details,
|
|
61
65
|
fees: AmountToJSON(value.fees),
|
|
62
66
|
id: value.id,
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* https://openapi-generator.tech
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
|
+
import { Security } from "./Security";
|
|
12
|
+
import { TradeWarningReason } from "./TradeWarningReason";
|
|
11
13
|
/**
|
|
12
14
|
*
|
|
13
15
|
* @export
|
|
@@ -15,11 +17,39 @@
|
|
|
15
17
|
*/
|
|
16
18
|
export interface TradeWarning {
|
|
17
19
|
/**
|
|
18
|
-
*
|
|
20
|
+
* Date in the format YYYY-MM-DD for validityType: 'GTD'
|
|
21
|
+
* Date in the format Date ISO string YYYY-MM-DDThh:mm:ss.fffZ for validityType: 'GTDT'
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof TradeWarning
|
|
24
|
+
*/
|
|
25
|
+
fromDate?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Human-readable description, currently German or English depending on where it originates. Meant
|
|
28
|
+
* as a fallback for displaying something at all — a client that knows `reason` should build its
|
|
29
|
+
* own text from the structured fields instead.
|
|
19
30
|
* @type {string}
|
|
20
31
|
* @memberof TradeWarning
|
|
21
32
|
*/
|
|
22
33
|
message: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {TradeWarningReason}
|
|
37
|
+
* @memberof TradeWarning
|
|
38
|
+
*/
|
|
39
|
+
reason: TradeWarningReason;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Security}
|
|
43
|
+
* @memberof TradeWarning
|
|
44
|
+
*/
|
|
45
|
+
security?: Security;
|
|
46
|
+
/**
|
|
47
|
+
* Date in the format YYYY-MM-DD for validityType: 'GTD'
|
|
48
|
+
* Date in the format Date ISO string YYYY-MM-DDThh:mm:ss.fffZ for validityType: 'GTDT'
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof TradeWarning
|
|
51
|
+
*/
|
|
52
|
+
toDate?: string;
|
|
23
53
|
}
|
|
24
54
|
export declare function TradeWarningFromJSON(json: any): TradeWarning;
|
|
25
55
|
export declare function TradeWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeWarning;
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
* https://openapi-generator.tech
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
|
+
import { exists } from "../runtime.js";
|
|
14
|
+
import { SecurityFromJSON, SecurityToJSON, } from "./Security.js";
|
|
15
|
+
import { TradeWarningReasonFromJSON, TradeWarningReasonToJSON, } from "./TradeWarningReason.js";
|
|
13
16
|
export function TradeWarningFromJSON(json) {
|
|
14
17
|
return TradeWarningFromJSONTyped(json, false);
|
|
15
18
|
}
|
|
@@ -18,7 +21,13 @@ export function TradeWarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
21
|
return json;
|
|
19
22
|
}
|
|
20
23
|
return {
|
|
24
|
+
fromDate: !exists(json, "fromDate") ? undefined : json["fromDate"],
|
|
21
25
|
message: json["message"],
|
|
26
|
+
reason: TradeWarningReasonFromJSON(json["reason"]),
|
|
27
|
+
security: !exists(json, "security")
|
|
28
|
+
? undefined
|
|
29
|
+
: SecurityFromJSON(json["security"]),
|
|
30
|
+
toDate: !exists(json, "toDate") ? undefined : json["toDate"],
|
|
22
31
|
};
|
|
23
32
|
}
|
|
24
33
|
export function TradeWarningToJSONRecursive(value, ignoreParent = false) {
|
|
@@ -29,7 +38,11 @@ export function TradeWarningToJSONRecursive(value, ignoreParent = false) {
|
|
|
29
38
|
return null;
|
|
30
39
|
}
|
|
31
40
|
return {
|
|
41
|
+
fromDate: value.fromDate,
|
|
32
42
|
message: value.message,
|
|
43
|
+
reason: TradeWarningReasonToJSON(value.reason),
|
|
44
|
+
security: SecurityToJSON(value.security),
|
|
45
|
+
toDate: value.toDate,
|
|
33
46
|
};
|
|
34
47
|
}
|
|
35
48
|
export function TradeWarningToJSON(value) {
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
* Why a trade or portfolio-history computation could not give a complete answer. Clients switch on
|
|
13
|
+
* this instead of parsing `TradeWarning.message`, which is free text and may change at any time.
|
|
14
|
+
*
|
|
15
|
+
* - `executionsWithoutTimestamp`: order executions carry no execution time, so they cannot be placed
|
|
16
|
+
* on a timeline and were ignored altogether.
|
|
17
|
+
* - `inconsistentOrderHistory`: the executions of one security contradict each other or the reported
|
|
18
|
+
* holding (more sold than ever bought, a quantity that goes negative). Nothing can be reconstructed
|
|
19
|
+
* from them, so the security is left out of the value history and its trades are not reported.
|
|
20
|
+
* - `positionNotFullyExplained`: the order archive covers only part of a position — typical for
|
|
21
|
+
* brokers that return just the most recent weeks. What is held today is known, but its history
|
|
22
|
+
* reaches further back than the executions do.
|
|
23
|
+
* - `missingEodPrice`: no closing price was available for the security on some days; it was valued
|
|
24
|
+
* with the last price known before them.
|
|
25
|
+
* - `missingFxRate`: no exchange rate to the portfolio currency exists for the security's currency, so
|
|
26
|
+
* its amounts are *not* converted and the totals they enter are off by the conversion.
|
|
27
|
+
* - `unknownBuyPrice`: no purchase price could be determined for a position, so it is missing from the
|
|
28
|
+
* buy value (and from the profit it implies).
|
|
29
|
+
* - `realizedPnlUnavailable`: the completed trades could not be computed at all, which leaves the
|
|
30
|
+
* realized profit/loss empty rather than wrong.
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export declare const TradeWarningReason: {
|
|
34
|
+
readonly ExecutionsWithoutTimestamp: "executionsWithoutTimestamp";
|
|
35
|
+
readonly InconsistentOrderHistory: "inconsistentOrderHistory";
|
|
36
|
+
readonly OrderDetailsIncomplete: "orderDetailsIncomplete";
|
|
37
|
+
readonly PositionNotFullyExplained: "positionNotFullyExplained";
|
|
38
|
+
readonly MissingEodPrice: "missingEodPrice";
|
|
39
|
+
readonly MissingFxRate: "missingFxRate";
|
|
40
|
+
readonly UnknownBuyPrice: "unknownBuyPrice";
|
|
41
|
+
readonly RealizedPnlUnavailable: "realizedPnlUnavailable";
|
|
42
|
+
};
|
|
43
|
+
export type TradeWarningReason = (typeof TradeWarningReason)[keyof typeof TradeWarningReason];
|
|
44
|
+
export declare function TradeWarningReasonFromJSON(json: any): TradeWarningReason;
|
|
45
|
+
export declare function TradeWarningReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeWarningReason;
|
|
46
|
+
export declare function TradeWarningReasonToJSON(value?: TradeWarningReason | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
/**
|
|
14
|
+
* Why a trade or portfolio-history computation could not give a complete answer. Clients switch on
|
|
15
|
+
* this instead of parsing `TradeWarning.message`, which is free text and may change at any time.
|
|
16
|
+
*
|
|
17
|
+
* - `executionsWithoutTimestamp`: order executions carry no execution time, so they cannot be placed
|
|
18
|
+
* on a timeline and were ignored altogether.
|
|
19
|
+
* - `inconsistentOrderHistory`: the executions of one security contradict each other or the reported
|
|
20
|
+
* holding (more sold than ever bought, a quantity that goes negative). Nothing can be reconstructed
|
|
21
|
+
* from them, so the security is left out of the value history and its trades are not reported.
|
|
22
|
+
* - `positionNotFullyExplained`: the order archive covers only part of a position — typical for
|
|
23
|
+
* brokers that return just the most recent weeks. What is held today is known, but its history
|
|
24
|
+
* reaches further back than the executions do.
|
|
25
|
+
* - `missingEodPrice`: no closing price was available for the security on some days; it was valued
|
|
26
|
+
* with the last price known before them.
|
|
27
|
+
* - `missingFxRate`: no exchange rate to the portfolio currency exists for the security's currency, so
|
|
28
|
+
* its amounts are *not* converted and the totals they enter are off by the conversion.
|
|
29
|
+
* - `unknownBuyPrice`: no purchase price could be determined for a position, so it is missing from the
|
|
30
|
+
* buy value (and from the profit it implies).
|
|
31
|
+
* - `realizedPnlUnavailable`: the completed trades could not be computed at all, which leaves the
|
|
32
|
+
* realized profit/loss empty rather than wrong.
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const TradeWarningReason = {
|
|
36
|
+
ExecutionsWithoutTimestamp: "executionsWithoutTimestamp",
|
|
37
|
+
InconsistentOrderHistory: "inconsistentOrderHistory",
|
|
38
|
+
OrderDetailsIncomplete: "orderDetailsIncomplete",
|
|
39
|
+
PositionNotFullyExplained: "positionNotFullyExplained",
|
|
40
|
+
MissingEodPrice: "missingEodPrice",
|
|
41
|
+
MissingFxRate: "missingFxRate",
|
|
42
|
+
UnknownBuyPrice: "unknownBuyPrice",
|
|
43
|
+
RealizedPnlUnavailable: "realizedPnlUnavailable",
|
|
44
|
+
};
|
|
45
|
+
export function TradeWarningReasonFromJSON(json) {
|
|
46
|
+
return TradeWarningReasonFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function TradeWarningReasonFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
export function TradeWarningReasonToJSON(value) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -183,6 +183,8 @@ export * from "./PagesConfigurationResponse";
|
|
|
183
183
|
export * from "./Portfolio";
|
|
184
184
|
export * from "./PortfolioCalendarDateRange";
|
|
185
185
|
export * from "./PortfolioCalendarItem";
|
|
186
|
+
export * from "./PortfolioOrderDetailsSyncInfo";
|
|
187
|
+
export * from "./PortfolioOrderDetailsSyncInfoStatus";
|
|
186
188
|
export * from "./PortfolioQuotes";
|
|
187
189
|
export * from "./PortfolioSyncInfo";
|
|
188
190
|
export * from "./PortfolioSyncInfoComplete";
|
|
@@ -230,6 +232,7 @@ export * from "./SessionSyncInfoSyncedAllOf";
|
|
|
230
232
|
export * from "./SessionSyncInfoSyncedSpecifics";
|
|
231
233
|
export * from "./SetClientConfigRequest";
|
|
232
234
|
export * from "./SizeUnitConstraint";
|
|
235
|
+
export * from "./SmartbrokerClientCfg";
|
|
233
236
|
export * from "./StringMapByOrderModel";
|
|
234
237
|
export * from "./SummarizedTrade";
|
|
235
238
|
export * from "./SyncError";
|
|
@@ -256,6 +259,7 @@ export * from "./TradeStatisticsDateRange";
|
|
|
256
259
|
export * from "./TradeStatisticsHoldingPeriodInDays";
|
|
257
260
|
export * from "./TradeStatisticsItem";
|
|
258
261
|
export * from "./TradeWarning";
|
|
262
|
+
export * from "./TradeWarningReason";
|
|
259
263
|
export * from "./TradingSessionLifetime";
|
|
260
264
|
export * from "./TrailingDistance";
|
|
261
265
|
export * from "./TriggerSync200Response";
|
|
@@ -185,6 +185,8 @@ export * from "./PagesConfigurationResponse.js";
|
|
|
185
185
|
export * from "./Portfolio.js";
|
|
186
186
|
export * from "./PortfolioCalendarDateRange.js";
|
|
187
187
|
export * from "./PortfolioCalendarItem.js";
|
|
188
|
+
export * from "./PortfolioOrderDetailsSyncInfo.js";
|
|
189
|
+
export * from "./PortfolioOrderDetailsSyncInfoStatus.js";
|
|
188
190
|
export * from "./PortfolioQuotes.js";
|
|
189
191
|
export * from "./PortfolioSyncInfo.js";
|
|
190
192
|
export * from "./PortfolioSyncInfoComplete.js";
|
|
@@ -232,6 +234,7 @@ export * from "./SessionSyncInfoSyncedAllOf.js";
|
|
|
232
234
|
export * from "./SessionSyncInfoSyncedSpecifics.js";
|
|
233
235
|
export * from "./SetClientConfigRequest.js";
|
|
234
236
|
export * from "./SizeUnitConstraint.js";
|
|
237
|
+
export * from "./SmartbrokerClientCfg.js";
|
|
235
238
|
export * from "./StringMapByOrderModel.js";
|
|
236
239
|
export * from "./SummarizedTrade.js";
|
|
237
240
|
export * from "./SyncError.js";
|
|
@@ -258,6 +261,7 @@ export * from "./TradeStatisticsDateRange.js";
|
|
|
258
261
|
export * from "./TradeStatisticsHoldingPeriodInDays.js";
|
|
259
262
|
export * from "./TradeStatisticsItem.js";
|
|
260
263
|
export * from "./TradeWarning.js";
|
|
264
|
+
export * from "./TradeWarningReason.js";
|
|
261
265
|
export * from "./TradingSessionLifetime.js";
|
|
262
266
|
export * from "./TrailingDistance.js";
|
|
263
267
|
export * from "./TriggerSync200Response.js";
|