snaptrade-typescript-sdk 8.12.0 → 8.13.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 +1 -1
- package/dist/configuration.js +1 -1
- package/dist/models/account-order-record-status.d.ts +1 -23
- package/dist/models/account-order-record-status.js +0 -28
- package/dist/models/action.d.ts +1 -5
- package/dist/models/action.js +0 -10
- package/dist/models/brokerage-authorization-type-read-only.d.ts +3 -12
- package/dist/models/brokerage-authorization-type-read-only.js +0 -11
- package/dist/models/brokerage-authorization-type.d.ts +2 -5
- package/dist/models/brokerage-authorization-type.js +0 -5
- package/dist/models/cash-restriction.d.ts +2 -5
- package/dist/models/cash-restriction.js +0 -5
- package/dist/models/model-portfolio.d.ts +2 -6
- package/dist/models/model-portfolio.js +0 -6
- package/dist/models/option-leg.d.ts +2 -7
- package/dist/models/option-leg.js +0 -7
- package/dist/models/options-get-option-strategy-request.d.ts +2 -4
- package/dist/models/options-get-option-strategy-request.js +0 -4
- package/dist/models/options-place-option-strategy-request.d.ts +3 -12
- package/dist/models/options-place-option-strategy-request.js +0 -11
- package/dist/models/order-type.d.ts +1 -7
- package/dist/models/order-type.js +0 -12
- package/dist/models/session-event.d.ts +2 -10
- package/dist/models/session-event.js +0 -10
- package/dist/models/snap-trade-login-user-request-body.d.ts +2 -5
- package/dist/models/snap-trade-login-user-request-body.js +0 -5
- package/dist/models/strategy-order-record.d.ts +4 -34
- package/dist/models/strategy-order-record.js +0 -32
- package/dist/models/time-in-force.d.ts +1 -6
- package/dist/models/time-in-force.js +0 -11
- package/dist/models/trade-execution-status.d.ts +3 -13
- package/dist/models/trade-execution-status.js +0 -12
- package/dist/models/trade.d.ts +2 -5
- package/dist/models/trade.js +0 -5
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -34,7 +34,7 @@ var Configuration = /** @class */ (function () {
|
|
|
34
34
|
this.accessToken = param.accessToken;
|
|
35
35
|
this.basePath = param.basePath;
|
|
36
36
|
this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
|
|
37
|
-
this.userAgent = param.userAgent === undefined ? "Konfig/8.
|
|
37
|
+
this.userAgent = param.userAgent === undefined ? "Konfig/8.13.0/typescript" : param.userAgent;
|
|
38
38
|
this.formDataCtor = param.formDataCtor;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
@@ -14,26 +14,4 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
18
|
-
readonly None: "NONE";
|
|
19
|
-
readonly Pending: "PENDING";
|
|
20
|
-
readonly Accepted: "ACCEPTED";
|
|
21
|
-
readonly Failed: "FAILED";
|
|
22
|
-
readonly Rejected: "REJECTED";
|
|
23
|
-
readonly Canceled: "CANCELED";
|
|
24
|
-
readonly PartialCanceled: "PARTIAL_CANCELED";
|
|
25
|
-
readonly CancelPending: "CANCEL_PENDING";
|
|
26
|
-
readonly Executed: "EXECUTED";
|
|
27
|
-
readonly Partial: "PARTIAL";
|
|
28
|
-
readonly ReplacePending: "REPLACE_PENDING";
|
|
29
|
-
readonly Replaced: "REPLACED";
|
|
30
|
-
readonly Stopped: "STOPPED";
|
|
31
|
-
readonly Suspended: "SUSPENDED";
|
|
32
|
-
readonly Expired: "EXPIRED";
|
|
33
|
-
readonly Queued: "QUEUED";
|
|
34
|
-
readonly Triggered: "TRIGGERED";
|
|
35
|
-
readonly Activated: "ACTIVATED";
|
|
36
|
-
readonly PendingRiskReview: "PENDING_RISK_REVIEW";
|
|
37
|
-
readonly ContingentOrder: "CONTINGENT_ORDER";
|
|
38
|
-
};
|
|
39
|
-
export type AccountOrderRecordStatus = typeof AccountOrderRecordStatus[keyof typeof AccountOrderRecordStatus];
|
|
17
|
+
export type AccountOrderRecordStatus = 'NONE' | 'PENDING' | 'ACCEPTED' | 'FAILED' | 'REJECTED' | 'CANCELED' | 'PARTIAL_CANCELED' | 'CANCEL_PENDING' | 'EXECUTED' | 'PARTIAL' | 'REPLACE_PENDING' | 'REPLACED' | 'STOPPED' | 'SUSPENDED' | 'EXPIRED' | 'QUEUED' | 'TRIGGERED' | 'ACTIVATED' | 'PENDING_RISK_REVIEW' | 'CONTINGENT_ORDER';
|
|
@@ -13,31 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AccountOrderRecordStatus = void 0;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
|
-
*/
|
|
22
|
-
exports.AccountOrderRecordStatus = {
|
|
23
|
-
None: 'NONE',
|
|
24
|
-
Pending: 'PENDING',
|
|
25
|
-
Accepted: 'ACCEPTED',
|
|
26
|
-
Failed: 'FAILED',
|
|
27
|
-
Rejected: 'REJECTED',
|
|
28
|
-
Canceled: 'CANCELED',
|
|
29
|
-
PartialCanceled: 'PARTIAL_CANCELED',
|
|
30
|
-
CancelPending: 'CANCEL_PENDING',
|
|
31
|
-
Executed: 'EXECUTED',
|
|
32
|
-
Partial: 'PARTIAL',
|
|
33
|
-
ReplacePending: 'REPLACE_PENDING',
|
|
34
|
-
Replaced: 'REPLACED',
|
|
35
|
-
Stopped: 'STOPPED',
|
|
36
|
-
Suspended: 'SUSPENDED',
|
|
37
|
-
Expired: 'EXPIRED',
|
|
38
|
-
Queued: 'QUEUED',
|
|
39
|
-
Triggered: 'TRIGGERED',
|
|
40
|
-
Activated: 'ACTIVATED',
|
|
41
|
-
PendingRiskReview: 'PENDING_RISK_REVIEW',
|
|
42
|
-
ContingentOrder: 'CONTINGENT_ORDER'
|
|
43
|
-
};
|
package/dist/models/action.d.ts
CHANGED
package/dist/models/action.js
CHANGED
|
@@ -13,13 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.Action = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Trade Action
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
|
-
*/
|
|
22
|
-
exports.Action = {
|
|
23
|
-
Buy: 'BUY',
|
|
24
|
-
Sell: 'SELL'
|
|
25
|
-
};
|
|
@@ -42,15 +42,6 @@ export interface BrokerageAuthorizationTypeReadOnly {
|
|
|
42
42
|
*/
|
|
43
43
|
'brokerage'?: BrokerageAuthorizationTypeReadOnlyBrokerage;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
49
|
-
export type BrokerageAuthorizationTypeReadOnlyTypeEnum = typeof BrokerageAuthorizationTypeReadOnlyTypeEnum[keyof typeof BrokerageAuthorizationTypeReadOnlyTypeEnum];
|
|
50
|
-
export declare const BrokerageAuthorizationTypeReadOnlyAuthTypeEnum: {
|
|
51
|
-
readonly Oauth: "OAUTH";
|
|
52
|
-
readonly Scrape: "SCRAPE";
|
|
53
|
-
readonly UnofficialApi: "UNOFFICIAL_API";
|
|
54
|
-
readonly Token: "TOKEN";
|
|
55
|
-
};
|
|
56
|
-
export type BrokerageAuthorizationTypeReadOnlyAuthTypeEnum = typeof BrokerageAuthorizationTypeReadOnlyAuthTypeEnum[keyof typeof BrokerageAuthorizationTypeReadOnlyAuthTypeEnum];
|
|
45
|
+
type BrokerageAuthorizationTypeReadOnlyTypeEnum = 'read' | 'trade';
|
|
46
|
+
type BrokerageAuthorizationTypeReadOnlyAuthTypeEnum = 'OAUTH' | 'SCRAPE' | 'UNOFFICIAL_API' | 'TOKEN';
|
|
47
|
+
export {};
|
|
@@ -13,14 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.BrokerageAuthorizationTypeReadOnlyAuthTypeEnum = exports.BrokerageAuthorizationTypeReadOnlyTypeEnum = void 0;
|
|
17
|
-
exports.BrokerageAuthorizationTypeReadOnlyTypeEnum = {
|
|
18
|
-
Read: 'read',
|
|
19
|
-
Trade: 'trade'
|
|
20
|
-
};
|
|
21
|
-
exports.BrokerageAuthorizationTypeReadOnlyAuthTypeEnum = {
|
|
22
|
-
Oauth: 'OAUTH',
|
|
23
|
-
Scrape: 'SCRAPE',
|
|
24
|
-
UnofficialApi: 'UNOFFICIAL_API',
|
|
25
|
-
Token: 'TOKEN'
|
|
26
|
-
};
|
|
@@ -23,8 +23,5 @@ export interface BrokerageAuthorizationType {
|
|
|
23
23
|
*/
|
|
24
24
|
'type'?: BrokerageAuthorizationTypeTypeEnum;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
readonly Trade: "trade";
|
|
29
|
-
};
|
|
30
|
-
export type BrokerageAuthorizationTypeTypeEnum = typeof BrokerageAuthorizationTypeTypeEnum[keyof typeof BrokerageAuthorizationTypeTypeEnum];
|
|
26
|
+
type BrokerageAuthorizationTypeTypeEnum = 'read' | 'trade';
|
|
27
|
+
export {};
|
|
@@ -47,8 +47,5 @@ export interface CashRestriction {
|
|
|
47
47
|
*/
|
|
48
48
|
'amount'?: number;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
readonly RetainMin: "RETAIN_MIN";
|
|
53
|
-
};
|
|
54
|
-
export type CashRestrictionTypeEnum = typeof CashRestrictionTypeEnum[keyof typeof CashRestrictionTypeEnum];
|
|
50
|
+
type CashRestrictionTypeEnum = 'ALLOCATE_MAX' | 'RETAIN_MIN';
|
|
51
|
+
export {};
|
|
@@ -35,9 +35,5 @@ export interface ModelPortfolio {
|
|
|
35
35
|
*/
|
|
36
36
|
'model_type'?: ModelPortfolioModelTypeEnum;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
readonly NUMBER_0: 0;
|
|
41
|
-
readonly NUMBER_1: 1;
|
|
42
|
-
};
|
|
43
|
-
export type ModelPortfolioModelTypeEnum = typeof ModelPortfolioModelTypeEnum[keyof typeof ModelPortfolioModelTypeEnum];
|
|
38
|
+
type ModelPortfolioModelTypeEnum = -1 | 0 | 1;
|
|
39
|
+
export {};
|
|
@@ -35,10 +35,5 @@ export interface OptionLeg {
|
|
|
35
35
|
*/
|
|
36
36
|
'quantity'?: number;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
readonly BuyToClose: "BUY_TO_CLOSE";
|
|
41
|
-
readonly SellToOpen: "SELL_TO_OPEN";
|
|
42
|
-
readonly SellToClose: "SELL_TO_CLOSE";
|
|
43
|
-
};
|
|
44
|
-
export type OptionLegActionEnum = typeof OptionLegActionEnum[keyof typeof OptionLegActionEnum];
|
|
38
|
+
type OptionLegActionEnum = 'BUY_TO_OPEN' | 'BUY_TO_CLOSE' | 'SELL_TO_OPEN' | 'SELL_TO_CLOSE';
|
|
39
|
+
export {};
|
|
@@ -13,10 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OptionLegActionEnum = void 0;
|
|
17
|
-
exports.OptionLegActionEnum = {
|
|
18
|
-
BuyToOpen: 'BUY_TO_OPEN',
|
|
19
|
-
BuyToClose: 'BUY_TO_CLOSE',
|
|
20
|
-
SellToOpen: 'SELL_TO_OPEN',
|
|
21
|
-
SellToClose: 'SELL_TO_CLOSE'
|
|
22
|
-
};
|
|
@@ -35,7 +35,5 @@ export interface OptionsGetOptionStrategyRequest {
|
|
|
35
35
|
*/
|
|
36
36
|
'strategy_type': OptionsGetOptionStrategyRequestStrategyTypeEnum;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
};
|
|
41
|
-
export type OptionsGetOptionStrategyRequestStrategyTypeEnum = typeof OptionsGetOptionStrategyRequestStrategyTypeEnum[keyof typeof OptionsGetOptionStrategyRequestStrategyTypeEnum];
|
|
38
|
+
type OptionsGetOptionStrategyRequestStrategyTypeEnum = 'CUSTOM';
|
|
39
|
+
export {};
|
|
@@ -13,7 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OptionsGetOptionStrategyRequestStrategyTypeEnum = void 0;
|
|
17
|
-
exports.OptionsGetOptionStrategyRequestStrategyTypeEnum = {
|
|
18
|
-
Custom: 'CUSTOM'
|
|
19
|
-
};
|
|
@@ -34,15 +34,6 @@ export interface OptionsPlaceOptionStrategyRequest {
|
|
|
34
34
|
*/
|
|
35
35
|
'price': number;
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
readonly NetDebit: "NetDebit";
|
|
41
|
-
readonly NetCredit: "NetCredit";
|
|
42
|
-
};
|
|
43
|
-
export type OptionsPlaceOptionStrategyRequestOrderTypeEnum = typeof OptionsPlaceOptionStrategyRequestOrderTypeEnum[keyof typeof OptionsPlaceOptionStrategyRequestOrderTypeEnum];
|
|
44
|
-
export declare const OptionsPlaceOptionStrategyRequestTimeInForceEnum: {
|
|
45
|
-
readonly Day: "DAY";
|
|
46
|
-
readonly Gtc: "GTC";
|
|
47
|
-
};
|
|
48
|
-
export type OptionsPlaceOptionStrategyRequestTimeInForceEnum = typeof OptionsPlaceOptionStrategyRequestTimeInForceEnum[keyof typeof OptionsPlaceOptionStrategyRequestTimeInForceEnum];
|
|
37
|
+
type OptionsPlaceOptionStrategyRequestOrderTypeEnum = 'Limit' | 'Market' | 'NetDebit' | 'NetCredit';
|
|
38
|
+
type OptionsPlaceOptionStrategyRequestTimeInForceEnum = 'DAY' | 'GTC';
|
|
39
|
+
export {};
|
|
@@ -13,14 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OptionsPlaceOptionStrategyRequestTimeInForceEnum = exports.OptionsPlaceOptionStrategyRequestOrderTypeEnum = void 0;
|
|
17
|
-
exports.OptionsPlaceOptionStrategyRequestOrderTypeEnum = {
|
|
18
|
-
Limit: 'Limit',
|
|
19
|
-
Market: 'Market',
|
|
20
|
-
NetDebit: 'NetDebit',
|
|
21
|
-
NetCredit: 'NetCredit'
|
|
22
|
-
};
|
|
23
|
-
exports.OptionsPlaceOptionStrategyRequestTimeInForceEnum = {
|
|
24
|
-
Day: 'DAY',
|
|
25
|
-
Gtc: 'GTC'
|
|
26
|
-
};
|
|
@@ -14,10 +14,4 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
18
|
-
readonly Limit: "Limit";
|
|
19
|
-
readonly Market: "Market";
|
|
20
|
-
readonly StopLimit: "StopLimit";
|
|
21
|
-
readonly StopLoss: "StopLoss";
|
|
22
|
-
};
|
|
23
|
-
export type OrderType = typeof OrderType[keyof typeof OrderType];
|
|
17
|
+
export type OrderType = 'Limit' | 'Market' | 'StopLimit' | 'StopLoss';
|
|
@@ -13,15 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OrderType = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Order Type
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
|
-
*/
|
|
22
|
-
exports.OrderType = {
|
|
23
|
-
Limit: 'Limit',
|
|
24
|
-
Market: 'Market',
|
|
25
|
-
StopLimit: 'StopLimit',
|
|
26
|
-
StopLoss: 'StopLoss'
|
|
27
|
-
};
|
|
@@ -59,13 +59,5 @@ export interface SessionEvent {
|
|
|
59
59
|
*/
|
|
60
60
|
'brokerage_authorization_id'?: string;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
readonly DisclaimerAccepted: "DISCLAIMER_ACCEPTED";
|
|
65
|
-
readonly BrokerageConnectionInitiated: "BROKERAGE_CONNECTION_INITIATED";
|
|
66
|
-
readonly BrokerageAuthentication: "BROKERAGE_AUTHENTICATION";
|
|
67
|
-
readonly MfaAuthorization: "MFA_AUTHORIZATION";
|
|
68
|
-
readonly ConnectionSuccessful: "CONNECTION_SUCCESSFUL";
|
|
69
|
-
readonly PartnerRedirect: "PARTNER_REDIRECT";
|
|
70
|
-
};
|
|
71
|
-
export type SessionEventSessionEventTypeEnum = typeof SessionEventSessionEventTypeEnum[keyof typeof SessionEventSessionEventTypeEnum];
|
|
62
|
+
type SessionEventSessionEventTypeEnum = 'CONNECTION_FAILED' | 'DISCLAIMER_ACCEPTED' | 'BROKERAGE_CONNECTION_INITIATED' | 'BROKERAGE_AUTHENTICATION' | 'MFA_AUTHORIZATION' | 'CONNECTION_SUCCESSFUL' | 'PARTNER_REDIRECT';
|
|
63
|
+
export {};
|
|
@@ -13,13 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SessionEventSessionEventTypeEnum = void 0;
|
|
17
|
-
exports.SessionEventSessionEventTypeEnum = {
|
|
18
|
-
ConnectionFailed: 'CONNECTION_FAILED',
|
|
19
|
-
DisclaimerAccepted: 'DISCLAIMER_ACCEPTED',
|
|
20
|
-
BrokerageConnectionInitiated: 'BROKERAGE_CONNECTION_INITIATED',
|
|
21
|
-
BrokerageAuthentication: 'BROKERAGE_AUTHENTICATION',
|
|
22
|
-
MfaAuthorization: 'MFA_AUTHORIZATION',
|
|
23
|
-
ConnectionSuccessful: 'CONNECTION_SUCCESSFUL',
|
|
24
|
-
PartnerRedirect: 'PARTNER_REDIRECT'
|
|
25
|
-
};
|
|
@@ -46,8 +46,5 @@ export interface SnapTradeLoginUserRequestBody {
|
|
|
46
46
|
*/
|
|
47
47
|
'connectionType'?: SnapTradeLoginUserRequestBodyConnectionTypeEnum;
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
readonly Trade: "trade";
|
|
52
|
-
};
|
|
53
|
-
export type SnapTradeLoginUserRequestBodyConnectionTypeEnum = typeof SnapTradeLoginUserRequestBodyConnectionTypeEnum[keyof typeof SnapTradeLoginUserRequestBodyConnectionTypeEnum];
|
|
49
|
+
type SnapTradeLoginUserRequestBodyConnectionTypeEnum = 'read' | 'trade';
|
|
50
|
+
export {};
|
|
@@ -13,8 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SnapTradeLoginUserRequestBodyConnectionTypeEnum = void 0;
|
|
17
|
-
exports.SnapTradeLoginUserRequestBodyConnectionTypeEnum = {
|
|
18
|
-
Read: 'read',
|
|
19
|
-
Trade: 'trade'
|
|
20
|
-
};
|
|
@@ -84,37 +84,7 @@ export interface StrategyOrderRecord {
|
|
|
84
84
|
*/
|
|
85
85
|
'time_updated'?: string;
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
readonly Rejected: "REJECTED";
|
|
92
|
-
readonly Canceled: "CANCELED";
|
|
93
|
-
readonly PartialCanceled: "PARTIAL_CANCELED";
|
|
94
|
-
readonly CancelPending: "CANCEL_PENDING";
|
|
95
|
-
readonly Executed: "EXECUTED";
|
|
96
|
-
readonly Partial: "PARTIAL";
|
|
97
|
-
readonly ReplacePending: "REPLACE_PENDING";
|
|
98
|
-
readonly Replaced: "REPLACED";
|
|
99
|
-
readonly Stopped: "STOPPED";
|
|
100
|
-
readonly Suspended: "SUSPENDED";
|
|
101
|
-
readonly Expired: "EXPIRED";
|
|
102
|
-
readonly Queued: "QUEUED";
|
|
103
|
-
readonly Triggered: "TRIGGERED";
|
|
104
|
-
readonly Activated: "ACTIVATED";
|
|
105
|
-
readonly PendingRiskReview: "PENDING_RISK_REVIEW";
|
|
106
|
-
readonly ContingentOrder: "CONTINGENT_ORDER";
|
|
107
|
-
};
|
|
108
|
-
export type StrategyOrderRecordStatusEnum = typeof StrategyOrderRecordStatusEnum[keyof typeof StrategyOrderRecordStatusEnum];
|
|
109
|
-
export declare const StrategyOrderRecordOrderTypeEnum: {
|
|
110
|
-
readonly Limit: "Limit";
|
|
111
|
-
readonly Market: "Market";
|
|
112
|
-
readonly NetDebit: "NetDebit";
|
|
113
|
-
readonly NetCredit: "NetCredit";
|
|
114
|
-
};
|
|
115
|
-
export type StrategyOrderRecordOrderTypeEnum = typeof StrategyOrderRecordOrderTypeEnum[keyof typeof StrategyOrderRecordOrderTypeEnum];
|
|
116
|
-
export declare const StrategyOrderRecordTimeInForceEnum: {
|
|
117
|
-
readonly Day: "DAY";
|
|
118
|
-
readonly Gtc: "GTC";
|
|
119
|
-
};
|
|
120
|
-
export type StrategyOrderRecordTimeInForceEnum = typeof StrategyOrderRecordTimeInForceEnum[keyof typeof StrategyOrderRecordTimeInForceEnum];
|
|
87
|
+
type StrategyOrderRecordStatusEnum = 'PENDING' | 'ACCEPTED' | 'FAILED' | 'REJECTED' | 'CANCELED' | 'PARTIAL_CANCELED' | 'CANCEL_PENDING' | 'EXECUTED' | 'PARTIAL' | 'REPLACE_PENDING' | 'REPLACED' | 'STOPPED' | 'SUSPENDED' | 'EXPIRED' | 'QUEUED' | 'TRIGGERED' | 'ACTIVATED' | 'PENDING_RISK_REVIEW' | 'CONTINGENT_ORDER';
|
|
88
|
+
type StrategyOrderRecordOrderTypeEnum = 'Limit' | 'Market' | 'NetDebit' | 'NetCredit';
|
|
89
|
+
type StrategyOrderRecordTimeInForceEnum = 'DAY' | 'GTC';
|
|
90
|
+
export {};
|
|
@@ -13,35 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.StrategyOrderRecordTimeInForceEnum = exports.StrategyOrderRecordOrderTypeEnum = exports.StrategyOrderRecordStatusEnum = void 0;
|
|
17
|
-
exports.StrategyOrderRecordStatusEnum = {
|
|
18
|
-
Pending: 'PENDING',
|
|
19
|
-
Accepted: 'ACCEPTED',
|
|
20
|
-
Failed: 'FAILED',
|
|
21
|
-
Rejected: 'REJECTED',
|
|
22
|
-
Canceled: 'CANCELED',
|
|
23
|
-
PartialCanceled: 'PARTIAL_CANCELED',
|
|
24
|
-
CancelPending: 'CANCEL_PENDING',
|
|
25
|
-
Executed: 'EXECUTED',
|
|
26
|
-
Partial: 'PARTIAL',
|
|
27
|
-
ReplacePending: 'REPLACE_PENDING',
|
|
28
|
-
Replaced: 'REPLACED',
|
|
29
|
-
Stopped: 'STOPPED',
|
|
30
|
-
Suspended: 'SUSPENDED',
|
|
31
|
-
Expired: 'EXPIRED',
|
|
32
|
-
Queued: 'QUEUED',
|
|
33
|
-
Triggered: 'TRIGGERED',
|
|
34
|
-
Activated: 'ACTIVATED',
|
|
35
|
-
PendingRiskReview: 'PENDING_RISK_REVIEW',
|
|
36
|
-
ContingentOrder: 'CONTINGENT_ORDER'
|
|
37
|
-
};
|
|
38
|
-
exports.StrategyOrderRecordOrderTypeEnum = {
|
|
39
|
-
Limit: 'Limit',
|
|
40
|
-
Market: 'Market',
|
|
41
|
-
NetDebit: 'NetDebit',
|
|
42
|
-
NetCredit: 'NetCredit'
|
|
43
|
-
};
|
|
44
|
-
exports.StrategyOrderRecordTimeInForceEnum = {
|
|
45
|
-
Day: 'DAY',
|
|
46
|
-
Gtc: 'GTC'
|
|
47
|
-
};
|
|
@@ -14,9 +14,4 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
18
|
-
readonly Day: "Day";
|
|
19
|
-
readonly Fok: "FOK";
|
|
20
|
-
readonly Gtc: "GTC";
|
|
21
|
-
};
|
|
22
|
-
export type TimeInForce = typeof TimeInForce[keyof typeof TimeInForce];
|
|
17
|
+
export type TimeInForce = 'Day' | 'FOK' | 'GTC';
|
|
@@ -13,14 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.TimeInForce = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Trade time in force: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
|
-
*/
|
|
22
|
-
exports.TimeInForce = {
|
|
23
|
-
Day: 'Day',
|
|
24
|
-
Fok: 'FOK',
|
|
25
|
-
Gtc: 'GTC'
|
|
26
|
-
};
|
|
@@ -76,16 +76,6 @@ export interface TradeExecutionStatus {
|
|
|
76
76
|
[key: string]: any;
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
readonly Rejected: "Rejected";
|
|
83
|
-
readonly Failed: "Failed";
|
|
84
|
-
readonly NotExecuted: "Not Executed";
|
|
85
|
-
};
|
|
86
|
-
export type TradeExecutionStatusStateEnum = typeof TradeExecutionStatusStateEnum[keyof typeof TradeExecutionStatusStateEnum];
|
|
87
|
-
export declare const TradeExecutionStatusActionEnum: {
|
|
88
|
-
readonly Buy: "BUY";
|
|
89
|
-
readonly Sell: "SELL";
|
|
90
|
-
};
|
|
91
|
-
export type TradeExecutionStatusActionEnum = typeof TradeExecutionStatusActionEnum[keyof typeof TradeExecutionStatusActionEnum];
|
|
79
|
+
type TradeExecutionStatusStateEnum = 'Executed' | 'Canceled' | 'Rejected' | 'Failed' | 'Not Executed';
|
|
80
|
+
type TradeExecutionStatusActionEnum = 'BUY' | 'SELL';
|
|
81
|
+
export {};
|
|
@@ -13,15 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.TradeExecutionStatusActionEnum = exports.TradeExecutionStatusStateEnum = void 0;
|
|
17
|
-
exports.TradeExecutionStatusStateEnum = {
|
|
18
|
-
Executed: 'Executed',
|
|
19
|
-
Canceled: 'Canceled',
|
|
20
|
-
Rejected: 'Rejected',
|
|
21
|
-
Failed: 'Failed',
|
|
22
|
-
NotExecuted: 'Not Executed'
|
|
23
|
-
};
|
|
24
|
-
exports.TradeExecutionStatusActionEnum = {
|
|
25
|
-
Buy: 'BUY',
|
|
26
|
-
Sell: 'SELL'
|
|
27
|
-
};
|
package/dist/models/trade.d.ts
CHANGED
|
@@ -67,8 +67,5 @@ export interface Trade {
|
|
|
67
67
|
*/
|
|
68
68
|
'sequence'?: number;
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
readonly Sell: "SELL";
|
|
73
|
-
};
|
|
74
|
-
export type TradeActionEnum = typeof TradeActionEnum[keyof typeof TradeActionEnum];
|
|
70
|
+
type TradeActionEnum = 'BUY' | 'SELL';
|
|
71
|
+
export {};
|
package/dist/models/trade.js
CHANGED