snaptrade-typescript-sdk 8.7.0 → 8.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/api/portfolio-management-api.d.ts +0 -47
- package/dist/api/portfolio-management-api.js +0 -103
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/client.d.ts +1 -2
- package/dist/client.js +0 -1
- package/dist/configuration.js +1 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- 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/dist/api/api-disclaimer-api-custom.d.ts +0 -3
- package/dist/api/api-disclaimer-api-custom.js +0 -27
- package/dist/api/api-disclaimer-api.d.ts +0 -97
- package/dist/api/api-disclaimer-api.js +0 -247
- package/dist/models/apidisclaimer-accept-request.d.ts +0 -24
- package/dist/models/apidisclaimer-accept-request.js +0 -15
- package/docs/AccountInformationApi.md +0 -469
- package/docs/ApiDisclaimerApi.md +0 -64
- package/docs/ApiStatusApi.md +0 -58
- package/docs/AuthenticationApi.md +0 -293
- package/docs/ConnectionsApi.md +0 -238
- package/docs/ErrorLogsApi.md +0 -62
- package/docs/OptionsApi.md +0 -312
- package/docs/PortfolioManagementApi.md +0 -1785
- package/docs/ReferenceDataApi.md +0 -568
- package/docs/TradingApi.md +0 -596
- package/docs/TransactionsAndReportingApi.md +0 -144
- 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 -80
- 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 -76
- 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,1062 +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
|
-
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
16
|
-
import { Configuration } from '../configuration';
|
|
17
|
-
// Some imports not used depending on template conditions
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
import { Account } from '../models';
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
import { AccountHoldings } from '../models';
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
import { AccountHoldingsAccount } from '../models';
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
import { AccountOrderRecord } from '../models';
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
import { Balance } from '../models';
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
import { Model400FailedRequestResponse } from '../models';
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
import { Model403FailedRequestResponse } from '../models';
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
import { Position } from '../models';
|
|
38
|
-
import { paginate } from "../pagination/paginate";
|
|
39
|
-
import { requestBeforeHook } from '../requestBeforeHook';
|
|
40
|
-
import { AccountInformationApiCustom } from "./account-information-api-custom";
|
|
41
|
-
/**
|
|
42
|
-
* AccountInformationApi - axios parameter creator
|
|
43
|
-
* @export
|
|
44
|
-
*/
|
|
45
|
-
export const AccountInformationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
46
|
-
return {
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @summary List all accounts for the user, plus balances and positions for each account.
|
|
50
|
-
* @param {string} userId
|
|
51
|
-
* @param {string} userSecret
|
|
52
|
-
* @param {string} [brokerageAuthorizations] Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
|
|
53
|
-
* @param {*} [options] Override http request option.
|
|
54
|
-
* @throws {RequiredError}
|
|
55
|
-
*/
|
|
56
|
-
getAllUserHoldings: async (userId: string, userSecret: string, brokerageAuthorizations?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57
|
-
// verify required parameter 'userId' is not null or undefined
|
|
58
|
-
assertParamExists('getAllUserHoldings', 'userId', userId)
|
|
59
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
60
|
-
assertParamExists('getAllUserHoldings', 'userSecret', userSecret)
|
|
61
|
-
const localVarPath = `/holdings`;
|
|
62
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
63
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
64
|
-
let baseOptions;
|
|
65
|
-
if (configuration) {
|
|
66
|
-
baseOptions = configuration.baseOptions;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
70
|
-
const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
|
|
71
|
-
const localVarQueryParameter = {} as any;
|
|
72
|
-
|
|
73
|
-
// authentication PartnerClientId required
|
|
74
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
75
|
-
// authentication PartnerSignature required
|
|
76
|
-
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
77
|
-
// authentication PartnerTimestamp required
|
|
78
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
79
|
-
if (userId !== undefined) {
|
|
80
|
-
localVarQueryParameter['userId'] = userId;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (userSecret !== undefined) {
|
|
84
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if (brokerageAuthorizations !== undefined) {
|
|
88
|
-
localVarQueryParameter['brokerage_authorizations'] = brokerageAuthorizations;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
95
|
-
requestBeforeHook({
|
|
96
|
-
queryParameters: localVarQueryParameter,
|
|
97
|
-
requestConfig: localVarRequestOptions,
|
|
98
|
-
path: localVarPath,
|
|
99
|
-
configuration
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
103
|
-
return {
|
|
104
|
-
url: toPathString(localVarUrlObj),
|
|
105
|
-
options: localVarRequestOptions,
|
|
106
|
-
};
|
|
107
|
-
},
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @summary Get all cash balances of an investment account
|
|
111
|
-
* @param {string} userId
|
|
112
|
-
* @param {string} userSecret
|
|
113
|
-
* @param {string} accountId The ID of the account get positions.
|
|
114
|
-
* @param {*} [options] Override http request option.
|
|
115
|
-
* @throws {RequiredError}
|
|
116
|
-
*/
|
|
117
|
-
getUserAccountBalance: async (userId: string, userSecret: string, accountId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
118
|
-
// verify required parameter 'userId' is not null or undefined
|
|
119
|
-
assertParamExists('getUserAccountBalance', 'userId', userId)
|
|
120
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
121
|
-
assertParamExists('getUserAccountBalance', 'userSecret', userSecret)
|
|
122
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
123
|
-
assertParamExists('getUserAccountBalance', 'accountId', accountId)
|
|
124
|
-
const localVarPath = `/accounts/{accountId}/balances`
|
|
125
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
126
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
127
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
128
|
-
let baseOptions;
|
|
129
|
-
if (configuration) {
|
|
130
|
-
baseOptions = configuration.baseOptions;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
134
|
-
const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
|
|
135
|
-
const localVarQueryParameter = {} as any;
|
|
136
|
-
|
|
137
|
-
// authentication PartnerClientId required
|
|
138
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
139
|
-
// authentication PartnerSignature required
|
|
140
|
-
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
141
|
-
// authentication PartnerTimestamp required
|
|
142
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
143
|
-
if (userId !== undefined) {
|
|
144
|
-
localVarQueryParameter['userId'] = userId;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (userSecret !== undefined) {
|
|
148
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
155
|
-
requestBeforeHook({
|
|
156
|
-
queryParameters: localVarQueryParameter,
|
|
157
|
-
requestConfig: localVarRequestOptions,
|
|
158
|
-
path: localVarPath,
|
|
159
|
-
configuration
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
163
|
-
return {
|
|
164
|
-
url: toPathString(localVarUrlObj),
|
|
165
|
-
options: localVarRequestOptions,
|
|
166
|
-
};
|
|
167
|
-
},
|
|
168
|
-
/**
|
|
169
|
-
*
|
|
170
|
-
* @summary Return details of a specific investment account
|
|
171
|
-
* @param {string} userId
|
|
172
|
-
* @param {string} userSecret
|
|
173
|
-
* @param {string} accountId The ID of the account to get detail of.
|
|
174
|
-
* @param {*} [options] Override http request option.
|
|
175
|
-
* @throws {RequiredError}
|
|
176
|
-
*/
|
|
177
|
-
getUserAccountDetails: async (userId: string, userSecret: string, accountId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
178
|
-
// verify required parameter 'userId' is not null or undefined
|
|
179
|
-
assertParamExists('getUserAccountDetails', 'userId', userId)
|
|
180
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
181
|
-
assertParamExists('getUserAccountDetails', 'userSecret', userSecret)
|
|
182
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
183
|
-
assertParamExists('getUserAccountDetails', 'accountId', accountId)
|
|
184
|
-
const localVarPath = `/accounts/{accountId}`
|
|
185
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
186
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
188
|
-
let baseOptions;
|
|
189
|
-
if (configuration) {
|
|
190
|
-
baseOptions = configuration.baseOptions;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
194
|
-
const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
|
|
195
|
-
const localVarQueryParameter = {} as any;
|
|
196
|
-
|
|
197
|
-
// authentication PartnerClientId required
|
|
198
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
199
|
-
// authentication PartnerSignature required
|
|
200
|
-
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
201
|
-
// authentication PartnerTimestamp required
|
|
202
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
203
|
-
if (userId !== undefined) {
|
|
204
|
-
localVarQueryParameter['userId'] = userId;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
if (userSecret !== undefined) {
|
|
208
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
214
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
215
|
-
requestBeforeHook({
|
|
216
|
-
queryParameters: localVarQueryParameter,
|
|
217
|
-
requestConfig: localVarRequestOptions,
|
|
218
|
-
path: localVarPath,
|
|
219
|
-
configuration
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
223
|
-
return {
|
|
224
|
-
url: toPathString(localVarUrlObj),
|
|
225
|
-
options: localVarRequestOptions,
|
|
226
|
-
};
|
|
227
|
-
},
|
|
228
|
-
/**
|
|
229
|
-
*
|
|
230
|
-
* @summary Get all history of orders placed in account
|
|
231
|
-
* @param {string} userId
|
|
232
|
-
* @param {string} userSecret
|
|
233
|
-
* @param {string} accountId The ID of the account get positions.
|
|
234
|
-
* @param {'all' | 'open' | 'executed'} [state] defaults value is set to \"all\"
|
|
235
|
-
* @param {*} [options] Override http request option.
|
|
236
|
-
* @throws {RequiredError}
|
|
237
|
-
*/
|
|
238
|
-
getUserAccountOrders: async (userId: string, userSecret: string, accountId: string, state?: 'all' | 'open' | 'executed', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
239
|
-
// verify required parameter 'userId' is not null or undefined
|
|
240
|
-
assertParamExists('getUserAccountOrders', 'userId', userId)
|
|
241
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
242
|
-
assertParamExists('getUserAccountOrders', 'userSecret', userSecret)
|
|
243
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
244
|
-
assertParamExists('getUserAccountOrders', 'accountId', accountId)
|
|
245
|
-
const localVarPath = `/accounts/{accountId}/orders`
|
|
246
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
247
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
248
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
249
|
-
let baseOptions;
|
|
250
|
-
if (configuration) {
|
|
251
|
-
baseOptions = configuration.baseOptions;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
255
|
-
const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
|
|
256
|
-
const localVarQueryParameter = {} as any;
|
|
257
|
-
|
|
258
|
-
// authentication PartnerClientId required
|
|
259
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
260
|
-
// authentication PartnerSignature required
|
|
261
|
-
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
262
|
-
// authentication PartnerTimestamp required
|
|
263
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
264
|
-
if (userId !== undefined) {
|
|
265
|
-
localVarQueryParameter['userId'] = userId;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
if (userSecret !== undefined) {
|
|
269
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
if (state !== undefined) {
|
|
273
|
-
localVarQueryParameter['state'] = state;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
280
|
-
requestBeforeHook({
|
|
281
|
-
queryParameters: localVarQueryParameter,
|
|
282
|
-
requestConfig: localVarRequestOptions,
|
|
283
|
-
path: localVarPath,
|
|
284
|
-
configuration
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
288
|
-
return {
|
|
289
|
-
url: toPathString(localVarUrlObj),
|
|
290
|
-
options: localVarRequestOptions,
|
|
291
|
-
};
|
|
292
|
-
},
|
|
293
|
-
/**
|
|
294
|
-
*
|
|
295
|
-
* @summary Get all positions of an investment account
|
|
296
|
-
* @param {string} userId
|
|
297
|
-
* @param {string} userSecret
|
|
298
|
-
* @param {string} accountId The ID of the account get positions.
|
|
299
|
-
* @param {*} [options] Override http request option.
|
|
300
|
-
* @throws {RequiredError}
|
|
301
|
-
*/
|
|
302
|
-
getUserAccountPositions: async (userId: string, userSecret: string, accountId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
303
|
-
// verify required parameter 'userId' is not null or undefined
|
|
304
|
-
assertParamExists('getUserAccountPositions', 'userId', userId)
|
|
305
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
306
|
-
assertParamExists('getUserAccountPositions', 'userSecret', userSecret)
|
|
307
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
308
|
-
assertParamExists('getUserAccountPositions', 'accountId', accountId)
|
|
309
|
-
const localVarPath = `/accounts/{accountId}/positions`
|
|
310
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
311
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
312
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
313
|
-
let baseOptions;
|
|
314
|
-
if (configuration) {
|
|
315
|
-
baseOptions = configuration.baseOptions;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
319
|
-
const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
|
|
320
|
-
const localVarQueryParameter = {} as any;
|
|
321
|
-
|
|
322
|
-
// authentication PartnerClientId required
|
|
323
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
324
|
-
// authentication PartnerSignature required
|
|
325
|
-
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
326
|
-
// authentication PartnerTimestamp required
|
|
327
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
328
|
-
if (userId !== undefined) {
|
|
329
|
-
localVarQueryParameter['userId'] = userId;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
if (userSecret !== undefined) {
|
|
333
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
339
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
340
|
-
requestBeforeHook({
|
|
341
|
-
queryParameters: localVarQueryParameter,
|
|
342
|
-
requestConfig: localVarRequestOptions,
|
|
343
|
-
path: localVarPath,
|
|
344
|
-
configuration
|
|
345
|
-
});
|
|
346
|
-
|
|
347
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
348
|
-
return {
|
|
349
|
-
url: toPathString(localVarUrlObj),
|
|
350
|
-
options: localVarRequestOptions,
|
|
351
|
-
};
|
|
352
|
-
},
|
|
353
|
-
/**
|
|
354
|
-
*
|
|
355
|
-
* @summary List balances, positions and orders for the specified account.
|
|
356
|
-
* @param {string} accountId The ID of the account to fetch holdings for.
|
|
357
|
-
* @param {string} userId
|
|
358
|
-
* @param {string} userSecret
|
|
359
|
-
* @param {*} [options] Override http request option.
|
|
360
|
-
* @throws {RequiredError}
|
|
361
|
-
*/
|
|
362
|
-
getUserHoldings: async (accountId: string, userId: string, userSecret: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
363
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
364
|
-
assertParamExists('getUserHoldings', 'accountId', accountId)
|
|
365
|
-
// verify required parameter 'userId' is not null or undefined
|
|
366
|
-
assertParamExists('getUserHoldings', 'userId', userId)
|
|
367
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
368
|
-
assertParamExists('getUserHoldings', 'userSecret', userSecret)
|
|
369
|
-
const localVarPath = `/accounts/{accountId}/holdings`
|
|
370
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
371
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
372
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
373
|
-
let baseOptions;
|
|
374
|
-
if (configuration) {
|
|
375
|
-
baseOptions = configuration.baseOptions;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
379
|
-
const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
|
|
380
|
-
const localVarQueryParameter = {} as any;
|
|
381
|
-
|
|
382
|
-
// authentication PartnerClientId required
|
|
383
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
384
|
-
// authentication PartnerSignature required
|
|
385
|
-
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
386
|
-
// authentication PartnerTimestamp required
|
|
387
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
388
|
-
if (userId !== undefined) {
|
|
389
|
-
localVarQueryParameter['userId'] = userId;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
if (userSecret !== undefined) {
|
|
393
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
399
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
400
|
-
requestBeforeHook({
|
|
401
|
-
queryParameters: localVarQueryParameter,
|
|
402
|
-
requestConfig: localVarRequestOptions,
|
|
403
|
-
path: localVarPath,
|
|
404
|
-
configuration
|
|
405
|
-
});
|
|
406
|
-
|
|
407
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
408
|
-
return {
|
|
409
|
-
url: toPathString(localVarUrlObj),
|
|
410
|
-
options: localVarRequestOptions,
|
|
411
|
-
};
|
|
412
|
-
},
|
|
413
|
-
/**
|
|
414
|
-
*
|
|
415
|
-
* @summary List all investment accounts for the user
|
|
416
|
-
* @param {string} userId
|
|
417
|
-
* @param {string} userSecret
|
|
418
|
-
* @param {*} [options] Override http request option.
|
|
419
|
-
* @throws {RequiredError}
|
|
420
|
-
*/
|
|
421
|
-
listUserAccounts: async (userId: string, userSecret: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
422
|
-
// verify required parameter 'userId' is not null or undefined
|
|
423
|
-
assertParamExists('listUserAccounts', 'userId', userId)
|
|
424
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
425
|
-
assertParamExists('listUserAccounts', 'userSecret', userSecret)
|
|
426
|
-
const localVarPath = `/accounts`;
|
|
427
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
428
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
429
|
-
let baseOptions;
|
|
430
|
-
if (configuration) {
|
|
431
|
-
baseOptions = configuration.baseOptions;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
const localVarRequestOptions: AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
435
|
-
const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
|
|
436
|
-
const localVarQueryParameter = {} as any;
|
|
437
|
-
|
|
438
|
-
// authentication PartnerClientId required
|
|
439
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
440
|
-
// authentication PartnerSignature required
|
|
441
|
-
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
442
|
-
// authentication PartnerTimestamp required
|
|
443
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
444
|
-
if (userId !== undefined) {
|
|
445
|
-
localVarQueryParameter['userId'] = userId;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
if (userSecret !== undefined) {
|
|
449
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
455
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
456
|
-
requestBeforeHook({
|
|
457
|
-
queryParameters: localVarQueryParameter,
|
|
458
|
-
requestConfig: localVarRequestOptions,
|
|
459
|
-
path: localVarPath,
|
|
460
|
-
configuration
|
|
461
|
-
});
|
|
462
|
-
|
|
463
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
464
|
-
return {
|
|
465
|
-
url: toPathString(localVarUrlObj),
|
|
466
|
-
options: localVarRequestOptions,
|
|
467
|
-
};
|
|
468
|
-
},
|
|
469
|
-
/**
|
|
470
|
-
*
|
|
471
|
-
* @summary Update details of an investment account
|
|
472
|
-
* @param {string} userId
|
|
473
|
-
* @param {string} userSecret
|
|
474
|
-
* @param {string} accountId The ID of the account to update.
|
|
475
|
-
* @param {*} [options] Override http request option.
|
|
476
|
-
* @throws {RequiredError}
|
|
477
|
-
*/
|
|
478
|
-
updateUserAccount: async (userId: string, userSecret: string, accountId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
479
|
-
// verify required parameter 'userId' is not null or undefined
|
|
480
|
-
assertParamExists('updateUserAccount', 'userId', userId)
|
|
481
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
482
|
-
assertParamExists('updateUserAccount', 'userSecret', userSecret)
|
|
483
|
-
// verify required parameter 'accountId' is not null or undefined
|
|
484
|
-
assertParamExists('updateUserAccount', 'accountId', accountId)
|
|
485
|
-
const localVarPath = `/accounts/{accountId}`
|
|
486
|
-
.replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
|
|
487
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
488
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
489
|
-
let baseOptions;
|
|
490
|
-
if (configuration) {
|
|
491
|
-
baseOptions = configuration.baseOptions;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
const localVarRequestOptions: AxiosRequestConfig = { method: 'PUT', ...baseOptions, ...options};
|
|
495
|
-
const localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {} as any;
|
|
496
|
-
const localVarQueryParameter = {} as any;
|
|
497
|
-
|
|
498
|
-
// authentication PartnerClientId required
|
|
499
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
|
|
500
|
-
// authentication PartnerSignature required
|
|
501
|
-
await setApiKeyToObject({ object: localVarHeaderParameter, keyParamName: "Signature", configuration })
|
|
502
|
-
// authentication PartnerTimestamp required
|
|
503
|
-
await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
|
|
504
|
-
if (userId !== undefined) {
|
|
505
|
-
localVarQueryParameter['userId'] = userId;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
if (userSecret !== undefined) {
|
|
509
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
515
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
516
|
-
requestBeforeHook({
|
|
517
|
-
queryParameters: localVarQueryParameter,
|
|
518
|
-
requestConfig: localVarRequestOptions,
|
|
519
|
-
path: localVarPath,
|
|
520
|
-
configuration
|
|
521
|
-
});
|
|
522
|
-
|
|
523
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
524
|
-
return {
|
|
525
|
-
url: toPathString(localVarUrlObj),
|
|
526
|
-
options: localVarRequestOptions,
|
|
527
|
-
};
|
|
528
|
-
},
|
|
529
|
-
}
|
|
530
|
-
};
|
|
531
|
-
|
|
532
|
-
/**
|
|
533
|
-
* AccountInformationApi - functional programming interface
|
|
534
|
-
* @export
|
|
535
|
-
*/
|
|
536
|
-
export const AccountInformationApiFp = function(configuration?: Configuration) {
|
|
537
|
-
const localVarAxiosParamCreator = AccountInformationApiAxiosParamCreator(configuration)
|
|
538
|
-
return {
|
|
539
|
-
/**
|
|
540
|
-
*
|
|
541
|
-
* @summary List all accounts for the user, plus balances and positions for each account.
|
|
542
|
-
* @param {AccountInformationApiGetAllUserHoldingsRequest} requestParameters Request parameters.
|
|
543
|
-
* @param {*} [options] Override http request option.
|
|
544
|
-
* @throws {RequiredError}
|
|
545
|
-
*/
|
|
546
|
-
async getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountHoldings>>> {
|
|
547
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUserHoldings(requestParameters.userId, requestParameters.userSecret, requestParameters.brokerageAuthorizations, options);
|
|
548
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
549
|
-
},
|
|
550
|
-
/**
|
|
551
|
-
*
|
|
552
|
-
* @summary Get all cash balances of an investment account
|
|
553
|
-
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
554
|
-
* @param {*} [options] Override http request option.
|
|
555
|
-
* @throws {RequiredError}
|
|
556
|
-
*/
|
|
557
|
-
async getUserAccountBalance(requestParameters: AccountInformationApiGetUserAccountBalanceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Balance>>> {
|
|
558
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAccountBalance(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, options);
|
|
559
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
560
|
-
},
|
|
561
|
-
/**
|
|
562
|
-
*
|
|
563
|
-
* @summary Return details of a specific investment account
|
|
564
|
-
* @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
|
|
565
|
-
* @param {*} [options] Override http request option.
|
|
566
|
-
* @throws {RequiredError}
|
|
567
|
-
*/
|
|
568
|
-
async getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Account>>> {
|
|
569
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAccountDetails(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, options);
|
|
570
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
571
|
-
},
|
|
572
|
-
/**
|
|
573
|
-
*
|
|
574
|
-
* @summary Get all history of orders placed in account
|
|
575
|
-
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
576
|
-
* @param {*} [options] Override http request option.
|
|
577
|
-
* @throws {RequiredError}
|
|
578
|
-
*/
|
|
579
|
-
async getUserAccountOrders(requestParameters: AccountInformationApiGetUserAccountOrdersRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountOrderRecord>>> {
|
|
580
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAccountOrders(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters.state, options);
|
|
581
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
582
|
-
},
|
|
583
|
-
/**
|
|
584
|
-
*
|
|
585
|
-
* @summary Get all positions of an investment account
|
|
586
|
-
* @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
|
|
587
|
-
* @param {*} [options] Override http request option.
|
|
588
|
-
* @throws {RequiredError}
|
|
589
|
-
*/
|
|
590
|
-
async getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Position>>> {
|
|
591
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAccountPositions(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, options);
|
|
592
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
593
|
-
},
|
|
594
|
-
/**
|
|
595
|
-
*
|
|
596
|
-
* @summary List balances, positions and orders for the specified account.
|
|
597
|
-
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
598
|
-
* @param {*} [options] Override http request option.
|
|
599
|
-
* @throws {RequiredError}
|
|
600
|
-
*/
|
|
601
|
-
async getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountHoldingsAccount>> {
|
|
602
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserHoldings(requestParameters.accountId, requestParameters.userId, requestParameters.userSecret, options);
|
|
603
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
604
|
-
},
|
|
605
|
-
/**
|
|
606
|
-
*
|
|
607
|
-
* @summary List all investment accounts for the user
|
|
608
|
-
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
609
|
-
* @param {*} [options] Override http request option.
|
|
610
|
-
* @throws {RequiredError}
|
|
611
|
-
*/
|
|
612
|
-
async listUserAccounts(requestParameters: AccountInformationApiListUserAccountsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Account>>> {
|
|
613
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserAccounts(requestParameters.userId, requestParameters.userSecret, options);
|
|
614
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
615
|
-
},
|
|
616
|
-
/**
|
|
617
|
-
*
|
|
618
|
-
* @summary Update details of an investment account
|
|
619
|
-
* @param {AccountInformationApiUpdateUserAccountRequest} requestParameters Request parameters.
|
|
620
|
-
* @param {*} [options] Override http request option.
|
|
621
|
-
* @throws {RequiredError}
|
|
622
|
-
*/
|
|
623
|
-
async updateUserAccount(requestParameters: AccountInformationApiUpdateUserAccountRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Account>>> {
|
|
624
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserAccount(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, options);
|
|
625
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
626
|
-
},
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* AccountInformationApi - factory interface
|
|
632
|
-
* @export
|
|
633
|
-
*/
|
|
634
|
-
export const AccountInformationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
635
|
-
const localVarFp = AccountInformationApiFp(configuration)
|
|
636
|
-
return {
|
|
637
|
-
/**
|
|
638
|
-
*
|
|
639
|
-
* @summary List all accounts for the user, plus balances and positions for each account.
|
|
640
|
-
* @param {AccountInformationApiGetAllUserHoldingsRequest} requestParameters Request parameters.
|
|
641
|
-
* @param {*} [options] Override http request option.
|
|
642
|
-
* @throws {RequiredError}
|
|
643
|
-
*/
|
|
644
|
-
getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AccountHoldings>> {
|
|
645
|
-
return localVarFp.getAllUserHoldings(requestParameters, options).then((request) => request(axios, basePath));
|
|
646
|
-
},
|
|
647
|
-
/**
|
|
648
|
-
*
|
|
649
|
-
* @summary Get all cash balances of an investment account
|
|
650
|
-
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
651
|
-
* @param {*} [options] Override http request option.
|
|
652
|
-
* @throws {RequiredError}
|
|
653
|
-
*/
|
|
654
|
-
getUserAccountBalance(requestParameters: AccountInformationApiGetUserAccountBalanceRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Balance>> {
|
|
655
|
-
return localVarFp.getUserAccountBalance(requestParameters, options).then((request) => request(axios, basePath));
|
|
656
|
-
},
|
|
657
|
-
/**
|
|
658
|
-
*
|
|
659
|
-
* @summary Return details of a specific investment account
|
|
660
|
-
* @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
|
|
661
|
-
* @param {*} [options] Override http request option.
|
|
662
|
-
* @throws {RequiredError}
|
|
663
|
-
*/
|
|
664
|
-
getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Account>> {
|
|
665
|
-
return localVarFp.getUserAccountDetails(requestParameters, options).then((request) => request(axios, basePath));
|
|
666
|
-
},
|
|
667
|
-
/**
|
|
668
|
-
*
|
|
669
|
-
* @summary Get all history of orders placed in account
|
|
670
|
-
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
671
|
-
* @param {*} [options] Override http request option.
|
|
672
|
-
* @throws {RequiredError}
|
|
673
|
-
*/
|
|
674
|
-
getUserAccountOrders(requestParameters: AccountInformationApiGetUserAccountOrdersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AccountOrderRecord>> {
|
|
675
|
-
return localVarFp.getUserAccountOrders(requestParameters, options).then((request) => request(axios, basePath));
|
|
676
|
-
},
|
|
677
|
-
/**
|
|
678
|
-
*
|
|
679
|
-
* @summary Get all positions of an investment account
|
|
680
|
-
* @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
|
|
681
|
-
* @param {*} [options] Override http request option.
|
|
682
|
-
* @throws {RequiredError}
|
|
683
|
-
*/
|
|
684
|
-
getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Position>> {
|
|
685
|
-
return localVarFp.getUserAccountPositions(requestParameters, options).then((request) => request(axios, basePath));
|
|
686
|
-
},
|
|
687
|
-
/**
|
|
688
|
-
*
|
|
689
|
-
* @summary List balances, positions and orders for the specified account.
|
|
690
|
-
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
691
|
-
* @param {*} [options] Override http request option.
|
|
692
|
-
* @throws {RequiredError}
|
|
693
|
-
*/
|
|
694
|
-
getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig): AxiosPromise<AccountHoldingsAccount> {
|
|
695
|
-
return localVarFp.getUserHoldings(requestParameters, options).then((request) => request(axios, basePath));
|
|
696
|
-
},
|
|
697
|
-
/**
|
|
698
|
-
*
|
|
699
|
-
* @summary List all investment accounts for the user
|
|
700
|
-
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
701
|
-
* @param {*} [options] Override http request option.
|
|
702
|
-
* @throws {RequiredError}
|
|
703
|
-
*/
|
|
704
|
-
listUserAccounts(requestParameters: AccountInformationApiListUserAccountsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Account>> {
|
|
705
|
-
return localVarFp.listUserAccounts(requestParameters, options).then((request) => request(axios, basePath));
|
|
706
|
-
},
|
|
707
|
-
/**
|
|
708
|
-
*
|
|
709
|
-
* @summary Update details of an investment account
|
|
710
|
-
* @param {AccountInformationApiUpdateUserAccountRequest} requestParameters Request parameters.
|
|
711
|
-
* @param {*} [options] Override http request option.
|
|
712
|
-
* @throws {RequiredError}
|
|
713
|
-
*/
|
|
714
|
-
updateUserAccount(requestParameters: AccountInformationApiUpdateUserAccountRequest, options?: AxiosRequestConfig): AxiosPromise<Array<Account>> {
|
|
715
|
-
return localVarFp.updateUserAccount(requestParameters, options).then((request) => request(axios, basePath));
|
|
716
|
-
},
|
|
717
|
-
};
|
|
718
|
-
};
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* Request parameters for getAllUserHoldings operation in AccountInformationApi.
|
|
722
|
-
* @export
|
|
723
|
-
* @interface AccountInformationApiGetAllUserHoldingsRequest
|
|
724
|
-
*/
|
|
725
|
-
export type AccountInformationApiGetAllUserHoldingsRequest = {
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
*
|
|
729
|
-
* @type {string}
|
|
730
|
-
* @memberof AccountInformationApiGetAllUserHoldings
|
|
731
|
-
*/
|
|
732
|
-
readonly userId: string
|
|
733
|
-
|
|
734
|
-
/**
|
|
735
|
-
*
|
|
736
|
-
* @type {string}
|
|
737
|
-
* @memberof AccountInformationApiGetAllUserHoldings
|
|
738
|
-
*/
|
|
739
|
-
readonly userSecret: string
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* Optional. Comma seperated list of authorization IDs (only use if filtering is needed on one or more authorizations).
|
|
743
|
-
* @type {string}
|
|
744
|
-
* @memberof AccountInformationApiGetAllUserHoldings
|
|
745
|
-
*/
|
|
746
|
-
readonly brokerageAuthorizations?: string
|
|
747
|
-
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* Request parameters for getUserAccountBalance operation in AccountInformationApi.
|
|
752
|
-
* @export
|
|
753
|
-
* @interface AccountInformationApiGetUserAccountBalanceRequest
|
|
754
|
-
*/
|
|
755
|
-
export type AccountInformationApiGetUserAccountBalanceRequest = {
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
*
|
|
759
|
-
* @type {string}
|
|
760
|
-
* @memberof AccountInformationApiGetUserAccountBalance
|
|
761
|
-
*/
|
|
762
|
-
readonly userId: string
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
*
|
|
766
|
-
* @type {string}
|
|
767
|
-
* @memberof AccountInformationApiGetUserAccountBalance
|
|
768
|
-
*/
|
|
769
|
-
readonly userSecret: string
|
|
770
|
-
|
|
771
|
-
/**
|
|
772
|
-
* The ID of the account get positions.
|
|
773
|
-
* @type {string}
|
|
774
|
-
* @memberof AccountInformationApiGetUserAccountBalance
|
|
775
|
-
*/
|
|
776
|
-
readonly accountId: string
|
|
777
|
-
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* Request parameters for getUserAccountDetails operation in AccountInformationApi.
|
|
782
|
-
* @export
|
|
783
|
-
* @interface AccountInformationApiGetUserAccountDetailsRequest
|
|
784
|
-
*/
|
|
785
|
-
export type AccountInformationApiGetUserAccountDetailsRequest = {
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
*
|
|
789
|
-
* @type {string}
|
|
790
|
-
* @memberof AccountInformationApiGetUserAccountDetails
|
|
791
|
-
*/
|
|
792
|
-
readonly userId: string
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
*
|
|
796
|
-
* @type {string}
|
|
797
|
-
* @memberof AccountInformationApiGetUserAccountDetails
|
|
798
|
-
*/
|
|
799
|
-
readonly userSecret: string
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* The ID of the account to get detail of.
|
|
803
|
-
* @type {string}
|
|
804
|
-
* @memberof AccountInformationApiGetUserAccountDetails
|
|
805
|
-
*/
|
|
806
|
-
readonly accountId: string
|
|
807
|
-
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* Request parameters for getUserAccountOrders operation in AccountInformationApi.
|
|
812
|
-
* @export
|
|
813
|
-
* @interface AccountInformationApiGetUserAccountOrdersRequest
|
|
814
|
-
*/
|
|
815
|
-
export type AccountInformationApiGetUserAccountOrdersRequest = {
|
|
816
|
-
|
|
817
|
-
/**
|
|
818
|
-
*
|
|
819
|
-
* @type {string}
|
|
820
|
-
* @memberof AccountInformationApiGetUserAccountOrders
|
|
821
|
-
*/
|
|
822
|
-
readonly userId: string
|
|
823
|
-
|
|
824
|
-
/**
|
|
825
|
-
*
|
|
826
|
-
* @type {string}
|
|
827
|
-
* @memberof AccountInformationApiGetUserAccountOrders
|
|
828
|
-
*/
|
|
829
|
-
readonly userSecret: string
|
|
830
|
-
|
|
831
|
-
/**
|
|
832
|
-
* The ID of the account get positions.
|
|
833
|
-
* @type {string}
|
|
834
|
-
* @memberof AccountInformationApiGetUserAccountOrders
|
|
835
|
-
*/
|
|
836
|
-
readonly accountId: string
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
* defaults value is set to \"all\"
|
|
840
|
-
* @type {'all' | 'open' | 'executed'}
|
|
841
|
-
* @memberof AccountInformationApiGetUserAccountOrders
|
|
842
|
-
*/
|
|
843
|
-
readonly state?: 'all' | 'open' | 'executed'
|
|
844
|
-
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
/**
|
|
848
|
-
* Request parameters for getUserAccountPositions operation in AccountInformationApi.
|
|
849
|
-
* @export
|
|
850
|
-
* @interface AccountInformationApiGetUserAccountPositionsRequest
|
|
851
|
-
*/
|
|
852
|
-
export type AccountInformationApiGetUserAccountPositionsRequest = {
|
|
853
|
-
|
|
854
|
-
/**
|
|
855
|
-
*
|
|
856
|
-
* @type {string}
|
|
857
|
-
* @memberof AccountInformationApiGetUserAccountPositions
|
|
858
|
-
*/
|
|
859
|
-
readonly userId: string
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
*
|
|
863
|
-
* @type {string}
|
|
864
|
-
* @memberof AccountInformationApiGetUserAccountPositions
|
|
865
|
-
*/
|
|
866
|
-
readonly userSecret: string
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* The ID of the account get positions.
|
|
870
|
-
* @type {string}
|
|
871
|
-
* @memberof AccountInformationApiGetUserAccountPositions
|
|
872
|
-
*/
|
|
873
|
-
readonly accountId: string
|
|
874
|
-
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* Request parameters for getUserHoldings operation in AccountInformationApi.
|
|
879
|
-
* @export
|
|
880
|
-
* @interface AccountInformationApiGetUserHoldingsRequest
|
|
881
|
-
*/
|
|
882
|
-
export type AccountInformationApiGetUserHoldingsRequest = {
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* The ID of the account to fetch holdings for.
|
|
886
|
-
* @type {string}
|
|
887
|
-
* @memberof AccountInformationApiGetUserHoldings
|
|
888
|
-
*/
|
|
889
|
-
readonly accountId: string
|
|
890
|
-
|
|
891
|
-
/**
|
|
892
|
-
*
|
|
893
|
-
* @type {string}
|
|
894
|
-
* @memberof AccountInformationApiGetUserHoldings
|
|
895
|
-
*/
|
|
896
|
-
readonly userId: string
|
|
897
|
-
|
|
898
|
-
/**
|
|
899
|
-
*
|
|
900
|
-
* @type {string}
|
|
901
|
-
* @memberof AccountInformationApiGetUserHoldings
|
|
902
|
-
*/
|
|
903
|
-
readonly userSecret: string
|
|
904
|
-
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
/**
|
|
908
|
-
* Request parameters for listUserAccounts operation in AccountInformationApi.
|
|
909
|
-
* @export
|
|
910
|
-
* @interface AccountInformationApiListUserAccountsRequest
|
|
911
|
-
*/
|
|
912
|
-
export type AccountInformationApiListUserAccountsRequest = {
|
|
913
|
-
|
|
914
|
-
/**
|
|
915
|
-
*
|
|
916
|
-
* @type {string}
|
|
917
|
-
* @memberof AccountInformationApiListUserAccounts
|
|
918
|
-
*/
|
|
919
|
-
readonly userId: string
|
|
920
|
-
|
|
921
|
-
/**
|
|
922
|
-
*
|
|
923
|
-
* @type {string}
|
|
924
|
-
* @memberof AccountInformationApiListUserAccounts
|
|
925
|
-
*/
|
|
926
|
-
readonly userSecret: string
|
|
927
|
-
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
/**
|
|
931
|
-
* Request parameters for updateUserAccount operation in AccountInformationApi.
|
|
932
|
-
* @export
|
|
933
|
-
* @interface AccountInformationApiUpdateUserAccountRequest
|
|
934
|
-
*/
|
|
935
|
-
export type AccountInformationApiUpdateUserAccountRequest = {
|
|
936
|
-
|
|
937
|
-
/**
|
|
938
|
-
*
|
|
939
|
-
* @type {string}
|
|
940
|
-
* @memberof AccountInformationApiUpdateUserAccount
|
|
941
|
-
*/
|
|
942
|
-
readonly userId: string
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
*
|
|
946
|
-
* @type {string}
|
|
947
|
-
* @memberof AccountInformationApiUpdateUserAccount
|
|
948
|
-
*/
|
|
949
|
-
readonly userSecret: string
|
|
950
|
-
|
|
951
|
-
/**
|
|
952
|
-
* The ID of the account to update.
|
|
953
|
-
* @type {string}
|
|
954
|
-
* @memberof AccountInformationApiUpdateUserAccount
|
|
955
|
-
*/
|
|
956
|
-
readonly accountId: string
|
|
957
|
-
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* AccountInformationApi - object-oriented interface
|
|
962
|
-
* @export
|
|
963
|
-
* @class AccountInformationApi
|
|
964
|
-
* @extends {BaseAPI}
|
|
965
|
-
*/
|
|
966
|
-
export class AccountInformationApi extends AccountInformationApiCustom {
|
|
967
|
-
/**
|
|
968
|
-
*
|
|
969
|
-
* @summary List all accounts for the user, plus balances and positions for each account.
|
|
970
|
-
* @param {AccountInformationApiGetAllUserHoldingsRequest} requestParameters Request parameters.
|
|
971
|
-
* @param {*} [options] Override http request option.
|
|
972
|
-
* @throws {RequiredError}
|
|
973
|
-
* @memberof AccountInformationApi
|
|
974
|
-
*/
|
|
975
|
-
public getAllUserHoldings(requestParameters: AccountInformationApiGetAllUserHoldingsRequest, options?: AxiosRequestConfig) {
|
|
976
|
-
return AccountInformationApiFp(this.configuration).getAllUserHoldings(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
/**
|
|
980
|
-
*
|
|
981
|
-
* @summary Get all cash balances of an investment account
|
|
982
|
-
* @param {AccountInformationApiGetUserAccountBalanceRequest} requestParameters Request parameters.
|
|
983
|
-
* @param {*} [options] Override http request option.
|
|
984
|
-
* @throws {RequiredError}
|
|
985
|
-
* @memberof AccountInformationApi
|
|
986
|
-
*/
|
|
987
|
-
public getUserAccountBalance(requestParameters: AccountInformationApiGetUserAccountBalanceRequest, options?: AxiosRequestConfig) {
|
|
988
|
-
return AccountInformationApiFp(this.configuration).getUserAccountBalance(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
/**
|
|
992
|
-
*
|
|
993
|
-
* @summary Return details of a specific investment account
|
|
994
|
-
* @param {AccountInformationApiGetUserAccountDetailsRequest} requestParameters Request parameters.
|
|
995
|
-
* @param {*} [options] Override http request option.
|
|
996
|
-
* @throws {RequiredError}
|
|
997
|
-
* @memberof AccountInformationApi
|
|
998
|
-
*/
|
|
999
|
-
public getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig) {
|
|
1000
|
-
return AccountInformationApiFp(this.configuration).getUserAccountDetails(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
*
|
|
1005
|
-
* @summary Get all history of orders placed in account
|
|
1006
|
-
* @param {AccountInformationApiGetUserAccountOrdersRequest} requestParameters Request parameters.
|
|
1007
|
-
* @param {*} [options] Override http request option.
|
|
1008
|
-
* @throws {RequiredError}
|
|
1009
|
-
* @memberof AccountInformationApi
|
|
1010
|
-
*/
|
|
1011
|
-
public getUserAccountOrders(requestParameters: AccountInformationApiGetUserAccountOrdersRequest, options?: AxiosRequestConfig) {
|
|
1012
|
-
return AccountInformationApiFp(this.configuration).getUserAccountOrders(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
/**
|
|
1016
|
-
*
|
|
1017
|
-
* @summary Get all positions of an investment account
|
|
1018
|
-
* @param {AccountInformationApiGetUserAccountPositionsRequest} requestParameters Request parameters.
|
|
1019
|
-
* @param {*} [options] Override http request option.
|
|
1020
|
-
* @throws {RequiredError}
|
|
1021
|
-
* @memberof AccountInformationApi
|
|
1022
|
-
*/
|
|
1023
|
-
public getUserAccountPositions(requestParameters: AccountInformationApiGetUserAccountPositionsRequest, options?: AxiosRequestConfig) {
|
|
1024
|
-
return AccountInformationApiFp(this.configuration).getUserAccountPositions(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
/**
|
|
1028
|
-
*
|
|
1029
|
-
* @summary List balances, positions and orders for the specified account.
|
|
1030
|
-
* @param {AccountInformationApiGetUserHoldingsRequest} requestParameters Request parameters.
|
|
1031
|
-
* @param {*} [options] Override http request option.
|
|
1032
|
-
* @throws {RequiredError}
|
|
1033
|
-
* @memberof AccountInformationApi
|
|
1034
|
-
*/
|
|
1035
|
-
public getUserHoldings(requestParameters: AccountInformationApiGetUserHoldingsRequest, options?: AxiosRequestConfig) {
|
|
1036
|
-
return AccountInformationApiFp(this.configuration).getUserHoldings(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
/**
|
|
1040
|
-
*
|
|
1041
|
-
* @summary List all investment accounts for the user
|
|
1042
|
-
* @param {AccountInformationApiListUserAccountsRequest} requestParameters Request parameters.
|
|
1043
|
-
* @param {*} [options] Override http request option.
|
|
1044
|
-
* @throws {RequiredError}
|
|
1045
|
-
* @memberof AccountInformationApi
|
|
1046
|
-
*/
|
|
1047
|
-
public listUserAccounts(requestParameters: AccountInformationApiListUserAccountsRequest, options?: AxiosRequestConfig) {
|
|
1048
|
-
return AccountInformationApiFp(this.configuration).listUserAccounts(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
/**
|
|
1052
|
-
*
|
|
1053
|
-
* @summary Update details of an investment account
|
|
1054
|
-
* @param {AccountInformationApiUpdateUserAccountRequest} requestParameters Request parameters.
|
|
1055
|
-
* @param {*} [options] Override http request option.
|
|
1056
|
-
* @throws {RequiredError}
|
|
1057
|
-
* @memberof AccountInformationApi
|
|
1058
|
-
*/
|
|
1059
|
-
public updateUserAccount(requestParameters: AccountInformationApiUpdateUserAccountRequest, options?: AxiosRequestConfig) {
|
|
1060
|
-
return AccountInformationApiFp(this.configuration).updateUserAccount(requestParameters, options).then((request) => request(this.axios, this.basePath));
|
|
1061
|
-
}
|
|
1062
|
-
}
|