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/README.md
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
Connect brokerage accounts to your app for live positions and trading
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
**Important note: this library is can be used in both the client-side or server-side, but using it
|
|
6
|
-
in client-side browser code is not recommended as you would expose security credentials.**
|
|
1
|
+
# snaptrade-typescript-sdk@8.8.0
|
|
7
2
|
|
|
8
|
-
|
|
3
|
+
Connect brokerage accounts to your app for live positions and trading
|
|
4
|
+
## Installing
|
|
9
5
|
|
|
10
|
-
|
|
6
|
+
### npm
|
|
11
7
|
```
|
|
12
8
|
npm install snaptrade-typescript-sdk --save
|
|
13
9
|
```
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
### yarn
|
|
16
12
|
```
|
|
17
13
|
yarn add snaptrade-typescript-sdk
|
|
18
14
|
```
|
|
19
15
|
|
|
16
|
+
**Important note: this library is can be used in both the client-side or server-side, but using it
|
|
17
|
+
in client-side browser code is not recommended as you would expose security credentials.**
|
|
20
18
|
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
|
|
21
|
+
## Getting Started
|
|
23
22
|
|
|
24
23
|
```typescript
|
|
25
24
|
const { Snaptrade } = require("snaptrade-typescript-sdk");
|
|
@@ -94,7 +93,6 @@ function getUserId() {
|
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
main();
|
|
97
|
-
|
|
98
96
|
```
|
|
99
97
|
|
|
100
98
|
## Documentation for API Endpoints
|
|
@@ -143,7 +141,6 @@ Class | Method | HTTP request | Description
|
|
|
143
141
|
*PortfolioManagementApi* | [**getPortfolioBalances**](docs/PortfolioManagementApi.md#getPortfolioBalances) | **GET** /portfolioGroups/{portfolioGroupId}/balances | Get sum of cash balances in portfolio group
|
|
144
142
|
*PortfolioManagementApi* | [**getPortfolioDetailsById**](docs/PortfolioManagementApi.md#getPortfolioDetailsById) | **GET** /portfolioGroups/{portfolioGroupId} | Get details of a target portfolio
|
|
145
143
|
*PortfolioManagementApi* | [**getPortfolioInfo**](docs/PortfolioManagementApi.md#getPortfolioInfo) | **GET** /portfolioGroups/{portfolioGroupId}/info | Return a whole bunch of relevant information relating to a portfolio group.
|
|
146
|
-
*PortfolioManagementApi* | [**getPortfolioPositions**](docs/PortfolioManagementApi.md#getPortfolioPositions) | **GET** /portfolioGroups/{portfolioGroupId}/positions | Get total of each postions owned in portfolio group
|
|
147
144
|
*PortfolioManagementApi* | [**getPortfolioSettings**](docs/PortfolioManagementApi.md#getPortfolioSettings) | **GET** /portfolioGroups/{portfolioGroupId}/settings | Get portfolio group settings
|
|
148
145
|
*PortfolioManagementApi* | [**getPortfolioTargetById**](docs/PortfolioManagementApi.md#getPortfolioTargetById) | **GET** /portfolioGroups/{portfolioGroupId}/targets/{targetAssetId} | Get a specific target from a portfolio group
|
|
149
146
|
*PortfolioManagementApi* | [**getPortfolioTargets**](docs/PortfolioManagementApi.md#getPortfolioTargets) | **GET** /portfolioGroups/{portfolioGroupId}/targets | Get all target assets under the specified PortfolioGroup.
|
|
@@ -20,7 +20,6 @@ import { ModelAssetClassDetails } from '../models';
|
|
|
20
20
|
import { ModelPortfolioDetails } from '../models';
|
|
21
21
|
import { PortfolioGroup } from '../models';
|
|
22
22
|
import { PortfolioGroupInfo } from '../models';
|
|
23
|
-
import { PortfolioGroupPosition } from '../models';
|
|
24
23
|
import { PortfolioGroupSettings } from '../models';
|
|
25
24
|
import { SymbolQuery } from '../models';
|
|
26
25
|
import { TargetAsset } from '../models';
|
|
@@ -159,14 +158,6 @@ export declare const PortfolioManagementApiAxiosParamCreator: (configuration?: C
|
|
|
159
158
|
* @throws {RequiredError}
|
|
160
159
|
*/
|
|
161
160
|
getPortfolioInfo: (portfolioGroupId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* @summary Get total of each postions owned in portfolio group
|
|
165
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to create the target asset.
|
|
166
|
-
* @param {*} [options] Override http request option.
|
|
167
|
-
* @throws {RequiredError}
|
|
168
|
-
*/
|
|
169
|
-
getPortfolioPositions: (portfolioGroupId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
170
161
|
/**
|
|
171
162
|
*
|
|
172
163
|
* @summary Get portfolio group settings
|
|
@@ -436,14 +427,6 @@ export declare const PortfolioManagementApiFp: (configuration?: Configuration) =
|
|
|
436
427
|
* @throws {RequiredError}
|
|
437
428
|
*/
|
|
438
429
|
getPortfolioInfo(requestParameters: PortfolioManagementApiGetPortfolioInfoRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PortfolioGroupInfo>>;
|
|
439
|
-
/**
|
|
440
|
-
*
|
|
441
|
-
* @summary Get total of each postions owned in portfolio group
|
|
442
|
-
* @param {PortfolioManagementApiGetPortfolioPositionsRequest} requestParameters Request parameters.
|
|
443
|
-
* @param {*} [options] Override http request option.
|
|
444
|
-
* @throws {RequiredError}
|
|
445
|
-
*/
|
|
446
|
-
getPortfolioPositions(requestParameters: PortfolioManagementApiGetPortfolioPositionsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PortfolioGroupPosition>>>;
|
|
447
430
|
/**
|
|
448
431
|
*
|
|
449
432
|
* @summary Get portfolio group settings
|
|
@@ -702,14 +685,6 @@ export declare const PortfolioManagementApiFactory: (configuration?: Configurati
|
|
|
702
685
|
* @throws {RequiredError}
|
|
703
686
|
*/
|
|
704
687
|
getPortfolioInfo(requestParameters: PortfolioManagementApiGetPortfolioInfoRequest, options?: AxiosRequestConfig): AxiosPromise<PortfolioGroupInfo>;
|
|
705
|
-
/**
|
|
706
|
-
*
|
|
707
|
-
* @summary Get total of each postions owned in portfolio group
|
|
708
|
-
* @param {PortfolioManagementApiGetPortfolioPositionsRequest} requestParameters Request parameters.
|
|
709
|
-
* @param {*} [options] Override http request option.
|
|
710
|
-
* @throws {RequiredError}
|
|
711
|
-
*/
|
|
712
|
-
getPortfolioPositions(requestParameters: PortfolioManagementApiGetPortfolioPositionsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PortfolioGroupPosition>>;
|
|
713
688
|
/**
|
|
714
689
|
*
|
|
715
690
|
* @summary Get portfolio group settings
|
|
@@ -1046,19 +1021,6 @@ export type PortfolioManagementApiGetPortfolioInfoRequest = {
|
|
|
1046
1021
|
*/
|
|
1047
1022
|
readonly portfolioGroupId: string;
|
|
1048
1023
|
};
|
|
1049
|
-
/**
|
|
1050
|
-
* Request parameters for getPortfolioPositions operation in PortfolioManagementApi.
|
|
1051
|
-
* @export
|
|
1052
|
-
* @interface PortfolioManagementApiGetPortfolioPositionsRequest
|
|
1053
|
-
*/
|
|
1054
|
-
export type PortfolioManagementApiGetPortfolioPositionsRequest = {
|
|
1055
|
-
/**
|
|
1056
|
-
* The ID of the PortfolioGroup under which to create the target asset.
|
|
1057
|
-
* @type {string}
|
|
1058
|
-
* @memberof PortfolioManagementApiGetPortfolioPositions
|
|
1059
|
-
*/
|
|
1060
|
-
readonly portfolioGroupId: string;
|
|
1061
|
-
};
|
|
1062
1024
|
/**
|
|
1063
1025
|
* Request parameters for getPortfolioSettings operation in PortfolioManagementApi.
|
|
1064
1026
|
* @export
|
|
@@ -1420,15 +1382,6 @@ export declare class PortfolioManagementApi extends PortfolioManagementApiCustom
|
|
|
1420
1382
|
* @memberof PortfolioManagementApi
|
|
1421
1383
|
*/
|
|
1422
1384
|
getPortfolioInfo(requestParameters: PortfolioManagementApiGetPortfolioInfoRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PortfolioGroupInfo, any>>;
|
|
1423
|
-
/**
|
|
1424
|
-
*
|
|
1425
|
-
* @summary Get total of each postions owned in portfolio group
|
|
1426
|
-
* @param {PortfolioManagementApiGetPortfolioPositionsRequest} requestParameters Request parameters.
|
|
1427
|
-
* @param {*} [options] Override http request option.
|
|
1428
|
-
* @throws {RequiredError}
|
|
1429
|
-
* @memberof PortfolioManagementApi
|
|
1430
|
-
*/
|
|
1431
|
-
getPortfolioPositions(requestParameters: PortfolioManagementApiGetPortfolioPositionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PortfolioGroupPosition[], any>>;
|
|
1432
1385
|
/**
|
|
1433
1386
|
*
|
|
1434
1387
|
* @summary Get portfolio group settings
|
|
@@ -1032,67 +1032,6 @@ var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
|
1032
1032
|
});
|
|
1033
1033
|
});
|
|
1034
1034
|
},
|
|
1035
|
-
/**
|
|
1036
|
-
*
|
|
1037
|
-
* @summary Get total of each postions owned in portfolio group
|
|
1038
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to create the target asset.
|
|
1039
|
-
* @param {*} [options] Override http request option.
|
|
1040
|
-
* @throws {RequiredError}
|
|
1041
|
-
*/
|
|
1042
|
-
getPortfolioPositions: function (portfolioGroupId, options) {
|
|
1043
|
-
if (options === void 0) { options = {}; }
|
|
1044
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1045
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1046
|
-
return __generator(this, function (_a) {
|
|
1047
|
-
switch (_a.label) {
|
|
1048
|
-
case 0:
|
|
1049
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1050
|
-
(0, common_1.assertParamExists)('getPortfolioPositions', 'portfolioGroupId', portfolioGroupId);
|
|
1051
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/positions"
|
|
1052
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
1053
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1054
|
-
if (configuration) {
|
|
1055
|
-
baseOptions = configuration.baseOptions;
|
|
1056
|
-
}
|
|
1057
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1058
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1059
|
-
localVarQueryParameter = {};
|
|
1060
|
-
// authentication PartnerClientId required
|
|
1061
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1062
|
-
// authentication PartnerSignature required
|
|
1063
|
-
];
|
|
1064
|
-
case 1:
|
|
1065
|
-
// authentication PartnerClientId required
|
|
1066
|
-
_a.sent();
|
|
1067
|
-
// authentication PartnerSignature required
|
|
1068
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1069
|
-
// authentication PartnerTimestamp required
|
|
1070
|
-
];
|
|
1071
|
-
case 2:
|
|
1072
|
-
// authentication PartnerSignature required
|
|
1073
|
-
_a.sent();
|
|
1074
|
-
// authentication PartnerTimestamp required
|
|
1075
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1076
|
-
case 3:
|
|
1077
|
-
// authentication PartnerTimestamp required
|
|
1078
|
-
_a.sent();
|
|
1079
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1080
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1081
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1082
|
-
queryParameters: localVarQueryParameter,
|
|
1083
|
-
requestConfig: localVarRequestOptions,
|
|
1084
|
-
path: localVarPath,
|
|
1085
|
-
configuration: configuration
|
|
1086
|
-
});
|
|
1087
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1088
|
-
return [2 /*return*/, {
|
|
1089
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1090
|
-
options: localVarRequestOptions,
|
|
1091
|
-
}];
|
|
1092
|
-
}
|
|
1093
|
-
});
|
|
1094
|
-
});
|
|
1095
|
-
},
|
|
1096
1035
|
/**
|
|
1097
1036
|
*
|
|
1098
1037
|
* @summary Get portfolio group settings
|
|
@@ -2478,26 +2417,6 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2478
2417
|
});
|
|
2479
2418
|
});
|
|
2480
2419
|
},
|
|
2481
|
-
/**
|
|
2482
|
-
*
|
|
2483
|
-
* @summary Get total of each postions owned in portfolio group
|
|
2484
|
-
* @param {PortfolioManagementApiGetPortfolioPositionsRequest} requestParameters Request parameters.
|
|
2485
|
-
* @param {*} [options] Override http request option.
|
|
2486
|
-
* @throws {RequiredError}
|
|
2487
|
-
*/
|
|
2488
|
-
getPortfolioPositions: function (requestParameters, options) {
|
|
2489
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2490
|
-
var localVarAxiosArgs;
|
|
2491
|
-
return __generator(this, function (_a) {
|
|
2492
|
-
switch (_a.label) {
|
|
2493
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPortfolioPositions(requestParameters.portfolioGroupId, options)];
|
|
2494
|
-
case 1:
|
|
2495
|
-
localVarAxiosArgs = _a.sent();
|
|
2496
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2497
|
-
}
|
|
2498
|
-
});
|
|
2499
|
-
});
|
|
2500
|
-
},
|
|
2501
2420
|
/**
|
|
2502
2421
|
*
|
|
2503
2422
|
* @summary Get portfolio group settings
|
|
@@ -2994,16 +2913,6 @@ var PortfolioManagementApiFactory = function (configuration, basePath, axios) {
|
|
|
2994
2913
|
getPortfolioInfo: function (requestParameters, options) {
|
|
2995
2914
|
return localVarFp.getPortfolioInfo(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2996
2915
|
},
|
|
2997
|
-
/**
|
|
2998
|
-
*
|
|
2999
|
-
* @summary Get total of each postions owned in portfolio group
|
|
3000
|
-
* @param {PortfolioManagementApiGetPortfolioPositionsRequest} requestParameters Request parameters.
|
|
3001
|
-
* @param {*} [options] Override http request option.
|
|
3002
|
-
* @throws {RequiredError}
|
|
3003
|
-
*/
|
|
3004
|
-
getPortfolioPositions: function (requestParameters, options) {
|
|
3005
|
-
return localVarFp.getPortfolioPositions(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3006
|
-
},
|
|
3007
2916
|
/**
|
|
3008
2917
|
*
|
|
3009
2918
|
* @summary Get portfolio group settings
|
|
@@ -3364,18 +3273,6 @@ var PortfolioManagementApi = /** @class */ (function (_super) {
|
|
|
3364
3273
|
var _this = this;
|
|
3365
3274
|
return (0, exports.PortfolioManagementApiFp)(this.configuration).getPortfolioInfo(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3366
3275
|
};
|
|
3367
|
-
/**
|
|
3368
|
-
*
|
|
3369
|
-
* @summary Get total of each postions owned in portfolio group
|
|
3370
|
-
* @param {PortfolioManagementApiGetPortfolioPositionsRequest} requestParameters Request parameters.
|
|
3371
|
-
* @param {*} [options] Override http request option.
|
|
3372
|
-
* @throws {RequiredError}
|
|
3373
|
-
* @memberof PortfolioManagementApi
|
|
3374
|
-
*/
|
|
3375
|
-
PortfolioManagementApi.prototype.getPortfolioPositions = function (requestParameters, options) {
|
|
3376
|
-
var _this = this;
|
|
3377
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).getPortfolioPositions(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3378
|
-
};
|
|
3379
3276
|
/**
|
|
3380
3277
|
*
|
|
3381
3278
|
* @summary Get portfolio group settings
|
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.8.0/typescript" : param.userAgent;
|
|
38
38
|
this.formDataCtor = param.formDataCtor;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
@@ -52,6 +52,12 @@ export interface SessionEvent {
|
|
|
52
52
|
* @memberof SessionEvent
|
|
53
53
|
*/
|
|
54
54
|
'brokerage_status_code'?: number | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof SessionEvent
|
|
59
|
+
*/
|
|
60
|
+
'brokerage_authorization_id'?: string;
|
|
55
61
|
}
|
|
56
62
|
export declare const SessionEventSessionEventTypeEnum: {
|
|
57
63
|
readonly ConnectionFailed: "CONNECTION_FAILED";
|
package/dist/models/symbol.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Currency } from './currency';
|
|
13
13
|
import { Exchange } from './exchange';
|
|
14
|
+
import { SecurityType } from './security-type';
|
|
14
15
|
/**
|
|
15
16
|
* Symbol
|
|
16
17
|
* @export
|
|
@@ -54,4 +55,10 @@ export interface Symbol {
|
|
|
54
55
|
* @memberof Symbol
|
|
55
56
|
*/
|
|
56
57
|
'exchange'?: Exchange;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {SecurityType}
|
|
61
|
+
* @memberof Symbol
|
|
62
|
+
*/
|
|
63
|
+
'type'?: SecurityType;
|
|
57
64
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snaptrade-typescript-sdk",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.8.0",
|
|
4
4
|
"description": "Client for SnapTrade",
|
|
5
5
|
"author": "Konfig",
|
|
6
6
|
"engines": {
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
"snaptrade-typescript-sdk"
|
|
18
18
|
],
|
|
19
19
|
"license": "Unlicense",
|
|
20
|
+
"files": [
|
|
21
|
+
"./dist/**/*"
|
|
22
|
+
],
|
|
20
23
|
"main": "./dist/index.js",
|
|
21
24
|
"typings": "./dist/index.d.ts",
|
|
22
25
|
"scripts": {
|
package/.konfig/generate-id.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b943c377-1fe4-4a39-ac00-cb4924fe07a5
|
package/.konfigignore
DELETED