snaptrade-typescript-sdk 8.14.0 → 8.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/api/portfolio-management-api.d.ts +86 -10
- package/dist/api/portfolio-management-api.js +72 -18
- package/dist/api/trading-api.d.ts +4 -4
- package/dist/configuration.js +1 -1
- package/dist/jest.config.js +1 -0
- package/dist/models/account-order-record.d.ts +3 -3
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/manual-trade-form.d.ts +1 -1
- package/dist/models/manual-trade.d.ts +1 -1
- package/dist/models/options-holdings.d.ts +1 -1
- package/dist/models/options-place-option-strategy-request.d.ts +1 -1
- package/dist/models/options-position.d.ts +1 -1
- package/dist/models/strategy-order-record.d.ts +2 -2
- package/dist/models/strategy-quotes.d.ts +3 -3
- package/dist/models/{symbols-quotes.d.ts → symbols-quotes-inner.d.ts} +9 -10
- package/package.json +1 -1
- /package/dist/models/{symbols-quotes.js → symbols-quotes-inner.js} +0 -0
package/README.md
CHANGED
|
@@ -55,10 +55,12 @@ export declare const PortfolioManagementApiAxiosParamCreator: (configuration?: C
|
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @summary Create a new model asset class
|
|
58
|
+
* @param {string} userId
|
|
59
|
+
* @param {string} userSecret
|
|
58
60
|
* @param {*} [options] Override http request option.
|
|
59
61
|
* @throws {RequiredError}
|
|
60
62
|
*/
|
|
61
|
-
createAssetClass: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
63
|
+
createAssetClass: (userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
64
|
/**
|
|
63
65
|
*
|
|
64
66
|
* @summary Creates a new model portfolio
|
|
@@ -112,10 +114,12 @@ export declare const PortfolioManagementApiAxiosParamCreator: (configuration?: C
|
|
|
112
114
|
*
|
|
113
115
|
* @summary Get details of a model asset class
|
|
114
116
|
* @param {string} modelAssetClassId The ID of the model asset class to get.
|
|
117
|
+
* @param {string} userId
|
|
118
|
+
* @param {string} userSecret
|
|
115
119
|
* @param {*} [options] Override http request option.
|
|
116
120
|
* @throws {RequiredError}
|
|
117
121
|
*/
|
|
118
|
-
detailAssetClass: (modelAssetClassId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
122
|
+
detailAssetClass: (modelAssetClassId: string, userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
119
123
|
/**
|
|
120
124
|
*
|
|
121
125
|
* @summary Return an individual trade
|
|
@@ -211,10 +215,12 @@ export declare const PortfolioManagementApiAxiosParamCreator: (configuration?: C
|
|
|
211
215
|
/**
|
|
212
216
|
*
|
|
213
217
|
* @summary List of model asset class
|
|
218
|
+
* @param {string} userId
|
|
219
|
+
* @param {string} userSecret
|
|
214
220
|
* @param {*} [options] Override http request option.
|
|
215
221
|
* @throws {RequiredError}
|
|
216
222
|
*/
|
|
217
|
-
listAssetClasses: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
223
|
+
listAssetClasses: (userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
218
224
|
/**
|
|
219
225
|
*
|
|
220
226
|
* @summary List of trades to make to rebalance portfolio group
|
|
@@ -280,11 +286,13 @@ export declare const PortfolioManagementApiAxiosParamCreator: (configuration?: C
|
|
|
280
286
|
*
|
|
281
287
|
* @summary Updates model asset class objects
|
|
282
288
|
* @param {string} modelAssetClassId The ID of the model asset class to update.
|
|
289
|
+
* @param {string} userId
|
|
290
|
+
* @param {string} userSecret
|
|
283
291
|
* @param {ModelAssetClassDetails} modelAssetClassDetails Use this endpoint change model asset class name and to add or remove a model asset class target. <br /><br /> * Only the model asset class name is required for the model asset class object. <br /> * Only the symbol id is required for the symbol object in the model asset class target object. <br /> * To remove all model asset class targets, set the model asset class target as an empty array
|
|
284
292
|
* @param {*} [options] Override http request option.
|
|
285
293
|
* @throws {RequiredError}
|
|
286
294
|
*/
|
|
287
|
-
updateAssetClass: (modelAssetClassId: string, modelAssetClassDetails: ModelAssetClassDetails, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
295
|
+
updateAssetClass: (modelAssetClassId: string, userId: string, userSecret: string, modelAssetClassDetails: ModelAssetClassDetails, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
288
296
|
/**
|
|
289
297
|
*
|
|
290
298
|
* @summary Updates portfolio group settings
|
|
@@ -328,10 +336,11 @@ export declare const PortfolioManagementApiFp: (configuration?: Configuration) =
|
|
|
328
336
|
/**
|
|
329
337
|
*
|
|
330
338
|
* @summary Create a new model asset class
|
|
339
|
+
* @param {PortfolioManagementApiCreateAssetClassRequest} requestParameters Request parameters.
|
|
331
340
|
* @param {*} [options] Override http request option.
|
|
332
341
|
* @throws {RequiredError}
|
|
333
342
|
*/
|
|
334
|
-
createAssetClass(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelAssetClassDetails>>;
|
|
343
|
+
createAssetClass(requestParameters: PortfolioManagementApiCreateAssetClassRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModelAssetClassDetails>>;
|
|
335
344
|
/**
|
|
336
345
|
*
|
|
337
346
|
* @summary Creates a new model portfolio
|
|
@@ -478,10 +487,11 @@ export declare const PortfolioManagementApiFp: (configuration?: Configuration) =
|
|
|
478
487
|
/**
|
|
479
488
|
*
|
|
480
489
|
* @summary List of model asset class
|
|
490
|
+
* @param {PortfolioManagementApiListAssetClassesRequest} requestParameters Request parameters.
|
|
481
491
|
* @param {*} [options] Override http request option.
|
|
482
492
|
* @throws {RequiredError}
|
|
483
493
|
*/
|
|
484
|
-
listAssetClasses(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ModelAssetClassDetails>>>;
|
|
494
|
+
listAssetClasses(requestParameters: PortfolioManagementApiListAssetClassesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ModelAssetClassDetails>>>;
|
|
485
495
|
/**
|
|
486
496
|
*
|
|
487
497
|
* @summary List of trades to make to rebalance portfolio group
|
|
@@ -586,10 +596,11 @@ export declare const PortfolioManagementApiFactory: (configuration?: Configurati
|
|
|
586
596
|
/**
|
|
587
597
|
*
|
|
588
598
|
* @summary Create a new model asset class
|
|
599
|
+
* @param {PortfolioManagementApiCreateAssetClassRequest} requestParameters Request parameters.
|
|
589
600
|
* @param {*} [options] Override http request option.
|
|
590
601
|
* @throws {RequiredError}
|
|
591
602
|
*/
|
|
592
|
-
createAssetClass(options?: AxiosRequestConfig): AxiosPromise<ModelAssetClassDetails>;
|
|
603
|
+
createAssetClass(requestParameters: PortfolioManagementApiCreateAssetClassRequest, options?: AxiosRequestConfig): AxiosPromise<ModelAssetClassDetails>;
|
|
593
604
|
/**
|
|
594
605
|
*
|
|
595
606
|
* @summary Creates a new model portfolio
|
|
@@ -736,10 +747,11 @@ export declare const PortfolioManagementApiFactory: (configuration?: Configurati
|
|
|
736
747
|
/**
|
|
737
748
|
*
|
|
738
749
|
* @summary List of model asset class
|
|
750
|
+
* @param {PortfolioManagementApiListAssetClassesRequest} requestParameters Request parameters.
|
|
739
751
|
* @param {*} [options] Override http request option.
|
|
740
752
|
* @throws {RequiredError}
|
|
741
753
|
*/
|
|
742
|
-
listAssetClasses(options?: AxiosRequestConfig): AxiosPromise<Array<ModelAssetClassDetails>>;
|
|
754
|
+
listAssetClasses(requestParameters: PortfolioManagementApiListAssetClassesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ModelAssetClassDetails>>;
|
|
743
755
|
/**
|
|
744
756
|
*
|
|
745
757
|
* @summary List of trades to make to rebalance portfolio group
|
|
@@ -854,6 +866,25 @@ export type PortfolioManagementApiCreateRequest = {
|
|
|
854
866
|
} & {
|
|
855
867
|
[key: string]: any;
|
|
856
868
|
};
|
|
869
|
+
/**
|
|
870
|
+
* Request parameters for createAssetClass operation in PortfolioManagementApi.
|
|
871
|
+
* @export
|
|
872
|
+
* @interface PortfolioManagementApiCreateAssetClassRequest
|
|
873
|
+
*/
|
|
874
|
+
export type PortfolioManagementApiCreateAssetClassRequest = {
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @type {string}
|
|
878
|
+
* @memberof PortfolioManagementApiCreateAssetClass
|
|
879
|
+
*/
|
|
880
|
+
readonly userId: string;
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* @type {string}
|
|
884
|
+
* @memberof PortfolioManagementApiCreateAssetClass
|
|
885
|
+
*/
|
|
886
|
+
readonly userSecret: string;
|
|
887
|
+
};
|
|
857
888
|
/**
|
|
858
889
|
* Request parameters for deleteAssetClass operation in PortfolioManagementApi.
|
|
859
890
|
* @export
|
|
@@ -943,6 +974,18 @@ export type PortfolioManagementApiDetailAssetClassRequest = {
|
|
|
943
974
|
* @memberof PortfolioManagementApiDetailAssetClass
|
|
944
975
|
*/
|
|
945
976
|
readonly modelAssetClassId: string;
|
|
977
|
+
/**
|
|
978
|
+
*
|
|
979
|
+
* @type {string}
|
|
980
|
+
* @memberof PortfolioManagementApiDetailAssetClass
|
|
981
|
+
*/
|
|
982
|
+
readonly userId: string;
|
|
983
|
+
/**
|
|
984
|
+
*
|
|
985
|
+
* @type {string}
|
|
986
|
+
* @memberof PortfolioManagementApiDetailAssetClass
|
|
987
|
+
*/
|
|
988
|
+
readonly userSecret: string;
|
|
946
989
|
};
|
|
947
990
|
/**
|
|
948
991
|
* Request parameters for getCalculatedTradeById operation in PortfolioManagementApi.
|
|
@@ -1111,6 +1154,25 @@ export type PortfolioManagementApiListRequest = {
|
|
|
1111
1154
|
*/
|
|
1112
1155
|
readonly userSecret: string;
|
|
1113
1156
|
};
|
|
1157
|
+
/**
|
|
1158
|
+
* Request parameters for listAssetClasses operation in PortfolioManagementApi.
|
|
1159
|
+
* @export
|
|
1160
|
+
* @interface PortfolioManagementApiListAssetClassesRequest
|
|
1161
|
+
*/
|
|
1162
|
+
export type PortfolioManagementApiListAssetClassesRequest = {
|
|
1163
|
+
/**
|
|
1164
|
+
*
|
|
1165
|
+
* @type {string}
|
|
1166
|
+
* @memberof PortfolioManagementApiListAssetClasses
|
|
1167
|
+
*/
|
|
1168
|
+
readonly userId: string;
|
|
1169
|
+
/**
|
|
1170
|
+
*
|
|
1171
|
+
* @type {string}
|
|
1172
|
+
* @memberof PortfolioManagementApiListAssetClasses
|
|
1173
|
+
*/
|
|
1174
|
+
readonly userSecret: string;
|
|
1175
|
+
};
|
|
1114
1176
|
/**
|
|
1115
1177
|
* Request parameters for listCalculatedTrades operation in PortfolioManagementApi.
|
|
1116
1178
|
* @export
|
|
@@ -1209,6 +1271,18 @@ export type PortfolioManagementApiUpdateAssetClassRequest = {
|
|
|
1209
1271
|
* @memberof PortfolioManagementApiUpdateAssetClass
|
|
1210
1272
|
*/
|
|
1211
1273
|
readonly modelAssetClassId: string;
|
|
1274
|
+
/**
|
|
1275
|
+
*
|
|
1276
|
+
* @type {string}
|
|
1277
|
+
* @memberof PortfolioManagementApiUpdateAssetClass
|
|
1278
|
+
*/
|
|
1279
|
+
readonly userId: string;
|
|
1280
|
+
/**
|
|
1281
|
+
*
|
|
1282
|
+
* @type {string}
|
|
1283
|
+
* @memberof PortfolioManagementApiUpdateAssetClass
|
|
1284
|
+
*/
|
|
1285
|
+
readonly userSecret: string;
|
|
1212
1286
|
} & ModelAssetClassDetails;
|
|
1213
1287
|
/**
|
|
1214
1288
|
* Request parameters for updatePortfolioSettings operation in PortfolioManagementApi.
|
|
@@ -1270,11 +1344,12 @@ export declare class PortfolioManagementApi extends PortfolioManagementApiCustom
|
|
|
1270
1344
|
/**
|
|
1271
1345
|
*
|
|
1272
1346
|
* @summary Create a new model asset class
|
|
1347
|
+
* @param {PortfolioManagementApiCreateAssetClassRequest} requestParameters Request parameters.
|
|
1273
1348
|
* @param {*} [options] Override http request option.
|
|
1274
1349
|
* @throws {RequiredError}
|
|
1275
1350
|
* @memberof PortfolioManagementApi
|
|
1276
1351
|
*/
|
|
1277
|
-
createAssetClass(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelAssetClassDetails, any>>;
|
|
1352
|
+
createAssetClass(requestParameters: PortfolioManagementApiCreateAssetClassRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelAssetClassDetails, any>>;
|
|
1278
1353
|
/**
|
|
1279
1354
|
*
|
|
1280
1355
|
* @summary Creates a new model portfolio
|
|
@@ -1439,11 +1514,12 @@ export declare class PortfolioManagementApi extends PortfolioManagementApiCustom
|
|
|
1439
1514
|
/**
|
|
1440
1515
|
*
|
|
1441
1516
|
* @summary List of model asset class
|
|
1517
|
+
* @param {PortfolioManagementApiListAssetClassesRequest} requestParameters Request parameters.
|
|
1442
1518
|
* @param {*} [options] Override http request option.
|
|
1443
1519
|
* @throws {RequiredError}
|
|
1444
1520
|
* @memberof PortfolioManagementApi
|
|
1445
1521
|
*/
|
|
1446
|
-
listAssetClasses(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelAssetClassDetails[], any>>;
|
|
1522
|
+
listAssetClasses(requestParameters: PortfolioManagementApiListAssetClassesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ModelAssetClassDetails[], any>>;
|
|
1447
1523
|
/**
|
|
1448
1524
|
*
|
|
1449
1525
|
* @summary List of trades to make to rebalance portfolio group
|
|
@@ -234,16 +234,22 @@ var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
|
234
234
|
/**
|
|
235
235
|
*
|
|
236
236
|
* @summary Create a new model asset class
|
|
237
|
+
* @param {string} userId
|
|
238
|
+
* @param {string} userSecret
|
|
237
239
|
* @param {*} [options] Override http request option.
|
|
238
240
|
* @throws {RequiredError}
|
|
239
241
|
*/
|
|
240
|
-
createAssetClass: function (options) {
|
|
242
|
+
createAssetClass: function (userId, userSecret, options) {
|
|
241
243
|
if (options === void 0) { options = {}; }
|
|
242
244
|
return __awaiter(_this, void 0, void 0, function () {
|
|
243
245
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
244
246
|
return __generator(this, function (_a) {
|
|
245
247
|
switch (_a.label) {
|
|
246
248
|
case 0:
|
|
249
|
+
// verify required parameter 'userId' is not null or undefined
|
|
250
|
+
(0, common_1.assertParamExists)('createAssetClass', 'userId', userId);
|
|
251
|
+
// verify required parameter 'userSecret' is not null or undefined
|
|
252
|
+
(0, common_1.assertParamExists)('createAssetClass', 'userSecret', userSecret);
|
|
247
253
|
localVarPath = "/modelAssetClass";
|
|
248
254
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
249
255
|
if (configuration) {
|
|
@@ -271,6 +277,12 @@ var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
|
271
277
|
case 3:
|
|
272
278
|
// authentication PartnerTimestamp required
|
|
273
279
|
_a.sent();
|
|
280
|
+
if (userId !== undefined) {
|
|
281
|
+
localVarQueryParameter['userId'] = userId;
|
|
282
|
+
}
|
|
283
|
+
if (userSecret !== undefined) {
|
|
284
|
+
localVarQueryParameter['userSecret'] = userSecret;
|
|
285
|
+
}
|
|
274
286
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
275
287
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
276
288
|
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
@@ -662,10 +674,12 @@ var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
|
662
674
|
*
|
|
663
675
|
* @summary Get details of a model asset class
|
|
664
676
|
* @param {string} modelAssetClassId The ID of the model asset class to get.
|
|
677
|
+
* @param {string} userId
|
|
678
|
+
* @param {string} userSecret
|
|
665
679
|
* @param {*} [options] Override http request option.
|
|
666
680
|
* @throws {RequiredError}
|
|
667
681
|
*/
|
|
668
|
-
detailAssetClass: function (modelAssetClassId, options) {
|
|
682
|
+
detailAssetClass: function (modelAssetClassId, userId, userSecret, options) {
|
|
669
683
|
if (options === void 0) { options = {}; }
|
|
670
684
|
return __awaiter(_this, void 0, void 0, function () {
|
|
671
685
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -674,6 +688,10 @@ var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
|
674
688
|
case 0:
|
|
675
689
|
// verify required parameter 'modelAssetClassId' is not null or undefined
|
|
676
690
|
(0, common_1.assertParamExists)('detailAssetClass', 'modelAssetClassId', modelAssetClassId);
|
|
691
|
+
// verify required parameter 'userId' is not null or undefined
|
|
692
|
+
(0, common_1.assertParamExists)('detailAssetClass', 'userId', userId);
|
|
693
|
+
// verify required parameter 'userSecret' is not null or undefined
|
|
694
|
+
(0, common_1.assertParamExists)('detailAssetClass', 'userSecret', userSecret);
|
|
677
695
|
localVarPath = "/modelAssetClass/{modelAssetClassId}"
|
|
678
696
|
.replace("{".concat("modelAssetClassId", "}"), encodeURIComponent(String(modelAssetClassId)));
|
|
679
697
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -702,6 +720,12 @@ var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
|
702
720
|
case 3:
|
|
703
721
|
// authentication PartnerTimestamp required
|
|
704
722
|
_a.sent();
|
|
723
|
+
if (userId !== undefined) {
|
|
724
|
+
localVarQueryParameter['userId'] = userId;
|
|
725
|
+
}
|
|
726
|
+
if (userSecret !== undefined) {
|
|
727
|
+
localVarQueryParameter['userSecret'] = userSecret;
|
|
728
|
+
}
|
|
705
729
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
706
730
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
707
731
|
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
@@ -1413,16 +1437,22 @@ var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
|
1413
1437
|
/**
|
|
1414
1438
|
*
|
|
1415
1439
|
* @summary List of model asset class
|
|
1440
|
+
* @param {string} userId
|
|
1441
|
+
* @param {string} userSecret
|
|
1416
1442
|
* @param {*} [options] Override http request option.
|
|
1417
1443
|
* @throws {RequiredError}
|
|
1418
1444
|
*/
|
|
1419
|
-
listAssetClasses: function (options) {
|
|
1445
|
+
listAssetClasses: function (userId, userSecret, options) {
|
|
1420
1446
|
if (options === void 0) { options = {}; }
|
|
1421
1447
|
return __awaiter(_this, void 0, void 0, function () {
|
|
1422
1448
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1423
1449
|
return __generator(this, function (_a) {
|
|
1424
1450
|
switch (_a.label) {
|
|
1425
1451
|
case 0:
|
|
1452
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1453
|
+
(0, common_1.assertParamExists)('listAssetClasses', 'userId', userId);
|
|
1454
|
+
// verify required parameter 'userSecret' is not null or undefined
|
|
1455
|
+
(0, common_1.assertParamExists)('listAssetClasses', 'userSecret', userSecret);
|
|
1426
1456
|
localVarPath = "/modelAssetClass";
|
|
1427
1457
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1428
1458
|
if (configuration) {
|
|
@@ -1450,6 +1480,12 @@ var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
|
1450
1480
|
case 3:
|
|
1451
1481
|
// authentication PartnerTimestamp required
|
|
1452
1482
|
_a.sent();
|
|
1483
|
+
if (userId !== undefined) {
|
|
1484
|
+
localVarQueryParameter['userId'] = userId;
|
|
1485
|
+
}
|
|
1486
|
+
if (userSecret !== undefined) {
|
|
1487
|
+
localVarQueryParameter['userSecret'] = userSecret;
|
|
1488
|
+
}
|
|
1453
1489
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1454
1490
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1455
1491
|
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
@@ -1914,11 +1950,13 @@ var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
|
1914
1950
|
*
|
|
1915
1951
|
* @summary Updates model asset class objects
|
|
1916
1952
|
* @param {string} modelAssetClassId The ID of the model asset class to update.
|
|
1953
|
+
* @param {string} userId
|
|
1954
|
+
* @param {string} userSecret
|
|
1917
1955
|
* @param {ModelAssetClassDetails} modelAssetClassDetails Use this endpoint change model asset class name and to add or remove a model asset class target. <br /><br /> * Only the model asset class name is required for the model asset class object. <br /> * Only the symbol id is required for the symbol object in the model asset class target object. <br /> * To remove all model asset class targets, set the model asset class target as an empty array
|
|
1918
1956
|
* @param {*} [options] Override http request option.
|
|
1919
1957
|
* @throws {RequiredError}
|
|
1920
1958
|
*/
|
|
1921
|
-
updateAssetClass: function (modelAssetClassId, modelAssetClassDetails, options) {
|
|
1959
|
+
updateAssetClass: function (modelAssetClassId, userId, userSecret, modelAssetClassDetails, options) {
|
|
1922
1960
|
if (options === void 0) { options = {}; }
|
|
1923
1961
|
return __awaiter(_this, void 0, void 0, function () {
|
|
1924
1962
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -1927,6 +1965,10 @@ var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
|
1927
1965
|
case 0:
|
|
1928
1966
|
// verify required parameter 'modelAssetClassId' is not null or undefined
|
|
1929
1967
|
(0, common_1.assertParamExists)('updateAssetClass', 'modelAssetClassId', modelAssetClassId);
|
|
1968
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1969
|
+
(0, common_1.assertParamExists)('updateAssetClass', 'userId', userId);
|
|
1970
|
+
// verify required parameter 'userSecret' is not null or undefined
|
|
1971
|
+
(0, common_1.assertParamExists)('updateAssetClass', 'userSecret', userSecret);
|
|
1930
1972
|
// verify required parameter 'modelAssetClassDetails' is not null or undefined
|
|
1931
1973
|
(0, common_1.assertParamExists)('updateAssetClass', 'modelAssetClassDetails', modelAssetClassDetails);
|
|
1932
1974
|
localVarPath = "/modelAssetClass/{modelAssetClassId}"
|
|
@@ -1957,6 +1999,12 @@ var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
|
1957
1999
|
case 3:
|
|
1958
2000
|
// authentication PartnerTimestamp required
|
|
1959
2001
|
_a.sent();
|
|
2002
|
+
if (userId !== undefined) {
|
|
2003
|
+
localVarQueryParameter['userId'] = userId;
|
|
2004
|
+
}
|
|
2005
|
+
if (userSecret !== undefined) {
|
|
2006
|
+
localVarQueryParameter['userSecret'] = userSecret;
|
|
2007
|
+
}
|
|
1960
2008
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1961
2009
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1962
2010
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2162,15 +2210,16 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2162
2210
|
/**
|
|
2163
2211
|
*
|
|
2164
2212
|
* @summary Create a new model asset class
|
|
2213
|
+
* @param {PortfolioManagementApiCreateAssetClassRequest} requestParameters Request parameters.
|
|
2165
2214
|
* @param {*} [options] Override http request option.
|
|
2166
2215
|
* @throws {RequiredError}
|
|
2167
2216
|
*/
|
|
2168
|
-
createAssetClass: function (options) {
|
|
2217
|
+
createAssetClass: function (requestParameters, options) {
|
|
2169
2218
|
return __awaiter(this, void 0, void 0, function () {
|
|
2170
2219
|
var localVarAxiosArgs;
|
|
2171
2220
|
return __generator(this, function (_a) {
|
|
2172
2221
|
switch (_a.label) {
|
|
2173
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAssetClass(options)];
|
|
2222
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAssetClass(requestParameters.userId, requestParameters.userSecret, options)];
|
|
2174
2223
|
case 1:
|
|
2175
2224
|
localVarAxiosArgs = _a.sent();
|
|
2176
2225
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2309,7 +2358,7 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2309
2358
|
var localVarAxiosArgs;
|
|
2310
2359
|
return __generator(this, function (_a) {
|
|
2311
2360
|
switch (_a.label) {
|
|
2312
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.detailAssetClass(requestParameters.modelAssetClassId, options)];
|
|
2361
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.detailAssetClass(requestParameters.modelAssetClassId, requestParameters.userId, requestParameters.userSecret, options)];
|
|
2313
2362
|
case 1:
|
|
2314
2363
|
localVarAxiosArgs = _a.sent();
|
|
2315
2364
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2540,15 +2589,16 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2540
2589
|
/**
|
|
2541
2590
|
*
|
|
2542
2591
|
* @summary List of model asset class
|
|
2592
|
+
* @param {PortfolioManagementApiListAssetClassesRequest} requestParameters Request parameters.
|
|
2543
2593
|
* @param {*} [options] Override http request option.
|
|
2544
2594
|
* @throws {RequiredError}
|
|
2545
2595
|
*/
|
|
2546
|
-
listAssetClasses: function (options) {
|
|
2596
|
+
listAssetClasses: function (requestParameters, options) {
|
|
2547
2597
|
return __awaiter(this, void 0, void 0, function () {
|
|
2548
2598
|
var localVarAxiosArgs;
|
|
2549
2599
|
return __generator(this, function (_a) {
|
|
2550
2600
|
switch (_a.label) {
|
|
2551
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAssetClasses(options)];
|
|
2601
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAssetClasses(requestParameters.userId, requestParameters.userSecret, options)];
|
|
2552
2602
|
case 1:
|
|
2553
2603
|
localVarAxiosArgs = _a.sent();
|
|
2554
2604
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2707,7 +2757,7 @@ var PortfolioManagementApiFp = function (configuration) {
|
|
|
2707
2757
|
var localVarAxiosArgs;
|
|
2708
2758
|
return __generator(this, function (_a) {
|
|
2709
2759
|
switch (_a.label) {
|
|
2710
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAssetClass(requestParameters.modelAssetClassId, requestParameters, options)];
|
|
2760
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAssetClass(requestParameters.modelAssetClassId, requestParameters.userId, requestParameters.userSecret, requestParameters, options)];
|
|
2711
2761
|
case 1:
|
|
2712
2762
|
localVarAxiosArgs = _a.sent();
|
|
2713
2763
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2788,11 +2838,12 @@ var PortfolioManagementApiFactory = function (configuration, basePath, axios) {
|
|
|
2788
2838
|
/**
|
|
2789
2839
|
*
|
|
2790
2840
|
* @summary Create a new model asset class
|
|
2841
|
+
* @param {PortfolioManagementApiCreateAssetClassRequest} requestParameters Request parameters.
|
|
2791
2842
|
* @param {*} [options] Override http request option.
|
|
2792
2843
|
* @throws {RequiredError}
|
|
2793
2844
|
*/
|
|
2794
|
-
createAssetClass: function (options) {
|
|
2795
|
-
return localVarFp.createAssetClass(options).then(function (request) { return request(axios, basePath); });
|
|
2845
|
+
createAssetClass: function (requestParameters, options) {
|
|
2846
|
+
return localVarFp.createAssetClass(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2796
2847
|
},
|
|
2797
2848
|
/**
|
|
2798
2849
|
*
|
|
@@ -2976,11 +3027,12 @@ var PortfolioManagementApiFactory = function (configuration, basePath, axios) {
|
|
|
2976
3027
|
/**
|
|
2977
3028
|
*
|
|
2978
3029
|
* @summary List of model asset class
|
|
3030
|
+
* @param {PortfolioManagementApiListAssetClassesRequest} requestParameters Request parameters.
|
|
2979
3031
|
* @param {*} [options] Override http request option.
|
|
2980
3032
|
* @throws {RequiredError}
|
|
2981
3033
|
*/
|
|
2982
|
-
listAssetClasses: function (options) {
|
|
2983
|
-
return localVarFp.listAssetClasses(options).then(function (request) { return request(axios, basePath); });
|
|
3034
|
+
listAssetClasses: function (requestParameters, options) {
|
|
3035
|
+
return localVarFp.listAssetClasses(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2984
3036
|
},
|
|
2985
3037
|
/**
|
|
2986
3038
|
*
|
|
@@ -3122,13 +3174,14 @@ var PortfolioManagementApi = /** @class */ (function (_super) {
|
|
|
3122
3174
|
/**
|
|
3123
3175
|
*
|
|
3124
3176
|
* @summary Create a new model asset class
|
|
3177
|
+
* @param {PortfolioManagementApiCreateAssetClassRequest} requestParameters Request parameters.
|
|
3125
3178
|
* @param {*} [options] Override http request option.
|
|
3126
3179
|
* @throws {RequiredError}
|
|
3127
3180
|
* @memberof PortfolioManagementApi
|
|
3128
3181
|
*/
|
|
3129
|
-
PortfolioManagementApi.prototype.createAssetClass = function (options) {
|
|
3182
|
+
PortfolioManagementApi.prototype.createAssetClass = function (requestParameters, options) {
|
|
3130
3183
|
var _this = this;
|
|
3131
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).createAssetClass(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3184
|
+
return (0, exports.PortfolioManagementApiFp)(this.configuration).createAssetClass(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3132
3185
|
};
|
|
3133
3186
|
/**
|
|
3134
3187
|
*
|
|
@@ -3348,13 +3401,14 @@ var PortfolioManagementApi = /** @class */ (function (_super) {
|
|
|
3348
3401
|
/**
|
|
3349
3402
|
*
|
|
3350
3403
|
* @summary List of model asset class
|
|
3404
|
+
* @param {PortfolioManagementApiListAssetClassesRequest} requestParameters Request parameters.
|
|
3351
3405
|
* @param {*} [options] Override http request option.
|
|
3352
3406
|
* @throws {RequiredError}
|
|
3353
3407
|
* @memberof PortfolioManagementApi
|
|
3354
3408
|
*/
|
|
3355
|
-
PortfolioManagementApi.prototype.listAssetClasses = function (options) {
|
|
3409
|
+
PortfolioManagementApi.prototype.listAssetClasses = function (requestParameters, options) {
|
|
3356
3410
|
var _this = this;
|
|
3357
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).listAssetClasses(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3411
|
+
return (0, exports.PortfolioManagementApiFp)(this.configuration).listAssetClasses(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3358
3412
|
};
|
|
3359
3413
|
/**
|
|
3360
3414
|
*
|
|
@@ -15,7 +15,7 @@ import { RequestArgs } from '../base';
|
|
|
15
15
|
import { AccountOrderRecord } from '../models';
|
|
16
16
|
import { ManualTradeAndImpact } from '../models';
|
|
17
17
|
import { ManualTradeForm } from '../models';
|
|
18
|
-
import {
|
|
18
|
+
import { SymbolsQuotesInner } from '../models';
|
|
19
19
|
import { Trade } from '../models';
|
|
20
20
|
import { TradeExecutionStatus } from '../models';
|
|
21
21
|
import { TradeImpact } from '../models';
|
|
@@ -174,7 +174,7 @@ export declare const TradingApiFp: (configuration?: Configuration) => {
|
|
|
174
174
|
* @param {*} [options] Override http request option.
|
|
175
175
|
* @throws {RequiredError}
|
|
176
176
|
*/
|
|
177
|
-
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
177
|
+
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SymbolsQuotesInner>>>;
|
|
178
178
|
/**
|
|
179
179
|
*
|
|
180
180
|
* @summary Modify units of a trade before it is placed
|
|
@@ -260,7 +260,7 @@ export declare const TradingApiFactory: (configuration?: Configuration, basePath
|
|
|
260
260
|
* @param {*} [options] Override http request option.
|
|
261
261
|
* @throws {RequiredError}
|
|
262
262
|
*/
|
|
263
|
-
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): AxiosPromise<
|
|
263
|
+
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<SymbolsQuotesInner>>;
|
|
264
264
|
/**
|
|
265
265
|
*
|
|
266
266
|
* @summary Modify units of a trade before it is placed
|
|
@@ -585,7 +585,7 @@ export declare class TradingApi extends TradingApiCustom {
|
|
|
585
585
|
* @throws {RequiredError}
|
|
586
586
|
* @memberof TradingApi
|
|
587
587
|
*/
|
|
588
|
-
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
588
|
+
getUserAccountQuotes(requestParameters: TradingApiGetUserAccountQuotesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SymbolsQuotesInner[], any>>;
|
|
589
589
|
/**
|
|
590
590
|
*
|
|
591
591
|
* @summary Modify units of a trade before it is placed
|
package/dist/configuration.js
CHANGED
|
@@ -34,7 +34,7 @@ var Configuration = /** @class */ (function () {
|
|
|
34
34
|
this.accessToken = param.accessToken;
|
|
35
35
|
this.basePath = param.basePath;
|
|
36
36
|
this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
|
|
37
|
-
this.userAgent = param.userAgent === undefined ? "Konfig/8.
|
|
37
|
+
this.userAgent = param.userAgent === undefined ? "Konfig/8.16.0/typescript" : param.userAgent;
|
|
38
38
|
this.formDataCtor = param.formDataCtor;
|
|
39
39
|
}
|
|
40
40
|
/**
|
package/dist/jest.config.js
CHANGED
|
@@ -87,19 +87,19 @@ export interface AccountOrderRecord {
|
|
|
87
87
|
* @type {number}
|
|
88
88
|
* @memberof AccountOrderRecord
|
|
89
89
|
*/
|
|
90
|
-
'execution_price'?: number;
|
|
90
|
+
'execution_price'?: number | null;
|
|
91
91
|
/**
|
|
92
92
|
* Trade Price if limit or stop limit order
|
|
93
93
|
* @type {number}
|
|
94
94
|
* @memberof AccountOrderRecord
|
|
95
95
|
*/
|
|
96
|
-
'limit_price'?: number;
|
|
96
|
+
'limit_price'?: number | null;
|
|
97
97
|
/**
|
|
98
98
|
* Trade Price if limit or stop limit order
|
|
99
99
|
* @type {number}
|
|
100
100
|
* @memberof AccountOrderRecord
|
|
101
101
|
*/
|
|
102
|
-
'stop_price'?: number;
|
|
102
|
+
'stop_price'?: number | null;
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
105
|
* @type {OrderType}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ export * from './strategy-quotes-greek';
|
|
|
89
89
|
export * from './sub-period-return-rate';
|
|
90
90
|
export * from './symbol';
|
|
91
91
|
export * from './symbol-query';
|
|
92
|
-
export * from './symbols-quotes';
|
|
92
|
+
export * from './symbols-quotes-inner';
|
|
93
93
|
export * from './target-asset';
|
|
94
94
|
export * from './time-in-force';
|
|
95
95
|
export * from './trade';
|
package/dist/models/index.js
CHANGED
|
@@ -105,7 +105,7 @@ __exportStar(require("./strategy-quotes-greek"), exports);
|
|
|
105
105
|
__exportStar(require("./sub-period-return-rate"), exports);
|
|
106
106
|
__exportStar(require("./symbol"), exports);
|
|
107
107
|
__exportStar(require("./symbol-query"), exports);
|
|
108
|
-
__exportStar(require("./symbols-quotes"), exports);
|
|
108
|
+
__exportStar(require("./symbols-quotes-inner"), exports);
|
|
109
109
|
__exportStar(require("./target-asset"), exports);
|
|
110
110
|
__exportStar(require("./time-in-force"), exports);
|
|
111
111
|
__exportStar(require("./trade"), exports);
|
|
@@ -32,7 +32,7 @@ export interface OptionsPlaceOptionStrategyRequest {
|
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof OptionsPlaceOptionStrategyRequest
|
|
34
34
|
*/
|
|
35
|
-
'price': number;
|
|
35
|
+
'price': number | null;
|
|
36
36
|
}
|
|
37
37
|
type OptionsPlaceOptionStrategyRequestOrderTypeEnum = 'Limit' | 'Market' | 'NetDebit' | 'NetCredit';
|
|
38
38
|
type OptionsPlaceOptionStrategyRequestTimeInForceEnum = 'DAY' | 'GTC';
|
|
@@ -64,13 +64,13 @@ export interface StrategyOrderRecord {
|
|
|
64
64
|
* @type {number}
|
|
65
65
|
* @memberof StrategyOrderRecord
|
|
66
66
|
*/
|
|
67
|
-
'limit_price'?: number;
|
|
67
|
+
'limit_price'?: number | null;
|
|
68
68
|
/**
|
|
69
69
|
* Trade Price if limit or stop limit order
|
|
70
70
|
* @type {number}
|
|
71
71
|
* @memberof StrategyOrderRecord
|
|
72
72
|
*/
|
|
73
|
-
'execution_price'?: number;
|
|
73
|
+
'execution_price'?: number | null;
|
|
74
74
|
/**
|
|
75
75
|
* Time
|
|
76
76
|
* @type {string}
|
|
@@ -29,19 +29,19 @@ export interface StrategyQuotes {
|
|
|
29
29
|
* @type {number}
|
|
30
30
|
* @memberof StrategyQuotes
|
|
31
31
|
*/
|
|
32
|
-
'open_price'?: number;
|
|
32
|
+
'open_price'?: number | null;
|
|
33
33
|
/**
|
|
34
34
|
* Trade Price if limit or stop limit order
|
|
35
35
|
* @type {number}
|
|
36
36
|
* @memberof StrategyQuotes
|
|
37
37
|
*/
|
|
38
|
-
'bid_price'?: number;
|
|
38
|
+
'bid_price'?: number | null;
|
|
39
39
|
/**
|
|
40
40
|
* Trade Price if limit or stop limit order
|
|
41
41
|
* @type {number}
|
|
42
42
|
* @memberof StrategyQuotes
|
|
43
43
|
*/
|
|
44
|
-
'ask_price'?: number;
|
|
44
|
+
'ask_price'?: number | null;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
47
|
* @type {number}
|
|
@@ -11,46 +11,45 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { UniversalSymbol } from './universal-symbol';
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
*
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface SymbolsQuotesInner
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
19
|
-
[key: string]: any;
|
|
18
|
+
export interface SymbolsQuotesInner {
|
|
20
19
|
/**
|
|
21
20
|
*
|
|
22
21
|
* @type {UniversalSymbol}
|
|
23
|
-
* @memberof
|
|
22
|
+
* @memberof SymbolsQuotesInner
|
|
24
23
|
*/
|
|
25
24
|
'symbol'?: UniversalSymbol;
|
|
26
25
|
/**
|
|
27
26
|
*
|
|
28
27
|
* @type {number}
|
|
29
|
-
* @memberof
|
|
28
|
+
* @memberof SymbolsQuotesInner
|
|
30
29
|
*/
|
|
31
30
|
'bid_price'?: number;
|
|
32
31
|
/**
|
|
33
32
|
*
|
|
34
33
|
* @type {number}
|
|
35
|
-
* @memberof
|
|
34
|
+
* @memberof SymbolsQuotesInner
|
|
36
35
|
*/
|
|
37
36
|
'ask_price'?: number;
|
|
38
37
|
/**
|
|
39
38
|
*
|
|
40
39
|
* @type {number}
|
|
41
|
-
* @memberof
|
|
40
|
+
* @memberof SymbolsQuotesInner
|
|
42
41
|
*/
|
|
43
42
|
'last_trade_price'?: number;
|
|
44
43
|
/**
|
|
45
44
|
*
|
|
46
45
|
* @type {number}
|
|
47
|
-
* @memberof
|
|
46
|
+
* @memberof SymbolsQuotesInner
|
|
48
47
|
*/
|
|
49
48
|
'bid_size'?: number;
|
|
50
49
|
/**
|
|
51
50
|
*
|
|
52
51
|
* @type {number}
|
|
53
|
-
* @memberof
|
|
52
|
+
* @memberof SymbolsQuotesInner
|
|
54
53
|
*/
|
|
55
54
|
'ask_size'?: number;
|
|
56
55
|
}
|
package/package.json
CHANGED
|
File without changes
|