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.
Files changed (52) hide show
  1. package/.konfig/generate-id.txt +1 -1
  2. package/README.md +3 -5
  3. package/api/account-information-api.ts +136 -120
  4. package/api/api-disclaimer-api.ts +14 -19
  5. package/api/authentication-api.ts +37 -43
  6. package/api/connections-api.ts +46 -40
  7. package/api/error-logs-api.ts +12 -10
  8. package/api/options-api.ts +104 -108
  9. package/api/portfolio-management-api.ts +259 -253
  10. package/api/reference-data-api.ts +49 -53
  11. package/api/trading-api.ts +172 -185
  12. package/api/transactions-and-reporting-api.ts +64 -60
  13. package/client.ts +2 -0
  14. package/configuration.ts +1 -1
  15. package/dist/api/account-information-api.d.ts +112 -112
  16. package/dist/api/api-disclaimer-api.d.ts +10 -16
  17. package/dist/api/api-disclaimer-api.js +1 -1
  18. package/dist/api/authentication-api.d.ts +27 -40
  19. package/dist/api/authentication-api.js +2 -2
  20. package/dist/api/connections-api.d.ts +38 -38
  21. package/dist/api/error-logs-api.d.ts +10 -10
  22. package/dist/api/options-api.d.ts +82 -94
  23. package/dist/api/options-api.js +2 -2
  24. package/dist/api/portfolio-management-api.d.ts +214 -256
  25. package/dist/api/portfolio-management-api.js +7 -7
  26. package/dist/api/reference-data-api.d.ts +37 -50
  27. package/dist/api/reference-data-api.js +2 -2
  28. package/dist/api/trading-api.d.ts +131 -160
  29. package/dist/api/trading-api.js +10 -10
  30. package/dist/api/transactions-and-reporting-api.d.ts +52 -52
  31. package/dist/configuration.js +1 -1
  32. package/dist/models/index.d.ts +1 -0
  33. package/dist/models/index.js +1 -0
  34. package/dist/models/target-asset.d.ts +4 -2
  35. package/dist/models/trading-cancel-user-account-order-request.d.ts +24 -0
  36. package/dist/models/trading-cancel-user-account-order-request.js +15 -0
  37. package/docs/AccountInformationApi.md +72 -88
  38. package/docs/ApiDisclaimerApi.md +8 -12
  39. package/docs/ApiStatusApi.md +6 -7
  40. package/docs/AuthenticationApi.md +34 -48
  41. package/docs/ConnectionsApi.md +26 -32
  42. package/docs/ErrorLogsApi.md +8 -10
  43. package/docs/OptionsApi.md +55 -62
  44. package/docs/PortfolioManagementApi.md +229 -309
  45. package/docs/ReferenceDataApi.md +66 -93
  46. package/docs/TradingApi.md +88 -117
  47. package/docs/TransactionsAndReportingApi.md +26 -28
  48. package/index.test.ts +2 -4
  49. package/models/index.ts +1 -0
  50. package/models/target-asset.ts +2 -2
  51. package/models/trading-cancel-user-account-order-request.ts +29 -0
  52. 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.requestBody, options)];
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.requestBody, options)];
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.requestBody, options)];
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.requestBody, options)];
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.requestBody, options)];
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.requestBody, options)];
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.requestBody, options)];
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 interface ReferenceDataApiGetCurrencyExchangeRatePairRequest {
297
+ export type ReferenceDataApiGetCurrencyExchangeRatePairRequest = {
298
298
  /**
299
- * A currency pair based on currency code for example, {CAD-USD}
300
- * @type {string}
301
- * @memberof ReferenceDataApiGetCurrencyExchangeRatePair
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 interface ReferenceDataApiGetSymbolsRequest {
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 interface ReferenceDataApiGetSymbolsByTickerRequest {
316
+ export type ReferenceDataApiGetSymbolsByTickerRequest = {
324
317
  /**
325
- * The ticker of the UniversalSymbol to get.
326
- * @type {string}
327
- * @memberof ReferenceDataApiGetSymbolsByTicker
328
- */
318
+ * The ticker of the UniversalSymbol to get.
319
+ * @type {string}
320
+ * @memberof ReferenceDataApiGetSymbolsByTicker
321
+ */
329
322
  readonly ticker: string;
330
323
  /**
331
- * OPTIONAL IN PATH Can be used instead of the ticker ; The ID of the UniversalSymbol to get.
332
- * @type {string}
333
- * @memberof ReferenceDataApiGetSymbolsByTicker
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 interface ReferenceDataApiListAllBrokerageAuthorizationTypeRequest {
335
+ export type ReferenceDataApiListAllBrokerageAuthorizationTypeRequest = {
343
336
  /**
344
- * Comma separated value of brokerage slugs
345
- * @type {string}
346
- * @memberof ReferenceDataApiListAllBrokerageAuthorizationType
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 interface ReferenceDataApiSymbolSearchUserAccountRequest {
348
+ export type ReferenceDataApiSymbolSearchUserAccountRequest = {
356
349
  /**
357
- *
358
- * @type {string}
359
- * @memberof ReferenceDataApiSymbolSearchUserAccount
360
- */
350
+ *
351
+ * @type {string}
352
+ * @memberof ReferenceDataApiSymbolSearchUserAccount
353
+ */
361
354
  readonly userId: string;
362
355
  /**
363
- *
364
- * @type {string}
365
- * @memberof ReferenceDataApiSymbolSearchUserAccount
366
- */
356
+ *
357
+ * @type {string}
358
+ * @memberof ReferenceDataApiSymbolSearchUserAccount
359
+ */
367
360
  readonly userSecret: string;
368
361
  /**
369
- * The ID of the account get positions.
370
- * @type {string}
371
- * @memberof ReferenceDataApiSymbolSearchUserAccount
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.requestBody, options)];
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.requestBody, options)];
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 {string} body
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, body: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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 interface TradingApiCancelUserAccountOrderRequest {
309
+ export type TradingApiCancelUserAccountOrderRequest = {
309
310
  /**
310
- *
311
- * @type {string}
312
- * @memberof TradingApiCancelUserAccountOrder
313
- */
311
+ *
312
+ * @type {string}
313
+ * @memberof TradingApiCancelUserAccountOrder
314
+ */
314
315
  readonly userId: string;
315
316
  /**
316
- *
317
- * @type {string}
318
- * @memberof TradingApiCancelUserAccountOrder
319
- */
317
+ *
318
+ * @type {string}
319
+ * @memberof TradingApiCancelUserAccountOrder
320
+ */
320
321
  readonly userSecret: string;
321
322
  /**
322
- * The ID of the account get positions.
323
- * @type {string}
324
- * @memberof TradingApiCancelUserAccountOrder
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 interface TradingApiGetCalculatedTradeImpactByIdRequest {
334
+ export type TradingApiGetCalculatedTradeImpactByIdRequest = {
340
335
  /**
341
- * The ID of the PortfolioGroup to perform rebalancing calculations
342
- * @type {string}
343
- * @memberof TradingApiGetCalculatedTradeImpactById
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
- * The ID of calculated trade to get account impact
348
- * @type {string}
349
- * @memberof TradingApiGetCalculatedTradeImpactById
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
- * The ID of trade object
354
- * @type {string}
355
- * @memberof TradingApiGetCalculatedTradeImpactById
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 interface TradingApiGetCalculatedTradesImpactRequest {
359
+ export type TradingApiGetCalculatedTradesImpactRequest = {
365
360
  /**
366
- * The ID of the PortfolioGroup to perform rebalancing calculations
367
- * @type {string}
368
- * @memberof TradingApiGetCalculatedTradesImpact
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
- * The ID of calculated trade to get account impact
373
- * @type {string}
374
- * @memberof TradingApiGetCalculatedTradesImpact
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 interface TradingApiGetOrderImpactRequest {
378
+ export type TradingApiGetOrderImpactRequest = {
384
379
  /**
385
- *
386
- * @type {string}
387
- * @memberof TradingApiGetOrderImpact
388
- */
380
+ *
381
+ * @type {string}
382
+ * @memberof TradingApiGetOrderImpact
383
+ */
389
384
  readonly userId: string;
390
385
  /**
391
- *
392
- * @type {string}
393
- * @memberof TradingApiGetOrderImpact
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 interface TradingApiGetUserAccountQuotesRequest {
397
+ export type TradingApiGetUserAccountQuotesRequest = {
409
398
  /**
410
- *
411
- * @type {string}
412
- * @memberof TradingApiGetUserAccountQuotes
413
- */
399
+ *
400
+ * @type {string}
401
+ * @memberof TradingApiGetUserAccountQuotes
402
+ */
414
403
  readonly userId: string;
415
404
  /**
416
- *
417
- * @type {string}
418
- * @memberof TradingApiGetUserAccountQuotes
419
- */
405
+ *
406
+ * @type {string}
407
+ * @memberof TradingApiGetUserAccountQuotes
408
+ */
420
409
  readonly userSecret: string;
421
410
  /**
422
- * List of universal_symbol_id or tickers to get quotes for.
423
- * @type {string}
424
- * @memberof TradingApiGetUserAccountQuotes
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
- * The ID of the account to get quotes.
429
- * @type {string}
430
- * @memberof TradingApiGetUserAccountQuotes
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
- * Should be set to True if providing tickers.
435
- * @type {boolean}
436
- * @memberof TradingApiGetUserAccountQuotes
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 interface TradingApiModifyCalculatedTradeByIdRequest {
434
+ export type TradingApiModifyCalculatedTradeByIdRequest = {
446
435
  /**
447
- * The ID of the PortfolioGroup to perform rebalancing calculations
448
- * @type {string}
449
- * @memberof TradingApiModifyCalculatedTradeById
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
- * The ID of calculated trade to get account impact
454
- * @type {string}
455
- * @memberof TradingApiModifyCalculatedTradeById
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
- * The ID of trade object
460
- * @type {string}
461
- * @memberof TradingApiModifyCalculatedTradeById
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 interface TradingApiPlaceCalculatedTradesRequest {
459
+ export type TradingApiPlaceCalculatedTradesRequest = {
477
460
  /**
478
- * The ID of the PortfolioGroup to perform rebalancing calculations
479
- * @type {string}
480
- * @memberof TradingApiPlaceCalculatedTrades
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
- * The ID of calculated trade to get account impact
485
- * @type {string}
486
- * @memberof TradingApiPlaceCalculatedTrades
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 interface TradingApiPlaceForceOrderRequest {
478
+ export type TradingApiPlaceForceOrderRequest = {
496
479
  /**
497
- *
498
- * @type {string}
499
- * @memberof TradingApiPlaceForceOrder
500
- */
480
+ *
481
+ * @type {string}
482
+ * @memberof TradingApiPlaceForceOrder
483
+ */
501
484
  readonly userId: string;
502
485
  /**
503
- *
504
- * @type {string}
505
- * @memberof TradingApiPlaceForceOrder
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 interface TradingApiPlaceOCOOrderRequest {
497
+ export type TradingApiPlaceOCOOrderRequest = {
521
498
  /**
522
- *
523
- * @type {string}
524
- * @memberof TradingApiPlaceOCOOrder
525
- */
499
+ *
500
+ * @type {string}
501
+ * @memberof TradingApiPlaceOCOOrder
502
+ */
526
503
  readonly userId: string;
527
504
  /**
528
- *
529
- * @type {string}
530
- * @memberof TradingApiPlaceOCOOrder
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 interface TradingApiPlaceOrderRequest {
516
+ export type TradingApiPlaceOrderRequest = {
546
517
  /**
547
- * The ID of trade object obtained from trade/impact endpoint
548
- * @type {string}
549
- * @memberof TradingApiPlaceOrder
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
- * @type {string}
555
- * @memberof TradingApiPlaceOrder
556
- */
524
+ *
525
+ * @type {string}
526
+ * @memberof TradingApiPlaceOrder
527
+ */
557
528
  readonly userId: string;
558
529
  /**
559
- *
560
- * @type {string}
561
- * @memberof TradingApiPlaceOrder
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