snaptrade-typescript-sdk 8.6.0 → 8.8.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 +9 -12
- package/dist/api/portfolio-management-api.d.ts +0 -47
- package/dist/api/portfolio-management-api.js +0 -103
- package/dist/configuration.js +1 -1
- package/dist/models/session-event.d.ts +6 -0
- package/dist/models/symbol.d.ts +7 -0
- package/package.json +4 -1
- package/.konfig/generate-id.txt +0 -1
- package/.konfigignore +0 -3
- package/api/account-information-api-custom.ts +0 -3
- package/api/account-information-api.ts +0 -1062
- package/api/api-disclaimer-api-custom.ts +0 -3
- package/api/api-disclaimer-api.ts +0 -183
- package/api/api-status-api-custom.ts +0 -3
- package/api/api-status-api.ts +0 -128
- package/api/authentication-api-custom.ts +0 -3
- package/api/authentication-api.ts +0 -568
- package/api/connections-api-custom.ts +0 -3
- package/api/connections-api.ts +0 -544
- package/api/error-logs-api-custom.ts +0 -3
- package/api/error-logs-api.ts +0 -174
- package/api/options-api-custom.ts +0 -3
- package/api/options-api.ts +0 -739
- package/api/portfolio-management-api-custom.ts +0 -3
- package/api/portfolio-management-api.ts +0 -3301
- package/api/reference-data-api-custom.ts +0 -3
- package/api/reference-data-api.ts +0 -1031
- package/api/trading-api-custom.ts +0 -3
- package/api/trading-api.ts +0 -1304
- package/api/transactions-and-reporting-api-custom.ts +0 -3
- package/api/transactions-and-reporting-api.ts +0 -408
- package/api.ts +0 -27
- package/base.ts +0 -70
- package/client-custom.ts +0 -5
- package/client.ts +0 -59
- package/common.ts +0 -163
- package/configuration.ts +0 -131
- package/docs/AccountInformationApi.md +0 -469
- package/docs/ApiDisclaimerApi.md +0 -65
- package/docs/ApiStatusApi.md +0 -59
- package/docs/AuthenticationApi.md +0 -293
- package/docs/ConnectionsApi.md +0 -237
- package/docs/ErrorLogsApi.md +0 -63
- package/docs/OptionsApi.md +0 -314
- package/docs/PortfolioManagementApi.md +0 -1786
- package/docs/ReferenceDataApi.md +0 -570
- package/docs/TradingApi.md +0 -600
- package/docs/TransactionsAndReportingApi.md +0 -141
- package/index.test.ts +0 -177
- package/index.ts +0 -18
- package/jest.config.ts +0 -11
- package/models/account-holdings-account.ts +0 -61
- package/models/account-holdings.ts +0 -61
- package/models/account-order-record-status.ts +0 -48
- package/models/account-order-record.ts +0 -151
- package/models/account-simple.ts +0 -52
- package/models/account-sync-status.ts +0 -32
- package/models/account.ts +0 -91
- package/models/action.ts +0 -30
- package/models/apidisclaimer-accept-request.ts +0 -29
- package/models/authentication-login-snap-trade-user200-response.ts +0 -31
- package/models/balance.ts +0 -40
- package/models/brokerage-authorization-type-read-only-brokerage.ts +0 -43
- package/models/brokerage-authorization-type-read-only.ts +0 -68
- package/models/brokerage-authorization-type.ts +0 -39
- package/models/brokerage-authorization.ts +0 -82
- package/models/brokerage-symbol.ts +0 -61
- package/models/brokerage-type.ts +0 -37
- package/models/brokerage.ts +0 -136
- package/models/calculated-trade.ts +0 -40
- package/models/cash-restriction.ts +0 -63
- package/models/connections-session-events200-response-inner.ts +0 -25
- package/models/currency.ts +0 -43
- package/models/delete-user-response.ts +0 -37
- package/models/dividend-at-date.ts +0 -43
- package/models/encrypted-response-encrypted-message-data.ts +0 -43
- package/models/encrypted-response.ts +0 -38
- package/models/exchange-rate-pairs.ts +0 -46
- package/models/exchange.ts +0 -73
- package/models/excluded-asset.ts +0 -34
- package/models/index.ts +0 -109
- package/models/jwt.ts +0 -31
- package/models/login-redirect-uri.ts +0 -35
- package/models/manual-trade-and-impact.ts +0 -49
- package/models/manual-trade-balance.ts +0 -49
- package/models/manual-trade-form.ts +0 -80
- package/models/manual-trade-symbol.ts +0 -64
- package/models/manual-trade.ts +0 -88
- package/models/model-asset-class-details.ts +0 -41
- package/models/model-asset-class-target.ts +0 -34
- package/models/model-asset-class.ts +0 -37
- package/models/model-portfolio-asset-class.ts +0 -40
- package/models/model-portfolio-details.ts +0 -50
- package/models/model-portfolio-security.ts +0 -40
- package/models/model-portfolio.ts +0 -52
- package/models/model400-failed-request-response.ts +0 -37
- package/models/model401-failed-request-response.ts +0 -37
- package/models/model403-failed-request-response.ts +0 -37
- package/models/model404-failed-request-response.ts +0 -37
- package/models/monthly-dividends.ts +0 -40
- package/models/net-contributions.ts +0 -43
- package/models/net-dividend.ts +0 -46
- package/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.ts +0 -43
- package/models/option-chain-inner-chain-per-root-inner.ts +0 -46
- package/models/option-chain-inner.ts +0 -58
- package/models/option-leg.ts +0 -53
- package/models/option-strategy-legs-inner.ts +0 -47
- package/models/option-strategy.ts +0 -61
- package/models/options-get-option-strategy-request.ts +0 -51
- package/models/options-holdings.ts +0 -67
- package/models/options-place-option-strategy-request.ts +0 -57
- package/models/options-position.ts +0 -73
- package/models/options-symbol.ts +0 -94
- package/models/order-type.ts +0 -32
- package/models/partner-data.ts +0 -100
- package/models/past-value.ts +0 -43
- package/models/performance-custom.ts +0 -154
- package/models/portfolio-group-info.ts +0 -115
- package/models/portfolio-group-position.ts +0 -46
- package/models/portfolio-group-settings.ts +0 -58
- package/models/portfolio-group.ts +0 -37
- package/models/position-symbol.ts +0 -64
- package/models/position.ts +0 -64
- package/models/redirect-tokenand-pin.ts +0 -37
- package/models/security-type.ts +0 -49
- package/models/session-event.ts +0 -74
- package/models/snap-trade-apidisclaimer-accept-status.ts +0 -37
- package/models/snap-trade-holdings-account-account-id.ts +0 -82
- package/models/snap-trade-holdings-account.ts +0 -79
- package/models/snap-trade-holdings-total-value.ts +0 -37
- package/models/snap-trade-login-user-request-body.ts +0 -61
- package/models/snap-trade-register-user-request-body.ts +0 -35
- package/models/status.ts +0 -43
- package/models/strategy-impact-legs-inner.ts +0 -67
- package/models/strategy-impact.ts +0 -94
- package/models/strategy-order-place-orders-inner-legs-inner.ts +0 -67
- package/models/strategy-order-place-orders-inner.ts +0 -286
- package/models/strategy-order-place.ts +0 -40
- package/models/strategy-order-record.ts +0 -133
- package/models/strategy-quotes-greek.ts +0 -55
- package/models/strategy-quotes.ts +0 -67
- package/models/sub-period-return-rate.ts +0 -43
- package/models/symbol-query.ts +0 -29
- package/models/symbol.ts +0 -67
- package/models/symbols-quotes.ts +0 -64
- package/models/target-asset.ts +0 -62
- package/models/time-in-force.ts +0 -31
- package/models/trade-execution-status.ts +0 -105
- package/models/trade-impact.ts +0 -61
- package/models/trade.ts +0 -88
- package/models/trading-cancel-user-account-order-request.ts +0 -29
- package/models/trading-place-ocoorder-request.ts +0 -35
- package/models/transactions-status.ts +0 -35
- package/models/underlying-symbol.ts +0 -76
- package/models/universal-activity.ts +0 -127
- package/models/universal-symbol-ticker.ts +0 -82
- package/models/universal-symbol.ts +0 -80
- package/models/user-error-log.ts +0 -61
- package/models/user-idand-secret.ts +0 -37
- package/models/user-settings.ts +0 -88
- package/models/usexchange.ts +0 -79
- package/pagination/page-types.ts +0 -34
- package/pagination/page.ts +0 -58
- package/pagination/pageable.ts +0 -113
- package/pagination/paginate.ts +0 -41
- package/requestAfterHook.ts +0 -53
- package/requestBeforeHook.ts +0 -15
- package/tsconfig.json +0 -22
- package/tsconfig.test.json +0 -6
package/models/index.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
export * from './apidisclaimer-accept-request';
|
|
2
|
-
export * from './account';
|
|
3
|
-
export * from './account-holdings';
|
|
4
|
-
export * from './account-holdings-account';
|
|
5
|
-
export * from './account-order-record';
|
|
6
|
-
export * from './account-order-record-status';
|
|
7
|
-
export * from './account-simple';
|
|
8
|
-
export * from './account-sync-status';
|
|
9
|
-
export * from './action';
|
|
10
|
-
export * from './authentication-login-snap-trade-user200-response';
|
|
11
|
-
export * from './balance';
|
|
12
|
-
export * from './brokerage';
|
|
13
|
-
export * from './brokerage-authorization';
|
|
14
|
-
export * from './brokerage-authorization-type';
|
|
15
|
-
export * from './brokerage-authorization-type-read-only';
|
|
16
|
-
export * from './brokerage-authorization-type-read-only-brokerage';
|
|
17
|
-
export * from './brokerage-symbol';
|
|
18
|
-
export * from './brokerage-type';
|
|
19
|
-
export * from './calculated-trade';
|
|
20
|
-
export * from './cash-restriction';
|
|
21
|
-
export * from './connections-session-events200-response-inner';
|
|
22
|
-
export * from './currency';
|
|
23
|
-
export * from './delete-user-response';
|
|
24
|
-
export * from './dividend-at-date';
|
|
25
|
-
export * from './encrypted-response';
|
|
26
|
-
export * from './encrypted-response-encrypted-message-data';
|
|
27
|
-
export * from './exchange';
|
|
28
|
-
export * from './exchange-rate-pairs';
|
|
29
|
-
export * from './excluded-asset';
|
|
30
|
-
export * from './jwt';
|
|
31
|
-
export * from './login-redirect-uri';
|
|
32
|
-
export * from './manual-trade';
|
|
33
|
-
export * from './manual-trade-and-impact';
|
|
34
|
-
export * from './manual-trade-balance';
|
|
35
|
-
export * from './manual-trade-form';
|
|
36
|
-
export * from './manual-trade-symbol';
|
|
37
|
-
export * from './model400-failed-request-response';
|
|
38
|
-
export * from './model401-failed-request-response';
|
|
39
|
-
export * from './model403-failed-request-response';
|
|
40
|
-
export * from './model404-failed-request-response';
|
|
41
|
-
export * from './model-asset-class';
|
|
42
|
-
export * from './model-asset-class-details';
|
|
43
|
-
export * from './model-asset-class-target';
|
|
44
|
-
export * from './model-portfolio';
|
|
45
|
-
export * from './model-portfolio-asset-class';
|
|
46
|
-
export * from './model-portfolio-details';
|
|
47
|
-
export * from './model-portfolio-security';
|
|
48
|
-
export * from './monthly-dividends';
|
|
49
|
-
export * from './net-contributions';
|
|
50
|
-
export * from './net-dividend';
|
|
51
|
-
export * from './option-chain-inner';
|
|
52
|
-
export * from './option-chain-inner-chain-per-root-inner';
|
|
53
|
-
export * from './option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner';
|
|
54
|
-
export * from './option-leg';
|
|
55
|
-
export * from './option-strategy';
|
|
56
|
-
export * from './option-strategy-legs-inner';
|
|
57
|
-
export * from './options-get-option-strategy-request';
|
|
58
|
-
export * from './options-holdings';
|
|
59
|
-
export * from './options-place-option-strategy-request';
|
|
60
|
-
export * from './options-position';
|
|
61
|
-
export * from './options-symbol';
|
|
62
|
-
export * from './order-type';
|
|
63
|
-
export * from './partner-data';
|
|
64
|
-
export * from './past-value';
|
|
65
|
-
export * from './performance-custom';
|
|
66
|
-
export * from './portfolio-group';
|
|
67
|
-
export * from './portfolio-group-info';
|
|
68
|
-
export * from './portfolio-group-position';
|
|
69
|
-
export * from './portfolio-group-settings';
|
|
70
|
-
export * from './position';
|
|
71
|
-
export * from './position-symbol';
|
|
72
|
-
export * from './redirect-tokenand-pin';
|
|
73
|
-
export * from './security-type';
|
|
74
|
-
export * from './session-event';
|
|
75
|
-
export * from './snap-trade-apidisclaimer-accept-status';
|
|
76
|
-
export * from './snap-trade-holdings-account';
|
|
77
|
-
export * from './snap-trade-holdings-account-account-id';
|
|
78
|
-
export * from './snap-trade-holdings-total-value';
|
|
79
|
-
export * from './snap-trade-login-user-request-body';
|
|
80
|
-
export * from './snap-trade-register-user-request-body';
|
|
81
|
-
export * from './status';
|
|
82
|
-
export * from './strategy-impact';
|
|
83
|
-
export * from './strategy-impact-legs-inner';
|
|
84
|
-
export * from './strategy-order-place';
|
|
85
|
-
export * from './strategy-order-place-orders-inner';
|
|
86
|
-
export * from './strategy-order-place-orders-inner-legs-inner';
|
|
87
|
-
export * from './strategy-order-record';
|
|
88
|
-
export * from './strategy-quotes';
|
|
89
|
-
export * from './strategy-quotes-greek';
|
|
90
|
-
export * from './sub-period-return-rate';
|
|
91
|
-
export * from './symbol';
|
|
92
|
-
export * from './symbol-query';
|
|
93
|
-
export * from './symbols-quotes';
|
|
94
|
-
export * from './target-asset';
|
|
95
|
-
export * from './time-in-force';
|
|
96
|
-
export * from './trade';
|
|
97
|
-
export * from './trade-execution-status';
|
|
98
|
-
export * from './trade-impact';
|
|
99
|
-
export * from './trading-cancel-user-account-order-request';
|
|
100
|
-
export * from './trading-place-ocoorder-request';
|
|
101
|
-
export * from './transactions-status';
|
|
102
|
-
export * from './usexchange';
|
|
103
|
-
export * from './underlying-symbol';
|
|
104
|
-
export * from './universal-activity';
|
|
105
|
-
export * from './universal-symbol';
|
|
106
|
-
export * from './universal-symbol-ticker';
|
|
107
|
-
export * from './user-error-log';
|
|
108
|
-
export * from './user-idand-secret';
|
|
109
|
-
export * from './user-settings';
|
package/models/jwt.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* SnapTrade
|
|
5
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: api@snaptrade.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
-
* https://konfigthis.com
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* JWT Token. Used to acess resources in private endpoints available only through the Passiv app
|
|
18
|
-
* @export
|
|
19
|
-
* @interface JWT
|
|
20
|
-
*/
|
|
21
|
-
export interface JWT {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof JWT
|
|
28
|
-
*/
|
|
29
|
-
'token'?: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* SnapTrade
|
|
5
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: api@snaptrade.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
-
* https://konfigthis.com
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Redirect uri upon successful login
|
|
18
|
-
* @export
|
|
19
|
-
* @interface LoginRedirectURI
|
|
20
|
-
*/
|
|
21
|
-
export interface LoginRedirectURI {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {any}
|
|
25
|
-
* @memberof LoginRedirectURI
|
|
26
|
-
*/
|
|
27
|
-
'redirectURI'?: any;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof LoginRedirectURI
|
|
32
|
-
*/
|
|
33
|
-
'sessionId'?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* SnapTrade
|
|
5
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: api@snaptrade.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
-
* https://konfigthis.com
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// May contain unused imports in some cases
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import { ManualTrade } from './manual-trade';
|
|
18
|
-
// May contain unused imports in some cases
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { ManualTradeBalance } from './manual-trade-balance';
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Manual Trade and Impact object
|
|
24
|
-
* @export
|
|
25
|
-
* @interface ManualTradeAndImpact
|
|
26
|
-
*/
|
|
27
|
-
export interface ManualTradeAndImpact {
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {ManualTrade}
|
|
33
|
-
* @memberof ManualTradeAndImpact
|
|
34
|
-
*/
|
|
35
|
-
'trade'?: ManualTrade;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {Array<ManualTrade>}
|
|
39
|
-
* @memberof ManualTradeAndImpact
|
|
40
|
-
*/
|
|
41
|
-
'trade_impacts'?: Array<ManualTrade>;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {ManualTradeBalance}
|
|
45
|
-
* @memberof ManualTradeAndImpact
|
|
46
|
-
*/
|
|
47
|
-
'combined_remaining_balance'?: ManualTradeBalance;
|
|
48
|
-
}
|
|
49
|
-
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* SnapTrade
|
|
5
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: api@snaptrade.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
-
* https://konfigthis.com
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// May contain unused imports in some cases
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import { Account } from './account';
|
|
18
|
-
// May contain unused imports in some cases
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { Currency } from './currency';
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Balance
|
|
24
|
-
* @export
|
|
25
|
-
* @interface ManualTradeBalance
|
|
26
|
-
*/
|
|
27
|
-
export interface ManualTradeBalance {
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Account}
|
|
33
|
-
* @memberof ManualTradeBalance
|
|
34
|
-
*/
|
|
35
|
-
'account'?: Account;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {Currency}
|
|
39
|
-
* @memberof ManualTradeBalance
|
|
40
|
-
*/
|
|
41
|
-
'currency'?: Currency;
|
|
42
|
-
/**
|
|
43
|
-
* Cash
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof ManualTradeBalance
|
|
46
|
-
*/
|
|
47
|
-
'cash'?: number | null;
|
|
48
|
-
}
|
|
49
|
-
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* SnapTrade
|
|
5
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: api@snaptrade.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
-
* https://konfigthis.com
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// May contain unused imports in some cases
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import { Action } from './action';
|
|
18
|
-
// May contain unused imports in some cases
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { OrderType } from './order-type';
|
|
21
|
-
// May contain unused imports in some cases
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
import { TimeInForce } from './time-in-force';
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Manual Trade Form
|
|
27
|
-
* @export
|
|
28
|
-
* @interface ManualTradeForm
|
|
29
|
-
*/
|
|
30
|
-
export interface ManualTradeForm {
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof ManualTradeForm
|
|
35
|
-
*/
|
|
36
|
-
'account_id'?: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Action}
|
|
40
|
-
* @memberof ManualTradeForm
|
|
41
|
-
*/
|
|
42
|
-
'action'?: Action;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {OrderType}
|
|
46
|
-
* @memberof ManualTradeForm
|
|
47
|
-
*/
|
|
48
|
-
'order_type'?: OrderType;
|
|
49
|
-
/**
|
|
50
|
-
* Trade Price if limit or stop limit order
|
|
51
|
-
* @type {number}
|
|
52
|
-
* @memberof ManualTradeForm
|
|
53
|
-
*/
|
|
54
|
-
'price'?: number;
|
|
55
|
-
/**
|
|
56
|
-
* Stop Price. If stop loss or stop limit order, the price to trigger the stop
|
|
57
|
-
* @type {number}
|
|
58
|
-
* @memberof ManualTradeForm
|
|
59
|
-
*/
|
|
60
|
-
'stop'?: number | null;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {TimeInForce}
|
|
64
|
-
* @memberof ManualTradeForm
|
|
65
|
-
*/
|
|
66
|
-
'time_in_force'?: TimeInForce;
|
|
67
|
-
/**
|
|
68
|
-
* Trade Units
|
|
69
|
-
* @type {number}
|
|
70
|
-
* @memberof ManualTradeForm
|
|
71
|
-
*/
|
|
72
|
-
'units'?: number;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof ManualTradeForm
|
|
77
|
-
*/
|
|
78
|
-
'universal_symbol_id'?: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* SnapTrade
|
|
5
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: api@snaptrade.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
-
* https://konfigthis.com
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// May contain unused imports in some cases
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import { Currency } from './currency';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Manual trade symbol object
|
|
21
|
-
* @export
|
|
22
|
-
* @interface ManualTradeSymbol
|
|
23
|
-
*/
|
|
24
|
-
export interface ManualTradeSymbol {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof ManualTradeSymbol
|
|
31
|
-
*/
|
|
32
|
-
'brokerage_symbol_id'?: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof ManualTradeSymbol
|
|
37
|
-
*/
|
|
38
|
-
'universal_symbol_id'?: string;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {Currency}
|
|
42
|
-
* @memberof ManualTradeSymbol
|
|
43
|
-
*/
|
|
44
|
-
'currency'?: Currency;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof ManualTradeSymbol
|
|
49
|
-
*/
|
|
50
|
-
'local_id'?: string;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof ManualTradeSymbol
|
|
55
|
-
*/
|
|
56
|
-
'description'?: string | null;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {string}
|
|
60
|
-
* @memberof ManualTradeSymbol
|
|
61
|
-
*/
|
|
62
|
-
'symbol'?: string;
|
|
63
|
-
}
|
|
64
|
-
|
package/models/manual-trade.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* SnapTrade
|
|
5
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: api@snaptrade.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
-
* https://konfigthis.com
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// May contain unused imports in some cases
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import { Account } from './account';
|
|
18
|
-
// May contain unused imports in some cases
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { Action } from './action';
|
|
21
|
-
// May contain unused imports in some cases
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
import { ManualTradeSymbol } from './manual-trade-symbol';
|
|
24
|
-
// May contain unused imports in some cases
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { OrderType } from './order-type';
|
|
27
|
-
// May contain unused imports in some cases
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
import { TimeInForce } from './time-in-force';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* A manual trade object
|
|
33
|
-
* @export
|
|
34
|
-
* @interface ManualTrade
|
|
35
|
-
*/
|
|
36
|
-
export interface ManualTrade {
|
|
37
|
-
[key: string]: any;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof ManualTrade
|
|
43
|
-
*/
|
|
44
|
-
'id'?: string;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {Account}
|
|
48
|
-
* @memberof ManualTrade
|
|
49
|
-
*/
|
|
50
|
-
'account'?: Account;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {OrderType}
|
|
54
|
-
* @memberof ManualTrade
|
|
55
|
-
*/
|
|
56
|
-
'order_type'?: OrderType;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {TimeInForce}
|
|
60
|
-
* @memberof ManualTrade
|
|
61
|
-
*/
|
|
62
|
-
'time_in_force'?: TimeInForce;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {ManualTradeSymbol}
|
|
66
|
-
* @memberof ManualTrade
|
|
67
|
-
*/
|
|
68
|
-
'symbol'?: ManualTradeSymbol;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {Action}
|
|
72
|
-
* @memberof ManualTrade
|
|
73
|
-
*/
|
|
74
|
-
'action'?: Action;
|
|
75
|
-
/**
|
|
76
|
-
* Trade Units
|
|
77
|
-
* @type {number}
|
|
78
|
-
* @memberof ManualTrade
|
|
79
|
-
*/
|
|
80
|
-
'units'?: number;
|
|
81
|
-
/**
|
|
82
|
-
* Trade Price if limit or stop limit order
|
|
83
|
-
* @type {number}
|
|
84
|
-
* @memberof ManualTrade
|
|
85
|
-
*/
|
|
86
|
-
'price'?: number;
|
|
87
|
-
}
|
|
88
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* SnapTrade
|
|
5
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: api@snaptrade.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
-
* https://konfigthis.com
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// May contain unused imports in some cases
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import { ModelAssetClass } from './model-asset-class';
|
|
18
|
-
// May contain unused imports in some cases
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { ModelAssetClassTarget } from './model-asset-class-target';
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
* @interface ModelAssetClassDetails
|
|
26
|
-
*/
|
|
27
|
-
export interface ModelAssetClassDetails {
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {ModelAssetClass}
|
|
31
|
-
* @memberof ModelAssetClassDetails
|
|
32
|
-
*/
|
|
33
|
-
'model_asset_class'?: ModelAssetClass;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {Array<ModelAssetClassTarget>}
|
|
37
|
-
* @memberof ModelAssetClassDetails
|
|
38
|
-
*/
|
|
39
|
-
'model_asset_class_target'?: Array<ModelAssetClassTarget>;
|
|
40
|
-
}
|
|
41
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* SnapTrade
|
|
5
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: api@snaptrade.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
-
* https://konfigthis.com
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// May contain unused imports in some cases
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import { UniversalSymbol } from './universal-symbol';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface ModelAssetClassTarget
|
|
23
|
-
*/
|
|
24
|
-
export interface ModelAssetClassTarget {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {UniversalSymbol}
|
|
30
|
-
* @memberof ModelAssetClassTarget
|
|
31
|
-
*/
|
|
32
|
-
'symbol'?: UniversalSymbol;
|
|
33
|
-
}
|
|
34
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* SnapTrade
|
|
5
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: api@snaptrade.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
-
* https://konfigthis.com
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ModelAssetClass
|
|
20
|
-
*/
|
|
21
|
-
export interface ModelAssetClass {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ModelAssetClass
|
|
28
|
-
*/
|
|
29
|
-
'id'?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ModelAssetClass
|
|
34
|
-
*/
|
|
35
|
-
'name'?: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* SnapTrade
|
|
5
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
* Contact: api@snaptrade.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
11
|
-
* https://konfigthis.com
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// May contain unused imports in some cases
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import { ModelAssetClass } from './model-asset-class';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface ModelPortfolioAssetClass
|
|
23
|
-
*/
|
|
24
|
-
export interface ModelPortfolioAssetClass {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {ModelAssetClass}
|
|
30
|
-
* @memberof ModelPortfolioAssetClass
|
|
31
|
-
*/
|
|
32
|
-
'model_asset_class'?: ModelAssetClass;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {number}
|
|
36
|
-
* @memberof ModelPortfolioAssetClass
|
|
37
|
-
*/
|
|
38
|
-
'percent'?: number;
|
|
39
|
-
}
|
|
40
|
-
|