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,50 +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 { ModelPortfolio } from './model-portfolio';
|
|
18
|
-
// May contain unused imports in some cases
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { ModelPortfolioAssetClass } from './model-portfolio-asset-class';
|
|
21
|
-
// May contain unused imports in some cases
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
import { ModelPortfolioSecurity } from './model-portfolio-security';
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface ModelPortfolioDetails
|
|
29
|
-
*/
|
|
30
|
-
export interface ModelPortfolioDetails {
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {ModelPortfolio}
|
|
34
|
-
* @memberof ModelPortfolioDetails
|
|
35
|
-
*/
|
|
36
|
-
'model_portfolio'?: ModelPortfolio;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<ModelPortfolioSecurity>}
|
|
40
|
-
* @memberof ModelPortfolioDetails
|
|
41
|
-
*/
|
|
42
|
-
'model_portfolio_security'?: Array<ModelPortfolioSecurity>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {Array<ModelPortfolioAssetClass>}
|
|
46
|
-
* @memberof ModelPortfolioDetails
|
|
47
|
-
*/
|
|
48
|
-
'model_portfolio_asset_class'?: Array<ModelPortfolioAssetClass>;
|
|
49
|
-
}
|
|
50
|
-
|
|
@@ -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 { UniversalSymbol } from './universal-symbol';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface ModelPortfolioSecurity
|
|
23
|
-
*/
|
|
24
|
-
export interface ModelPortfolioSecurity {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {UniversalSymbol}
|
|
30
|
-
* @memberof ModelPortfolioSecurity
|
|
31
|
-
*/
|
|
32
|
-
'symbol'?: UniversalSymbol;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {number}
|
|
36
|
-
* @memberof ModelPortfolioSecurity
|
|
37
|
-
*/
|
|
38
|
-
'percent'?: number;
|
|
39
|
-
}
|
|
40
|
-
|
|
@@ -1,52 +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 ModelPortfolio
|
|
20
|
-
*/
|
|
21
|
-
export interface ModelPortfolio {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ModelPortfolio
|
|
28
|
-
*/
|
|
29
|
-
'id'?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ModelPortfolio
|
|
34
|
-
*/
|
|
35
|
-
'name'?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Enum definitions -> [-1: Unassigned, 0: Security Model Portfolio, 1: Asset Class Portfolio]
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ModelPortfolio
|
|
40
|
-
*/
|
|
41
|
-
'model_type'?: ModelPortfolioModelTypeEnum;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export const ModelPortfolioModelTypeEnum = {
|
|
45
|
-
NUMBER_MINUS_1: -1,
|
|
46
|
-
NUMBER_0: 0,
|
|
47
|
-
NUMBER_1: 1
|
|
48
|
-
} as const;
|
|
49
|
-
|
|
50
|
-
export type ModelPortfolioModelTypeEnum = typeof ModelPortfolioModelTypeEnum[keyof typeof ModelPortfolioModelTypeEnum];
|
|
51
|
-
|
|
52
|
-
|
|
@@ -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
|
-
* Example for failed request response
|
|
18
|
-
* @export
|
|
19
|
-
* @interface Model400FailedRequestResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface Model400FailedRequestResponse {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {any}
|
|
27
|
-
* @memberof Model400FailedRequestResponse
|
|
28
|
-
*/
|
|
29
|
-
'default_detail'?: any;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {any}
|
|
33
|
-
* @memberof Model400FailedRequestResponse
|
|
34
|
-
*/
|
|
35
|
-
'default_code'?: any;
|
|
36
|
-
}
|
|
37
|
-
|
|
@@ -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
|
-
* Example for failed request response
|
|
18
|
-
* @export
|
|
19
|
-
* @interface Model401FailedRequestResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface Model401FailedRequestResponse {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {any}
|
|
27
|
-
* @memberof Model401FailedRequestResponse
|
|
28
|
-
*/
|
|
29
|
-
'default_detail'?: any;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {any}
|
|
33
|
-
* @memberof Model401FailedRequestResponse
|
|
34
|
-
*/
|
|
35
|
-
'default_code'?: any;
|
|
36
|
-
}
|
|
37
|
-
|
|
@@ -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
|
-
* Example for failed request response
|
|
18
|
-
* @export
|
|
19
|
-
* @interface Model403FailedRequestResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface Model403FailedRequestResponse {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {any}
|
|
27
|
-
* @memberof Model403FailedRequestResponse
|
|
28
|
-
*/
|
|
29
|
-
'default_detail'?: any;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {any}
|
|
33
|
-
* @memberof Model403FailedRequestResponse
|
|
34
|
-
*/
|
|
35
|
-
'default_code'?: any;
|
|
36
|
-
}
|
|
37
|
-
|
|
@@ -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
|
-
* Example for failed request response
|
|
18
|
-
* @export
|
|
19
|
-
* @interface Model404FailedRequestResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface Model404FailedRequestResponse {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {any}
|
|
27
|
-
* @memberof Model404FailedRequestResponse
|
|
28
|
-
*/
|
|
29
|
-
'default_detail'?: any;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {any}
|
|
33
|
-
* @memberof Model404FailedRequestResponse
|
|
34
|
-
*/
|
|
35
|
-
'default_code'?: any;
|
|
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 { DividendAtDate } from './dividend-at-date';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface MonthlyDividends
|
|
23
|
-
*/
|
|
24
|
-
export interface MonthlyDividends {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Date used to specify timeframe for a reporting call (in YYYY-MM-DD format)
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof MonthlyDividends
|
|
31
|
-
*/
|
|
32
|
-
'date'?: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {Array<DividendAtDate>}
|
|
36
|
-
* @memberof MonthlyDividends
|
|
37
|
-
*/
|
|
38
|
-
'dividends'?: Array<DividendAtDate>;
|
|
39
|
-
}
|
|
40
|
-
|
|
@@ -1,43 +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 NetContributions
|
|
20
|
-
*/
|
|
21
|
-
export interface NetContributions {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Date used to specify timeframe for a reporting call (in YYYY-MM-DD format)
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof NetContributions
|
|
28
|
-
*/
|
|
29
|
-
'date'?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof NetContributions
|
|
34
|
-
*/
|
|
35
|
-
'contributions'?: number | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof NetContributions
|
|
40
|
-
*/
|
|
41
|
-
'currency'?: string;
|
|
42
|
-
}
|
|
43
|
-
|
package/models/net-dividend.ts
DELETED
|
@@ -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
|
-
* Object representing total dividends received during a timeframe
|
|
21
|
-
* @export
|
|
22
|
-
* @interface NetDividend
|
|
23
|
-
*/
|
|
24
|
-
export interface NetDividend {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {UniversalSymbol}
|
|
30
|
-
* @memberof NetDividend
|
|
31
|
-
*/
|
|
32
|
-
'symbol'?: UniversalSymbol;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {number}
|
|
36
|
-
* @memberof NetDividend
|
|
37
|
-
*/
|
|
38
|
-
'amount'?: number | null;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof NetDividend
|
|
43
|
-
*/
|
|
44
|
-
'currency'?: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
@@ -1,43 +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 OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
|
|
20
|
-
*/
|
|
21
|
-
export interface OptionChainInnerChainPerRootInnerChainPerStrikePriceInner {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
|
|
28
|
-
*/
|
|
29
|
-
'strikePrice'?: number | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
|
|
34
|
-
*/
|
|
35
|
-
'callSymbolId'?: number | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof OptionChainInnerChainPerRootInnerChainPerStrikePriceInner
|
|
40
|
-
*/
|
|
41
|
-
'putSymbolId'?: number | null;
|
|
42
|
-
}
|
|
43
|
-
|
|
@@ -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 { OptionChainInnerChainPerRootInnerChainPerStrikePriceInner } from './option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface OptionChainInnerChainPerRootInner
|
|
23
|
-
*/
|
|
24
|
-
export interface OptionChainInnerChainPerRootInner {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof OptionChainInnerChainPerRootInner
|
|
31
|
-
*/
|
|
32
|
-
'optionRoot'?: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {Array<OptionChainInnerChainPerRootInnerChainPerStrikePriceInner>}
|
|
36
|
-
* @memberof OptionChainInnerChainPerRootInner
|
|
37
|
-
*/
|
|
38
|
-
'chainPerStrikePrice'?: Array<OptionChainInnerChainPerRootInnerChainPerStrikePriceInner>;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {number}
|
|
42
|
-
* @memberof OptionChainInnerChainPerRootInner
|
|
43
|
-
*/
|
|
44
|
-
'multiplier'?: 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 { OptionChainInnerChainPerRootInner } from './option-chain-inner-chain-per-root-inner';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @interface OptionChainInner
|
|
23
|
-
*/
|
|
24
|
-
export interface OptionChainInner {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof OptionChainInner
|
|
31
|
-
*/
|
|
32
|
-
'expiryDate'?: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof OptionChainInner
|
|
37
|
-
*/
|
|
38
|
-
'description'?: string;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof OptionChainInner
|
|
43
|
-
*/
|
|
44
|
-
'listingExchange'?: string;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof OptionChainInner
|
|
49
|
-
*/
|
|
50
|
-
'optionExerciseType'?: string;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {Array<OptionChainInnerChainPerRootInner>}
|
|
54
|
-
* @memberof OptionChainInner
|
|
55
|
-
*/
|
|
56
|
-
'chainPerRoot'?: Array<OptionChainInnerChainPerRootInner>;
|
|
57
|
-
}
|
|
58
|
-
|
package/models/option-leg.ts
DELETED
|
@@ -1,53 +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
|
-
* Option Leg
|
|
18
|
-
* @export
|
|
19
|
-
* @interface OptionLeg
|
|
20
|
-
*/
|
|
21
|
-
export interface OptionLeg {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof OptionLeg
|
|
28
|
-
*/
|
|
29
|
-
'action'?: OptionLegActionEnum;
|
|
30
|
-
/**
|
|
31
|
-
* Obtained from calling options chain endpoint (option_id)
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof OptionLeg
|
|
34
|
-
*/
|
|
35
|
-
'option_symbol_id'?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof OptionLeg
|
|
40
|
-
*/
|
|
41
|
-
'quantity'?: number;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export const OptionLegActionEnum = {
|
|
45
|
-
BuyToOpen: 'BUY_TO_OPEN',
|
|
46
|
-
BuyToClose: 'BUY_TO_CLOSE',
|
|
47
|
-
SellToOpen: 'SELL_TO_OPEN',
|
|
48
|
-
SellToClose: 'SELL_TO_CLOSE'
|
|
49
|
-
} as const;
|
|
50
|
-
|
|
51
|
-
export type OptionLegActionEnum = typeof OptionLegActionEnum[keyof typeof OptionLegActionEnum];
|
|
52
|
-
|
|
53
|
-
|
|
@@ -1,47 +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 OptionStrategyLegsInner
|
|
20
|
-
*/
|
|
21
|
-
export interface OptionStrategyLegsInner {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof OptionStrategyLegsInner
|
|
26
|
-
*/
|
|
27
|
-
'option_symbol_id'?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof OptionStrategyLegsInner
|
|
32
|
-
*/
|
|
33
|
-
'index'?: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof OptionStrategyLegsInner
|
|
38
|
-
*/
|
|
39
|
-
'action'?: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof OptionStrategyLegsInner
|
|
44
|
-
*/
|
|
45
|
-
'quantity'?: number;
|
|
46
|
-
}
|
|
47
|
-
|