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