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
|
@@ -1,154 +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 { MonthlyDividends } from './monthly-dividends';
|
|
18
|
-
// May contain unused imports in some cases
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { NetContributions } from './net-contributions';
|
|
21
|
-
// May contain unused imports in some cases
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
import { NetDividend } from './net-dividend';
|
|
24
|
-
// May contain unused imports in some cases
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { PastValue } from './past-value';
|
|
27
|
-
// May contain unused imports in some cases
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
import { SubPeriodReturnRate } from './sub-period-return-rate';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Performance Custom Response Object
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PerformanceCustom
|
|
35
|
-
*/
|
|
36
|
-
export interface PerformanceCustom {
|
|
37
|
-
[key: string]: any;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {Array<PastValue>}
|
|
42
|
-
* @memberof PerformanceCustom
|
|
43
|
-
*/
|
|
44
|
-
'totalEquityTimeframe'?: Array<PastValue>;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {NetContributions}
|
|
48
|
-
* @memberof PerformanceCustom
|
|
49
|
-
*/
|
|
50
|
-
'contributions'?: NetContributions;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {Array<PastValue>}
|
|
54
|
-
* @memberof PerformanceCustom
|
|
55
|
-
*/
|
|
56
|
-
'contributionTimeframe'?: Array<PastValue>;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {Array<PastValue>}
|
|
60
|
-
* @memberof PerformanceCustom
|
|
61
|
-
*/
|
|
62
|
-
'contributionTimeframeCumulative'?: Array<PastValue>;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {Array<PastValue>}
|
|
66
|
-
* @memberof PerformanceCustom
|
|
67
|
-
*/
|
|
68
|
-
'withdrawalTimeframe'?: Array<PastValue>;
|
|
69
|
-
/**
|
|
70
|
-
* Current streak of cosecutive months where contributions were made
|
|
71
|
-
* @type {number}
|
|
72
|
-
* @memberof PerformanceCustom
|
|
73
|
-
*/
|
|
74
|
-
'contributionStreak'?: number | null;
|
|
75
|
-
/**
|
|
76
|
-
* Number of months in the timeframe with contributions
|
|
77
|
-
* @type {number}
|
|
78
|
-
* @memberof PerformanceCustom
|
|
79
|
-
*/
|
|
80
|
-
'contributionMonthsContributed'?: number | null;
|
|
81
|
-
/**
|
|
82
|
-
* Total months in timeframe
|
|
83
|
-
* @type {number}
|
|
84
|
-
* @memberof PerformanceCustom
|
|
85
|
-
*/
|
|
86
|
-
'contributionTotalMonths'?: number | null;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {Array<NetDividend>}
|
|
90
|
-
* @memberof PerformanceCustom
|
|
91
|
-
*/
|
|
92
|
-
'dividends'?: Array<NetDividend>;
|
|
93
|
-
/**
|
|
94
|
-
* Total dividends received over the timeframe
|
|
95
|
-
* @type {number}
|
|
96
|
-
* @memberof PerformanceCustom
|
|
97
|
-
*/
|
|
98
|
-
'dividendIncome'?: number | null;
|
|
99
|
-
/**
|
|
100
|
-
* Average dividends received per month over the timeframe
|
|
101
|
-
* @type {number}
|
|
102
|
-
* @memberof PerformanceCustom
|
|
103
|
-
*/
|
|
104
|
-
'monthlyDividends'?: number | null;
|
|
105
|
-
/**
|
|
106
|
-
* list of tickers which may not be supported or may not have accurate price data
|
|
107
|
-
* @type {Array<string>}
|
|
108
|
-
* @memberof PerformanceCustom
|
|
109
|
-
*/
|
|
110
|
-
'badTickers'?: Array<string>;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {Array<MonthlyDividends>}
|
|
114
|
-
* @memberof PerformanceCustom
|
|
115
|
-
*/
|
|
116
|
-
'dividendTimeline'?: Array<MonthlyDividends>;
|
|
117
|
-
/**
|
|
118
|
-
* commissions incurred during the timeframe
|
|
119
|
-
* @type {number}
|
|
120
|
-
* @memberof PerformanceCustom
|
|
121
|
-
*/
|
|
122
|
-
'commissions'?: number | null;
|
|
123
|
-
/**
|
|
124
|
-
* forex fees incurred during the timeframe
|
|
125
|
-
* @type {number}
|
|
126
|
-
* @memberof PerformanceCustom
|
|
127
|
-
*/
|
|
128
|
-
'forexFees'?: number | null;
|
|
129
|
-
/**
|
|
130
|
-
* other fees incurred during the timeframe
|
|
131
|
-
* @type {number}
|
|
132
|
-
* @memberof PerformanceCustom
|
|
133
|
-
*/
|
|
134
|
-
'fees'?: number | null;
|
|
135
|
-
/**
|
|
136
|
-
* The return rate over the timeframe. Annualized if timeframe is longer than 1 year
|
|
137
|
-
* @type {number}
|
|
138
|
-
* @memberof PerformanceCustom
|
|
139
|
-
*/
|
|
140
|
-
'rateOfReturn'?: number | null;
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @type {Array<SubPeriodReturnRate>}
|
|
144
|
-
* @memberof PerformanceCustom
|
|
145
|
-
*/
|
|
146
|
-
'returnRateTimeframe'?: Array<SubPeriodReturnRate>;
|
|
147
|
-
/**
|
|
148
|
-
* Whether the user has detailed mode enabled (more frequent data points for totalEquity and contribution timeframes)
|
|
149
|
-
* @type {boolean}
|
|
150
|
-
* @memberof PerformanceCustom
|
|
151
|
-
*/
|
|
152
|
-
'detailedMode'?: boolean;
|
|
153
|
-
}
|
|
154
|
-
|
|
@@ -1,115 +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 { Balance } from './balance';
|
|
18
|
-
// May contain unused imports in some cases
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { BrokerageAuthorization } from './brokerage-authorization';
|
|
21
|
-
// May contain unused imports in some cases
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
import { CalculatedTrade } from './calculated-trade';
|
|
24
|
-
// May contain unused imports in some cases
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { ExcludedAsset } from './excluded-asset';
|
|
27
|
-
// May contain unused imports in some cases
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
import { PortfolioGroupSettings } from './portfolio-group-settings';
|
|
30
|
-
// May contain unused imports in some cases
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { Position } from './position';
|
|
33
|
-
// May contain unused imports in some cases
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
import { TargetAsset } from './target-asset';
|
|
36
|
-
// May contain unused imports in some cases
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
import { UniversalSymbol } from './universal-symbol';
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Summary of all relevant information about a portfolio group.
|
|
42
|
-
* @export
|
|
43
|
-
* @interface PortfolioGroupInfo
|
|
44
|
-
*/
|
|
45
|
-
export interface PortfolioGroupInfo {
|
|
46
|
-
[key: string]: any;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {Array<UniversalSymbol>}
|
|
51
|
-
* @memberof PortfolioGroupInfo
|
|
52
|
-
*/
|
|
53
|
-
'symbols'?: Array<UniversalSymbol>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Array<UniversalSymbol>}
|
|
57
|
-
* @memberof PortfolioGroupInfo
|
|
58
|
-
*/
|
|
59
|
-
'quotable_symbols'?: Array<UniversalSymbol>;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {Array<Balance>}
|
|
63
|
-
* @memberof PortfolioGroupInfo
|
|
64
|
-
*/
|
|
65
|
-
'balances'?: Array<Balance>;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {Array<Position>}
|
|
69
|
-
* @memberof PortfolioGroupInfo
|
|
70
|
-
*/
|
|
71
|
-
'positions'?: Array<Position>;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {Array<TargetAsset>}
|
|
75
|
-
* @memberof PortfolioGroupInfo
|
|
76
|
-
*/
|
|
77
|
-
'target_positions'?: Array<TargetAsset>;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {Array<Position>}
|
|
81
|
-
* @memberof PortfolioGroupInfo
|
|
82
|
-
*/
|
|
83
|
-
'ideal_positions'?: Array<Position>;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {Array<ExcludedAsset>}
|
|
87
|
-
* @memberof PortfolioGroupInfo
|
|
88
|
-
*/
|
|
89
|
-
'excluded_positions'?: Array<ExcludedAsset>;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {Array<CalculatedTrade>}
|
|
93
|
-
* @memberof PortfolioGroupInfo
|
|
94
|
-
*/
|
|
95
|
-
'calculated_trades'?: Array<CalculatedTrade>;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {Array<BrokerageAuthorization>}
|
|
99
|
-
* @memberof PortfolioGroupInfo
|
|
100
|
-
*/
|
|
101
|
-
'brokerage_authorizations'?: Array<BrokerageAuthorization>;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {number}
|
|
105
|
-
* @memberof PortfolioGroupInfo
|
|
106
|
-
*/
|
|
107
|
-
'accuracy'?: number;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {PortfolioGroupSettings}
|
|
111
|
-
* @memberof PortfolioGroupInfo
|
|
112
|
-
*/
|
|
113
|
-
'settings'?: PortfolioGroupSettings;
|
|
114
|
-
}
|
|
115
|
-
|
|
@@ -1,46 +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
|
-
* Details of a security held
|
|
21
|
-
* @export
|
|
22
|
-
* @interface PortfolioGroupPosition
|
|
23
|
-
*/
|
|
24
|
-
export interface PortfolioGroupPosition {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {UniversalSymbol}
|
|
30
|
-
* @memberof PortfolioGroupPosition
|
|
31
|
-
*/
|
|
32
|
-
'symbol'?: UniversalSymbol;
|
|
33
|
-
/**
|
|
34
|
-
* Last known market price for the symbol
|
|
35
|
-
* @type {number}
|
|
36
|
-
* @memberof PortfolioGroupPosition
|
|
37
|
-
*/
|
|
38
|
-
'price'?: number | null;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {number}
|
|
42
|
-
* @memberof PortfolioGroupPosition
|
|
43
|
-
*/
|
|
44
|
-
'units'?: number;
|
|
45
|
-
}
|
|
46
|
-
|
|
@@ -1,58 +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
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface PortfolioGroupSettings
|
|
23
|
-
*/
|
|
24
|
-
export interface PortfolioGroupSettings {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {boolean}
|
|
30
|
-
* @memberof PortfolioGroupSettings
|
|
31
|
-
*/
|
|
32
|
-
'buyOnly'?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {boolean}
|
|
36
|
-
* @memberof PortfolioGroupSettings
|
|
37
|
-
*/
|
|
38
|
-
'cash_optimizer'?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof PortfolioGroupSettings
|
|
43
|
-
*/
|
|
44
|
-
'notifyFrequency'?: string;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @memberof PortfolioGroupSettings
|
|
49
|
-
*/
|
|
50
|
-
'driftThreshold'?: number;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {Currency}
|
|
54
|
-
* @memberof PortfolioGroupSettings
|
|
55
|
-
*/
|
|
56
|
-
'preferred_currency'?: Currency;
|
|
57
|
-
}
|
|
58
|
-
|
|
@@ -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 PortfolioGroup
|
|
20
|
-
*/
|
|
21
|
-
export interface PortfolioGroup {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof PortfolioGroup
|
|
28
|
-
*/
|
|
29
|
-
'id'?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof PortfolioGroup
|
|
34
|
-
*/
|
|
35
|
-
'name'?: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
@@ -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 { UniversalSymbol } from './universal-symbol';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Symbol returned in position object
|
|
21
|
-
* @export
|
|
22
|
-
* @interface PositionSymbol
|
|
23
|
-
*/
|
|
24
|
-
export interface PositionSymbol {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof PositionSymbol
|
|
31
|
-
*/
|
|
32
|
-
'id'?: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof PositionSymbol
|
|
37
|
-
*/
|
|
38
|
-
'description'?: string;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {UniversalSymbol}
|
|
42
|
-
* @memberof PositionSymbol
|
|
43
|
-
*/
|
|
44
|
-
'symbol'?: UniversalSymbol;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof PositionSymbol
|
|
49
|
-
*/
|
|
50
|
-
'local_id'?: string | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {boolean}
|
|
54
|
-
* @memberof PositionSymbol
|
|
55
|
-
*/
|
|
56
|
-
'is_quotable'?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {boolean}
|
|
60
|
-
* @memberof PositionSymbol
|
|
61
|
-
*/
|
|
62
|
-
'is_tradable'?: boolean;
|
|
63
|
-
}
|
|
64
|
-
|
package/models/position.ts
DELETED
|
@@ -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 { PositionSymbol } from './position-symbol';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Account Position
|
|
21
|
-
* @export
|
|
22
|
-
* @interface Position
|
|
23
|
-
*/
|
|
24
|
-
export interface Position {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {PositionSymbol}
|
|
30
|
-
* @memberof Position
|
|
31
|
-
*/
|
|
32
|
-
'symbol'?: PositionSymbol;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {number}
|
|
36
|
-
* @memberof Position
|
|
37
|
-
*/
|
|
38
|
-
'units'?: number | null;
|
|
39
|
-
/**
|
|
40
|
-
* Last known market price for the symbol
|
|
41
|
-
* @type {number}
|
|
42
|
-
* @memberof Position
|
|
43
|
-
*/
|
|
44
|
-
'price'?: number | null;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @memberof Position
|
|
49
|
-
*/
|
|
50
|
-
'open_pnl'?: number | null;
|
|
51
|
-
/**
|
|
52
|
-
* Deprecated, use the units field for both fractional and integer units going forward
|
|
53
|
-
* @type {number}
|
|
54
|
-
* @memberof Position
|
|
55
|
-
*/
|
|
56
|
-
'fractional_units'?: number | null;
|
|
57
|
-
/**
|
|
58
|
-
* Average purchase price for this position. Either returned by the underlying broker or calculated using historical transactions.
|
|
59
|
-
* @type {number}
|
|
60
|
-
* @memberof Position
|
|
61
|
-
*/
|
|
62
|
-
'average_purchase_price'?: number | null;
|
|
63
|
-
}
|
|
64
|
-
|
|
@@ -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
|
-
* Response when register user is successful
|
|
18
|
-
* @export
|
|
19
|
-
* @interface RedirectTokenandPin
|
|
20
|
-
*/
|
|
21
|
-
export interface RedirectTokenandPin {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof RedirectTokenandPin
|
|
28
|
-
*/
|
|
29
|
-
'token'?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof RedirectTokenandPin
|
|
34
|
-
*/
|
|
35
|
-
'pin'?: string;
|
|
36
|
-
}
|
|
37
|
-
|
package/models/security-type.ts
DELETED
|
@@ -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
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Security Type
|
|
18
|
-
* @export
|
|
19
|
-
* @interface SecurityType
|
|
20
|
-
*/
|
|
21
|
-
export interface SecurityType {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SecurityType
|
|
28
|
-
*/
|
|
29
|
-
'id'?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof SecurityType
|
|
34
|
-
*/
|
|
35
|
-
'code'?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof SecurityType
|
|
40
|
-
*/
|
|
41
|
-
'description'?: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {boolean}
|
|
45
|
-
* @memberof SecurityType
|
|
46
|
-
*/
|
|
47
|
-
'is_supported'?: boolean;
|
|
48
|
-
}
|
|
49
|
-
|
package/models/session-event.ts
DELETED
|
@@ -1,74 +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 SessionEvent
|
|
20
|
-
*/
|
|
21
|
-
export interface SessionEvent {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SessionEvent
|
|
28
|
-
*/
|
|
29
|
-
'id'?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof SessionEvent
|
|
34
|
-
*/
|
|
35
|
-
'session_event_type'?: SessionEventSessionEventTypeEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof SessionEvent
|
|
40
|
-
*/
|
|
41
|
-
'session_id'?: string;
|
|
42
|
-
/**
|
|
43
|
-
* SnapTrade User ID. Provided by SnapTrade Partner. Can be any string, as long as it\'s unique to a user
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof SessionEvent
|
|
46
|
-
*/
|
|
47
|
-
'user_id'?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Time
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof SessionEvent
|
|
52
|
-
*/
|
|
53
|
-
'created_date'?: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof SessionEvent
|
|
58
|
-
*/
|
|
59
|
-
'brokerage_status_code'?: number | null;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export const SessionEventSessionEventTypeEnum = {
|
|
63
|
-
ConnectionFailed: 'CONNECTION_FAILED',
|
|
64
|
-
DisclaimerAccepted: 'DISCLAIMER_ACCEPTED',
|
|
65
|
-
BrokerageConnectionInitiated: 'BROKERAGE_CONNECTION_INITIATED',
|
|
66
|
-
BrokerageAuthentication: 'BROKERAGE_AUTHENTICATION',
|
|
67
|
-
MfaAuthorization: 'MFA_AUTHORIZATION',
|
|
68
|
-
ConnectionSuccessful: 'CONNECTION_SUCCESSFUL',
|
|
69
|
-
PartnerRedirect: 'PARTNER_REDIRECT'
|
|
70
|
-
} as const;
|
|
71
|
-
|
|
72
|
-
export type SessionEventSessionEventTypeEnum = typeof SessionEventSessionEventTypeEnum[keyof typeof SessionEventSessionEventTypeEnum];
|
|
73
|
-
|
|
74
|
-
|