snaptrade-typescript-sdk 5.0.0 → 6.1.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/.konfig/generate-id.txt +1 -1
- package/README.md +3 -5
- package/api/account-information-api.ts +136 -120
- package/api/api-disclaimer-api.ts +14 -19
- package/api/authentication-api.ts +37 -43
- package/api/connections-api.ts +46 -40
- package/api/error-logs-api.ts +12 -10
- package/api/options-api.ts +104 -108
- package/api/portfolio-management-api.ts +259 -253
- package/api/reference-data-api.ts +49 -53
- package/api/trading-api.ts +172 -185
- package/api/transactions-and-reporting-api.ts +64 -60
- package/client.ts +2 -0
- package/configuration.ts +1 -1
- package/dist/api/account-information-api.d.ts +112 -112
- package/dist/api/api-disclaimer-api.d.ts +10 -16
- package/dist/api/api-disclaimer-api.js +1 -1
- package/dist/api/authentication-api.d.ts +27 -40
- package/dist/api/authentication-api.js +2 -2
- package/dist/api/connections-api.d.ts +38 -38
- package/dist/api/error-logs-api.d.ts +10 -10
- package/dist/api/options-api.d.ts +82 -94
- package/dist/api/options-api.js +2 -2
- package/dist/api/portfolio-management-api.d.ts +214 -256
- package/dist/api/portfolio-management-api.js +7 -7
- package/dist/api/reference-data-api.d.ts +37 -50
- package/dist/api/reference-data-api.js +2 -2
- package/dist/api/trading-api.d.ts +131 -160
- package/dist/api/trading-api.js +10 -10
- package/dist/api/transactions-and-reporting-api.d.ts +52 -52
- package/dist/configuration.js +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/target-asset.d.ts +4 -2
- package/dist/models/trading-cancel-user-account-order-request.d.ts +24 -0
- package/dist/models/trading-cancel-user-account-order-request.js +15 -0
- package/docs/AccountInformationApi.md +72 -88
- package/docs/ApiDisclaimerApi.md +8 -12
- package/docs/ApiStatusApi.md +6 -7
- package/docs/AuthenticationApi.md +34 -48
- package/docs/ConnectionsApi.md +26 -32
- package/docs/ErrorLogsApi.md +8 -10
- package/docs/OptionsApi.md +55 -62
- package/docs/PortfolioManagementApi.md +229 -309
- package/docs/ReferenceDataApi.md +66 -93
- package/docs/TradingApi.md +88 -117
- package/docs/TransactionsAndReportingApi.md +26 -28
- package/index.test.ts +2 -4
- package/models/index.ts +1 -0
- package/models/target-asset.ts +2 -2
- package/models/trading-cancel-user-account-order-request.ts +29 -0
- package/package.json +1 -1
|
@@ -2183,7 +2183,7 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2183
2183
|
var localVarAxiosArgs;
|
|
2184
2184
|
return __generator(this, function (_a) {
|
|
2185
2185
|
switch (_a.label) {
|
|
2186
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addPortfolioExcludedAsset(requestParameters.portfolioGroupId, requestParameters
|
|
2186
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addPortfolioExcludedAsset(requestParameters.portfolioGroupId, requestParameters, options)];
|
|
2187
2187
|
case 1:
|
|
2188
2188
|
localVarAxiosArgs = _a.sent();
|
|
2189
2189
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2203,7 +2203,7 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2203
2203
|
var localVarAxiosArgs;
|
|
2204
2204
|
return __generator(this, function (_a) {
|
|
2205
2205
|
switch (_a.label) {
|
|
2206
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.create(requestParameters.userId, requestParameters.userSecret, requestParameters
|
|
2206
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.create(requestParameters.userId, requestParameters.userSecret, requestParameters, options)];
|
|
2207
2207
|
case 1:
|
|
2208
2208
|
localVarAxiosArgs = _a.sent();
|
|
2209
2209
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2699,7 +2699,7 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2699
2699
|
var localVarAxiosArgs;
|
|
2700
2700
|
return __generator(this, function (_a) {
|
|
2701
2701
|
switch (_a.label) {
|
|
2702
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.modifyModelPortfolioById(requestParameters.modelPortfolioId, requestParameters
|
|
2702
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.modifyModelPortfolioById(requestParameters.modelPortfolioId, requestParameters, options)];
|
|
2703
2703
|
case 1:
|
|
2704
2704
|
localVarAxiosArgs = _a.sent();
|
|
2705
2705
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2719,7 +2719,7 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2719
2719
|
var localVarAxiosArgs;
|
|
2720
2720
|
return __generator(this, function (_a) {
|
|
2721
2721
|
switch (_a.label) {
|
|
2722
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.savePortfolio(requestParameters.portfolioGroupId, requestParameters
|
|
2722
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.savePortfolio(requestParameters.portfolioGroupId, requestParameters, options)];
|
|
2723
2723
|
case 1:
|
|
2724
2724
|
localVarAxiosArgs = _a.sent();
|
|
2725
2725
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2739,7 +2739,7 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2739
2739
|
var localVarAxiosArgs;
|
|
2740
2740
|
return __generator(this, function (_a) {
|
|
2741
2741
|
switch (_a.label) {
|
|
2742
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchPortfolioSymbols(requestParameters.portfolioGroupId, requestParameters
|
|
2742
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchPortfolioSymbols(requestParameters.portfolioGroupId, requestParameters, options)];
|
|
2743
2743
|
case 1:
|
|
2744
2744
|
localVarAxiosArgs = _a.sent();
|
|
2745
2745
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2779,7 +2779,7 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2779
2779
|
var localVarAxiosArgs;
|
|
2780
2780
|
return __generator(this, function (_a) {
|
|
2781
2781
|
switch (_a.label) {
|
|
2782
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAssetClass(requestParameters.modelAssetClassId, requestParameters
|
|
2782
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAssetClass(requestParameters.modelAssetClassId, requestParameters, options)];
|
|
2783
2783
|
case 1:
|
|
2784
2784
|
localVarAxiosArgs = _a.sent();
|
|
2785
2785
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2819,7 +2819,7 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2819
2819
|
var localVarAxiosArgs;
|
|
2820
2820
|
return __generator(this, function (_a) {
|
|
2821
2821
|
switch (_a.label) {
|
|
2822
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePortfolioTargetById(requestParameters.portfolioGroupId, requestParameters.targetAssetId, requestParameters
|
|
2822
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePortfolioTargetById(requestParameters.portfolioGroupId, requestParameters.targetAssetId, requestParameters, options)];
|
|
2823
2823
|
case 1:
|
|
2824
2824
|
localVarAxiosArgs = _a.sent();
|
|
2825
2825
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -294,90 +294,77 @@ export declare const ReferenceDataApiFactory: (configuration?: Configuration, ba
|
|
|
294
294
|
* @export
|
|
295
295
|
* @interface ReferenceDataApiGetCurrencyExchangeRatePairRequest
|
|
296
296
|
*/
|
|
297
|
-
export
|
|
297
|
+
export type ReferenceDataApiGetCurrencyExchangeRatePairRequest = {
|
|
298
298
|
/**
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
299
|
+
* A currency pair based on currency code for example, {CAD-USD}
|
|
300
|
+
* @type {string}
|
|
301
|
+
* @memberof ReferenceDataApiGetCurrencyExchangeRatePair
|
|
302
|
+
*/
|
|
303
303
|
readonly currencyPair: string;
|
|
304
|
-
}
|
|
304
|
+
};
|
|
305
305
|
/**
|
|
306
306
|
* Request parameters for getSymbols operation in ReferenceDataApi.
|
|
307
307
|
* @export
|
|
308
308
|
* @interface ReferenceDataApiGetSymbolsRequest
|
|
309
309
|
*/
|
|
310
|
-
export
|
|
311
|
-
/**
|
|
312
|
-
*
|
|
313
|
-
* @type {SymbolQuery}
|
|
314
|
-
* @memberof ReferenceDataApiGetSymbols
|
|
315
|
-
*/
|
|
316
|
-
readonly requestBody?: SymbolQuery;
|
|
317
|
-
}
|
|
310
|
+
export type ReferenceDataApiGetSymbolsRequest = {} & SymbolQuery;
|
|
318
311
|
/**
|
|
319
312
|
* Request parameters for getSymbolsByTicker operation in ReferenceDataApi.
|
|
320
313
|
* @export
|
|
321
314
|
* @interface ReferenceDataApiGetSymbolsByTickerRequest
|
|
322
315
|
*/
|
|
323
|
-
export
|
|
316
|
+
export type ReferenceDataApiGetSymbolsByTickerRequest = {
|
|
324
317
|
/**
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
318
|
+
* The ticker of the UniversalSymbol to get.
|
|
319
|
+
* @type {string}
|
|
320
|
+
* @memberof ReferenceDataApiGetSymbolsByTicker
|
|
321
|
+
*/
|
|
329
322
|
readonly ticker: string;
|
|
330
323
|
/**
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
324
|
+
* OPTIONAL IN PATH Can be used instead of the ticker ; The ID of the UniversalSymbol to get.
|
|
325
|
+
* @type {string}
|
|
326
|
+
* @memberof ReferenceDataApiGetSymbolsByTicker
|
|
327
|
+
*/
|
|
335
328
|
readonly symbolId?: string;
|
|
336
|
-
}
|
|
329
|
+
};
|
|
337
330
|
/**
|
|
338
331
|
* Request parameters for listAllBrokerageAuthorizationType operation in ReferenceDataApi.
|
|
339
332
|
* @export
|
|
340
333
|
* @interface ReferenceDataApiListAllBrokerageAuthorizationTypeRequest
|
|
341
334
|
*/
|
|
342
|
-
export
|
|
335
|
+
export type ReferenceDataApiListAllBrokerageAuthorizationTypeRequest = {
|
|
343
336
|
/**
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
337
|
+
* Comma separated value of brokerage slugs
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @memberof ReferenceDataApiListAllBrokerageAuthorizationType
|
|
340
|
+
*/
|
|
348
341
|
readonly brokerage?: string;
|
|
349
|
-
}
|
|
342
|
+
};
|
|
350
343
|
/**
|
|
351
344
|
* Request parameters for symbolSearchUserAccount operation in ReferenceDataApi.
|
|
352
345
|
* @export
|
|
353
346
|
* @interface ReferenceDataApiSymbolSearchUserAccountRequest
|
|
354
347
|
*/
|
|
355
|
-
export
|
|
348
|
+
export type ReferenceDataApiSymbolSearchUserAccountRequest = {
|
|
356
349
|
/**
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
350
|
+
*
|
|
351
|
+
* @type {string}
|
|
352
|
+
* @memberof ReferenceDataApiSymbolSearchUserAccount
|
|
353
|
+
*/
|
|
361
354
|
readonly userId: string;
|
|
362
355
|
/**
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
356
|
+
*
|
|
357
|
+
* @type {string}
|
|
358
|
+
* @memberof ReferenceDataApiSymbolSearchUserAccount
|
|
359
|
+
*/
|
|
367
360
|
readonly userSecret: string;
|
|
368
361
|
/**
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
362
|
+
* The ID of the account get positions.
|
|
363
|
+
* @type {string}
|
|
364
|
+
* @memberof ReferenceDataApiSymbolSearchUserAccount
|
|
365
|
+
*/
|
|
373
366
|
readonly accountId: string;
|
|
374
|
-
|
|
375
|
-
*
|
|
376
|
-
* @type {SymbolQuery}
|
|
377
|
-
* @memberof ReferenceDataApiSymbolSearchUserAccount
|
|
378
|
-
*/
|
|
379
|
-
readonly requestBody?: SymbolQuery;
|
|
380
|
-
}
|
|
367
|
+
} & SymbolQuery;
|
|
381
368
|
/**
|
|
382
369
|
* ReferenceDataApi - object-oriented interface
|
|
383
370
|
* @export
|
|
@@ -855,7 +855,7 @@ var ReferenceDataApiFp = function (configuration) {
|
|
|
855
855
|
var localVarAxiosArgs;
|
|
856
856
|
return __generator(this, function (_a) {
|
|
857
857
|
switch (_a.label) {
|
|
858
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSymbols(requestParameters
|
|
858
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSymbols(requestParameters, options)];
|
|
859
859
|
case 1:
|
|
860
860
|
localVarAxiosArgs = _a.sent();
|
|
861
861
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -973,7 +973,7 @@ var ReferenceDataApiFp = function (configuration) {
|
|
|
973
973
|
var localVarAxiosArgs;
|
|
974
974
|
return __generator(this, function (_a) {
|
|
975
975
|
switch (_a.label) {
|
|
976
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.symbolSearchUserAccount(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters
|
|
976
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.symbolSearchUserAccount(requestParameters.userId, requestParameters.userSecret, requestParameters.accountId, requestParameters, options)];
|
|
977
977
|
case 1:
|
|
978
978
|
localVarAxiosArgs = _a.sent();
|
|
979
979
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -19,6 +19,7 @@ import { SymbolsQuotes } from '../models';
|
|
|
19
19
|
import { Trade } from '../models';
|
|
20
20
|
import { TradeExecutionStatus } from '../models';
|
|
21
21
|
import { TradeImpact } from '../models';
|
|
22
|
+
import { TradingCancelUserAccountOrderRequest } from '../models';
|
|
22
23
|
import { TradingPlaceOCOOrderRequest } from '../models';
|
|
23
24
|
/**
|
|
24
25
|
* TradingApi - axios parameter creator
|
|
@@ -31,11 +32,11 @@ export declare const TradingApiAxiosParamCreator: (configuration?: Configuration
|
|
|
31
32
|
* @param {string} userId
|
|
32
33
|
* @param {string} userSecret
|
|
33
34
|
* @param {string} accountId The ID of the account get positions.
|
|
34
|
-
* @param {
|
|
35
|
+
* @param {TradingCancelUserAccountOrderRequest} tradingCancelUserAccountOrderRequest The Order ID to be canceled
|
|
35
36
|
* @param {*} [options] Override http request option.
|
|
36
37
|
* @throws {RequiredError}
|
|
37
38
|
*/
|
|
38
|
-
cancelUserAccountOrder: (userId: string, userSecret: string, accountId: string,
|
|
39
|
+
cancelUserAccountOrder: (userId: string, userSecret: string, accountId: string, tradingCancelUserAccountOrderRequest: TradingCancelUserAccountOrderRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
40
|
/**
|
|
40
41
|
*
|
|
41
42
|
* @summary Return details of a specific trade before it\'s placed
|
|
@@ -305,263 +306,233 @@ export declare const TradingApiFactory: (configuration?: Configuration, basePath
|
|
|
305
306
|
* @export
|
|
306
307
|
* @interface TradingApiCancelUserAccountOrderRequest
|
|
307
308
|
*/
|
|
308
|
-
export
|
|
309
|
+
export type TradingApiCancelUserAccountOrderRequest = {
|
|
309
310
|
/**
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
311
|
+
*
|
|
312
|
+
* @type {string}
|
|
313
|
+
* @memberof TradingApiCancelUserAccountOrder
|
|
314
|
+
*/
|
|
314
315
|
readonly userId: string;
|
|
315
316
|
/**
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
317
|
+
*
|
|
318
|
+
* @type {string}
|
|
319
|
+
* @memberof TradingApiCancelUserAccountOrder
|
|
320
|
+
*/
|
|
320
321
|
readonly userSecret: string;
|
|
321
322
|
/**
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
* The ID of the account get positions.
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof TradingApiCancelUserAccountOrder
|
|
326
|
+
*/
|
|
326
327
|
readonly accountId: string;
|
|
327
|
-
|
|
328
|
-
*
|
|
329
|
-
* @type {string}
|
|
330
|
-
* @memberof TradingApiCancelUserAccountOrder
|
|
331
|
-
*/
|
|
332
|
-
readonly requestBody: string;
|
|
333
|
-
}
|
|
328
|
+
} & TradingCancelUserAccountOrderRequest;
|
|
334
329
|
/**
|
|
335
330
|
* Request parameters for getCalculatedTradeImpactById operation in TradingApi.
|
|
336
331
|
* @export
|
|
337
332
|
* @interface TradingApiGetCalculatedTradeImpactByIdRequest
|
|
338
333
|
*/
|
|
339
|
-
export
|
|
334
|
+
export type TradingApiGetCalculatedTradeImpactByIdRequest = {
|
|
340
335
|
/**
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
336
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
337
|
+
* @type {string}
|
|
338
|
+
* @memberof TradingApiGetCalculatedTradeImpactById
|
|
339
|
+
*/
|
|
345
340
|
readonly portfolioGroupId: string;
|
|
346
341
|
/**
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
342
|
+
* The ID of calculated trade to get account impact
|
|
343
|
+
* @type {string}
|
|
344
|
+
* @memberof TradingApiGetCalculatedTradeImpactById
|
|
345
|
+
*/
|
|
351
346
|
readonly calculatedTradeId: string;
|
|
352
347
|
/**
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
348
|
+
* The ID of trade object
|
|
349
|
+
* @type {string}
|
|
350
|
+
* @memberof TradingApiGetCalculatedTradeImpactById
|
|
351
|
+
*/
|
|
357
352
|
readonly tradeId: string;
|
|
358
|
-
}
|
|
353
|
+
};
|
|
359
354
|
/**
|
|
360
355
|
* Request parameters for getCalculatedTradesImpact operation in TradingApi.
|
|
361
356
|
* @export
|
|
362
357
|
* @interface TradingApiGetCalculatedTradesImpactRequest
|
|
363
358
|
*/
|
|
364
|
-
export
|
|
359
|
+
export type TradingApiGetCalculatedTradesImpactRequest = {
|
|
365
360
|
/**
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
361
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
362
|
+
* @type {string}
|
|
363
|
+
* @memberof TradingApiGetCalculatedTradesImpact
|
|
364
|
+
*/
|
|
370
365
|
readonly portfolioGroupId: string;
|
|
371
366
|
/**
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
367
|
+
* The ID of calculated trade to get account impact
|
|
368
|
+
* @type {string}
|
|
369
|
+
* @memberof TradingApiGetCalculatedTradesImpact
|
|
370
|
+
*/
|
|
376
371
|
readonly calculatedTradeId: string;
|
|
377
|
-
}
|
|
372
|
+
};
|
|
378
373
|
/**
|
|
379
374
|
* Request parameters for getOrderImpact operation in TradingApi.
|
|
380
375
|
* @export
|
|
381
376
|
* @interface TradingApiGetOrderImpactRequest
|
|
382
377
|
*/
|
|
383
|
-
export
|
|
378
|
+
export type TradingApiGetOrderImpactRequest = {
|
|
384
379
|
/**
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
380
|
+
*
|
|
381
|
+
* @type {string}
|
|
382
|
+
* @memberof TradingApiGetOrderImpact
|
|
383
|
+
*/
|
|
389
384
|
readonly userId: string;
|
|
390
385
|
/**
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
386
|
+
*
|
|
387
|
+
* @type {string}
|
|
388
|
+
* @memberof TradingApiGetOrderImpact
|
|
389
|
+
*/
|
|
395
390
|
readonly userSecret: string;
|
|
396
|
-
|
|
397
|
-
*
|
|
398
|
-
* @type {ManualTradeForm}
|
|
399
|
-
* @memberof TradingApiGetOrderImpact
|
|
400
|
-
*/
|
|
401
|
-
readonly requestBody: ManualTradeForm;
|
|
402
|
-
}
|
|
391
|
+
} & ManualTradeForm;
|
|
403
392
|
/**
|
|
404
393
|
* Request parameters for getUserAccountQuotes operation in TradingApi.
|
|
405
394
|
* @export
|
|
406
395
|
* @interface TradingApiGetUserAccountQuotesRequest
|
|
407
396
|
*/
|
|
408
|
-
export
|
|
397
|
+
export type TradingApiGetUserAccountQuotesRequest = {
|
|
409
398
|
/**
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
399
|
+
*
|
|
400
|
+
* @type {string}
|
|
401
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
402
|
+
*/
|
|
414
403
|
readonly userId: string;
|
|
415
404
|
/**
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
405
|
+
*
|
|
406
|
+
* @type {string}
|
|
407
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
408
|
+
*/
|
|
420
409
|
readonly userSecret: string;
|
|
421
410
|
/**
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
411
|
+
* List of universal_symbol_id or tickers to get quotes for.
|
|
412
|
+
* @type {string}
|
|
413
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
414
|
+
*/
|
|
426
415
|
readonly symbols: string;
|
|
427
416
|
/**
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
417
|
+
* The ID of the account to get quotes.
|
|
418
|
+
* @type {string}
|
|
419
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
420
|
+
*/
|
|
432
421
|
readonly accountId: string;
|
|
433
422
|
/**
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
423
|
+
* Should be set to True if providing tickers.
|
|
424
|
+
* @type {boolean}
|
|
425
|
+
* @memberof TradingApiGetUserAccountQuotes
|
|
426
|
+
*/
|
|
438
427
|
readonly useTicker?: boolean;
|
|
439
|
-
}
|
|
428
|
+
};
|
|
440
429
|
/**
|
|
441
430
|
* Request parameters for modifyCalculatedTradeById operation in TradingApi.
|
|
442
431
|
* @export
|
|
443
432
|
* @interface TradingApiModifyCalculatedTradeByIdRequest
|
|
444
433
|
*/
|
|
445
|
-
export
|
|
434
|
+
export type TradingApiModifyCalculatedTradeByIdRequest = {
|
|
446
435
|
/**
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
436
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
437
|
+
* @type {string}
|
|
438
|
+
* @memberof TradingApiModifyCalculatedTradeById
|
|
439
|
+
*/
|
|
451
440
|
readonly portfolioGroupId: string;
|
|
452
441
|
/**
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
442
|
+
* The ID of calculated trade to get account impact
|
|
443
|
+
* @type {string}
|
|
444
|
+
* @memberof TradingApiModifyCalculatedTradeById
|
|
445
|
+
*/
|
|
457
446
|
readonly calculatedTradeId: string;
|
|
458
447
|
/**
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
448
|
+
* The ID of trade object
|
|
449
|
+
* @type {string}
|
|
450
|
+
* @memberof TradingApiModifyCalculatedTradeById
|
|
451
|
+
*/
|
|
463
452
|
readonly tradeId: string;
|
|
464
|
-
|
|
465
|
-
*
|
|
466
|
-
* @type {Trade}
|
|
467
|
-
* @memberof TradingApiModifyCalculatedTradeById
|
|
468
|
-
*/
|
|
469
|
-
readonly requestBody?: Trade;
|
|
470
|
-
}
|
|
453
|
+
} & Trade;
|
|
471
454
|
/**
|
|
472
455
|
* Request parameters for placeCalculatedTrades operation in TradingApi.
|
|
473
456
|
* @export
|
|
474
457
|
* @interface TradingApiPlaceCalculatedTradesRequest
|
|
475
458
|
*/
|
|
476
|
-
export
|
|
459
|
+
export type TradingApiPlaceCalculatedTradesRequest = {
|
|
477
460
|
/**
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
461
|
+
* The ID of the PortfolioGroup to perform rebalancing calculations
|
|
462
|
+
* @type {string}
|
|
463
|
+
* @memberof TradingApiPlaceCalculatedTrades
|
|
464
|
+
*/
|
|
482
465
|
readonly portfolioGroupId: string;
|
|
483
466
|
/**
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
467
|
+
* The ID of calculated trade to get account impact
|
|
468
|
+
* @type {string}
|
|
469
|
+
* @memberof TradingApiPlaceCalculatedTrades
|
|
470
|
+
*/
|
|
488
471
|
readonly calculatedTradeId: string;
|
|
489
|
-
}
|
|
472
|
+
};
|
|
490
473
|
/**
|
|
491
474
|
* Request parameters for placeForceOrder operation in TradingApi.
|
|
492
475
|
* @export
|
|
493
476
|
* @interface TradingApiPlaceForceOrderRequest
|
|
494
477
|
*/
|
|
495
|
-
export
|
|
478
|
+
export type TradingApiPlaceForceOrderRequest = {
|
|
496
479
|
/**
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
480
|
+
*
|
|
481
|
+
* @type {string}
|
|
482
|
+
* @memberof TradingApiPlaceForceOrder
|
|
483
|
+
*/
|
|
501
484
|
readonly userId: string;
|
|
502
485
|
/**
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
486
|
+
*
|
|
487
|
+
* @type {string}
|
|
488
|
+
* @memberof TradingApiPlaceForceOrder
|
|
489
|
+
*/
|
|
507
490
|
readonly userSecret: string;
|
|
508
|
-
|
|
509
|
-
*
|
|
510
|
-
* @type {ManualTradeForm}
|
|
511
|
-
* @memberof TradingApiPlaceForceOrder
|
|
512
|
-
*/
|
|
513
|
-
readonly requestBody: ManualTradeForm;
|
|
514
|
-
}
|
|
491
|
+
} & ManualTradeForm;
|
|
515
492
|
/**
|
|
516
493
|
* Request parameters for placeOCOOrder operation in TradingApi.
|
|
517
494
|
* @export
|
|
518
495
|
* @interface TradingApiPlaceOCOOrderRequest
|
|
519
496
|
*/
|
|
520
|
-
export
|
|
497
|
+
export type TradingApiPlaceOCOOrderRequest = {
|
|
521
498
|
/**
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
499
|
+
*
|
|
500
|
+
* @type {string}
|
|
501
|
+
* @memberof TradingApiPlaceOCOOrder
|
|
502
|
+
*/
|
|
526
503
|
readonly userId: string;
|
|
527
504
|
/**
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
505
|
+
*
|
|
506
|
+
* @type {string}
|
|
507
|
+
* @memberof TradingApiPlaceOCOOrder
|
|
508
|
+
*/
|
|
532
509
|
readonly userSecret: string;
|
|
533
|
-
|
|
534
|
-
*
|
|
535
|
-
* @type {TradingPlaceOCOOrderRequest}
|
|
536
|
-
* @memberof TradingApiPlaceOCOOrder
|
|
537
|
-
*/
|
|
538
|
-
readonly requestBody: TradingPlaceOCOOrderRequest;
|
|
539
|
-
}
|
|
510
|
+
} & TradingPlaceOCOOrderRequest;
|
|
540
511
|
/**
|
|
541
512
|
* Request parameters for placeOrder operation in TradingApi.
|
|
542
513
|
* @export
|
|
543
514
|
* @interface TradingApiPlaceOrderRequest
|
|
544
515
|
*/
|
|
545
|
-
export
|
|
516
|
+
export type TradingApiPlaceOrderRequest = {
|
|
546
517
|
/**
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
518
|
+
* The ID of trade object obtained from trade/impact endpoint
|
|
519
|
+
* @type {string}
|
|
520
|
+
* @memberof TradingApiPlaceOrder
|
|
521
|
+
*/
|
|
551
522
|
readonly tradeId: string;
|
|
552
523
|
/**
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
524
|
+
*
|
|
525
|
+
* @type {string}
|
|
526
|
+
* @memberof TradingApiPlaceOrder
|
|
527
|
+
*/
|
|
557
528
|
readonly userId: string;
|
|
558
529
|
/**
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
530
|
+
*
|
|
531
|
+
* @type {string}
|
|
532
|
+
* @memberof TradingApiPlaceOrder
|
|
533
|
+
*/
|
|
563
534
|
readonly userSecret: string;
|
|
564
|
-
}
|
|
535
|
+
};
|
|
565
536
|
/**
|
|
566
537
|
* TradingApi - object-oriented interface
|
|
567
538
|
* @export
|