snaptrade-typescript-sdk 8.16.0 → 8.18.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 +147 -183
- package/dist/api/account-information-api-custom.d.ts +3 -3
- package/dist/api/account-information-api-custom.js +27 -27
- package/dist/api/account-information-api.d.ts +526 -527
- package/dist/api/account-information-api.js +1049 -1050
- package/dist/api/api-status-api-custom.d.ts +3 -3
- package/dist/api/api-status-api-custom.js +27 -27
- package/dist/api/api-status-api.d.ts +70 -71
- package/dist/api/api-status-api.js +203 -204
- package/dist/api/authentication-api-custom.d.ts +3 -3
- package/dist/api/authentication-api-custom.js +27 -27
- package/dist/api/authentication-api.d.ts +267 -268
- package/dist/api/authentication-api.js +661 -662
- package/dist/api/connections-api-custom.d.ts +3 -3
- package/dist/api/connections-api-custom.js +27 -27
- package/dist/api/connections-api.d.ts +275 -276
- package/dist/api/connections-api.js +583 -584
- package/dist/api/error-logs-api-custom.d.ts +3 -3
- package/dist/api/error-logs-api-custom.js +27 -27
- package/dist/api/error-logs-api.d.ts +94 -95
- package/dist/api/error-logs-api.js +240 -241
- package/dist/api/options-api-custom.d.ts +3 -3
- package/dist/api/options-api-custom.js +27 -27
- package/dist/api/options-api.d.ts +369 -370
- package/dist/api/options-api.js +730 -731
- package/dist/api/reference-data-api-custom.d.ts +3 -3
- package/dist/api/reference-data-api-custom.js +27 -27
- package/dist/api/reference-data-api.d.ts +468 -469
- package/dist/api/reference-data-api.js +1246 -1247
- package/dist/api/trading-api-custom.d.ts +3 -3
- package/dist/api/trading-api-custom.js +27 -27
- package/dist/api/trading-api.d.ts +403 -634
- package/dist/api/trading-api.js +841 -1282
- package/dist/api/transactions-and-reporting-api-custom.d.ts +3 -3
- package/dist/api/transactions-and-reporting-api-custom.js +27 -27
- package/dist/api/transactions-and-reporting-api.d.ts +218 -219
- package/dist/api/transactions-and-reporting-api.js +403 -404
- package/dist/api.d.ts +19 -21
- package/dist/api.js +37 -39
- package/dist/base.d.ts +54 -55
- package/dist/base.js +81 -82
- package/dist/client-custom.d.ts +4 -4
- package/dist/client-custom.js +9 -9
- package/dist/client.d.ts +25 -27
- package/dist/client.js +50 -52
- package/dist/common.d.ts +67 -67
- package/dist/common.js +236 -233
- package/dist/configuration.d.ts +99 -100
- package/dist/configuration.js +55 -56
- package/dist/index.d.ts +14 -15
- package/dist/index.js +32 -33
- package/dist/jest.config.d.ts +3 -3
- package/dist/jest.config.js +13 -13
- package/dist/models/account-holdings-account.d.ts +53 -54
- package/dist/models/account-holdings-account.js +14 -15
- package/dist/models/account-holdings.d.ts +46 -47
- package/dist/models/account-holdings.js +14 -15
- package/dist/models/account-order-record-status.d.ts +16 -17
- package/dist/models/account-order-record-status.js +14 -15
- package/dist/models/account-order-record.d.ts +132 -133
- package/dist/models/account-order-record.js +14 -15
- package/dist/models/account-simple.d.ts +43 -44
- package/dist/models/account-simple.js +14 -15
- package/dist/models/account-sync-status.d.ts +24 -25
- package/dist/models/account-sync-status.js +14 -15
- package/dist/models/account.d.ts +82 -83
- package/dist/models/account.js +14 -15
- package/dist/models/action.d.ts +16 -17
- package/dist/models/action.js +14 -15
- package/dist/models/authentication-login-snap-trade-user200-response.d.ts +17 -18
- package/dist/models/authentication-login-snap-trade-user200-response.js +14 -15
- package/dist/models/balance.d.ts +31 -32
- package/dist/models/balance.js +14 -15
- package/dist/models/brokerage-authorization-type-read-only-brokerage.d.ts +36 -37
- package/dist/models/brokerage-authorization-type-read-only-brokerage.js +14 -15
- package/dist/models/brokerage-authorization-type-read-only.d.ts +46 -47
- package/dist/models/brokerage-authorization-type-read-only.js +14 -15
- package/dist/models/brokerage-authorization-type.d.ts +26 -27
- package/dist/models/brokerage-authorization-type.js +14 -15
- package/dist/models/brokerage-authorization.d.ts +75 -76
- package/dist/models/brokerage-authorization.js +14 -15
- package/dist/models/brokerage-symbol.d.ts +50 -51
- package/dist/models/brokerage-symbol.js +14 -15
- package/dist/models/brokerage-type.d.ts +30 -31
- package/dist/models/brokerage-type.js +14 -15
- package/dist/models/brokerage.d.ts +127 -128
- package/dist/models/brokerage.js +14 -15
- package/dist/models/calculated-trade.d.ts +31 -32
- package/dist/models/calculated-trade.js +14 -15
- package/dist/models/cash-restriction.d.ts +50 -51
- package/dist/models/cash-restriction.js +14 -15
- package/dist/models/connections-session-events200-response-inner.d.ts +16 -17
- package/dist/models/connections-session-events200-response-inner.js +14 -15
- package/dist/models/currency.d.ts +36 -37
- package/dist/models/currency.js +14 -15
- package/dist/models/delete-user-response.d.ts +30 -31
- package/dist/models/delete-user-response.js +14 -15
- package/dist/models/dividend-at-date.d.ts +36 -37
- package/dist/models/dividend-at-date.js +14 -15
- package/dist/models/encrypted-response-encrypted-message-data.d.ts +36 -37
- package/dist/models/encrypted-response-encrypted-message-data.js +14 -15
- package/dist/models/encrypted-response.d.ts +30 -31
- package/dist/models/encrypted-response.js +14 -15
- package/dist/models/exchange-rate-pairs.d.ts +37 -38
- package/dist/models/exchange-rate-pairs.js +14 -15
- package/dist/models/exchange.d.ts +66 -67
- package/dist/models/exchange.js +14 -15
- package/dist/models/excluded-asset.d.ts +25 -26
- package/dist/models/excluded-asset.js +14 -15
- package/dist/models/index.d.ts +108 -108
- package/dist/models/index.js +124 -124
- package/dist/models/jwt.d.ts +24 -25
- package/dist/models/jwt.js +14 -15
- package/dist/models/login-redirect-uri.d.ts +29 -30
- package/dist/models/login-redirect-uri.js +14 -15
- package/dist/models/manual-trade-and-impact.d.ts +38 -39
- package/dist/models/manual-trade-and-impact.js +14 -15
- package/dist/models/manual-trade-balance.d.ts +38 -39
- package/dist/models/manual-trade-balance.js +14 -15
- package/dist/models/manual-trade-form.d.ts +68 -69
- package/dist/models/manual-trade-form.js +14 -15
- package/dist/models/manual-trade-symbol.d.ts +55 -56
- package/dist/models/manual-trade-symbol.js +14 -15
- package/dist/models/manual-trade.d.ts +70 -71
- package/dist/models/manual-trade.js +14 -15
- package/dist/models/model-asset-class-details.d.ts +32 -32
- package/dist/models/model-asset-class-details.js +14 -15
- package/dist/models/model-asset-class-target.d.ts +25 -26
- package/dist/models/model-asset-class-target.js +14 -15
- package/dist/models/model-asset-class.d.ts +30 -31
- package/dist/models/model-asset-class.js +14 -15
- package/dist/models/model-portfolio-asset-class.d.ts +31 -32
- package/dist/models/model-portfolio-asset-class.js +14 -15
- package/dist/models/model-portfolio-details.d.ts +39 -39
- package/dist/models/model-portfolio-details.js +14 -15
- package/dist/models/model-portfolio-security.d.ts +31 -32
- package/dist/models/model-portfolio-security.js +14 -15
- package/dist/models/model-portfolio.d.ts +38 -39
- package/dist/models/model-portfolio.js +14 -15
- package/dist/models/model400-failed-request-response.d.ts +30 -31
- package/dist/models/model400-failed-request-response.js +14 -15
- package/dist/models/model401-failed-request-response.d.ts +30 -31
- package/dist/models/model401-failed-request-response.js +14 -15
- package/dist/models/model403-failed-request-response.d.ts +30 -31
- package/dist/models/model403-failed-request-response.js +14 -15
- package/dist/models/model404-failed-request-response.d.ts +30 -31
- package/dist/models/model404-failed-request-response.js +14 -15
- package/dist/models/monthly-dividends.d.ts +31 -32
- package/dist/models/monthly-dividends.js +14 -15
- package/dist/models/net-contributions.d.ts +36 -37
- package/dist/models/net-contributions.js +14 -15
- package/dist/models/net-dividend.d.ts +37 -38
- package/dist/models/net-dividend.js +14 -15
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.d.ts +36 -37
- package/dist/models/option-chain-inner-chain-per-root-inner-chain-per-strike-price-inner.js +14 -15
- package/dist/models/option-chain-inner-chain-per-root-inner.d.ts +37 -38
- package/dist/models/option-chain-inner-chain-per-root-inner.js +14 -15
- package/dist/models/option-chain-inner.d.ts +49 -50
- package/dist/models/option-chain-inner.js +14 -15
- package/dist/models/option-leg.d.ts +38 -39
- package/dist/models/option-leg.js +14 -15
- package/dist/models/option-strategy-legs-inner.d.ts +41 -42
- package/dist/models/option-strategy-legs-inner.js +14 -15
- package/dist/models/option-strategy.d.ts +50 -51
- package/dist/models/option-strategy.js +14 -15
- package/dist/models/options-get-option-strategy-request.d.ts +38 -39
- package/dist/models/options-get-option-strategy-request.js +14 -15
- package/dist/models/options-holdings.d.ts +56 -57
- package/dist/models/options-holdings.js +14 -15
- package/dist/models/options-place-option-strategy-request.d.ts +38 -39
- package/dist/models/options-place-option-strategy-request.js +14 -15
- package/dist/models/options-position.d.ts +62 -63
- package/dist/models/options-position.js +14 -15
- package/dist/models/options-symbol.d.ts +85 -86
- package/dist/models/options-symbol.js +14 -15
- package/dist/models/order-type.d.ts +16 -17
- package/dist/models/order-type.js +14 -15
- package/dist/models/partner-data.d.ts +91 -92
- package/dist/models/partner-data.js +14 -15
- package/dist/models/past-value.d.ts +36 -37
- package/dist/models/past-value.js +14 -15
- package/dist/models/performance-custom.d.ts +137 -138
- package/dist/models/performance-custom.js +14 -15
- package/dist/models/portfolio-group-info.d.ts +92 -93
- package/dist/models/portfolio-group-info.js +14 -15
- package/dist/models/portfolio-group-position.d.ts +37 -38
- package/dist/models/portfolio-group-position.js +14 -15
- package/dist/models/portfolio-group-settings.d.ts +49 -50
- package/dist/models/portfolio-group-settings.js +14 -15
- package/dist/models/portfolio-group.d.ts +30 -31
- package/dist/models/portfolio-group.js +14 -15
- package/dist/models/position-symbol.d.ts +55 -56
- package/dist/models/position-symbol.js +14 -15
- package/dist/models/position.d.ts +55 -56
- package/dist/models/position.js +14 -15
- package/dist/models/redirect-tokenand-pin.d.ts +30 -31
- package/dist/models/redirect-tokenand-pin.js +14 -15
- package/dist/models/security-type.d.ts +42 -43
- package/dist/models/security-type.js +14 -15
- package/dist/models/session-event.d.ts +62 -63
- package/dist/models/session-event.js +14 -15
- package/dist/models/snap-trade-apidisclaimer-accept-status.d.ts +30 -31
- package/dist/models/snap-trade-apidisclaimer-accept-status.js +14 -15
- package/dist/models/snap-trade-holdings-account-account-id.d.ts +75 -76
- package/dist/models/snap-trade-holdings-account-account-id.js +14 -15
- package/dist/models/snap-trade-holdings-account.d.ts +70 -71
- package/dist/models/snap-trade-holdings-account.js +14 -15
- package/dist/models/snap-trade-holdings-total-value.d.ts +30 -31
- package/dist/models/snap-trade-holdings-total-value.js +14 -15
- package/dist/models/snap-trade-login-user-request-body.d.ts +49 -50
- package/dist/models/snap-trade-login-user-request-body.js +14 -15
- package/dist/models/snap-trade-register-user-request-body.d.ts +29 -30
- package/dist/models/snap-trade-register-user-request-body.js +14 -15
- package/dist/models/status.d.ts +36 -37
- package/dist/models/status.js +14 -15
- package/dist/models/strategy-impact-legs-inner.d.ts +60 -61
- package/dist/models/strategy-impact-legs-inner.js +14 -15
- package/dist/models/strategy-impact.d.ts +85 -86
- package/dist/models/strategy-impact.js +14 -15
- package/dist/models/strategy-order-place-orders-inner-legs-inner.d.ts +60 -61
- package/dist/models/strategy-order-place-orders-inner-legs-inner.js +14 -15
- package/dist/models/strategy-order-place-orders-inner.d.ts +277 -278
- package/dist/models/strategy-order-place-orders-inner.js +14 -15
- package/dist/models/strategy-order-place.d.ts +31 -32
- package/dist/models/strategy-order-place.js +14 -15
- package/dist/models/strategy-order-record.d.ts +89 -90
- package/dist/models/strategy-order-record.js +14 -15
- package/dist/models/strategy-quotes-greek.d.ts +48 -49
- package/dist/models/strategy-quotes-greek.js +14 -15
- package/dist/models/strategy-quotes.d.ts +56 -57
- package/dist/models/strategy-quotes.js +14 -15
- package/dist/models/sub-period-return-rate.d.ts +36 -37
- package/dist/models/sub-period-return-rate.js +14 -15
- package/dist/models/symbol-query.d.ts +23 -24
- package/dist/models/symbol-query.js +14 -15
- package/dist/models/symbol.d.ts +63 -64
- package/dist/models/symbol.js +14 -15
- package/dist/models/symbols-quotes-inner.d.ts +54 -55
- package/dist/models/symbols-quotes-inner.js +14 -15
- package/dist/models/target-asset.d.ts +57 -57
- package/dist/models/target-asset.js +14 -15
- package/dist/models/time-in-force.d.ts +16 -17
- package/dist/models/time-in-force.js +14 -15
- package/dist/models/trade-execution-status.d.ts +80 -81
- package/dist/models/trade-execution-status.js +14 -15
- package/dist/models/trade-impact.d.ts +50 -51
- package/dist/models/trade-impact.js +14 -15
- package/dist/models/trade.d.ts +71 -71
- package/dist/models/trade.js +14 -15
- package/dist/models/trading-cancel-user-account-order-request.d.ts +23 -24
- package/dist/models/trading-cancel-user-account-order-request.js +14 -15
- package/dist/models/trading-place-ocoorder-request.d.ts +29 -30
- package/dist/models/trading-place-ocoorder-request.js +14 -15
- package/dist/models/transactions-status.d.ts +29 -30
- package/dist/models/transactions-status.js +14 -15
- package/dist/models/underlying-symbol.d.ts +63 -64
- package/dist/models/underlying-symbol.js +14 -15
- package/dist/models/universal-activity.d.ts +118 -119
- package/dist/models/universal-activity.js +14 -15
- package/dist/models/universal-symbol-ticker.d.ts +69 -70
- package/dist/models/universal-symbol-ticker.js +14 -15
- package/dist/models/universal-symbol.d.ts +69 -69
- package/dist/models/universal-symbol.js +14 -15
- package/dist/models/user-error-log.d.ts +54 -55
- package/dist/models/user-error-log.js +14 -15
- package/dist/models/user-idand-secret.d.ts +30 -31
- package/dist/models/user-idand-secret.js +14 -15
- package/dist/models/user-settings.d.ts +79 -80
- package/dist/models/user-settings.js +14 -15
- package/dist/models/usexchange.d.ts +72 -73
- package/dist/models/usexchange.js +14 -15
- package/dist/pagination/page-types.d.ts +26 -27
- package/dist/pagination/page-types.js +12 -13
- package/dist/pagination/page.d.ts +35 -36
- package/dist/pagination/page.js +60 -61
- package/dist/pagination/pageable.d.ts +57 -58
- package/dist/pagination/pageable.js +126 -127
- package/dist/pagination/paginate.d.ts +16 -17
- package/dist/pagination/paginate.js +77 -78
- package/dist/requestAfterHook.d.ts +8 -8
- package/dist/requestAfterHook.js +45 -45
- package/dist/requestBeforeHook.d.ts +9 -9
- package/dist/requestBeforeHook.js +8 -8
- package/package.json +42 -42
- package/dist/api/portfolio-management-api-custom.d.ts +0 -3
- package/dist/api/portfolio-management-api-custom.js +0 -27
- package/dist/api/portfolio-management-api.d.ts +0 -1612
- package/dist/api/portfolio-management-api.js +0 -3534
|
@@ -1,3534 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* SnapTrade
|
|
6
|
-
* Connect brokerage accounts to your app for live positions and trading
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: api@snaptrade.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This file is auto generated by Konfig (https://konfigthis.com).
|
|
12
|
-
* https://konfigthis.com
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
|
-
exports.PortfolioManagementApi = exports.PortfolioManagementApiFactory = exports.PortfolioManagementApiFp = exports.PortfolioManagementApiAxiosParamCreator = void 0;
|
|
79
|
-
var axios_1 = require("axios");
|
|
80
|
-
// Some imports not used depending on template conditions
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
var common_1 = require("../common");
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
var base_1 = require("../base");
|
|
85
|
-
var requestBeforeHook_1 = require("../requestBeforeHook");
|
|
86
|
-
var portfolio_management_api_custom_1 = require("./portfolio-management-api-custom");
|
|
87
|
-
/**
|
|
88
|
-
* PortfolioManagementApi - axios parameter creator
|
|
89
|
-
* @export
|
|
90
|
-
*/
|
|
91
|
-
var PortfolioManagementApiAxiosParamCreator = function (configuration) {
|
|
92
|
-
var _this = this;
|
|
93
|
-
return {
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @summary Adds an asset to exclude to a portfolio group
|
|
97
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to exclude an asset.
|
|
98
|
-
* @param {UniversalSymbol} [universalSymbol]
|
|
99
|
-
* @param {*} [options] Override http request option.
|
|
100
|
-
* @throws {RequiredError}
|
|
101
|
-
*/
|
|
102
|
-
addPortfolioExcludedAsset: function (portfolioGroupId, universalSymbol, options) {
|
|
103
|
-
if (options === void 0) { options = {}; }
|
|
104
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
105
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
106
|
-
return __generator(this, function (_a) {
|
|
107
|
-
switch (_a.label) {
|
|
108
|
-
case 0:
|
|
109
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
110
|
-
(0, common_1.assertParamExists)('addPortfolioExcludedAsset', 'portfolioGroupId', portfolioGroupId);
|
|
111
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/excludedassets"
|
|
112
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
113
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
-
if (configuration) {
|
|
115
|
-
baseOptions = configuration.baseOptions;
|
|
116
|
-
}
|
|
117
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
118
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
119
|
-
localVarQueryParameter = {};
|
|
120
|
-
// authentication PartnerClientId required
|
|
121
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
122
|
-
// authentication PartnerSignature required
|
|
123
|
-
];
|
|
124
|
-
case 1:
|
|
125
|
-
// authentication PartnerClientId required
|
|
126
|
-
_a.sent();
|
|
127
|
-
// authentication PartnerSignature required
|
|
128
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
129
|
-
// authentication PartnerTimestamp required
|
|
130
|
-
];
|
|
131
|
-
case 2:
|
|
132
|
-
// authentication PartnerSignature required
|
|
133
|
-
_a.sent();
|
|
134
|
-
// authentication PartnerTimestamp required
|
|
135
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
136
|
-
case 3:
|
|
137
|
-
// authentication PartnerTimestamp required
|
|
138
|
-
_a.sent();
|
|
139
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
142
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
143
|
-
requestBody: universalSymbol,
|
|
144
|
-
queryParameters: localVarQueryParameter,
|
|
145
|
-
requestConfig: localVarRequestOptions,
|
|
146
|
-
path: localVarPath,
|
|
147
|
-
configuration: configuration
|
|
148
|
-
});
|
|
149
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(universalSymbol, localVarRequestOptions, configuration);
|
|
150
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
151
|
-
return [2 /*return*/, {
|
|
152
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
153
|
-
options: localVarRequestOptions,
|
|
154
|
-
}];
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
},
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
* @summary Create new portfolio group
|
|
162
|
-
* @param {string} userId
|
|
163
|
-
* @param {string} userSecret
|
|
164
|
-
* @param {{ [key: string]: any; }} requestBody
|
|
165
|
-
* @param {*} [options] Override http request option.
|
|
166
|
-
* @throws {RequiredError}
|
|
167
|
-
*/
|
|
168
|
-
create: function (userId, userSecret, requestBody, options) {
|
|
169
|
-
if (options === void 0) { options = {}; }
|
|
170
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
171
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
172
|
-
return __generator(this, function (_a) {
|
|
173
|
-
switch (_a.label) {
|
|
174
|
-
case 0:
|
|
175
|
-
// verify required parameter 'userId' is not null or undefined
|
|
176
|
-
(0, common_1.assertParamExists)('create', 'userId', userId);
|
|
177
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
178
|
-
(0, common_1.assertParamExists)('create', 'userSecret', userSecret);
|
|
179
|
-
// verify required parameter 'requestBody' is not null or undefined
|
|
180
|
-
(0, common_1.assertParamExists)('create', 'requestBody', requestBody);
|
|
181
|
-
localVarPath = "/portfolioGroups";
|
|
182
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
183
|
-
if (configuration) {
|
|
184
|
-
baseOptions = configuration.baseOptions;
|
|
185
|
-
}
|
|
186
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
187
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
188
|
-
localVarQueryParameter = {};
|
|
189
|
-
// authentication PartnerClientId required
|
|
190
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
191
|
-
// authentication PartnerSignature required
|
|
192
|
-
];
|
|
193
|
-
case 1:
|
|
194
|
-
// authentication PartnerClientId required
|
|
195
|
-
_a.sent();
|
|
196
|
-
// authentication PartnerSignature required
|
|
197
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
198
|
-
// authentication PartnerTimestamp required
|
|
199
|
-
];
|
|
200
|
-
case 2:
|
|
201
|
-
// authentication PartnerSignature required
|
|
202
|
-
_a.sent();
|
|
203
|
-
// authentication PartnerTimestamp required
|
|
204
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
205
|
-
case 3:
|
|
206
|
-
// authentication PartnerTimestamp required
|
|
207
|
-
_a.sent();
|
|
208
|
-
if (userId !== undefined) {
|
|
209
|
-
localVarQueryParameter['userId'] = userId;
|
|
210
|
-
}
|
|
211
|
-
if (userSecret !== undefined) {
|
|
212
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
213
|
-
}
|
|
214
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
215
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
216
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
217
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
218
|
-
requestBody: requestBody,
|
|
219
|
-
queryParameters: localVarQueryParameter,
|
|
220
|
-
requestConfig: localVarRequestOptions,
|
|
221
|
-
path: localVarPath,
|
|
222
|
-
configuration: configuration
|
|
223
|
-
});
|
|
224
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
225
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
226
|
-
return [2 /*return*/, {
|
|
227
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
228
|
-
options: localVarRequestOptions,
|
|
229
|
-
}];
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
});
|
|
233
|
-
},
|
|
234
|
-
/**
|
|
235
|
-
*
|
|
236
|
-
* @summary Create a new model asset class
|
|
237
|
-
* @param {string} userId
|
|
238
|
-
* @param {string} userSecret
|
|
239
|
-
* @param {*} [options] Override http request option.
|
|
240
|
-
* @throws {RequiredError}
|
|
241
|
-
*/
|
|
242
|
-
createAssetClass: function (userId, userSecret, options) {
|
|
243
|
-
if (options === void 0) { options = {}; }
|
|
244
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
245
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
246
|
-
return __generator(this, function (_a) {
|
|
247
|
-
switch (_a.label) {
|
|
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);
|
|
253
|
-
localVarPath = "/modelAssetClass";
|
|
254
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
255
|
-
if (configuration) {
|
|
256
|
-
baseOptions = configuration.baseOptions;
|
|
257
|
-
}
|
|
258
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
259
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
260
|
-
localVarQueryParameter = {};
|
|
261
|
-
// authentication PartnerClientId required
|
|
262
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
263
|
-
// authentication PartnerSignature required
|
|
264
|
-
];
|
|
265
|
-
case 1:
|
|
266
|
-
// authentication PartnerClientId required
|
|
267
|
-
_a.sent();
|
|
268
|
-
// authentication PartnerSignature required
|
|
269
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
270
|
-
// authentication PartnerTimestamp required
|
|
271
|
-
];
|
|
272
|
-
case 2:
|
|
273
|
-
// authentication PartnerSignature required
|
|
274
|
-
_a.sent();
|
|
275
|
-
// authentication PartnerTimestamp required
|
|
276
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
277
|
-
case 3:
|
|
278
|
-
// authentication PartnerTimestamp required
|
|
279
|
-
_a.sent();
|
|
280
|
-
if (userId !== undefined) {
|
|
281
|
-
localVarQueryParameter['userId'] = userId;
|
|
282
|
-
}
|
|
283
|
-
if (userSecret !== undefined) {
|
|
284
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
285
|
-
}
|
|
286
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
287
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
288
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
289
|
-
queryParameters: localVarQueryParameter,
|
|
290
|
-
requestConfig: localVarRequestOptions,
|
|
291
|
-
path: localVarPath,
|
|
292
|
-
configuration: configuration
|
|
293
|
-
});
|
|
294
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
295
|
-
return [2 /*return*/, {
|
|
296
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
297
|
-
options: localVarRequestOptions,
|
|
298
|
-
}];
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
|
-
});
|
|
302
|
-
},
|
|
303
|
-
/**
|
|
304
|
-
*
|
|
305
|
-
* @summary Creates a new model portfolio
|
|
306
|
-
* @param {*} [options] Override http request option.
|
|
307
|
-
* @throws {RequiredError}
|
|
308
|
-
*/
|
|
309
|
-
createModelPortfolio: function (options) {
|
|
310
|
-
if (options === void 0) { options = {}; }
|
|
311
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
312
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
313
|
-
return __generator(this, function (_a) {
|
|
314
|
-
switch (_a.label) {
|
|
315
|
-
case 0:
|
|
316
|
-
localVarPath = "/modelPortfolio";
|
|
317
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
318
|
-
if (configuration) {
|
|
319
|
-
baseOptions = configuration.baseOptions;
|
|
320
|
-
}
|
|
321
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
322
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
323
|
-
localVarQueryParameter = {};
|
|
324
|
-
// authentication PartnerClientId required
|
|
325
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
326
|
-
// authentication PartnerSignature required
|
|
327
|
-
];
|
|
328
|
-
case 1:
|
|
329
|
-
// authentication PartnerClientId required
|
|
330
|
-
_a.sent();
|
|
331
|
-
// authentication PartnerSignature required
|
|
332
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
333
|
-
// authentication PartnerTimestamp required
|
|
334
|
-
];
|
|
335
|
-
case 2:
|
|
336
|
-
// authentication PartnerSignature required
|
|
337
|
-
_a.sent();
|
|
338
|
-
// authentication PartnerTimestamp required
|
|
339
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
340
|
-
case 3:
|
|
341
|
-
// authentication PartnerTimestamp required
|
|
342
|
-
_a.sent();
|
|
343
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
344
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
345
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
346
|
-
queryParameters: localVarQueryParameter,
|
|
347
|
-
requestConfig: localVarRequestOptions,
|
|
348
|
-
path: localVarPath,
|
|
349
|
-
configuration: configuration
|
|
350
|
-
});
|
|
351
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
352
|
-
return [2 /*return*/, {
|
|
353
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
354
|
-
options: localVarRequestOptions,
|
|
355
|
-
}];
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
});
|
|
359
|
-
},
|
|
360
|
-
/**
|
|
361
|
-
*
|
|
362
|
-
* @summary Deletes a model asset class
|
|
363
|
-
* @param {string} modelAssetClassId The ID of the model asset class to delete.
|
|
364
|
-
* @param {*} [options] Override http request option.
|
|
365
|
-
* @throws {RequiredError}
|
|
366
|
-
*/
|
|
367
|
-
deleteAssetClass: function (modelAssetClassId, options) {
|
|
368
|
-
if (options === void 0) { options = {}; }
|
|
369
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
370
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
371
|
-
return __generator(this, function (_a) {
|
|
372
|
-
switch (_a.label) {
|
|
373
|
-
case 0:
|
|
374
|
-
// verify required parameter 'modelAssetClassId' is not null or undefined
|
|
375
|
-
(0, common_1.assertParamExists)('deleteAssetClass', 'modelAssetClassId', modelAssetClassId);
|
|
376
|
-
localVarPath = "/modelAssetClass/{modelAssetClassId}"
|
|
377
|
-
.replace("{".concat("modelAssetClassId", "}"), encodeURIComponent(String(modelAssetClassId)));
|
|
378
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
379
|
-
if (configuration) {
|
|
380
|
-
baseOptions = configuration.baseOptions;
|
|
381
|
-
}
|
|
382
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
383
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
384
|
-
localVarQueryParameter = {};
|
|
385
|
-
// authentication PartnerClientId required
|
|
386
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
387
|
-
// authentication PartnerSignature required
|
|
388
|
-
];
|
|
389
|
-
case 1:
|
|
390
|
-
// authentication PartnerClientId required
|
|
391
|
-
_a.sent();
|
|
392
|
-
// authentication PartnerSignature required
|
|
393
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
394
|
-
// authentication PartnerTimestamp required
|
|
395
|
-
];
|
|
396
|
-
case 2:
|
|
397
|
-
// authentication PartnerSignature required
|
|
398
|
-
_a.sent();
|
|
399
|
-
// authentication PartnerTimestamp required
|
|
400
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
401
|
-
case 3:
|
|
402
|
-
// authentication PartnerTimestamp required
|
|
403
|
-
_a.sent();
|
|
404
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
405
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
406
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
407
|
-
queryParameters: localVarQueryParameter,
|
|
408
|
-
requestConfig: localVarRequestOptions,
|
|
409
|
-
path: localVarPath,
|
|
410
|
-
configuration: configuration
|
|
411
|
-
});
|
|
412
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
413
|
-
return [2 /*return*/, {
|
|
414
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
415
|
-
options: localVarRequestOptions,
|
|
416
|
-
}];
|
|
417
|
-
}
|
|
418
|
-
});
|
|
419
|
-
});
|
|
420
|
-
},
|
|
421
|
-
/**
|
|
422
|
-
*
|
|
423
|
-
* @summary Unexclude an asset from a portfolio group
|
|
424
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to unexclude an asset.
|
|
425
|
-
* @param {string} symbolId The ID of the excluded asset Symbol to delete.
|
|
426
|
-
* @param {*} [options] Override http request option.
|
|
427
|
-
* @throws {RequiredError}
|
|
428
|
-
*/
|
|
429
|
-
deleteExcludedAsset: function (portfolioGroupId, symbolId, options) {
|
|
430
|
-
if (options === void 0) { options = {}; }
|
|
431
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
432
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
433
|
-
return __generator(this, function (_a) {
|
|
434
|
-
switch (_a.label) {
|
|
435
|
-
case 0:
|
|
436
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
437
|
-
(0, common_1.assertParamExists)('deleteExcludedAsset', 'portfolioGroupId', portfolioGroupId);
|
|
438
|
-
// verify required parameter 'symbolId' is not null or undefined
|
|
439
|
-
(0, common_1.assertParamExists)('deleteExcludedAsset', 'symbolId', symbolId);
|
|
440
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/excludedassets/{symbolId}"
|
|
441
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)))
|
|
442
|
-
.replace("{".concat("symbolId", "}"), encodeURIComponent(String(symbolId)));
|
|
443
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
444
|
-
if (configuration) {
|
|
445
|
-
baseOptions = configuration.baseOptions;
|
|
446
|
-
}
|
|
447
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
448
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
449
|
-
localVarQueryParameter = {};
|
|
450
|
-
// authentication PartnerClientId required
|
|
451
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
452
|
-
// authentication PartnerSignature required
|
|
453
|
-
];
|
|
454
|
-
case 1:
|
|
455
|
-
// authentication PartnerClientId required
|
|
456
|
-
_a.sent();
|
|
457
|
-
// authentication PartnerSignature required
|
|
458
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
459
|
-
// authentication PartnerTimestamp required
|
|
460
|
-
];
|
|
461
|
-
case 2:
|
|
462
|
-
// authentication PartnerSignature required
|
|
463
|
-
_a.sent();
|
|
464
|
-
// authentication PartnerTimestamp required
|
|
465
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
466
|
-
case 3:
|
|
467
|
-
// authentication PartnerTimestamp required
|
|
468
|
-
_a.sent();
|
|
469
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
470
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
471
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
472
|
-
queryParameters: localVarQueryParameter,
|
|
473
|
-
requestConfig: localVarRequestOptions,
|
|
474
|
-
path: localVarPath,
|
|
475
|
-
configuration: configuration
|
|
476
|
-
});
|
|
477
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
478
|
-
return [2 /*return*/, {
|
|
479
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
480
|
-
options: localVarRequestOptions,
|
|
481
|
-
}];
|
|
482
|
-
}
|
|
483
|
-
});
|
|
484
|
-
});
|
|
485
|
-
},
|
|
486
|
-
/**
|
|
487
|
-
*
|
|
488
|
-
* @summary Deletes a model portfolio
|
|
489
|
-
* @param {string} modelPortfolioId The ID of the model portfolio to delete.
|
|
490
|
-
* @param {*} [options] Override http request option.
|
|
491
|
-
* @throws {RequiredError}
|
|
492
|
-
*/
|
|
493
|
-
deleteModelPortfolioById: function (modelPortfolioId, options) {
|
|
494
|
-
if (options === void 0) { options = {}; }
|
|
495
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
496
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
497
|
-
return __generator(this, function (_a) {
|
|
498
|
-
switch (_a.label) {
|
|
499
|
-
case 0:
|
|
500
|
-
// verify required parameter 'modelPortfolioId' is not null or undefined
|
|
501
|
-
(0, common_1.assertParamExists)('deleteModelPortfolioById', 'modelPortfolioId', modelPortfolioId);
|
|
502
|
-
localVarPath = "/modelPortfolio/{modelPortfolioId}"
|
|
503
|
-
.replace("{".concat("modelPortfolioId", "}"), encodeURIComponent(String(modelPortfolioId)));
|
|
504
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
505
|
-
if (configuration) {
|
|
506
|
-
baseOptions = configuration.baseOptions;
|
|
507
|
-
}
|
|
508
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
509
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
510
|
-
localVarQueryParameter = {};
|
|
511
|
-
// authentication PartnerClientId required
|
|
512
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
513
|
-
// authentication PartnerSignature required
|
|
514
|
-
];
|
|
515
|
-
case 1:
|
|
516
|
-
// authentication PartnerClientId required
|
|
517
|
-
_a.sent();
|
|
518
|
-
// authentication PartnerSignature required
|
|
519
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
520
|
-
// authentication PartnerTimestamp required
|
|
521
|
-
];
|
|
522
|
-
case 2:
|
|
523
|
-
// authentication PartnerSignature required
|
|
524
|
-
_a.sent();
|
|
525
|
-
// authentication PartnerTimestamp required
|
|
526
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
527
|
-
case 3:
|
|
528
|
-
// authentication PartnerTimestamp required
|
|
529
|
-
_a.sent();
|
|
530
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
531
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
532
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
533
|
-
queryParameters: localVarQueryParameter,
|
|
534
|
-
requestConfig: localVarRequestOptions,
|
|
535
|
-
path: localVarPath,
|
|
536
|
-
configuration: configuration
|
|
537
|
-
});
|
|
538
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
539
|
-
return [2 /*return*/, {
|
|
540
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
541
|
-
options: localVarRequestOptions,
|
|
542
|
-
}];
|
|
543
|
-
}
|
|
544
|
-
});
|
|
545
|
-
});
|
|
546
|
-
},
|
|
547
|
-
/**
|
|
548
|
-
*
|
|
549
|
-
* @summary Remove a target portfolio.
|
|
550
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup to delete.
|
|
551
|
-
* @param {*} [options] Override http request option.
|
|
552
|
-
* @throws {RequiredError}
|
|
553
|
-
*/
|
|
554
|
-
deletePortfoli: function (portfolioGroupId, options) {
|
|
555
|
-
if (options === void 0) { options = {}; }
|
|
556
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
557
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
558
|
-
return __generator(this, function (_a) {
|
|
559
|
-
switch (_a.label) {
|
|
560
|
-
case 0:
|
|
561
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
562
|
-
(0, common_1.assertParamExists)('deletePortfoli', 'portfolioGroupId', portfolioGroupId);
|
|
563
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}"
|
|
564
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
565
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
566
|
-
if (configuration) {
|
|
567
|
-
baseOptions = configuration.baseOptions;
|
|
568
|
-
}
|
|
569
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
570
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
571
|
-
localVarQueryParameter = {};
|
|
572
|
-
// authentication PartnerClientId required
|
|
573
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
574
|
-
// authentication PartnerSignature required
|
|
575
|
-
];
|
|
576
|
-
case 1:
|
|
577
|
-
// authentication PartnerClientId required
|
|
578
|
-
_a.sent();
|
|
579
|
-
// authentication PartnerSignature required
|
|
580
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
581
|
-
// authentication PartnerTimestamp required
|
|
582
|
-
];
|
|
583
|
-
case 2:
|
|
584
|
-
// authentication PartnerSignature required
|
|
585
|
-
_a.sent();
|
|
586
|
-
// authentication PartnerTimestamp required
|
|
587
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
588
|
-
case 3:
|
|
589
|
-
// authentication PartnerTimestamp required
|
|
590
|
-
_a.sent();
|
|
591
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
592
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
593
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
594
|
-
queryParameters: localVarQueryParameter,
|
|
595
|
-
requestConfig: localVarRequestOptions,
|
|
596
|
-
path: localVarPath,
|
|
597
|
-
configuration: configuration
|
|
598
|
-
});
|
|
599
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
600
|
-
return [2 /*return*/, {
|
|
601
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
602
|
-
options: localVarRequestOptions,
|
|
603
|
-
}];
|
|
604
|
-
}
|
|
605
|
-
});
|
|
606
|
-
});
|
|
607
|
-
},
|
|
608
|
-
/**
|
|
609
|
-
*
|
|
610
|
-
* @summary Remove a TargetAsset.
|
|
611
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to remove the target asset.
|
|
612
|
-
* @param {string} targetAssetId The ID of the TargetAsset to delete.
|
|
613
|
-
* @param {*} [options] Override http request option.
|
|
614
|
-
* @throws {RequiredError}
|
|
615
|
-
*/
|
|
616
|
-
deletePortfolioTargetById: function (portfolioGroupId, targetAssetId, options) {
|
|
617
|
-
if (options === void 0) { options = {}; }
|
|
618
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
619
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
620
|
-
return __generator(this, function (_a) {
|
|
621
|
-
switch (_a.label) {
|
|
622
|
-
case 0:
|
|
623
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
624
|
-
(0, common_1.assertParamExists)('deletePortfolioTargetById', 'portfolioGroupId', portfolioGroupId);
|
|
625
|
-
// verify required parameter 'targetAssetId' is not null or undefined
|
|
626
|
-
(0, common_1.assertParamExists)('deletePortfolioTargetById', 'targetAssetId', targetAssetId);
|
|
627
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/targets/{targetAssetId}"
|
|
628
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)))
|
|
629
|
-
.replace("{".concat("targetAssetId", "}"), encodeURIComponent(String(targetAssetId)));
|
|
630
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
631
|
-
if (configuration) {
|
|
632
|
-
baseOptions = configuration.baseOptions;
|
|
633
|
-
}
|
|
634
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
635
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
636
|
-
localVarQueryParameter = {};
|
|
637
|
-
// authentication PartnerClientId required
|
|
638
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
639
|
-
// authentication PartnerSignature required
|
|
640
|
-
];
|
|
641
|
-
case 1:
|
|
642
|
-
// authentication PartnerClientId required
|
|
643
|
-
_a.sent();
|
|
644
|
-
// authentication PartnerSignature required
|
|
645
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
646
|
-
// authentication PartnerTimestamp required
|
|
647
|
-
];
|
|
648
|
-
case 2:
|
|
649
|
-
// authentication PartnerSignature required
|
|
650
|
-
_a.sent();
|
|
651
|
-
// authentication PartnerTimestamp required
|
|
652
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
653
|
-
case 3:
|
|
654
|
-
// authentication PartnerTimestamp required
|
|
655
|
-
_a.sent();
|
|
656
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
657
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
658
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
659
|
-
queryParameters: localVarQueryParameter,
|
|
660
|
-
requestConfig: localVarRequestOptions,
|
|
661
|
-
path: localVarPath,
|
|
662
|
-
configuration: configuration
|
|
663
|
-
});
|
|
664
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
665
|
-
return [2 /*return*/, {
|
|
666
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
667
|
-
options: localVarRequestOptions,
|
|
668
|
-
}];
|
|
669
|
-
}
|
|
670
|
-
});
|
|
671
|
-
});
|
|
672
|
-
},
|
|
673
|
-
/**
|
|
674
|
-
*
|
|
675
|
-
* @summary Get details of a model asset class
|
|
676
|
-
* @param {string} modelAssetClassId The ID of the model asset class to get.
|
|
677
|
-
* @param {string} userId
|
|
678
|
-
* @param {string} userSecret
|
|
679
|
-
* @param {*} [options] Override http request option.
|
|
680
|
-
* @throws {RequiredError}
|
|
681
|
-
*/
|
|
682
|
-
detailAssetClass: function (modelAssetClassId, userId, userSecret, options) {
|
|
683
|
-
if (options === void 0) { options = {}; }
|
|
684
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
685
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
686
|
-
return __generator(this, function (_a) {
|
|
687
|
-
switch (_a.label) {
|
|
688
|
-
case 0:
|
|
689
|
-
// verify required parameter 'modelAssetClassId' is not null or undefined
|
|
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);
|
|
695
|
-
localVarPath = "/modelAssetClass/{modelAssetClassId}"
|
|
696
|
-
.replace("{".concat("modelAssetClassId", "}"), encodeURIComponent(String(modelAssetClassId)));
|
|
697
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
698
|
-
if (configuration) {
|
|
699
|
-
baseOptions = configuration.baseOptions;
|
|
700
|
-
}
|
|
701
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
702
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
703
|
-
localVarQueryParameter = {};
|
|
704
|
-
// authentication PartnerClientId required
|
|
705
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
706
|
-
// authentication PartnerSignature required
|
|
707
|
-
];
|
|
708
|
-
case 1:
|
|
709
|
-
// authentication PartnerClientId required
|
|
710
|
-
_a.sent();
|
|
711
|
-
// authentication PartnerSignature required
|
|
712
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
713
|
-
// authentication PartnerTimestamp required
|
|
714
|
-
];
|
|
715
|
-
case 2:
|
|
716
|
-
// authentication PartnerSignature required
|
|
717
|
-
_a.sent();
|
|
718
|
-
// authentication PartnerTimestamp required
|
|
719
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
720
|
-
case 3:
|
|
721
|
-
// authentication PartnerTimestamp required
|
|
722
|
-
_a.sent();
|
|
723
|
-
if (userId !== undefined) {
|
|
724
|
-
localVarQueryParameter['userId'] = userId;
|
|
725
|
-
}
|
|
726
|
-
if (userSecret !== undefined) {
|
|
727
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
728
|
-
}
|
|
729
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
730
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
731
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
732
|
-
queryParameters: localVarQueryParameter,
|
|
733
|
-
requestConfig: localVarRequestOptions,
|
|
734
|
-
path: localVarPath,
|
|
735
|
-
configuration: configuration
|
|
736
|
-
});
|
|
737
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
738
|
-
return [2 /*return*/, {
|
|
739
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
740
|
-
options: localVarRequestOptions,
|
|
741
|
-
}];
|
|
742
|
-
}
|
|
743
|
-
});
|
|
744
|
-
});
|
|
745
|
-
},
|
|
746
|
-
/**
|
|
747
|
-
*
|
|
748
|
-
* @summary Return an individual trade
|
|
749
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup to perform rebalancing calculations
|
|
750
|
-
* @param {string} calculatedTradeId The ID of calculated trade to get account impact
|
|
751
|
-
* @param {string} tradeId The ID of trade object
|
|
752
|
-
* @param {*} [options] Override http request option.
|
|
753
|
-
* @throws {RequiredError}
|
|
754
|
-
*/
|
|
755
|
-
getCalculatedTradeById: function (portfolioGroupId, calculatedTradeId, tradeId, options) {
|
|
756
|
-
if (options === void 0) { options = {}; }
|
|
757
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
758
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
759
|
-
return __generator(this, function (_a) {
|
|
760
|
-
switch (_a.label) {
|
|
761
|
-
case 0:
|
|
762
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
763
|
-
(0, common_1.assertParamExists)('getCalculatedTradeById', 'portfolioGroupId', portfolioGroupId);
|
|
764
|
-
// verify required parameter 'calculatedTradeId' is not null or undefined
|
|
765
|
-
(0, common_1.assertParamExists)('getCalculatedTradeById', 'calculatedTradeId', calculatedTradeId);
|
|
766
|
-
// verify required parameter 'tradeId' is not null or undefined
|
|
767
|
-
(0, common_1.assertParamExists)('getCalculatedTradeById', 'tradeId', tradeId);
|
|
768
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/calculatedtrades/{calculatedTradeId}/{TradeId}"
|
|
769
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)))
|
|
770
|
-
.replace("{".concat("calculatedTradeId", "}"), encodeURIComponent(String(calculatedTradeId)))
|
|
771
|
-
.replace("{".concat("TradeId", "}"), encodeURIComponent(String(tradeId)));
|
|
772
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
773
|
-
if (configuration) {
|
|
774
|
-
baseOptions = configuration.baseOptions;
|
|
775
|
-
}
|
|
776
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
777
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
778
|
-
localVarQueryParameter = {};
|
|
779
|
-
// authentication PartnerClientId required
|
|
780
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
781
|
-
// authentication PartnerSignature required
|
|
782
|
-
];
|
|
783
|
-
case 1:
|
|
784
|
-
// authentication PartnerClientId required
|
|
785
|
-
_a.sent();
|
|
786
|
-
// authentication PartnerSignature required
|
|
787
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
788
|
-
// authentication PartnerTimestamp required
|
|
789
|
-
];
|
|
790
|
-
case 2:
|
|
791
|
-
// authentication PartnerSignature required
|
|
792
|
-
_a.sent();
|
|
793
|
-
// authentication PartnerTimestamp required
|
|
794
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
795
|
-
case 3:
|
|
796
|
-
// authentication PartnerTimestamp required
|
|
797
|
-
_a.sent();
|
|
798
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
799
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
800
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
801
|
-
queryParameters: localVarQueryParameter,
|
|
802
|
-
requestConfig: localVarRequestOptions,
|
|
803
|
-
path: localVarPath,
|
|
804
|
-
configuration: configuration
|
|
805
|
-
});
|
|
806
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
807
|
-
return [2 /*return*/, {
|
|
808
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
809
|
-
options: localVarRequestOptions,
|
|
810
|
-
}];
|
|
811
|
-
}
|
|
812
|
-
});
|
|
813
|
-
});
|
|
814
|
-
},
|
|
815
|
-
/**
|
|
816
|
-
*
|
|
817
|
-
* @summary Get details of a model portfolio
|
|
818
|
-
* @param {string} modelPortfolioId The ID of the model portfolio to get.
|
|
819
|
-
* @param {*} [options] Override http request option.
|
|
820
|
-
* @throws {RequiredError}
|
|
821
|
-
*/
|
|
822
|
-
getModelDetailsById: function (modelPortfolioId, options) {
|
|
823
|
-
if (options === void 0) { options = {}; }
|
|
824
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
825
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
826
|
-
return __generator(this, function (_a) {
|
|
827
|
-
switch (_a.label) {
|
|
828
|
-
case 0:
|
|
829
|
-
// verify required parameter 'modelPortfolioId' is not null or undefined
|
|
830
|
-
(0, common_1.assertParamExists)('getModelDetailsById', 'modelPortfolioId', modelPortfolioId);
|
|
831
|
-
localVarPath = "/modelPortfolio/{modelPortfolioId}"
|
|
832
|
-
.replace("{".concat("modelPortfolioId", "}"), encodeURIComponent(String(modelPortfolioId)));
|
|
833
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
834
|
-
if (configuration) {
|
|
835
|
-
baseOptions = configuration.baseOptions;
|
|
836
|
-
}
|
|
837
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
838
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
839
|
-
localVarQueryParameter = {};
|
|
840
|
-
// authentication PartnerClientId required
|
|
841
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
842
|
-
// authentication PartnerSignature required
|
|
843
|
-
];
|
|
844
|
-
case 1:
|
|
845
|
-
// authentication PartnerClientId required
|
|
846
|
-
_a.sent();
|
|
847
|
-
// authentication PartnerSignature required
|
|
848
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
849
|
-
// authentication PartnerTimestamp required
|
|
850
|
-
];
|
|
851
|
-
case 2:
|
|
852
|
-
// authentication PartnerSignature required
|
|
853
|
-
_a.sent();
|
|
854
|
-
// authentication PartnerTimestamp required
|
|
855
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
856
|
-
case 3:
|
|
857
|
-
// authentication PartnerTimestamp required
|
|
858
|
-
_a.sent();
|
|
859
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
860
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
861
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
862
|
-
queryParameters: localVarQueryParameter,
|
|
863
|
-
requestConfig: localVarRequestOptions,
|
|
864
|
-
path: localVarPath,
|
|
865
|
-
configuration: configuration
|
|
866
|
-
});
|
|
867
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
868
|
-
return [2 /*return*/, {
|
|
869
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
870
|
-
options: localVarRequestOptions,
|
|
871
|
-
}];
|
|
872
|
-
}
|
|
873
|
-
});
|
|
874
|
-
});
|
|
875
|
-
},
|
|
876
|
-
/**
|
|
877
|
-
*
|
|
878
|
-
* @summary Get sum of cash balances in portfolio group
|
|
879
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to create the target asset.
|
|
880
|
-
* @param {*} [options] Override http request option.
|
|
881
|
-
* @throws {RequiredError}
|
|
882
|
-
*/
|
|
883
|
-
getPortfolioBalances: function (portfolioGroupId, options) {
|
|
884
|
-
if (options === void 0) { options = {}; }
|
|
885
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
886
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
887
|
-
return __generator(this, function (_a) {
|
|
888
|
-
switch (_a.label) {
|
|
889
|
-
case 0:
|
|
890
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
891
|
-
(0, common_1.assertParamExists)('getPortfolioBalances', 'portfolioGroupId', portfolioGroupId);
|
|
892
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/balances"
|
|
893
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
894
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
895
|
-
if (configuration) {
|
|
896
|
-
baseOptions = configuration.baseOptions;
|
|
897
|
-
}
|
|
898
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
899
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
900
|
-
localVarQueryParameter = {};
|
|
901
|
-
// authentication PartnerClientId required
|
|
902
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
903
|
-
// authentication PartnerSignature required
|
|
904
|
-
];
|
|
905
|
-
case 1:
|
|
906
|
-
// authentication PartnerClientId required
|
|
907
|
-
_a.sent();
|
|
908
|
-
// authentication PartnerSignature required
|
|
909
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
910
|
-
// authentication PartnerTimestamp required
|
|
911
|
-
];
|
|
912
|
-
case 2:
|
|
913
|
-
// authentication PartnerSignature required
|
|
914
|
-
_a.sent();
|
|
915
|
-
// authentication PartnerTimestamp required
|
|
916
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
917
|
-
case 3:
|
|
918
|
-
// authentication PartnerTimestamp required
|
|
919
|
-
_a.sent();
|
|
920
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
921
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
922
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
923
|
-
queryParameters: localVarQueryParameter,
|
|
924
|
-
requestConfig: localVarRequestOptions,
|
|
925
|
-
path: localVarPath,
|
|
926
|
-
configuration: configuration
|
|
927
|
-
});
|
|
928
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
929
|
-
return [2 /*return*/, {
|
|
930
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
931
|
-
options: localVarRequestOptions,
|
|
932
|
-
}];
|
|
933
|
-
}
|
|
934
|
-
});
|
|
935
|
-
});
|
|
936
|
-
},
|
|
937
|
-
/**
|
|
938
|
-
*
|
|
939
|
-
* @summary Get details of a target portfolio
|
|
940
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup to get.
|
|
941
|
-
* @param {*} [options] Override http request option.
|
|
942
|
-
* @throws {RequiredError}
|
|
943
|
-
*/
|
|
944
|
-
getPortfolioDetailsById: function (portfolioGroupId, options) {
|
|
945
|
-
if (options === void 0) { options = {}; }
|
|
946
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
947
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
948
|
-
return __generator(this, function (_a) {
|
|
949
|
-
switch (_a.label) {
|
|
950
|
-
case 0:
|
|
951
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
952
|
-
(0, common_1.assertParamExists)('getPortfolioDetailsById', 'portfolioGroupId', portfolioGroupId);
|
|
953
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}"
|
|
954
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
955
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
956
|
-
if (configuration) {
|
|
957
|
-
baseOptions = configuration.baseOptions;
|
|
958
|
-
}
|
|
959
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
960
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
961
|
-
localVarQueryParameter = {};
|
|
962
|
-
// authentication PartnerClientId required
|
|
963
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
964
|
-
// authentication PartnerSignature required
|
|
965
|
-
];
|
|
966
|
-
case 1:
|
|
967
|
-
// authentication PartnerClientId required
|
|
968
|
-
_a.sent();
|
|
969
|
-
// authentication PartnerSignature required
|
|
970
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
971
|
-
// authentication PartnerTimestamp required
|
|
972
|
-
];
|
|
973
|
-
case 2:
|
|
974
|
-
// authentication PartnerSignature required
|
|
975
|
-
_a.sent();
|
|
976
|
-
// authentication PartnerTimestamp required
|
|
977
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
978
|
-
case 3:
|
|
979
|
-
// authentication PartnerTimestamp required
|
|
980
|
-
_a.sent();
|
|
981
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
982
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
983
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
984
|
-
queryParameters: localVarQueryParameter,
|
|
985
|
-
requestConfig: localVarRequestOptions,
|
|
986
|
-
path: localVarPath,
|
|
987
|
-
configuration: configuration
|
|
988
|
-
});
|
|
989
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
990
|
-
return [2 /*return*/, {
|
|
991
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
992
|
-
options: localVarRequestOptions,
|
|
993
|
-
}];
|
|
994
|
-
}
|
|
995
|
-
});
|
|
996
|
-
});
|
|
997
|
-
},
|
|
998
|
-
/**
|
|
999
|
-
*
|
|
1000
|
-
* @summary Return a whole bunch of relevant information relating to a portfolio group.
|
|
1001
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to create the target asset.
|
|
1002
|
-
* @param {*} [options] Override http request option.
|
|
1003
|
-
* @throws {RequiredError}
|
|
1004
|
-
*/
|
|
1005
|
-
getPortfolioInfo: function (portfolioGroupId, options) {
|
|
1006
|
-
if (options === void 0) { options = {}; }
|
|
1007
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1008
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1009
|
-
return __generator(this, function (_a) {
|
|
1010
|
-
switch (_a.label) {
|
|
1011
|
-
case 0:
|
|
1012
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1013
|
-
(0, common_1.assertParamExists)('getPortfolioInfo', 'portfolioGroupId', portfolioGroupId);
|
|
1014
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/info"
|
|
1015
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
1016
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1017
|
-
if (configuration) {
|
|
1018
|
-
baseOptions = configuration.baseOptions;
|
|
1019
|
-
}
|
|
1020
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1021
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1022
|
-
localVarQueryParameter = {};
|
|
1023
|
-
// authentication PartnerClientId required
|
|
1024
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1025
|
-
// authentication PartnerSignature required
|
|
1026
|
-
];
|
|
1027
|
-
case 1:
|
|
1028
|
-
// authentication PartnerClientId required
|
|
1029
|
-
_a.sent();
|
|
1030
|
-
// authentication PartnerSignature required
|
|
1031
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1032
|
-
// authentication PartnerTimestamp required
|
|
1033
|
-
];
|
|
1034
|
-
case 2:
|
|
1035
|
-
// authentication PartnerSignature required
|
|
1036
|
-
_a.sent();
|
|
1037
|
-
// authentication PartnerTimestamp required
|
|
1038
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1039
|
-
case 3:
|
|
1040
|
-
// authentication PartnerTimestamp required
|
|
1041
|
-
_a.sent();
|
|
1042
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1043
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1044
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1045
|
-
queryParameters: localVarQueryParameter,
|
|
1046
|
-
requestConfig: localVarRequestOptions,
|
|
1047
|
-
path: localVarPath,
|
|
1048
|
-
configuration: configuration
|
|
1049
|
-
});
|
|
1050
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1051
|
-
return [2 /*return*/, {
|
|
1052
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1053
|
-
options: localVarRequestOptions,
|
|
1054
|
-
}];
|
|
1055
|
-
}
|
|
1056
|
-
});
|
|
1057
|
-
});
|
|
1058
|
-
},
|
|
1059
|
-
/**
|
|
1060
|
-
*
|
|
1061
|
-
* @summary Get portfolio group settings
|
|
1062
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to get the settings.
|
|
1063
|
-
* @param {*} [options] Override http request option.
|
|
1064
|
-
* @throws {RequiredError}
|
|
1065
|
-
*/
|
|
1066
|
-
getPortfolioSettings: function (portfolioGroupId, options) {
|
|
1067
|
-
if (options === void 0) { options = {}; }
|
|
1068
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1069
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1070
|
-
return __generator(this, function (_a) {
|
|
1071
|
-
switch (_a.label) {
|
|
1072
|
-
case 0:
|
|
1073
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1074
|
-
(0, common_1.assertParamExists)('getPortfolioSettings', 'portfolioGroupId', portfolioGroupId);
|
|
1075
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/settings"
|
|
1076
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
1077
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1078
|
-
if (configuration) {
|
|
1079
|
-
baseOptions = configuration.baseOptions;
|
|
1080
|
-
}
|
|
1081
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1082
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1083
|
-
localVarQueryParameter = {};
|
|
1084
|
-
// authentication PartnerClientId required
|
|
1085
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1086
|
-
// authentication PartnerSignature required
|
|
1087
|
-
];
|
|
1088
|
-
case 1:
|
|
1089
|
-
// authentication PartnerClientId required
|
|
1090
|
-
_a.sent();
|
|
1091
|
-
// authentication PartnerSignature required
|
|
1092
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1093
|
-
// authentication PartnerTimestamp required
|
|
1094
|
-
];
|
|
1095
|
-
case 2:
|
|
1096
|
-
// authentication PartnerSignature required
|
|
1097
|
-
_a.sent();
|
|
1098
|
-
// authentication PartnerTimestamp required
|
|
1099
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1100
|
-
case 3:
|
|
1101
|
-
// authentication PartnerTimestamp required
|
|
1102
|
-
_a.sent();
|
|
1103
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1104
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1105
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1106
|
-
queryParameters: localVarQueryParameter,
|
|
1107
|
-
requestConfig: localVarRequestOptions,
|
|
1108
|
-
path: localVarPath,
|
|
1109
|
-
configuration: configuration
|
|
1110
|
-
});
|
|
1111
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1112
|
-
return [2 /*return*/, {
|
|
1113
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1114
|
-
options: localVarRequestOptions,
|
|
1115
|
-
}];
|
|
1116
|
-
}
|
|
1117
|
-
});
|
|
1118
|
-
});
|
|
1119
|
-
},
|
|
1120
|
-
/**
|
|
1121
|
-
*
|
|
1122
|
-
* @summary Get a specific target from a portfolio group
|
|
1123
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to get the target asset.
|
|
1124
|
-
* @param {string} targetAssetId The ID of the TargetAsset to get.
|
|
1125
|
-
* @param {*} [options] Override http request option.
|
|
1126
|
-
* @throws {RequiredError}
|
|
1127
|
-
*/
|
|
1128
|
-
getPortfolioTargetById: function (portfolioGroupId, targetAssetId, options) {
|
|
1129
|
-
if (options === void 0) { options = {}; }
|
|
1130
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1131
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1132
|
-
return __generator(this, function (_a) {
|
|
1133
|
-
switch (_a.label) {
|
|
1134
|
-
case 0:
|
|
1135
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1136
|
-
(0, common_1.assertParamExists)('getPortfolioTargetById', 'portfolioGroupId', portfolioGroupId);
|
|
1137
|
-
// verify required parameter 'targetAssetId' is not null or undefined
|
|
1138
|
-
(0, common_1.assertParamExists)('getPortfolioTargetById', 'targetAssetId', targetAssetId);
|
|
1139
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/targets/{targetAssetId}"
|
|
1140
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)))
|
|
1141
|
-
.replace("{".concat("targetAssetId", "}"), encodeURIComponent(String(targetAssetId)));
|
|
1142
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1143
|
-
if (configuration) {
|
|
1144
|
-
baseOptions = configuration.baseOptions;
|
|
1145
|
-
}
|
|
1146
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1147
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1148
|
-
localVarQueryParameter = {};
|
|
1149
|
-
// authentication PartnerClientId required
|
|
1150
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1151
|
-
// authentication PartnerSignature required
|
|
1152
|
-
];
|
|
1153
|
-
case 1:
|
|
1154
|
-
// authentication PartnerClientId required
|
|
1155
|
-
_a.sent();
|
|
1156
|
-
// authentication PartnerSignature required
|
|
1157
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1158
|
-
// authentication PartnerTimestamp required
|
|
1159
|
-
];
|
|
1160
|
-
case 2:
|
|
1161
|
-
// authentication PartnerSignature required
|
|
1162
|
-
_a.sent();
|
|
1163
|
-
// authentication PartnerTimestamp required
|
|
1164
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1165
|
-
case 3:
|
|
1166
|
-
// authentication PartnerTimestamp required
|
|
1167
|
-
_a.sent();
|
|
1168
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1169
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1170
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1171
|
-
queryParameters: localVarQueryParameter,
|
|
1172
|
-
requestConfig: localVarRequestOptions,
|
|
1173
|
-
path: localVarPath,
|
|
1174
|
-
configuration: configuration
|
|
1175
|
-
});
|
|
1176
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1177
|
-
return [2 /*return*/, {
|
|
1178
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1179
|
-
options: localVarRequestOptions,
|
|
1180
|
-
}];
|
|
1181
|
-
}
|
|
1182
|
-
});
|
|
1183
|
-
});
|
|
1184
|
-
},
|
|
1185
|
-
/**
|
|
1186
|
-
*
|
|
1187
|
-
* @summary Get all target assets under the specified PortfolioGroup.
|
|
1188
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to create the target asset.
|
|
1189
|
-
* @param {*} [options] Override http request option.
|
|
1190
|
-
* @throws {RequiredError}
|
|
1191
|
-
*/
|
|
1192
|
-
getPortfolioTargets: function (portfolioGroupId, options) {
|
|
1193
|
-
if (options === void 0) { options = {}; }
|
|
1194
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1195
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1196
|
-
return __generator(this, function (_a) {
|
|
1197
|
-
switch (_a.label) {
|
|
1198
|
-
case 0:
|
|
1199
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1200
|
-
(0, common_1.assertParamExists)('getPortfolioTargets', 'portfolioGroupId', portfolioGroupId);
|
|
1201
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/targets"
|
|
1202
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
1203
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1204
|
-
if (configuration) {
|
|
1205
|
-
baseOptions = configuration.baseOptions;
|
|
1206
|
-
}
|
|
1207
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1208
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1209
|
-
localVarQueryParameter = {};
|
|
1210
|
-
// authentication PartnerClientId required
|
|
1211
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1212
|
-
// authentication PartnerSignature required
|
|
1213
|
-
];
|
|
1214
|
-
case 1:
|
|
1215
|
-
// authentication PartnerClientId required
|
|
1216
|
-
_a.sent();
|
|
1217
|
-
// authentication PartnerSignature required
|
|
1218
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1219
|
-
// authentication PartnerTimestamp required
|
|
1220
|
-
];
|
|
1221
|
-
case 2:
|
|
1222
|
-
// authentication PartnerSignature required
|
|
1223
|
-
_a.sent();
|
|
1224
|
-
// authentication PartnerTimestamp required
|
|
1225
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1226
|
-
case 3:
|
|
1227
|
-
// authentication PartnerTimestamp required
|
|
1228
|
-
_a.sent();
|
|
1229
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1230
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1231
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1232
|
-
queryParameters: localVarQueryParameter,
|
|
1233
|
-
requestConfig: localVarRequestOptions,
|
|
1234
|
-
path: localVarPath,
|
|
1235
|
-
configuration: configuration
|
|
1236
|
-
});
|
|
1237
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1238
|
-
return [2 /*return*/, {
|
|
1239
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1240
|
-
options: localVarRequestOptions,
|
|
1241
|
-
}];
|
|
1242
|
-
}
|
|
1243
|
-
});
|
|
1244
|
-
});
|
|
1245
|
-
},
|
|
1246
|
-
/**
|
|
1247
|
-
*
|
|
1248
|
-
* @summary Get an array of excluded assets associated with a portfolio group\\
|
|
1249
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which the excluded assets are linked.
|
|
1250
|
-
* @param {*} [options] Override http request option.
|
|
1251
|
-
* @throws {RequiredError}
|
|
1252
|
-
*/
|
|
1253
|
-
getPortoflioExcludedAssets: function (portfolioGroupId, options) {
|
|
1254
|
-
if (options === void 0) { options = {}; }
|
|
1255
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1256
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1257
|
-
return __generator(this, function (_a) {
|
|
1258
|
-
switch (_a.label) {
|
|
1259
|
-
case 0:
|
|
1260
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1261
|
-
(0, common_1.assertParamExists)('getPortoflioExcludedAssets', 'portfolioGroupId', portfolioGroupId);
|
|
1262
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/excludedassets"
|
|
1263
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
1264
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1265
|
-
if (configuration) {
|
|
1266
|
-
baseOptions = configuration.baseOptions;
|
|
1267
|
-
}
|
|
1268
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1269
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1270
|
-
localVarQueryParameter = {};
|
|
1271
|
-
// authentication PartnerClientId required
|
|
1272
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1273
|
-
// authentication PartnerSignature required
|
|
1274
|
-
];
|
|
1275
|
-
case 1:
|
|
1276
|
-
// authentication PartnerClientId required
|
|
1277
|
-
_a.sent();
|
|
1278
|
-
// authentication PartnerSignature required
|
|
1279
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1280
|
-
// authentication PartnerTimestamp required
|
|
1281
|
-
];
|
|
1282
|
-
case 2:
|
|
1283
|
-
// authentication PartnerSignature required
|
|
1284
|
-
_a.sent();
|
|
1285
|
-
// authentication PartnerTimestamp required
|
|
1286
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1287
|
-
case 3:
|
|
1288
|
-
// authentication PartnerTimestamp required
|
|
1289
|
-
_a.sent();
|
|
1290
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1291
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1292
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1293
|
-
queryParameters: localVarQueryParameter,
|
|
1294
|
-
requestConfig: localVarRequestOptions,
|
|
1295
|
-
path: localVarPath,
|
|
1296
|
-
configuration: configuration
|
|
1297
|
-
});
|
|
1298
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1299
|
-
return [2 /*return*/, {
|
|
1300
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1301
|
-
options: localVarRequestOptions,
|
|
1302
|
-
}];
|
|
1303
|
-
}
|
|
1304
|
-
});
|
|
1305
|
-
});
|
|
1306
|
-
},
|
|
1307
|
-
/**
|
|
1308
|
-
*
|
|
1309
|
-
* @summary Import target allocation based on portfolio group
|
|
1310
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to create the target asset.
|
|
1311
|
-
* @param {*} [options] Override http request option.
|
|
1312
|
-
* @throws {RequiredError}
|
|
1313
|
-
*/
|
|
1314
|
-
importModelPortfolio: function (portfolioGroupId, options) {
|
|
1315
|
-
if (options === void 0) { options = {}; }
|
|
1316
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1317
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1318
|
-
return __generator(this, function (_a) {
|
|
1319
|
-
switch (_a.label) {
|
|
1320
|
-
case 0:
|
|
1321
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1322
|
-
(0, common_1.assertParamExists)('importModelPortfolio', 'portfolioGroupId', portfolioGroupId);
|
|
1323
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/import"
|
|
1324
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
1325
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1326
|
-
if (configuration) {
|
|
1327
|
-
baseOptions = configuration.baseOptions;
|
|
1328
|
-
}
|
|
1329
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1330
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1331
|
-
localVarQueryParameter = {};
|
|
1332
|
-
// authentication PartnerClientId required
|
|
1333
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1334
|
-
// authentication PartnerSignature required
|
|
1335
|
-
];
|
|
1336
|
-
case 1:
|
|
1337
|
-
// authentication PartnerClientId required
|
|
1338
|
-
_a.sent();
|
|
1339
|
-
// authentication PartnerSignature required
|
|
1340
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1341
|
-
// authentication PartnerTimestamp required
|
|
1342
|
-
];
|
|
1343
|
-
case 2:
|
|
1344
|
-
// authentication PartnerSignature required
|
|
1345
|
-
_a.sent();
|
|
1346
|
-
// authentication PartnerTimestamp required
|
|
1347
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1348
|
-
case 3:
|
|
1349
|
-
// authentication PartnerTimestamp required
|
|
1350
|
-
_a.sent();
|
|
1351
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1352
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1353
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1354
|
-
queryParameters: localVarQueryParameter,
|
|
1355
|
-
requestConfig: localVarRequestOptions,
|
|
1356
|
-
path: localVarPath,
|
|
1357
|
-
configuration: configuration
|
|
1358
|
-
});
|
|
1359
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1360
|
-
return [2 /*return*/, {
|
|
1361
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1362
|
-
options: localVarRequestOptions,
|
|
1363
|
-
}];
|
|
1364
|
-
}
|
|
1365
|
-
});
|
|
1366
|
-
});
|
|
1367
|
-
},
|
|
1368
|
-
/**
|
|
1369
|
-
*
|
|
1370
|
-
* @summary List all portfolio groups
|
|
1371
|
-
* @param {string} userId
|
|
1372
|
-
* @param {string} userSecret
|
|
1373
|
-
* @param {*} [options] Override http request option.
|
|
1374
|
-
* @throws {RequiredError}
|
|
1375
|
-
*/
|
|
1376
|
-
list: function (userId, userSecret, options) {
|
|
1377
|
-
if (options === void 0) { options = {}; }
|
|
1378
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1379
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1380
|
-
return __generator(this, function (_a) {
|
|
1381
|
-
switch (_a.label) {
|
|
1382
|
-
case 0:
|
|
1383
|
-
// verify required parameter 'userId' is not null or undefined
|
|
1384
|
-
(0, common_1.assertParamExists)('list', 'userId', userId);
|
|
1385
|
-
// verify required parameter 'userSecret' is not null or undefined
|
|
1386
|
-
(0, common_1.assertParamExists)('list', 'userSecret', userSecret);
|
|
1387
|
-
localVarPath = "/portfolioGroups";
|
|
1388
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1389
|
-
if (configuration) {
|
|
1390
|
-
baseOptions = configuration.baseOptions;
|
|
1391
|
-
}
|
|
1392
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1393
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1394
|
-
localVarQueryParameter = {};
|
|
1395
|
-
// authentication PartnerClientId required
|
|
1396
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1397
|
-
// authentication PartnerSignature required
|
|
1398
|
-
];
|
|
1399
|
-
case 1:
|
|
1400
|
-
// authentication PartnerClientId required
|
|
1401
|
-
_a.sent();
|
|
1402
|
-
// authentication PartnerSignature required
|
|
1403
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1404
|
-
// authentication PartnerTimestamp required
|
|
1405
|
-
];
|
|
1406
|
-
case 2:
|
|
1407
|
-
// authentication PartnerSignature required
|
|
1408
|
-
_a.sent();
|
|
1409
|
-
// authentication PartnerTimestamp required
|
|
1410
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1411
|
-
case 3:
|
|
1412
|
-
// authentication PartnerTimestamp required
|
|
1413
|
-
_a.sent();
|
|
1414
|
-
if (userId !== undefined) {
|
|
1415
|
-
localVarQueryParameter['userId'] = userId;
|
|
1416
|
-
}
|
|
1417
|
-
if (userSecret !== undefined) {
|
|
1418
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
1419
|
-
}
|
|
1420
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1421
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1422
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1423
|
-
queryParameters: localVarQueryParameter,
|
|
1424
|
-
requestConfig: localVarRequestOptions,
|
|
1425
|
-
path: localVarPath,
|
|
1426
|
-
configuration: configuration
|
|
1427
|
-
});
|
|
1428
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1429
|
-
return [2 /*return*/, {
|
|
1430
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1431
|
-
options: localVarRequestOptions,
|
|
1432
|
-
}];
|
|
1433
|
-
}
|
|
1434
|
-
});
|
|
1435
|
-
});
|
|
1436
|
-
},
|
|
1437
|
-
/**
|
|
1438
|
-
*
|
|
1439
|
-
* @summary List of model asset class
|
|
1440
|
-
* @param {string} userId
|
|
1441
|
-
* @param {string} userSecret
|
|
1442
|
-
* @param {*} [options] Override http request option.
|
|
1443
|
-
* @throws {RequiredError}
|
|
1444
|
-
*/
|
|
1445
|
-
listAssetClasses: function (userId, userSecret, options) {
|
|
1446
|
-
if (options === void 0) { options = {}; }
|
|
1447
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1448
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1449
|
-
return __generator(this, function (_a) {
|
|
1450
|
-
switch (_a.label) {
|
|
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);
|
|
1456
|
-
localVarPath = "/modelAssetClass";
|
|
1457
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1458
|
-
if (configuration) {
|
|
1459
|
-
baseOptions = configuration.baseOptions;
|
|
1460
|
-
}
|
|
1461
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1462
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1463
|
-
localVarQueryParameter = {};
|
|
1464
|
-
// authentication PartnerClientId required
|
|
1465
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1466
|
-
// authentication PartnerSignature required
|
|
1467
|
-
];
|
|
1468
|
-
case 1:
|
|
1469
|
-
// authentication PartnerClientId required
|
|
1470
|
-
_a.sent();
|
|
1471
|
-
// authentication PartnerSignature required
|
|
1472
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1473
|
-
// authentication PartnerTimestamp required
|
|
1474
|
-
];
|
|
1475
|
-
case 2:
|
|
1476
|
-
// authentication PartnerSignature required
|
|
1477
|
-
_a.sent();
|
|
1478
|
-
// authentication PartnerTimestamp required
|
|
1479
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1480
|
-
case 3:
|
|
1481
|
-
// authentication PartnerTimestamp required
|
|
1482
|
-
_a.sent();
|
|
1483
|
-
if (userId !== undefined) {
|
|
1484
|
-
localVarQueryParameter['userId'] = userId;
|
|
1485
|
-
}
|
|
1486
|
-
if (userSecret !== undefined) {
|
|
1487
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
1488
|
-
}
|
|
1489
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1490
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1491
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1492
|
-
queryParameters: localVarQueryParameter,
|
|
1493
|
-
requestConfig: localVarRequestOptions,
|
|
1494
|
-
path: localVarPath,
|
|
1495
|
-
configuration: configuration
|
|
1496
|
-
});
|
|
1497
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1498
|
-
return [2 /*return*/, {
|
|
1499
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1500
|
-
options: localVarRequestOptions,
|
|
1501
|
-
}];
|
|
1502
|
-
}
|
|
1503
|
-
});
|
|
1504
|
-
});
|
|
1505
|
-
},
|
|
1506
|
-
/**
|
|
1507
|
-
*
|
|
1508
|
-
* @summary List of trades to make to rebalance portfolio group
|
|
1509
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup to perform rebalancing calculations
|
|
1510
|
-
* @param {*} [options] Override http request option.
|
|
1511
|
-
* @throws {RequiredError}
|
|
1512
|
-
*/
|
|
1513
|
-
listCalculatedTrades: function (portfolioGroupId, options) {
|
|
1514
|
-
if (options === void 0) { options = {}; }
|
|
1515
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1516
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1517
|
-
return __generator(this, function (_a) {
|
|
1518
|
-
switch (_a.label) {
|
|
1519
|
-
case 0:
|
|
1520
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1521
|
-
(0, common_1.assertParamExists)('listCalculatedTrades', 'portfolioGroupId', portfolioGroupId);
|
|
1522
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/calculatedtrades"
|
|
1523
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
1524
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1525
|
-
if (configuration) {
|
|
1526
|
-
baseOptions = configuration.baseOptions;
|
|
1527
|
-
}
|
|
1528
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1529
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1530
|
-
localVarQueryParameter = {};
|
|
1531
|
-
// authentication PartnerClientId required
|
|
1532
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1533
|
-
// authentication PartnerSignature required
|
|
1534
|
-
];
|
|
1535
|
-
case 1:
|
|
1536
|
-
// authentication PartnerClientId required
|
|
1537
|
-
_a.sent();
|
|
1538
|
-
// authentication PartnerSignature required
|
|
1539
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1540
|
-
// authentication PartnerTimestamp required
|
|
1541
|
-
];
|
|
1542
|
-
case 2:
|
|
1543
|
-
// authentication PartnerSignature required
|
|
1544
|
-
_a.sent();
|
|
1545
|
-
// authentication PartnerTimestamp required
|
|
1546
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1547
|
-
case 3:
|
|
1548
|
-
// authentication PartnerTimestamp required
|
|
1549
|
-
_a.sent();
|
|
1550
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1551
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1552
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1553
|
-
queryParameters: localVarQueryParameter,
|
|
1554
|
-
requestConfig: localVarRequestOptions,
|
|
1555
|
-
path: localVarPath,
|
|
1556
|
-
configuration: configuration
|
|
1557
|
-
});
|
|
1558
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1559
|
-
return [2 /*return*/, {
|
|
1560
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1561
|
-
options: localVarRequestOptions,
|
|
1562
|
-
}];
|
|
1563
|
-
}
|
|
1564
|
-
});
|
|
1565
|
-
});
|
|
1566
|
-
},
|
|
1567
|
-
/**
|
|
1568
|
-
*
|
|
1569
|
-
* @summary List of model portfolio
|
|
1570
|
-
* @param {*} [options] Override http request option.
|
|
1571
|
-
* @throws {RequiredError}
|
|
1572
|
-
*/
|
|
1573
|
-
listModelPortfolio: function (options) {
|
|
1574
|
-
if (options === void 0) { options = {}; }
|
|
1575
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1576
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1577
|
-
return __generator(this, function (_a) {
|
|
1578
|
-
switch (_a.label) {
|
|
1579
|
-
case 0:
|
|
1580
|
-
localVarPath = "/modelPortfolio";
|
|
1581
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1582
|
-
if (configuration) {
|
|
1583
|
-
baseOptions = configuration.baseOptions;
|
|
1584
|
-
}
|
|
1585
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1586
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1587
|
-
localVarQueryParameter = {};
|
|
1588
|
-
// authentication PartnerClientId required
|
|
1589
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1590
|
-
// authentication PartnerSignature required
|
|
1591
|
-
];
|
|
1592
|
-
case 1:
|
|
1593
|
-
// authentication PartnerClientId required
|
|
1594
|
-
_a.sent();
|
|
1595
|
-
// authentication PartnerSignature required
|
|
1596
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1597
|
-
// authentication PartnerTimestamp required
|
|
1598
|
-
];
|
|
1599
|
-
case 2:
|
|
1600
|
-
// authentication PartnerSignature required
|
|
1601
|
-
_a.sent();
|
|
1602
|
-
// authentication PartnerTimestamp required
|
|
1603
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1604
|
-
case 3:
|
|
1605
|
-
// authentication PartnerTimestamp required
|
|
1606
|
-
_a.sent();
|
|
1607
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1608
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1609
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1610
|
-
queryParameters: localVarQueryParameter,
|
|
1611
|
-
requestConfig: localVarRequestOptions,
|
|
1612
|
-
path: localVarPath,
|
|
1613
|
-
configuration: configuration
|
|
1614
|
-
});
|
|
1615
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1616
|
-
return [2 /*return*/, {
|
|
1617
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1618
|
-
options: localVarRequestOptions,
|
|
1619
|
-
}];
|
|
1620
|
-
}
|
|
1621
|
-
});
|
|
1622
|
-
});
|
|
1623
|
-
},
|
|
1624
|
-
/**
|
|
1625
|
-
*
|
|
1626
|
-
* @summary Get all accounts associated with a portfolio group
|
|
1627
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which the accounts are linked.
|
|
1628
|
-
* @param {*} [options] Override http request option.
|
|
1629
|
-
* @throws {RequiredError}
|
|
1630
|
-
*/
|
|
1631
|
-
listPortfolioAccounts: function (portfolioGroupId, options) {
|
|
1632
|
-
if (options === void 0) { options = {}; }
|
|
1633
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1634
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1635
|
-
return __generator(this, function (_a) {
|
|
1636
|
-
switch (_a.label) {
|
|
1637
|
-
case 0:
|
|
1638
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1639
|
-
(0, common_1.assertParamExists)('listPortfolioAccounts', 'portfolioGroupId', portfolioGroupId);
|
|
1640
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/accounts"
|
|
1641
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
1642
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1643
|
-
if (configuration) {
|
|
1644
|
-
baseOptions = configuration.baseOptions;
|
|
1645
|
-
}
|
|
1646
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1647
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1648
|
-
localVarQueryParameter = {};
|
|
1649
|
-
// authentication PartnerClientId required
|
|
1650
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1651
|
-
// authentication PartnerSignature required
|
|
1652
|
-
];
|
|
1653
|
-
case 1:
|
|
1654
|
-
// authentication PartnerClientId required
|
|
1655
|
-
_a.sent();
|
|
1656
|
-
// authentication PartnerSignature required
|
|
1657
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1658
|
-
// authentication PartnerTimestamp required
|
|
1659
|
-
];
|
|
1660
|
-
case 2:
|
|
1661
|
-
// authentication PartnerSignature required
|
|
1662
|
-
_a.sent();
|
|
1663
|
-
// authentication PartnerTimestamp required
|
|
1664
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1665
|
-
case 3:
|
|
1666
|
-
// authentication PartnerTimestamp required
|
|
1667
|
-
_a.sent();
|
|
1668
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1669
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1670
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1671
|
-
queryParameters: localVarQueryParameter,
|
|
1672
|
-
requestConfig: localVarRequestOptions,
|
|
1673
|
-
path: localVarPath,
|
|
1674
|
-
configuration: configuration
|
|
1675
|
-
});
|
|
1676
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1677
|
-
return [2 /*return*/, {
|
|
1678
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1679
|
-
options: localVarRequestOptions,
|
|
1680
|
-
}];
|
|
1681
|
-
}
|
|
1682
|
-
});
|
|
1683
|
-
});
|
|
1684
|
-
},
|
|
1685
|
-
/**
|
|
1686
|
-
*
|
|
1687
|
-
* @summary Updates model portfolio object
|
|
1688
|
-
* @param {string} modelPortfolioId The ID of the model portfolio to update.
|
|
1689
|
-
* @param {ModelPortfolioDetails} modelPortfolioDetails Use this endpoint change model asset class name and to add or remove a model portfolio security/model portfolio asset class. <br /><br /> * The model portfolio name and model portfolio model type is required. <br /> * The model portfolio model type must be either 0 or 1. [0 -> Securities based, 1 -> Asset Class based] <br /><br /> * If the model portfolio type is 0, the model portfolio asset class must be an empty array. <br /> * If the model portfolio type is 1, the model portfolio security must be an empty array. <br /><br /> * When updating the model portfolio security, the percent is required. Only the symbol id is required for the symbol object <br /> * When updating the model portfolio asset classes, the percent is required. Only the model asset class id is required for the model asset class object <br /><br /> * To remove all model portfolio securities or model portfolio asset class, set then to an empty array
|
|
1690
|
-
* @param {*} [options] Override http request option.
|
|
1691
|
-
* @throws {RequiredError}
|
|
1692
|
-
*/
|
|
1693
|
-
modifyModelPortfolioById: function (modelPortfolioId, modelPortfolioDetails, options) {
|
|
1694
|
-
if (options === void 0) { options = {}; }
|
|
1695
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1696
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1697
|
-
return __generator(this, function (_a) {
|
|
1698
|
-
switch (_a.label) {
|
|
1699
|
-
case 0:
|
|
1700
|
-
// verify required parameter 'modelPortfolioId' is not null or undefined
|
|
1701
|
-
(0, common_1.assertParamExists)('modifyModelPortfolioById', 'modelPortfolioId', modelPortfolioId);
|
|
1702
|
-
// verify required parameter 'modelPortfolioDetails' is not null or undefined
|
|
1703
|
-
(0, common_1.assertParamExists)('modifyModelPortfolioById', 'modelPortfolioDetails', modelPortfolioDetails);
|
|
1704
|
-
localVarPath = "/modelPortfolio/{modelPortfolioId}"
|
|
1705
|
-
.replace("{".concat("modelPortfolioId", "}"), encodeURIComponent(String(modelPortfolioId)));
|
|
1706
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1707
|
-
if (configuration) {
|
|
1708
|
-
baseOptions = configuration.baseOptions;
|
|
1709
|
-
}
|
|
1710
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1711
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1712
|
-
localVarQueryParameter = {};
|
|
1713
|
-
// authentication PartnerClientId required
|
|
1714
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1715
|
-
// authentication PartnerSignature required
|
|
1716
|
-
];
|
|
1717
|
-
case 1:
|
|
1718
|
-
// authentication PartnerClientId required
|
|
1719
|
-
_a.sent();
|
|
1720
|
-
// authentication PartnerSignature required
|
|
1721
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1722
|
-
// authentication PartnerTimestamp required
|
|
1723
|
-
];
|
|
1724
|
-
case 2:
|
|
1725
|
-
// authentication PartnerSignature required
|
|
1726
|
-
_a.sent();
|
|
1727
|
-
// authentication PartnerTimestamp required
|
|
1728
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1729
|
-
case 3:
|
|
1730
|
-
// authentication PartnerTimestamp required
|
|
1731
|
-
_a.sent();
|
|
1732
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1733
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1734
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1735
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1736
|
-
requestBody: modelPortfolioDetails,
|
|
1737
|
-
queryParameters: localVarQueryParameter,
|
|
1738
|
-
requestConfig: localVarRequestOptions,
|
|
1739
|
-
path: localVarPath,
|
|
1740
|
-
configuration: configuration
|
|
1741
|
-
});
|
|
1742
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(modelPortfolioDetails, localVarRequestOptions, configuration);
|
|
1743
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1744
|
-
return [2 /*return*/, {
|
|
1745
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1746
|
-
options: localVarRequestOptions,
|
|
1747
|
-
}];
|
|
1748
|
-
}
|
|
1749
|
-
});
|
|
1750
|
-
});
|
|
1751
|
-
},
|
|
1752
|
-
/**
|
|
1753
|
-
*
|
|
1754
|
-
* @summary Update an existing target portfolio.
|
|
1755
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup to update.
|
|
1756
|
-
* @param {{ [key: string]: any; }} requestBody
|
|
1757
|
-
* @param {*} [options] Override http request option.
|
|
1758
|
-
* @throws {RequiredError}
|
|
1759
|
-
*/
|
|
1760
|
-
savePortfolio: function (portfolioGroupId, requestBody, options) {
|
|
1761
|
-
if (options === void 0) { options = {}; }
|
|
1762
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1763
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1764
|
-
return __generator(this, function (_a) {
|
|
1765
|
-
switch (_a.label) {
|
|
1766
|
-
case 0:
|
|
1767
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1768
|
-
(0, common_1.assertParamExists)('savePortfolio', 'portfolioGroupId', portfolioGroupId);
|
|
1769
|
-
// verify required parameter 'requestBody' is not null or undefined
|
|
1770
|
-
(0, common_1.assertParamExists)('savePortfolio', 'requestBody', requestBody);
|
|
1771
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}"
|
|
1772
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
1773
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1774
|
-
if (configuration) {
|
|
1775
|
-
baseOptions = configuration.baseOptions;
|
|
1776
|
-
}
|
|
1777
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1778
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1779
|
-
localVarQueryParameter = {};
|
|
1780
|
-
// authentication PartnerClientId required
|
|
1781
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1782
|
-
// authentication PartnerSignature required
|
|
1783
|
-
];
|
|
1784
|
-
case 1:
|
|
1785
|
-
// authentication PartnerClientId required
|
|
1786
|
-
_a.sent();
|
|
1787
|
-
// authentication PartnerSignature required
|
|
1788
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1789
|
-
// authentication PartnerTimestamp required
|
|
1790
|
-
];
|
|
1791
|
-
case 2:
|
|
1792
|
-
// authentication PartnerSignature required
|
|
1793
|
-
_a.sent();
|
|
1794
|
-
// authentication PartnerTimestamp required
|
|
1795
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1796
|
-
case 3:
|
|
1797
|
-
// authentication PartnerTimestamp required
|
|
1798
|
-
_a.sent();
|
|
1799
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1800
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1801
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1802
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1803
|
-
requestBody: requestBody,
|
|
1804
|
-
queryParameters: localVarQueryParameter,
|
|
1805
|
-
requestConfig: localVarRequestOptions,
|
|
1806
|
-
path: localVarPath,
|
|
1807
|
-
configuration: configuration
|
|
1808
|
-
});
|
|
1809
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
1810
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1811
|
-
return [2 /*return*/, {
|
|
1812
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1813
|
-
options: localVarRequestOptions,
|
|
1814
|
-
}];
|
|
1815
|
-
}
|
|
1816
|
-
});
|
|
1817
|
-
});
|
|
1818
|
-
},
|
|
1819
|
-
/**
|
|
1820
|
-
*
|
|
1821
|
-
* @summary Search for symbols limited to brokerages under the specified portfolio group
|
|
1822
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup to search under
|
|
1823
|
-
* @param {SymbolQuery} [symbolQuery]
|
|
1824
|
-
* @param {*} [options] Override http request option.
|
|
1825
|
-
* @throws {RequiredError}
|
|
1826
|
-
*/
|
|
1827
|
-
searchPortfolioSymbols: function (portfolioGroupId, symbolQuery, options) {
|
|
1828
|
-
if (options === void 0) { options = {}; }
|
|
1829
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1830
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1831
|
-
return __generator(this, function (_a) {
|
|
1832
|
-
switch (_a.label) {
|
|
1833
|
-
case 0:
|
|
1834
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1835
|
-
(0, common_1.assertParamExists)('searchPortfolioSymbols', 'portfolioGroupId', portfolioGroupId);
|
|
1836
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/symbols"
|
|
1837
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
1838
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1839
|
-
if (configuration) {
|
|
1840
|
-
baseOptions = configuration.baseOptions;
|
|
1841
|
-
}
|
|
1842
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1843
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1844
|
-
localVarQueryParameter = {};
|
|
1845
|
-
// authentication PartnerClientId required
|
|
1846
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1847
|
-
// authentication PartnerSignature required
|
|
1848
|
-
];
|
|
1849
|
-
case 1:
|
|
1850
|
-
// authentication PartnerClientId required
|
|
1851
|
-
_a.sent();
|
|
1852
|
-
// authentication PartnerSignature required
|
|
1853
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1854
|
-
// authentication PartnerTimestamp required
|
|
1855
|
-
];
|
|
1856
|
-
case 2:
|
|
1857
|
-
// authentication PartnerSignature required
|
|
1858
|
-
_a.sent();
|
|
1859
|
-
// authentication PartnerTimestamp required
|
|
1860
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1861
|
-
case 3:
|
|
1862
|
-
// authentication PartnerTimestamp required
|
|
1863
|
-
_a.sent();
|
|
1864
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1865
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1866
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1867
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1868
|
-
requestBody: symbolQuery,
|
|
1869
|
-
queryParameters: localVarQueryParameter,
|
|
1870
|
-
requestConfig: localVarRequestOptions,
|
|
1871
|
-
path: localVarPath,
|
|
1872
|
-
configuration: configuration
|
|
1873
|
-
});
|
|
1874
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(symbolQuery, localVarRequestOptions, configuration);
|
|
1875
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1876
|
-
return [2 /*return*/, {
|
|
1877
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1878
|
-
options: localVarRequestOptions,
|
|
1879
|
-
}];
|
|
1880
|
-
}
|
|
1881
|
-
});
|
|
1882
|
-
});
|
|
1883
|
-
},
|
|
1884
|
-
/**
|
|
1885
|
-
*
|
|
1886
|
-
* @summary Set a new list of target assets under the specified PortfolioGroup. All existing target assets under this portfolio group will be replaced with the new list.
|
|
1887
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to create the target asset.
|
|
1888
|
-
* @param {Array<TargetAsset>} [targetAsset]
|
|
1889
|
-
* @param {*} [options] Override http request option.
|
|
1890
|
-
* @throws {RequiredError}
|
|
1891
|
-
*/
|
|
1892
|
-
setPortfolioTargets: function (portfolioGroupId, targetAsset, options) {
|
|
1893
|
-
if (options === void 0) { options = {}; }
|
|
1894
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1895
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1896
|
-
return __generator(this, function (_a) {
|
|
1897
|
-
switch (_a.label) {
|
|
1898
|
-
case 0:
|
|
1899
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
1900
|
-
(0, common_1.assertParamExists)('setPortfolioTargets', 'portfolioGroupId', portfolioGroupId);
|
|
1901
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/targets"
|
|
1902
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
1903
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1904
|
-
if (configuration) {
|
|
1905
|
-
baseOptions = configuration.baseOptions;
|
|
1906
|
-
}
|
|
1907
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1908
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1909
|
-
localVarQueryParameter = {};
|
|
1910
|
-
// authentication PartnerClientId required
|
|
1911
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1912
|
-
// authentication PartnerSignature required
|
|
1913
|
-
];
|
|
1914
|
-
case 1:
|
|
1915
|
-
// authentication PartnerClientId required
|
|
1916
|
-
_a.sent();
|
|
1917
|
-
// authentication PartnerSignature required
|
|
1918
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1919
|
-
// authentication PartnerTimestamp required
|
|
1920
|
-
];
|
|
1921
|
-
case 2:
|
|
1922
|
-
// authentication PartnerSignature required
|
|
1923
|
-
_a.sent();
|
|
1924
|
-
// authentication PartnerTimestamp required
|
|
1925
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1926
|
-
case 3:
|
|
1927
|
-
// authentication PartnerTimestamp required
|
|
1928
|
-
_a.sent();
|
|
1929
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1930
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1931
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1932
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
1933
|
-
requestBody: targetAsset,
|
|
1934
|
-
queryParameters: localVarQueryParameter,
|
|
1935
|
-
requestConfig: localVarRequestOptions,
|
|
1936
|
-
path: localVarPath,
|
|
1937
|
-
configuration: configuration
|
|
1938
|
-
});
|
|
1939
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(targetAsset, localVarRequestOptions, configuration);
|
|
1940
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1941
|
-
return [2 /*return*/, {
|
|
1942
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1943
|
-
options: localVarRequestOptions,
|
|
1944
|
-
}];
|
|
1945
|
-
}
|
|
1946
|
-
});
|
|
1947
|
-
});
|
|
1948
|
-
},
|
|
1949
|
-
/**
|
|
1950
|
-
*
|
|
1951
|
-
* @summary Updates model asset class objects
|
|
1952
|
-
* @param {string} modelAssetClassId The ID of the model asset class to update.
|
|
1953
|
-
* @param {string} userId
|
|
1954
|
-
* @param {string} userSecret
|
|
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
|
|
1956
|
-
* @param {*} [options] Override http request option.
|
|
1957
|
-
* @throws {RequiredError}
|
|
1958
|
-
*/
|
|
1959
|
-
updateAssetClass: function (modelAssetClassId, userId, userSecret, modelAssetClassDetails, options) {
|
|
1960
|
-
if (options === void 0) { options = {}; }
|
|
1961
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1962
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1963
|
-
return __generator(this, function (_a) {
|
|
1964
|
-
switch (_a.label) {
|
|
1965
|
-
case 0:
|
|
1966
|
-
// verify required parameter 'modelAssetClassId' is not null or undefined
|
|
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);
|
|
1972
|
-
// verify required parameter 'modelAssetClassDetails' is not null or undefined
|
|
1973
|
-
(0, common_1.assertParamExists)('updateAssetClass', 'modelAssetClassDetails', modelAssetClassDetails);
|
|
1974
|
-
localVarPath = "/modelAssetClass/{modelAssetClassId}"
|
|
1975
|
-
.replace("{".concat("modelAssetClassId", "}"), encodeURIComponent(String(modelAssetClassId)));
|
|
1976
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1977
|
-
if (configuration) {
|
|
1978
|
-
baseOptions = configuration.baseOptions;
|
|
1979
|
-
}
|
|
1980
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1981
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
1982
|
-
localVarQueryParameter = {};
|
|
1983
|
-
// authentication PartnerClientId required
|
|
1984
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
1985
|
-
// authentication PartnerSignature required
|
|
1986
|
-
];
|
|
1987
|
-
case 1:
|
|
1988
|
-
// authentication PartnerClientId required
|
|
1989
|
-
_a.sent();
|
|
1990
|
-
// authentication PartnerSignature required
|
|
1991
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
1992
|
-
// authentication PartnerTimestamp required
|
|
1993
|
-
];
|
|
1994
|
-
case 2:
|
|
1995
|
-
// authentication PartnerSignature required
|
|
1996
|
-
_a.sent();
|
|
1997
|
-
// authentication PartnerTimestamp required
|
|
1998
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
1999
|
-
case 3:
|
|
2000
|
-
// authentication PartnerTimestamp required
|
|
2001
|
-
_a.sent();
|
|
2002
|
-
if (userId !== undefined) {
|
|
2003
|
-
localVarQueryParameter['userId'] = userId;
|
|
2004
|
-
}
|
|
2005
|
-
if (userSecret !== undefined) {
|
|
2006
|
-
localVarQueryParameter['userSecret'] = userSecret;
|
|
2007
|
-
}
|
|
2008
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2009
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2010
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2011
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
2012
|
-
requestBody: modelAssetClassDetails,
|
|
2013
|
-
queryParameters: localVarQueryParameter,
|
|
2014
|
-
requestConfig: localVarRequestOptions,
|
|
2015
|
-
path: localVarPath,
|
|
2016
|
-
configuration: configuration
|
|
2017
|
-
});
|
|
2018
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(modelAssetClassDetails, localVarRequestOptions, configuration);
|
|
2019
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2020
|
-
return [2 /*return*/, {
|
|
2021
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2022
|
-
options: localVarRequestOptions,
|
|
2023
|
-
}];
|
|
2024
|
-
}
|
|
2025
|
-
});
|
|
2026
|
-
});
|
|
2027
|
-
},
|
|
2028
|
-
/**
|
|
2029
|
-
*
|
|
2030
|
-
* @summary Updates portfolio group settings
|
|
2031
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to patch the settings.
|
|
2032
|
-
* @param {*} [options] Override http request option.
|
|
2033
|
-
* @throws {RequiredError}
|
|
2034
|
-
*/
|
|
2035
|
-
updatePortfolioSettings: function (portfolioGroupId, options) {
|
|
2036
|
-
if (options === void 0) { options = {}; }
|
|
2037
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
2038
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2039
|
-
return __generator(this, function (_a) {
|
|
2040
|
-
switch (_a.label) {
|
|
2041
|
-
case 0:
|
|
2042
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
2043
|
-
(0, common_1.assertParamExists)('updatePortfolioSettings', 'portfolioGroupId', portfolioGroupId);
|
|
2044
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/settings"
|
|
2045
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)));
|
|
2046
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2047
|
-
if (configuration) {
|
|
2048
|
-
baseOptions = configuration.baseOptions;
|
|
2049
|
-
}
|
|
2050
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
2051
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
2052
|
-
localVarQueryParameter = {};
|
|
2053
|
-
// authentication PartnerClientId required
|
|
2054
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
2055
|
-
// authentication PartnerSignature required
|
|
2056
|
-
];
|
|
2057
|
-
case 1:
|
|
2058
|
-
// authentication PartnerClientId required
|
|
2059
|
-
_a.sent();
|
|
2060
|
-
// authentication PartnerSignature required
|
|
2061
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
2062
|
-
// authentication PartnerTimestamp required
|
|
2063
|
-
];
|
|
2064
|
-
case 2:
|
|
2065
|
-
// authentication PartnerSignature required
|
|
2066
|
-
_a.sent();
|
|
2067
|
-
// authentication PartnerTimestamp required
|
|
2068
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
2069
|
-
case 3:
|
|
2070
|
-
// authentication PartnerTimestamp required
|
|
2071
|
-
_a.sent();
|
|
2072
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2073
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2074
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
2075
|
-
queryParameters: localVarQueryParameter,
|
|
2076
|
-
requestConfig: localVarRequestOptions,
|
|
2077
|
-
path: localVarPath,
|
|
2078
|
-
configuration: configuration
|
|
2079
|
-
});
|
|
2080
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2081
|
-
return [2 /*return*/, {
|
|
2082
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2083
|
-
options: localVarRequestOptions,
|
|
2084
|
-
}];
|
|
2085
|
-
}
|
|
2086
|
-
});
|
|
2087
|
-
});
|
|
2088
|
-
},
|
|
2089
|
-
/**
|
|
2090
|
-
*
|
|
2091
|
-
* @summary Update a TargetAsset under the specified PortfolioGroup.
|
|
2092
|
-
* @param {string} portfolioGroupId The ID of the PortfolioGroup under which to patch the target asset.
|
|
2093
|
-
* @param {string} targetAssetId The ID of the TargetAsset to patch.
|
|
2094
|
-
* @param {TargetAsset} targetAsset
|
|
2095
|
-
* @param {*} [options] Override http request option.
|
|
2096
|
-
* @throws {RequiredError}
|
|
2097
|
-
*/
|
|
2098
|
-
updatePortfolioTargetById: function (portfolioGroupId, targetAssetId, targetAsset, options) {
|
|
2099
|
-
if (options === void 0) { options = {}; }
|
|
2100
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
2101
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2102
|
-
return __generator(this, function (_a) {
|
|
2103
|
-
switch (_a.label) {
|
|
2104
|
-
case 0:
|
|
2105
|
-
// verify required parameter 'portfolioGroupId' is not null or undefined
|
|
2106
|
-
(0, common_1.assertParamExists)('updatePortfolioTargetById', 'portfolioGroupId', portfolioGroupId);
|
|
2107
|
-
// verify required parameter 'targetAssetId' is not null or undefined
|
|
2108
|
-
(0, common_1.assertParamExists)('updatePortfolioTargetById', 'targetAssetId', targetAssetId);
|
|
2109
|
-
// verify required parameter 'targetAsset' is not null or undefined
|
|
2110
|
-
(0, common_1.assertParamExists)('updatePortfolioTargetById', 'targetAsset', targetAsset);
|
|
2111
|
-
localVarPath = "/portfolioGroups/{portfolioGroupId}/targets/{targetAssetId}"
|
|
2112
|
-
.replace("{".concat("portfolioGroupId", "}"), encodeURIComponent(String(portfolioGroupId)))
|
|
2113
|
-
.replace("{".concat("targetAssetId", "}"), encodeURIComponent(String(targetAssetId)));
|
|
2114
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2115
|
-
if (configuration) {
|
|
2116
|
-
baseOptions = configuration.baseOptions;
|
|
2117
|
-
}
|
|
2118
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
2119
|
-
localVarHeaderParameter = configuration ? { "User-Agent": configuration.userAgent } : {};
|
|
2120
|
-
localVarQueryParameter = {};
|
|
2121
|
-
// authentication PartnerClientId required
|
|
2122
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "clientId", configuration: configuration })
|
|
2123
|
-
// authentication PartnerSignature required
|
|
2124
|
-
];
|
|
2125
|
-
case 1:
|
|
2126
|
-
// authentication PartnerClientId required
|
|
2127
|
-
_a.sent();
|
|
2128
|
-
// authentication PartnerSignature required
|
|
2129
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarHeaderParameter, keyParamName: "Signature", configuration: configuration })
|
|
2130
|
-
// authentication PartnerTimestamp required
|
|
2131
|
-
];
|
|
2132
|
-
case 2:
|
|
2133
|
-
// authentication PartnerSignature required
|
|
2134
|
-
_a.sent();
|
|
2135
|
-
// authentication PartnerTimestamp required
|
|
2136
|
-
return [4 /*yield*/, (0, common_1.setApiKeyToObject)({ object: localVarQueryParameter, keyParamName: "timestamp", configuration: configuration })];
|
|
2137
|
-
case 3:
|
|
2138
|
-
// authentication PartnerTimestamp required
|
|
2139
|
-
_a.sent();
|
|
2140
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2141
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2142
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2143
|
-
(0, requestBeforeHook_1.requestBeforeHook)({
|
|
2144
|
-
requestBody: targetAsset,
|
|
2145
|
-
queryParameters: localVarQueryParameter,
|
|
2146
|
-
requestConfig: localVarRequestOptions,
|
|
2147
|
-
path: localVarPath,
|
|
2148
|
-
configuration: configuration
|
|
2149
|
-
});
|
|
2150
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(targetAsset, localVarRequestOptions, configuration);
|
|
2151
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2152
|
-
return [2 /*return*/, {
|
|
2153
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2154
|
-
options: localVarRequestOptions,
|
|
2155
|
-
}];
|
|
2156
|
-
}
|
|
2157
|
-
});
|
|
2158
|
-
});
|
|
2159
|
-
},
|
|
2160
|
-
};
|
|
2161
|
-
};
|
|
2162
|
-
exports.PortfolioManagementApiAxiosParamCreator = PortfolioManagementApiAxiosParamCreator;
|
|
2163
|
-
/**
|
|
2164
|
-
* PortfolioManagementApi - functional programming interface
|
|
2165
|
-
* @export
|
|
2166
|
-
*/
|
|
2167
|
-
var PortfolioManagementApiFp = function (configuration) {
|
|
2168
|
-
var localVarAxiosParamCreator = (0, exports.PortfolioManagementApiAxiosParamCreator)(configuration);
|
|
2169
|
-
return {
|
|
2170
|
-
/**
|
|
2171
|
-
*
|
|
2172
|
-
* @summary Adds an asset to exclude to a portfolio group
|
|
2173
|
-
* @param {PortfolioManagementApiAddPortfolioExcludedAssetRequest} requestParameters Request parameters.
|
|
2174
|
-
* @param {*} [options] Override http request option.
|
|
2175
|
-
* @throws {RequiredError}
|
|
2176
|
-
*/
|
|
2177
|
-
addPortfolioExcludedAsset: function (requestParameters, options) {
|
|
2178
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2179
|
-
var localVarAxiosArgs;
|
|
2180
|
-
return __generator(this, function (_a) {
|
|
2181
|
-
switch (_a.label) {
|
|
2182
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addPortfolioExcludedAsset(requestParameters.portfolioGroupId, requestParameters, options)];
|
|
2183
|
-
case 1:
|
|
2184
|
-
localVarAxiosArgs = _a.sent();
|
|
2185
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2186
|
-
}
|
|
2187
|
-
});
|
|
2188
|
-
});
|
|
2189
|
-
},
|
|
2190
|
-
/**
|
|
2191
|
-
*
|
|
2192
|
-
* @summary Create new portfolio group
|
|
2193
|
-
* @param {PortfolioManagementApiCreateRequest} requestParameters Request parameters.
|
|
2194
|
-
* @param {*} [options] Override http request option.
|
|
2195
|
-
* @throws {RequiredError}
|
|
2196
|
-
*/
|
|
2197
|
-
create: function (requestParameters, options) {
|
|
2198
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2199
|
-
var localVarAxiosArgs;
|
|
2200
|
-
return __generator(this, function (_a) {
|
|
2201
|
-
switch (_a.label) {
|
|
2202
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.create(requestParameters.userId, requestParameters.userSecret, requestParameters, options)];
|
|
2203
|
-
case 1:
|
|
2204
|
-
localVarAxiosArgs = _a.sent();
|
|
2205
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2206
|
-
}
|
|
2207
|
-
});
|
|
2208
|
-
});
|
|
2209
|
-
},
|
|
2210
|
-
/**
|
|
2211
|
-
*
|
|
2212
|
-
* @summary Create a new model asset class
|
|
2213
|
-
* @param {PortfolioManagementApiCreateAssetClassRequest} requestParameters Request parameters.
|
|
2214
|
-
* @param {*} [options] Override http request option.
|
|
2215
|
-
* @throws {RequiredError}
|
|
2216
|
-
*/
|
|
2217
|
-
createAssetClass: function (requestParameters, options) {
|
|
2218
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2219
|
-
var localVarAxiosArgs;
|
|
2220
|
-
return __generator(this, function (_a) {
|
|
2221
|
-
switch (_a.label) {
|
|
2222
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAssetClass(requestParameters.userId, requestParameters.userSecret, options)];
|
|
2223
|
-
case 1:
|
|
2224
|
-
localVarAxiosArgs = _a.sent();
|
|
2225
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2226
|
-
}
|
|
2227
|
-
});
|
|
2228
|
-
});
|
|
2229
|
-
},
|
|
2230
|
-
/**
|
|
2231
|
-
*
|
|
2232
|
-
* @summary Creates a new model portfolio
|
|
2233
|
-
* @param {*} [options] Override http request option.
|
|
2234
|
-
* @throws {RequiredError}
|
|
2235
|
-
*/
|
|
2236
|
-
createModelPortfolio: function (options) {
|
|
2237
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2238
|
-
var localVarAxiosArgs;
|
|
2239
|
-
return __generator(this, function (_a) {
|
|
2240
|
-
switch (_a.label) {
|
|
2241
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createModelPortfolio(options)];
|
|
2242
|
-
case 1:
|
|
2243
|
-
localVarAxiosArgs = _a.sent();
|
|
2244
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2245
|
-
}
|
|
2246
|
-
});
|
|
2247
|
-
});
|
|
2248
|
-
},
|
|
2249
|
-
/**
|
|
2250
|
-
*
|
|
2251
|
-
* @summary Deletes a model asset class
|
|
2252
|
-
* @param {PortfolioManagementApiDeleteAssetClassRequest} requestParameters Request parameters.
|
|
2253
|
-
* @param {*} [options] Override http request option.
|
|
2254
|
-
* @throws {RequiredError}
|
|
2255
|
-
*/
|
|
2256
|
-
deleteAssetClass: function (requestParameters, options) {
|
|
2257
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2258
|
-
var localVarAxiosArgs;
|
|
2259
|
-
return __generator(this, function (_a) {
|
|
2260
|
-
switch (_a.label) {
|
|
2261
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAssetClass(requestParameters.modelAssetClassId, options)];
|
|
2262
|
-
case 1:
|
|
2263
|
-
localVarAxiosArgs = _a.sent();
|
|
2264
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2265
|
-
}
|
|
2266
|
-
});
|
|
2267
|
-
});
|
|
2268
|
-
},
|
|
2269
|
-
/**
|
|
2270
|
-
*
|
|
2271
|
-
* @summary Unexclude an asset from a portfolio group
|
|
2272
|
-
* @param {PortfolioManagementApiDeleteExcludedAssetRequest} requestParameters Request parameters.
|
|
2273
|
-
* @param {*} [options] Override http request option.
|
|
2274
|
-
* @throws {RequiredError}
|
|
2275
|
-
*/
|
|
2276
|
-
deleteExcludedAsset: function (requestParameters, options) {
|
|
2277
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2278
|
-
var localVarAxiosArgs;
|
|
2279
|
-
return __generator(this, function (_a) {
|
|
2280
|
-
switch (_a.label) {
|
|
2281
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteExcludedAsset(requestParameters.portfolioGroupId, requestParameters.symbolId, options)];
|
|
2282
|
-
case 1:
|
|
2283
|
-
localVarAxiosArgs = _a.sent();
|
|
2284
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2285
|
-
}
|
|
2286
|
-
});
|
|
2287
|
-
});
|
|
2288
|
-
},
|
|
2289
|
-
/**
|
|
2290
|
-
*
|
|
2291
|
-
* @summary Deletes a model portfolio
|
|
2292
|
-
* @param {PortfolioManagementApiDeleteModelPortfolioByIdRequest} requestParameters Request parameters.
|
|
2293
|
-
* @param {*} [options] Override http request option.
|
|
2294
|
-
* @throws {RequiredError}
|
|
2295
|
-
*/
|
|
2296
|
-
deleteModelPortfolioById: function (requestParameters, options) {
|
|
2297
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2298
|
-
var localVarAxiosArgs;
|
|
2299
|
-
return __generator(this, function (_a) {
|
|
2300
|
-
switch (_a.label) {
|
|
2301
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteModelPortfolioById(requestParameters.modelPortfolioId, options)];
|
|
2302
|
-
case 1:
|
|
2303
|
-
localVarAxiosArgs = _a.sent();
|
|
2304
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2305
|
-
}
|
|
2306
|
-
});
|
|
2307
|
-
});
|
|
2308
|
-
},
|
|
2309
|
-
/**
|
|
2310
|
-
*
|
|
2311
|
-
* @summary Remove a target portfolio.
|
|
2312
|
-
* @param {PortfolioManagementApiDeletePortfoliRequest} requestParameters Request parameters.
|
|
2313
|
-
* @param {*} [options] Override http request option.
|
|
2314
|
-
* @throws {RequiredError}
|
|
2315
|
-
*/
|
|
2316
|
-
deletePortfoli: function (requestParameters, options) {
|
|
2317
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2318
|
-
var localVarAxiosArgs;
|
|
2319
|
-
return __generator(this, function (_a) {
|
|
2320
|
-
switch (_a.label) {
|
|
2321
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePortfoli(requestParameters.portfolioGroupId, options)];
|
|
2322
|
-
case 1:
|
|
2323
|
-
localVarAxiosArgs = _a.sent();
|
|
2324
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2325
|
-
}
|
|
2326
|
-
});
|
|
2327
|
-
});
|
|
2328
|
-
},
|
|
2329
|
-
/**
|
|
2330
|
-
*
|
|
2331
|
-
* @summary Remove a TargetAsset.
|
|
2332
|
-
* @param {PortfolioManagementApiDeletePortfolioTargetByIdRequest} requestParameters Request parameters.
|
|
2333
|
-
* @param {*} [options] Override http request option.
|
|
2334
|
-
* @throws {RequiredError}
|
|
2335
|
-
*/
|
|
2336
|
-
deletePortfolioTargetById: function (requestParameters, options) {
|
|
2337
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2338
|
-
var localVarAxiosArgs;
|
|
2339
|
-
return __generator(this, function (_a) {
|
|
2340
|
-
switch (_a.label) {
|
|
2341
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePortfolioTargetById(requestParameters.portfolioGroupId, requestParameters.targetAssetId, options)];
|
|
2342
|
-
case 1:
|
|
2343
|
-
localVarAxiosArgs = _a.sent();
|
|
2344
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2345
|
-
}
|
|
2346
|
-
});
|
|
2347
|
-
});
|
|
2348
|
-
},
|
|
2349
|
-
/**
|
|
2350
|
-
*
|
|
2351
|
-
* @summary Get details of a model asset class
|
|
2352
|
-
* @param {PortfolioManagementApiDetailAssetClassRequest} requestParameters Request parameters.
|
|
2353
|
-
* @param {*} [options] Override http request option.
|
|
2354
|
-
* @throws {RequiredError}
|
|
2355
|
-
*/
|
|
2356
|
-
detailAssetClass: function (requestParameters, options) {
|
|
2357
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2358
|
-
var localVarAxiosArgs;
|
|
2359
|
-
return __generator(this, function (_a) {
|
|
2360
|
-
switch (_a.label) {
|
|
2361
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.detailAssetClass(requestParameters.modelAssetClassId, requestParameters.userId, requestParameters.userSecret, options)];
|
|
2362
|
-
case 1:
|
|
2363
|
-
localVarAxiosArgs = _a.sent();
|
|
2364
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2365
|
-
}
|
|
2366
|
-
});
|
|
2367
|
-
});
|
|
2368
|
-
},
|
|
2369
|
-
/**
|
|
2370
|
-
*
|
|
2371
|
-
* @summary Return an individual trade
|
|
2372
|
-
* @param {PortfolioManagementApiGetCalculatedTradeByIdRequest} requestParameters Request parameters.
|
|
2373
|
-
* @param {*} [options] Override http request option.
|
|
2374
|
-
* @throws {RequiredError}
|
|
2375
|
-
*/
|
|
2376
|
-
getCalculatedTradeById: function (requestParameters, options) {
|
|
2377
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2378
|
-
var localVarAxiosArgs;
|
|
2379
|
-
return __generator(this, function (_a) {
|
|
2380
|
-
switch (_a.label) {
|
|
2381
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCalculatedTradeById(requestParameters.portfolioGroupId, requestParameters.calculatedTradeId, requestParameters.tradeId, options)];
|
|
2382
|
-
case 1:
|
|
2383
|
-
localVarAxiosArgs = _a.sent();
|
|
2384
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2385
|
-
}
|
|
2386
|
-
});
|
|
2387
|
-
});
|
|
2388
|
-
},
|
|
2389
|
-
/**
|
|
2390
|
-
*
|
|
2391
|
-
* @summary Get details of a model portfolio
|
|
2392
|
-
* @param {PortfolioManagementApiGetModelDetailsByIdRequest} requestParameters Request parameters.
|
|
2393
|
-
* @param {*} [options] Override http request option.
|
|
2394
|
-
* @throws {RequiredError}
|
|
2395
|
-
*/
|
|
2396
|
-
getModelDetailsById: function (requestParameters, options) {
|
|
2397
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2398
|
-
var localVarAxiosArgs;
|
|
2399
|
-
return __generator(this, function (_a) {
|
|
2400
|
-
switch (_a.label) {
|
|
2401
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getModelDetailsById(requestParameters.modelPortfolioId, options)];
|
|
2402
|
-
case 1:
|
|
2403
|
-
localVarAxiosArgs = _a.sent();
|
|
2404
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2405
|
-
}
|
|
2406
|
-
});
|
|
2407
|
-
});
|
|
2408
|
-
},
|
|
2409
|
-
/**
|
|
2410
|
-
*
|
|
2411
|
-
* @summary Get sum of cash balances in portfolio group
|
|
2412
|
-
* @param {PortfolioManagementApiGetPortfolioBalancesRequest} requestParameters Request parameters.
|
|
2413
|
-
* @param {*} [options] Override http request option.
|
|
2414
|
-
* @throws {RequiredError}
|
|
2415
|
-
*/
|
|
2416
|
-
getPortfolioBalances: function (requestParameters, options) {
|
|
2417
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2418
|
-
var localVarAxiosArgs;
|
|
2419
|
-
return __generator(this, function (_a) {
|
|
2420
|
-
switch (_a.label) {
|
|
2421
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPortfolioBalances(requestParameters.portfolioGroupId, options)];
|
|
2422
|
-
case 1:
|
|
2423
|
-
localVarAxiosArgs = _a.sent();
|
|
2424
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2425
|
-
}
|
|
2426
|
-
});
|
|
2427
|
-
});
|
|
2428
|
-
},
|
|
2429
|
-
/**
|
|
2430
|
-
*
|
|
2431
|
-
* @summary Get details of a target portfolio
|
|
2432
|
-
* @param {PortfolioManagementApiGetPortfolioDetailsByIdRequest} requestParameters Request parameters.
|
|
2433
|
-
* @param {*} [options] Override http request option.
|
|
2434
|
-
* @throws {RequiredError}
|
|
2435
|
-
*/
|
|
2436
|
-
getPortfolioDetailsById: function (requestParameters, options) {
|
|
2437
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2438
|
-
var localVarAxiosArgs;
|
|
2439
|
-
return __generator(this, function (_a) {
|
|
2440
|
-
switch (_a.label) {
|
|
2441
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPortfolioDetailsById(requestParameters.portfolioGroupId, options)];
|
|
2442
|
-
case 1:
|
|
2443
|
-
localVarAxiosArgs = _a.sent();
|
|
2444
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2445
|
-
}
|
|
2446
|
-
});
|
|
2447
|
-
});
|
|
2448
|
-
},
|
|
2449
|
-
/**
|
|
2450
|
-
*
|
|
2451
|
-
* @summary Return a whole bunch of relevant information relating to a portfolio group.
|
|
2452
|
-
* @param {PortfolioManagementApiGetPortfolioInfoRequest} requestParameters Request parameters.
|
|
2453
|
-
* @param {*} [options] Override http request option.
|
|
2454
|
-
* @throws {RequiredError}
|
|
2455
|
-
*/
|
|
2456
|
-
getPortfolioInfo: function (requestParameters, options) {
|
|
2457
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2458
|
-
var localVarAxiosArgs;
|
|
2459
|
-
return __generator(this, function (_a) {
|
|
2460
|
-
switch (_a.label) {
|
|
2461
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPortfolioInfo(requestParameters.portfolioGroupId, options)];
|
|
2462
|
-
case 1:
|
|
2463
|
-
localVarAxiosArgs = _a.sent();
|
|
2464
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2465
|
-
}
|
|
2466
|
-
});
|
|
2467
|
-
});
|
|
2468
|
-
},
|
|
2469
|
-
/**
|
|
2470
|
-
*
|
|
2471
|
-
* @summary Get portfolio group settings
|
|
2472
|
-
* @param {PortfolioManagementApiGetPortfolioSettingsRequest} requestParameters Request parameters.
|
|
2473
|
-
* @param {*} [options] Override http request option.
|
|
2474
|
-
* @throws {RequiredError}
|
|
2475
|
-
*/
|
|
2476
|
-
getPortfolioSettings: function (requestParameters, options) {
|
|
2477
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2478
|
-
var localVarAxiosArgs;
|
|
2479
|
-
return __generator(this, function (_a) {
|
|
2480
|
-
switch (_a.label) {
|
|
2481
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPortfolioSettings(requestParameters.portfolioGroupId, options)];
|
|
2482
|
-
case 1:
|
|
2483
|
-
localVarAxiosArgs = _a.sent();
|
|
2484
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2485
|
-
}
|
|
2486
|
-
});
|
|
2487
|
-
});
|
|
2488
|
-
},
|
|
2489
|
-
/**
|
|
2490
|
-
*
|
|
2491
|
-
* @summary Get a specific target from a portfolio group
|
|
2492
|
-
* @param {PortfolioManagementApiGetPortfolioTargetByIdRequest} requestParameters Request parameters.
|
|
2493
|
-
* @param {*} [options] Override http request option.
|
|
2494
|
-
* @throws {RequiredError}
|
|
2495
|
-
*/
|
|
2496
|
-
getPortfolioTargetById: function (requestParameters, options) {
|
|
2497
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2498
|
-
var localVarAxiosArgs;
|
|
2499
|
-
return __generator(this, function (_a) {
|
|
2500
|
-
switch (_a.label) {
|
|
2501
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPortfolioTargetById(requestParameters.portfolioGroupId, requestParameters.targetAssetId, options)];
|
|
2502
|
-
case 1:
|
|
2503
|
-
localVarAxiosArgs = _a.sent();
|
|
2504
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2505
|
-
}
|
|
2506
|
-
});
|
|
2507
|
-
});
|
|
2508
|
-
},
|
|
2509
|
-
/**
|
|
2510
|
-
*
|
|
2511
|
-
* @summary Get all target assets under the specified PortfolioGroup.
|
|
2512
|
-
* @param {PortfolioManagementApiGetPortfolioTargetsRequest} requestParameters Request parameters.
|
|
2513
|
-
* @param {*} [options] Override http request option.
|
|
2514
|
-
* @throws {RequiredError}
|
|
2515
|
-
*/
|
|
2516
|
-
getPortfolioTargets: function (requestParameters, options) {
|
|
2517
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2518
|
-
var localVarAxiosArgs;
|
|
2519
|
-
return __generator(this, function (_a) {
|
|
2520
|
-
switch (_a.label) {
|
|
2521
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPortfolioTargets(requestParameters.portfolioGroupId, options)];
|
|
2522
|
-
case 1:
|
|
2523
|
-
localVarAxiosArgs = _a.sent();
|
|
2524
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2525
|
-
}
|
|
2526
|
-
});
|
|
2527
|
-
});
|
|
2528
|
-
},
|
|
2529
|
-
/**
|
|
2530
|
-
*
|
|
2531
|
-
* @summary Get an array of excluded assets associated with a portfolio group\\
|
|
2532
|
-
* @param {PortfolioManagementApiGetPortoflioExcludedAssetsRequest} requestParameters Request parameters.
|
|
2533
|
-
* @param {*} [options] Override http request option.
|
|
2534
|
-
* @throws {RequiredError}
|
|
2535
|
-
*/
|
|
2536
|
-
getPortoflioExcludedAssets: function (requestParameters, options) {
|
|
2537
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2538
|
-
var localVarAxiosArgs;
|
|
2539
|
-
return __generator(this, function (_a) {
|
|
2540
|
-
switch (_a.label) {
|
|
2541
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPortoflioExcludedAssets(requestParameters.portfolioGroupId, options)];
|
|
2542
|
-
case 1:
|
|
2543
|
-
localVarAxiosArgs = _a.sent();
|
|
2544
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2545
|
-
}
|
|
2546
|
-
});
|
|
2547
|
-
});
|
|
2548
|
-
},
|
|
2549
|
-
/**
|
|
2550
|
-
*
|
|
2551
|
-
* @summary Import target allocation based on portfolio group
|
|
2552
|
-
* @param {PortfolioManagementApiImportModelPortfolioRequest} requestParameters Request parameters.
|
|
2553
|
-
* @param {*} [options] Override http request option.
|
|
2554
|
-
* @throws {RequiredError}
|
|
2555
|
-
*/
|
|
2556
|
-
importModelPortfolio: function (requestParameters, options) {
|
|
2557
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2558
|
-
var localVarAxiosArgs;
|
|
2559
|
-
return __generator(this, function (_a) {
|
|
2560
|
-
switch (_a.label) {
|
|
2561
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.importModelPortfolio(requestParameters.portfolioGroupId, options)];
|
|
2562
|
-
case 1:
|
|
2563
|
-
localVarAxiosArgs = _a.sent();
|
|
2564
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2565
|
-
}
|
|
2566
|
-
});
|
|
2567
|
-
});
|
|
2568
|
-
},
|
|
2569
|
-
/**
|
|
2570
|
-
*
|
|
2571
|
-
* @summary List all portfolio groups
|
|
2572
|
-
* @param {PortfolioManagementApiListRequest} requestParameters Request parameters.
|
|
2573
|
-
* @param {*} [options] Override http request option.
|
|
2574
|
-
* @throws {RequiredError}
|
|
2575
|
-
*/
|
|
2576
|
-
list: function (requestParameters, options) {
|
|
2577
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2578
|
-
var localVarAxiosArgs;
|
|
2579
|
-
return __generator(this, function (_a) {
|
|
2580
|
-
switch (_a.label) {
|
|
2581
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.list(requestParameters.userId, requestParameters.userSecret, options)];
|
|
2582
|
-
case 1:
|
|
2583
|
-
localVarAxiosArgs = _a.sent();
|
|
2584
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2585
|
-
}
|
|
2586
|
-
});
|
|
2587
|
-
});
|
|
2588
|
-
},
|
|
2589
|
-
/**
|
|
2590
|
-
*
|
|
2591
|
-
* @summary List of model asset class
|
|
2592
|
-
* @param {PortfolioManagementApiListAssetClassesRequest} requestParameters Request parameters.
|
|
2593
|
-
* @param {*} [options] Override http request option.
|
|
2594
|
-
* @throws {RequiredError}
|
|
2595
|
-
*/
|
|
2596
|
-
listAssetClasses: function (requestParameters, options) {
|
|
2597
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2598
|
-
var localVarAxiosArgs;
|
|
2599
|
-
return __generator(this, function (_a) {
|
|
2600
|
-
switch (_a.label) {
|
|
2601
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAssetClasses(requestParameters.userId, requestParameters.userSecret, options)];
|
|
2602
|
-
case 1:
|
|
2603
|
-
localVarAxiosArgs = _a.sent();
|
|
2604
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2605
|
-
}
|
|
2606
|
-
});
|
|
2607
|
-
});
|
|
2608
|
-
},
|
|
2609
|
-
/**
|
|
2610
|
-
*
|
|
2611
|
-
* @summary List of trades to make to rebalance portfolio group
|
|
2612
|
-
* @param {PortfolioManagementApiListCalculatedTradesRequest} requestParameters Request parameters.
|
|
2613
|
-
* @param {*} [options] Override http request option.
|
|
2614
|
-
* @throws {RequiredError}
|
|
2615
|
-
*/
|
|
2616
|
-
listCalculatedTrades: function (requestParameters, options) {
|
|
2617
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2618
|
-
var localVarAxiosArgs;
|
|
2619
|
-
return __generator(this, function (_a) {
|
|
2620
|
-
switch (_a.label) {
|
|
2621
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCalculatedTrades(requestParameters.portfolioGroupId, options)];
|
|
2622
|
-
case 1:
|
|
2623
|
-
localVarAxiosArgs = _a.sent();
|
|
2624
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2625
|
-
}
|
|
2626
|
-
});
|
|
2627
|
-
});
|
|
2628
|
-
},
|
|
2629
|
-
/**
|
|
2630
|
-
*
|
|
2631
|
-
* @summary List of model portfolio
|
|
2632
|
-
* @param {*} [options] Override http request option.
|
|
2633
|
-
* @throws {RequiredError}
|
|
2634
|
-
*/
|
|
2635
|
-
listModelPortfolio: function (options) {
|
|
2636
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2637
|
-
var localVarAxiosArgs;
|
|
2638
|
-
return __generator(this, function (_a) {
|
|
2639
|
-
switch (_a.label) {
|
|
2640
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listModelPortfolio(options)];
|
|
2641
|
-
case 1:
|
|
2642
|
-
localVarAxiosArgs = _a.sent();
|
|
2643
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2644
|
-
}
|
|
2645
|
-
});
|
|
2646
|
-
});
|
|
2647
|
-
},
|
|
2648
|
-
/**
|
|
2649
|
-
*
|
|
2650
|
-
* @summary Get all accounts associated with a portfolio group
|
|
2651
|
-
* @param {PortfolioManagementApiListPortfolioAccountsRequest} requestParameters Request parameters.
|
|
2652
|
-
* @param {*} [options] Override http request option.
|
|
2653
|
-
* @throws {RequiredError}
|
|
2654
|
-
*/
|
|
2655
|
-
listPortfolioAccounts: function (requestParameters, options) {
|
|
2656
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2657
|
-
var localVarAxiosArgs;
|
|
2658
|
-
return __generator(this, function (_a) {
|
|
2659
|
-
switch (_a.label) {
|
|
2660
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPortfolioAccounts(requestParameters.portfolioGroupId, options)];
|
|
2661
|
-
case 1:
|
|
2662
|
-
localVarAxiosArgs = _a.sent();
|
|
2663
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2664
|
-
}
|
|
2665
|
-
});
|
|
2666
|
-
});
|
|
2667
|
-
},
|
|
2668
|
-
/**
|
|
2669
|
-
*
|
|
2670
|
-
* @summary Updates model portfolio object
|
|
2671
|
-
* @param {PortfolioManagementApiModifyModelPortfolioByIdRequest} requestParameters Request parameters.
|
|
2672
|
-
* @param {*} [options] Override http request option.
|
|
2673
|
-
* @throws {RequiredError}
|
|
2674
|
-
*/
|
|
2675
|
-
modifyModelPortfolioById: function (requestParameters, options) {
|
|
2676
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2677
|
-
var localVarAxiosArgs;
|
|
2678
|
-
return __generator(this, function (_a) {
|
|
2679
|
-
switch (_a.label) {
|
|
2680
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.modifyModelPortfolioById(requestParameters.modelPortfolioId, requestParameters, options)];
|
|
2681
|
-
case 1:
|
|
2682
|
-
localVarAxiosArgs = _a.sent();
|
|
2683
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2684
|
-
}
|
|
2685
|
-
});
|
|
2686
|
-
});
|
|
2687
|
-
},
|
|
2688
|
-
/**
|
|
2689
|
-
*
|
|
2690
|
-
* @summary Update an existing target portfolio.
|
|
2691
|
-
* @param {PortfolioManagementApiSavePortfolioRequest} requestParameters Request parameters.
|
|
2692
|
-
* @param {*} [options] Override http request option.
|
|
2693
|
-
* @throws {RequiredError}
|
|
2694
|
-
*/
|
|
2695
|
-
savePortfolio: function (requestParameters, options) {
|
|
2696
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2697
|
-
var localVarAxiosArgs;
|
|
2698
|
-
return __generator(this, function (_a) {
|
|
2699
|
-
switch (_a.label) {
|
|
2700
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.savePortfolio(requestParameters.portfolioGroupId, requestParameters, options)];
|
|
2701
|
-
case 1:
|
|
2702
|
-
localVarAxiosArgs = _a.sent();
|
|
2703
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2704
|
-
}
|
|
2705
|
-
});
|
|
2706
|
-
});
|
|
2707
|
-
},
|
|
2708
|
-
/**
|
|
2709
|
-
*
|
|
2710
|
-
* @summary Search for symbols limited to brokerages under the specified portfolio group
|
|
2711
|
-
* @param {PortfolioManagementApiSearchPortfolioSymbolsRequest} requestParameters Request parameters.
|
|
2712
|
-
* @param {*} [options] Override http request option.
|
|
2713
|
-
* @throws {RequiredError}
|
|
2714
|
-
*/
|
|
2715
|
-
searchPortfolioSymbols: function (requestParameters, options) {
|
|
2716
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2717
|
-
var localVarAxiosArgs;
|
|
2718
|
-
return __generator(this, function (_a) {
|
|
2719
|
-
switch (_a.label) {
|
|
2720
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchPortfolioSymbols(requestParameters.portfolioGroupId, requestParameters, options)];
|
|
2721
|
-
case 1:
|
|
2722
|
-
localVarAxiosArgs = _a.sent();
|
|
2723
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2724
|
-
}
|
|
2725
|
-
});
|
|
2726
|
-
});
|
|
2727
|
-
},
|
|
2728
|
-
/**
|
|
2729
|
-
*
|
|
2730
|
-
* @summary Set a new list of target assets under the specified PortfolioGroup. All existing target assets under this portfolio group will be replaced with the new list.
|
|
2731
|
-
* @param {PortfolioManagementApiSetPortfolioTargetsRequest} requestParameters Request parameters.
|
|
2732
|
-
* @param {*} [options] Override http request option.
|
|
2733
|
-
* @throws {RequiredError}
|
|
2734
|
-
*/
|
|
2735
|
-
setPortfolioTargets: function (requestParameters, options) {
|
|
2736
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2737
|
-
var localVarAxiosArgs;
|
|
2738
|
-
return __generator(this, function (_a) {
|
|
2739
|
-
switch (_a.label) {
|
|
2740
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.setPortfolioTargets(requestParameters.portfolioGroupId, requestParameters.requestBody, options)];
|
|
2741
|
-
case 1:
|
|
2742
|
-
localVarAxiosArgs = _a.sent();
|
|
2743
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2744
|
-
}
|
|
2745
|
-
});
|
|
2746
|
-
});
|
|
2747
|
-
},
|
|
2748
|
-
/**
|
|
2749
|
-
*
|
|
2750
|
-
* @summary Updates model asset class objects
|
|
2751
|
-
* @param {PortfolioManagementApiUpdateAssetClassRequest} requestParameters Request parameters.
|
|
2752
|
-
* @param {*} [options] Override http request option.
|
|
2753
|
-
* @throws {RequiredError}
|
|
2754
|
-
*/
|
|
2755
|
-
updateAssetClass: function (requestParameters, options) {
|
|
2756
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2757
|
-
var localVarAxiosArgs;
|
|
2758
|
-
return __generator(this, function (_a) {
|
|
2759
|
-
switch (_a.label) {
|
|
2760
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateAssetClass(requestParameters.modelAssetClassId, requestParameters.userId, requestParameters.userSecret, requestParameters, options)];
|
|
2761
|
-
case 1:
|
|
2762
|
-
localVarAxiosArgs = _a.sent();
|
|
2763
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2764
|
-
}
|
|
2765
|
-
});
|
|
2766
|
-
});
|
|
2767
|
-
},
|
|
2768
|
-
/**
|
|
2769
|
-
*
|
|
2770
|
-
* @summary Updates portfolio group settings
|
|
2771
|
-
* @param {PortfolioManagementApiUpdatePortfolioSettingsRequest} requestParameters Request parameters.
|
|
2772
|
-
* @param {*} [options] Override http request option.
|
|
2773
|
-
* @throws {RequiredError}
|
|
2774
|
-
*/
|
|
2775
|
-
updatePortfolioSettings: function (requestParameters, options) {
|
|
2776
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2777
|
-
var localVarAxiosArgs;
|
|
2778
|
-
return __generator(this, function (_a) {
|
|
2779
|
-
switch (_a.label) {
|
|
2780
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePortfolioSettings(requestParameters.portfolioGroupId, options)];
|
|
2781
|
-
case 1:
|
|
2782
|
-
localVarAxiosArgs = _a.sent();
|
|
2783
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2784
|
-
}
|
|
2785
|
-
});
|
|
2786
|
-
});
|
|
2787
|
-
},
|
|
2788
|
-
/**
|
|
2789
|
-
*
|
|
2790
|
-
* @summary Update a TargetAsset under the specified PortfolioGroup.
|
|
2791
|
-
* @param {PortfolioManagementApiUpdatePortfolioTargetByIdRequest} requestParameters Request parameters.
|
|
2792
|
-
* @param {*} [options] Override http request option.
|
|
2793
|
-
* @throws {RequiredError}
|
|
2794
|
-
*/
|
|
2795
|
-
updatePortfolioTargetById: function (requestParameters, options) {
|
|
2796
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2797
|
-
var localVarAxiosArgs;
|
|
2798
|
-
return __generator(this, function (_a) {
|
|
2799
|
-
switch (_a.label) {
|
|
2800
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePortfolioTargetById(requestParameters.portfolioGroupId, requestParameters.targetAssetId, requestParameters, options)];
|
|
2801
|
-
case 1:
|
|
2802
|
-
localVarAxiosArgs = _a.sent();
|
|
2803
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2804
|
-
}
|
|
2805
|
-
});
|
|
2806
|
-
});
|
|
2807
|
-
},
|
|
2808
|
-
};
|
|
2809
|
-
};
|
|
2810
|
-
exports.PortfolioManagementApiFp = PortfolioManagementApiFp;
|
|
2811
|
-
/**
|
|
2812
|
-
* PortfolioManagementApi - factory interface
|
|
2813
|
-
* @export
|
|
2814
|
-
*/
|
|
2815
|
-
var PortfolioManagementApiFactory = function (configuration, basePath, axios) {
|
|
2816
|
-
var localVarFp = (0, exports.PortfolioManagementApiFp)(configuration);
|
|
2817
|
-
return {
|
|
2818
|
-
/**
|
|
2819
|
-
*
|
|
2820
|
-
* @summary Adds an asset to exclude to a portfolio group
|
|
2821
|
-
* @param {PortfolioManagementApiAddPortfolioExcludedAssetRequest} requestParameters Request parameters.
|
|
2822
|
-
* @param {*} [options] Override http request option.
|
|
2823
|
-
* @throws {RequiredError}
|
|
2824
|
-
*/
|
|
2825
|
-
addPortfolioExcludedAsset: function (requestParameters, options) {
|
|
2826
|
-
return localVarFp.addPortfolioExcludedAsset(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2827
|
-
},
|
|
2828
|
-
/**
|
|
2829
|
-
*
|
|
2830
|
-
* @summary Create new portfolio group
|
|
2831
|
-
* @param {PortfolioManagementApiCreateRequest} requestParameters Request parameters.
|
|
2832
|
-
* @param {*} [options] Override http request option.
|
|
2833
|
-
* @throws {RequiredError}
|
|
2834
|
-
*/
|
|
2835
|
-
create: function (requestParameters, options) {
|
|
2836
|
-
return localVarFp.create(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2837
|
-
},
|
|
2838
|
-
/**
|
|
2839
|
-
*
|
|
2840
|
-
* @summary Create a new model asset class
|
|
2841
|
-
* @param {PortfolioManagementApiCreateAssetClassRequest} requestParameters Request parameters.
|
|
2842
|
-
* @param {*} [options] Override http request option.
|
|
2843
|
-
* @throws {RequiredError}
|
|
2844
|
-
*/
|
|
2845
|
-
createAssetClass: function (requestParameters, options) {
|
|
2846
|
-
return localVarFp.createAssetClass(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2847
|
-
},
|
|
2848
|
-
/**
|
|
2849
|
-
*
|
|
2850
|
-
* @summary Creates a new model portfolio
|
|
2851
|
-
* @param {*} [options] Override http request option.
|
|
2852
|
-
* @throws {RequiredError}
|
|
2853
|
-
*/
|
|
2854
|
-
createModelPortfolio: function (options) {
|
|
2855
|
-
return localVarFp.createModelPortfolio(options).then(function (request) { return request(axios, basePath); });
|
|
2856
|
-
},
|
|
2857
|
-
/**
|
|
2858
|
-
*
|
|
2859
|
-
* @summary Deletes a model asset class
|
|
2860
|
-
* @param {PortfolioManagementApiDeleteAssetClassRequest} requestParameters Request parameters.
|
|
2861
|
-
* @param {*} [options] Override http request option.
|
|
2862
|
-
* @throws {RequiredError}
|
|
2863
|
-
*/
|
|
2864
|
-
deleteAssetClass: function (requestParameters, options) {
|
|
2865
|
-
return localVarFp.deleteAssetClass(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2866
|
-
},
|
|
2867
|
-
/**
|
|
2868
|
-
*
|
|
2869
|
-
* @summary Unexclude an asset from a portfolio group
|
|
2870
|
-
* @param {PortfolioManagementApiDeleteExcludedAssetRequest} requestParameters Request parameters.
|
|
2871
|
-
* @param {*} [options] Override http request option.
|
|
2872
|
-
* @throws {RequiredError}
|
|
2873
|
-
*/
|
|
2874
|
-
deleteExcludedAsset: function (requestParameters, options) {
|
|
2875
|
-
return localVarFp.deleteExcludedAsset(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2876
|
-
},
|
|
2877
|
-
/**
|
|
2878
|
-
*
|
|
2879
|
-
* @summary Deletes a model portfolio
|
|
2880
|
-
* @param {PortfolioManagementApiDeleteModelPortfolioByIdRequest} requestParameters Request parameters.
|
|
2881
|
-
* @param {*} [options] Override http request option.
|
|
2882
|
-
* @throws {RequiredError}
|
|
2883
|
-
*/
|
|
2884
|
-
deleteModelPortfolioById: function (requestParameters, options) {
|
|
2885
|
-
return localVarFp.deleteModelPortfolioById(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2886
|
-
},
|
|
2887
|
-
/**
|
|
2888
|
-
*
|
|
2889
|
-
* @summary Remove a target portfolio.
|
|
2890
|
-
* @param {PortfolioManagementApiDeletePortfoliRequest} requestParameters Request parameters.
|
|
2891
|
-
* @param {*} [options] Override http request option.
|
|
2892
|
-
* @throws {RequiredError}
|
|
2893
|
-
*/
|
|
2894
|
-
deletePortfoli: function (requestParameters, options) {
|
|
2895
|
-
return localVarFp.deletePortfoli(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2896
|
-
},
|
|
2897
|
-
/**
|
|
2898
|
-
*
|
|
2899
|
-
* @summary Remove a TargetAsset.
|
|
2900
|
-
* @param {PortfolioManagementApiDeletePortfolioTargetByIdRequest} requestParameters Request parameters.
|
|
2901
|
-
* @param {*} [options] Override http request option.
|
|
2902
|
-
* @throws {RequiredError}
|
|
2903
|
-
*/
|
|
2904
|
-
deletePortfolioTargetById: function (requestParameters, options) {
|
|
2905
|
-
return localVarFp.deletePortfolioTargetById(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2906
|
-
},
|
|
2907
|
-
/**
|
|
2908
|
-
*
|
|
2909
|
-
* @summary Get details of a model asset class
|
|
2910
|
-
* @param {PortfolioManagementApiDetailAssetClassRequest} requestParameters Request parameters.
|
|
2911
|
-
* @param {*} [options] Override http request option.
|
|
2912
|
-
* @throws {RequiredError}
|
|
2913
|
-
*/
|
|
2914
|
-
detailAssetClass: function (requestParameters, options) {
|
|
2915
|
-
return localVarFp.detailAssetClass(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2916
|
-
},
|
|
2917
|
-
/**
|
|
2918
|
-
*
|
|
2919
|
-
* @summary Return an individual trade
|
|
2920
|
-
* @param {PortfolioManagementApiGetCalculatedTradeByIdRequest} requestParameters Request parameters.
|
|
2921
|
-
* @param {*} [options] Override http request option.
|
|
2922
|
-
* @throws {RequiredError}
|
|
2923
|
-
*/
|
|
2924
|
-
getCalculatedTradeById: function (requestParameters, options) {
|
|
2925
|
-
return localVarFp.getCalculatedTradeById(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2926
|
-
},
|
|
2927
|
-
/**
|
|
2928
|
-
*
|
|
2929
|
-
* @summary Get details of a model portfolio
|
|
2930
|
-
* @param {PortfolioManagementApiGetModelDetailsByIdRequest} requestParameters Request parameters.
|
|
2931
|
-
* @param {*} [options] Override http request option.
|
|
2932
|
-
* @throws {RequiredError}
|
|
2933
|
-
*/
|
|
2934
|
-
getModelDetailsById: function (requestParameters, options) {
|
|
2935
|
-
return localVarFp.getModelDetailsById(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2936
|
-
},
|
|
2937
|
-
/**
|
|
2938
|
-
*
|
|
2939
|
-
* @summary Get sum of cash balances in portfolio group
|
|
2940
|
-
* @param {PortfolioManagementApiGetPortfolioBalancesRequest} requestParameters Request parameters.
|
|
2941
|
-
* @param {*} [options] Override http request option.
|
|
2942
|
-
* @throws {RequiredError}
|
|
2943
|
-
*/
|
|
2944
|
-
getPortfolioBalances: function (requestParameters, options) {
|
|
2945
|
-
return localVarFp.getPortfolioBalances(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2946
|
-
},
|
|
2947
|
-
/**
|
|
2948
|
-
*
|
|
2949
|
-
* @summary Get details of a target portfolio
|
|
2950
|
-
* @param {PortfolioManagementApiGetPortfolioDetailsByIdRequest} requestParameters Request parameters.
|
|
2951
|
-
* @param {*} [options] Override http request option.
|
|
2952
|
-
* @throws {RequiredError}
|
|
2953
|
-
*/
|
|
2954
|
-
getPortfolioDetailsById: function (requestParameters, options) {
|
|
2955
|
-
return localVarFp.getPortfolioDetailsById(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2956
|
-
},
|
|
2957
|
-
/**
|
|
2958
|
-
*
|
|
2959
|
-
* @summary Return a whole bunch of relevant information relating to a portfolio group.
|
|
2960
|
-
* @param {PortfolioManagementApiGetPortfolioInfoRequest} requestParameters Request parameters.
|
|
2961
|
-
* @param {*} [options] Override http request option.
|
|
2962
|
-
* @throws {RequiredError}
|
|
2963
|
-
*/
|
|
2964
|
-
getPortfolioInfo: function (requestParameters, options) {
|
|
2965
|
-
return localVarFp.getPortfolioInfo(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2966
|
-
},
|
|
2967
|
-
/**
|
|
2968
|
-
*
|
|
2969
|
-
* @summary Get portfolio group settings
|
|
2970
|
-
* @param {PortfolioManagementApiGetPortfolioSettingsRequest} requestParameters Request parameters.
|
|
2971
|
-
* @param {*} [options] Override http request option.
|
|
2972
|
-
* @throws {RequiredError}
|
|
2973
|
-
*/
|
|
2974
|
-
getPortfolioSettings: function (requestParameters, options) {
|
|
2975
|
-
return localVarFp.getPortfolioSettings(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2976
|
-
},
|
|
2977
|
-
/**
|
|
2978
|
-
*
|
|
2979
|
-
* @summary Get a specific target from a portfolio group
|
|
2980
|
-
* @param {PortfolioManagementApiGetPortfolioTargetByIdRequest} requestParameters Request parameters.
|
|
2981
|
-
* @param {*} [options] Override http request option.
|
|
2982
|
-
* @throws {RequiredError}
|
|
2983
|
-
*/
|
|
2984
|
-
getPortfolioTargetById: function (requestParameters, options) {
|
|
2985
|
-
return localVarFp.getPortfolioTargetById(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2986
|
-
},
|
|
2987
|
-
/**
|
|
2988
|
-
*
|
|
2989
|
-
* @summary Get all target assets under the specified PortfolioGroup.
|
|
2990
|
-
* @param {PortfolioManagementApiGetPortfolioTargetsRequest} requestParameters Request parameters.
|
|
2991
|
-
* @param {*} [options] Override http request option.
|
|
2992
|
-
* @throws {RequiredError}
|
|
2993
|
-
*/
|
|
2994
|
-
getPortfolioTargets: function (requestParameters, options) {
|
|
2995
|
-
return localVarFp.getPortfolioTargets(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
2996
|
-
},
|
|
2997
|
-
/**
|
|
2998
|
-
*
|
|
2999
|
-
* @summary Get an array of excluded assets associated with a portfolio group\\
|
|
3000
|
-
* @param {PortfolioManagementApiGetPortoflioExcludedAssetsRequest} requestParameters Request parameters.
|
|
3001
|
-
* @param {*} [options] Override http request option.
|
|
3002
|
-
* @throws {RequiredError}
|
|
3003
|
-
*/
|
|
3004
|
-
getPortoflioExcludedAssets: function (requestParameters, options) {
|
|
3005
|
-
return localVarFp.getPortoflioExcludedAssets(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3006
|
-
},
|
|
3007
|
-
/**
|
|
3008
|
-
*
|
|
3009
|
-
* @summary Import target allocation based on portfolio group
|
|
3010
|
-
* @param {PortfolioManagementApiImportModelPortfolioRequest} requestParameters Request parameters.
|
|
3011
|
-
* @param {*} [options] Override http request option.
|
|
3012
|
-
* @throws {RequiredError}
|
|
3013
|
-
*/
|
|
3014
|
-
importModelPortfolio: function (requestParameters, options) {
|
|
3015
|
-
return localVarFp.importModelPortfolio(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3016
|
-
},
|
|
3017
|
-
/**
|
|
3018
|
-
*
|
|
3019
|
-
* @summary List all portfolio groups
|
|
3020
|
-
* @param {PortfolioManagementApiListRequest} requestParameters Request parameters.
|
|
3021
|
-
* @param {*} [options] Override http request option.
|
|
3022
|
-
* @throws {RequiredError}
|
|
3023
|
-
*/
|
|
3024
|
-
list: function (requestParameters, options) {
|
|
3025
|
-
return localVarFp.list(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3026
|
-
},
|
|
3027
|
-
/**
|
|
3028
|
-
*
|
|
3029
|
-
* @summary List of model asset class
|
|
3030
|
-
* @param {PortfolioManagementApiListAssetClassesRequest} requestParameters Request parameters.
|
|
3031
|
-
* @param {*} [options] Override http request option.
|
|
3032
|
-
* @throws {RequiredError}
|
|
3033
|
-
*/
|
|
3034
|
-
listAssetClasses: function (requestParameters, options) {
|
|
3035
|
-
return localVarFp.listAssetClasses(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3036
|
-
},
|
|
3037
|
-
/**
|
|
3038
|
-
*
|
|
3039
|
-
* @summary List of trades to make to rebalance portfolio group
|
|
3040
|
-
* @param {PortfolioManagementApiListCalculatedTradesRequest} requestParameters Request parameters.
|
|
3041
|
-
* @param {*} [options] Override http request option.
|
|
3042
|
-
* @throws {RequiredError}
|
|
3043
|
-
*/
|
|
3044
|
-
listCalculatedTrades: function (requestParameters, options) {
|
|
3045
|
-
return localVarFp.listCalculatedTrades(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3046
|
-
},
|
|
3047
|
-
/**
|
|
3048
|
-
*
|
|
3049
|
-
* @summary List of model portfolio
|
|
3050
|
-
* @param {*} [options] Override http request option.
|
|
3051
|
-
* @throws {RequiredError}
|
|
3052
|
-
*/
|
|
3053
|
-
listModelPortfolio: function (options) {
|
|
3054
|
-
return localVarFp.listModelPortfolio(options).then(function (request) { return request(axios, basePath); });
|
|
3055
|
-
},
|
|
3056
|
-
/**
|
|
3057
|
-
*
|
|
3058
|
-
* @summary Get all accounts associated with a portfolio group
|
|
3059
|
-
* @param {PortfolioManagementApiListPortfolioAccountsRequest} requestParameters Request parameters.
|
|
3060
|
-
* @param {*} [options] Override http request option.
|
|
3061
|
-
* @throws {RequiredError}
|
|
3062
|
-
*/
|
|
3063
|
-
listPortfolioAccounts: function (requestParameters, options) {
|
|
3064
|
-
return localVarFp.listPortfolioAccounts(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3065
|
-
},
|
|
3066
|
-
/**
|
|
3067
|
-
*
|
|
3068
|
-
* @summary Updates model portfolio object
|
|
3069
|
-
* @param {PortfolioManagementApiModifyModelPortfolioByIdRequest} requestParameters Request parameters.
|
|
3070
|
-
* @param {*} [options] Override http request option.
|
|
3071
|
-
* @throws {RequiredError}
|
|
3072
|
-
*/
|
|
3073
|
-
modifyModelPortfolioById: function (requestParameters, options) {
|
|
3074
|
-
return localVarFp.modifyModelPortfolioById(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3075
|
-
},
|
|
3076
|
-
/**
|
|
3077
|
-
*
|
|
3078
|
-
* @summary Update an existing target portfolio.
|
|
3079
|
-
* @param {PortfolioManagementApiSavePortfolioRequest} requestParameters Request parameters.
|
|
3080
|
-
* @param {*} [options] Override http request option.
|
|
3081
|
-
* @throws {RequiredError}
|
|
3082
|
-
*/
|
|
3083
|
-
savePortfolio: function (requestParameters, options) {
|
|
3084
|
-
return localVarFp.savePortfolio(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3085
|
-
},
|
|
3086
|
-
/**
|
|
3087
|
-
*
|
|
3088
|
-
* @summary Search for symbols limited to brokerages under the specified portfolio group
|
|
3089
|
-
* @param {PortfolioManagementApiSearchPortfolioSymbolsRequest} requestParameters Request parameters.
|
|
3090
|
-
* @param {*} [options] Override http request option.
|
|
3091
|
-
* @throws {RequiredError}
|
|
3092
|
-
*/
|
|
3093
|
-
searchPortfolioSymbols: function (requestParameters, options) {
|
|
3094
|
-
return localVarFp.searchPortfolioSymbols(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3095
|
-
},
|
|
3096
|
-
/**
|
|
3097
|
-
*
|
|
3098
|
-
* @summary Set a new list of target assets under the specified PortfolioGroup. All existing target assets under this portfolio group will be replaced with the new list.
|
|
3099
|
-
* @param {PortfolioManagementApiSetPortfolioTargetsRequest} requestParameters Request parameters.
|
|
3100
|
-
* @param {*} [options] Override http request option.
|
|
3101
|
-
* @throws {RequiredError}
|
|
3102
|
-
*/
|
|
3103
|
-
setPortfolioTargets: function (requestParameters, options) {
|
|
3104
|
-
return localVarFp.setPortfolioTargets(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3105
|
-
},
|
|
3106
|
-
/**
|
|
3107
|
-
*
|
|
3108
|
-
* @summary Updates model asset class objects
|
|
3109
|
-
* @param {PortfolioManagementApiUpdateAssetClassRequest} requestParameters Request parameters.
|
|
3110
|
-
* @param {*} [options] Override http request option.
|
|
3111
|
-
* @throws {RequiredError}
|
|
3112
|
-
*/
|
|
3113
|
-
updateAssetClass: function (requestParameters, options) {
|
|
3114
|
-
return localVarFp.updateAssetClass(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3115
|
-
},
|
|
3116
|
-
/**
|
|
3117
|
-
*
|
|
3118
|
-
* @summary Updates portfolio group settings
|
|
3119
|
-
* @param {PortfolioManagementApiUpdatePortfolioSettingsRequest} requestParameters Request parameters.
|
|
3120
|
-
* @param {*} [options] Override http request option.
|
|
3121
|
-
* @throws {RequiredError}
|
|
3122
|
-
*/
|
|
3123
|
-
updatePortfolioSettings: function (requestParameters, options) {
|
|
3124
|
-
return localVarFp.updatePortfolioSettings(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3125
|
-
},
|
|
3126
|
-
/**
|
|
3127
|
-
*
|
|
3128
|
-
* @summary Update a TargetAsset under the specified PortfolioGroup.
|
|
3129
|
-
* @param {PortfolioManagementApiUpdatePortfolioTargetByIdRequest} requestParameters Request parameters.
|
|
3130
|
-
* @param {*} [options] Override http request option.
|
|
3131
|
-
* @throws {RequiredError}
|
|
3132
|
-
*/
|
|
3133
|
-
updatePortfolioTargetById: function (requestParameters, options) {
|
|
3134
|
-
return localVarFp.updatePortfolioTargetById(requestParameters, options).then(function (request) { return request(axios, basePath); });
|
|
3135
|
-
},
|
|
3136
|
-
};
|
|
3137
|
-
};
|
|
3138
|
-
exports.PortfolioManagementApiFactory = PortfolioManagementApiFactory;
|
|
3139
|
-
/**
|
|
3140
|
-
* PortfolioManagementApi - object-oriented interface
|
|
3141
|
-
* @export
|
|
3142
|
-
* @class PortfolioManagementApi
|
|
3143
|
-
* @extends {BaseAPI}
|
|
3144
|
-
*/
|
|
3145
|
-
var PortfolioManagementApi = /** @class */ (function (_super) {
|
|
3146
|
-
__extends(PortfolioManagementApi, _super);
|
|
3147
|
-
function PortfolioManagementApi() {
|
|
3148
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
3149
|
-
}
|
|
3150
|
-
/**
|
|
3151
|
-
*
|
|
3152
|
-
* @summary Adds an asset to exclude to a portfolio group
|
|
3153
|
-
* @param {PortfolioManagementApiAddPortfolioExcludedAssetRequest} requestParameters Request parameters.
|
|
3154
|
-
* @param {*} [options] Override http request option.
|
|
3155
|
-
* @throws {RequiredError}
|
|
3156
|
-
* @memberof PortfolioManagementApi
|
|
3157
|
-
*/
|
|
3158
|
-
PortfolioManagementApi.prototype.addPortfolioExcludedAsset = function (requestParameters, options) {
|
|
3159
|
-
var _this = this;
|
|
3160
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).addPortfolioExcludedAsset(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3161
|
-
};
|
|
3162
|
-
/**
|
|
3163
|
-
*
|
|
3164
|
-
* @summary Create new portfolio group
|
|
3165
|
-
* @param {PortfolioManagementApiCreateRequest} requestParameters Request parameters.
|
|
3166
|
-
* @param {*} [options] Override http request option.
|
|
3167
|
-
* @throws {RequiredError}
|
|
3168
|
-
* @memberof PortfolioManagementApi
|
|
3169
|
-
*/
|
|
3170
|
-
PortfolioManagementApi.prototype.create = function (requestParameters, options) {
|
|
3171
|
-
var _this = this;
|
|
3172
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).create(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3173
|
-
};
|
|
3174
|
-
/**
|
|
3175
|
-
*
|
|
3176
|
-
* @summary Create a new model asset class
|
|
3177
|
-
* @param {PortfolioManagementApiCreateAssetClassRequest} requestParameters Request parameters.
|
|
3178
|
-
* @param {*} [options] Override http request option.
|
|
3179
|
-
* @throws {RequiredError}
|
|
3180
|
-
* @memberof PortfolioManagementApi
|
|
3181
|
-
*/
|
|
3182
|
-
PortfolioManagementApi.prototype.createAssetClass = function (requestParameters, options) {
|
|
3183
|
-
var _this = this;
|
|
3184
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).createAssetClass(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3185
|
-
};
|
|
3186
|
-
/**
|
|
3187
|
-
*
|
|
3188
|
-
* @summary Creates a new model portfolio
|
|
3189
|
-
* @param {*} [options] Override http request option.
|
|
3190
|
-
* @throws {RequiredError}
|
|
3191
|
-
* @memberof PortfolioManagementApi
|
|
3192
|
-
*/
|
|
3193
|
-
PortfolioManagementApi.prototype.createModelPortfolio = function (options) {
|
|
3194
|
-
var _this = this;
|
|
3195
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).createModelPortfolio(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3196
|
-
};
|
|
3197
|
-
/**
|
|
3198
|
-
*
|
|
3199
|
-
* @summary Deletes a model asset class
|
|
3200
|
-
* @param {PortfolioManagementApiDeleteAssetClassRequest} requestParameters Request parameters.
|
|
3201
|
-
* @param {*} [options] Override http request option.
|
|
3202
|
-
* @throws {RequiredError}
|
|
3203
|
-
* @memberof PortfolioManagementApi
|
|
3204
|
-
*/
|
|
3205
|
-
PortfolioManagementApi.prototype.deleteAssetClass = function (requestParameters, options) {
|
|
3206
|
-
var _this = this;
|
|
3207
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).deleteAssetClass(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3208
|
-
};
|
|
3209
|
-
/**
|
|
3210
|
-
*
|
|
3211
|
-
* @summary Unexclude an asset from a portfolio group
|
|
3212
|
-
* @param {PortfolioManagementApiDeleteExcludedAssetRequest} requestParameters Request parameters.
|
|
3213
|
-
* @param {*} [options] Override http request option.
|
|
3214
|
-
* @throws {RequiredError}
|
|
3215
|
-
* @memberof PortfolioManagementApi
|
|
3216
|
-
*/
|
|
3217
|
-
PortfolioManagementApi.prototype.deleteExcludedAsset = function (requestParameters, options) {
|
|
3218
|
-
var _this = this;
|
|
3219
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).deleteExcludedAsset(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3220
|
-
};
|
|
3221
|
-
/**
|
|
3222
|
-
*
|
|
3223
|
-
* @summary Deletes a model portfolio
|
|
3224
|
-
* @param {PortfolioManagementApiDeleteModelPortfolioByIdRequest} requestParameters Request parameters.
|
|
3225
|
-
* @param {*} [options] Override http request option.
|
|
3226
|
-
* @throws {RequiredError}
|
|
3227
|
-
* @memberof PortfolioManagementApi
|
|
3228
|
-
*/
|
|
3229
|
-
PortfolioManagementApi.prototype.deleteModelPortfolioById = function (requestParameters, options) {
|
|
3230
|
-
var _this = this;
|
|
3231
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).deleteModelPortfolioById(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3232
|
-
};
|
|
3233
|
-
/**
|
|
3234
|
-
*
|
|
3235
|
-
* @summary Remove a target portfolio.
|
|
3236
|
-
* @param {PortfolioManagementApiDeletePortfoliRequest} requestParameters Request parameters.
|
|
3237
|
-
* @param {*} [options] Override http request option.
|
|
3238
|
-
* @throws {RequiredError}
|
|
3239
|
-
* @memberof PortfolioManagementApi
|
|
3240
|
-
*/
|
|
3241
|
-
PortfolioManagementApi.prototype.deletePortfoli = function (requestParameters, options) {
|
|
3242
|
-
var _this = this;
|
|
3243
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).deletePortfoli(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3244
|
-
};
|
|
3245
|
-
/**
|
|
3246
|
-
*
|
|
3247
|
-
* @summary Remove a TargetAsset.
|
|
3248
|
-
* @param {PortfolioManagementApiDeletePortfolioTargetByIdRequest} requestParameters Request parameters.
|
|
3249
|
-
* @param {*} [options] Override http request option.
|
|
3250
|
-
* @throws {RequiredError}
|
|
3251
|
-
* @memberof PortfolioManagementApi
|
|
3252
|
-
*/
|
|
3253
|
-
PortfolioManagementApi.prototype.deletePortfolioTargetById = function (requestParameters, options) {
|
|
3254
|
-
var _this = this;
|
|
3255
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).deletePortfolioTargetById(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3256
|
-
};
|
|
3257
|
-
/**
|
|
3258
|
-
*
|
|
3259
|
-
* @summary Get details of a model asset class
|
|
3260
|
-
* @param {PortfolioManagementApiDetailAssetClassRequest} requestParameters Request parameters.
|
|
3261
|
-
* @param {*} [options] Override http request option.
|
|
3262
|
-
* @throws {RequiredError}
|
|
3263
|
-
* @memberof PortfolioManagementApi
|
|
3264
|
-
*/
|
|
3265
|
-
PortfolioManagementApi.prototype.detailAssetClass = function (requestParameters, options) {
|
|
3266
|
-
var _this = this;
|
|
3267
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).detailAssetClass(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3268
|
-
};
|
|
3269
|
-
/**
|
|
3270
|
-
*
|
|
3271
|
-
* @summary Return an individual trade
|
|
3272
|
-
* @param {PortfolioManagementApiGetCalculatedTradeByIdRequest} requestParameters Request parameters.
|
|
3273
|
-
* @param {*} [options] Override http request option.
|
|
3274
|
-
* @throws {RequiredError}
|
|
3275
|
-
* @memberof PortfolioManagementApi
|
|
3276
|
-
*/
|
|
3277
|
-
PortfolioManagementApi.prototype.getCalculatedTradeById = function (requestParameters, options) {
|
|
3278
|
-
var _this = this;
|
|
3279
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).getCalculatedTradeById(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3280
|
-
};
|
|
3281
|
-
/**
|
|
3282
|
-
*
|
|
3283
|
-
* @summary Get details of a model portfolio
|
|
3284
|
-
* @param {PortfolioManagementApiGetModelDetailsByIdRequest} requestParameters Request parameters.
|
|
3285
|
-
* @param {*} [options] Override http request option.
|
|
3286
|
-
* @throws {RequiredError}
|
|
3287
|
-
* @memberof PortfolioManagementApi
|
|
3288
|
-
*/
|
|
3289
|
-
PortfolioManagementApi.prototype.getModelDetailsById = function (requestParameters, options) {
|
|
3290
|
-
var _this = this;
|
|
3291
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).getModelDetailsById(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3292
|
-
};
|
|
3293
|
-
/**
|
|
3294
|
-
*
|
|
3295
|
-
* @summary Get sum of cash balances in portfolio group
|
|
3296
|
-
* @param {PortfolioManagementApiGetPortfolioBalancesRequest} requestParameters Request parameters.
|
|
3297
|
-
* @param {*} [options] Override http request option.
|
|
3298
|
-
* @throws {RequiredError}
|
|
3299
|
-
* @memberof PortfolioManagementApi
|
|
3300
|
-
*/
|
|
3301
|
-
PortfolioManagementApi.prototype.getPortfolioBalances = function (requestParameters, options) {
|
|
3302
|
-
var _this = this;
|
|
3303
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).getPortfolioBalances(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3304
|
-
};
|
|
3305
|
-
/**
|
|
3306
|
-
*
|
|
3307
|
-
* @summary Get details of a target portfolio
|
|
3308
|
-
* @param {PortfolioManagementApiGetPortfolioDetailsByIdRequest} requestParameters Request parameters.
|
|
3309
|
-
* @param {*} [options] Override http request option.
|
|
3310
|
-
* @throws {RequiredError}
|
|
3311
|
-
* @memberof PortfolioManagementApi
|
|
3312
|
-
*/
|
|
3313
|
-
PortfolioManagementApi.prototype.getPortfolioDetailsById = function (requestParameters, options) {
|
|
3314
|
-
var _this = this;
|
|
3315
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).getPortfolioDetailsById(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3316
|
-
};
|
|
3317
|
-
/**
|
|
3318
|
-
*
|
|
3319
|
-
* @summary Return a whole bunch of relevant information relating to a portfolio group.
|
|
3320
|
-
* @param {PortfolioManagementApiGetPortfolioInfoRequest} requestParameters Request parameters.
|
|
3321
|
-
* @param {*} [options] Override http request option.
|
|
3322
|
-
* @throws {RequiredError}
|
|
3323
|
-
* @memberof PortfolioManagementApi
|
|
3324
|
-
*/
|
|
3325
|
-
PortfolioManagementApi.prototype.getPortfolioInfo = function (requestParameters, options) {
|
|
3326
|
-
var _this = this;
|
|
3327
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).getPortfolioInfo(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3328
|
-
};
|
|
3329
|
-
/**
|
|
3330
|
-
*
|
|
3331
|
-
* @summary Get portfolio group settings
|
|
3332
|
-
* @param {PortfolioManagementApiGetPortfolioSettingsRequest} requestParameters Request parameters.
|
|
3333
|
-
* @param {*} [options] Override http request option.
|
|
3334
|
-
* @throws {RequiredError}
|
|
3335
|
-
* @memberof PortfolioManagementApi
|
|
3336
|
-
*/
|
|
3337
|
-
PortfolioManagementApi.prototype.getPortfolioSettings = function (requestParameters, options) {
|
|
3338
|
-
var _this = this;
|
|
3339
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).getPortfolioSettings(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3340
|
-
};
|
|
3341
|
-
/**
|
|
3342
|
-
*
|
|
3343
|
-
* @summary Get a specific target from a portfolio group
|
|
3344
|
-
* @param {PortfolioManagementApiGetPortfolioTargetByIdRequest} requestParameters Request parameters.
|
|
3345
|
-
* @param {*} [options] Override http request option.
|
|
3346
|
-
* @throws {RequiredError}
|
|
3347
|
-
* @memberof PortfolioManagementApi
|
|
3348
|
-
*/
|
|
3349
|
-
PortfolioManagementApi.prototype.getPortfolioTargetById = function (requestParameters, options) {
|
|
3350
|
-
var _this = this;
|
|
3351
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).getPortfolioTargetById(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3352
|
-
};
|
|
3353
|
-
/**
|
|
3354
|
-
*
|
|
3355
|
-
* @summary Get all target assets under the specified PortfolioGroup.
|
|
3356
|
-
* @param {PortfolioManagementApiGetPortfolioTargetsRequest} requestParameters Request parameters.
|
|
3357
|
-
* @param {*} [options] Override http request option.
|
|
3358
|
-
* @throws {RequiredError}
|
|
3359
|
-
* @memberof PortfolioManagementApi
|
|
3360
|
-
*/
|
|
3361
|
-
PortfolioManagementApi.prototype.getPortfolioTargets = function (requestParameters, options) {
|
|
3362
|
-
var _this = this;
|
|
3363
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).getPortfolioTargets(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3364
|
-
};
|
|
3365
|
-
/**
|
|
3366
|
-
*
|
|
3367
|
-
* @summary Get an array of excluded assets associated with a portfolio group\\
|
|
3368
|
-
* @param {PortfolioManagementApiGetPortoflioExcludedAssetsRequest} requestParameters Request parameters.
|
|
3369
|
-
* @param {*} [options] Override http request option.
|
|
3370
|
-
* @throws {RequiredError}
|
|
3371
|
-
* @memberof PortfolioManagementApi
|
|
3372
|
-
*/
|
|
3373
|
-
PortfolioManagementApi.prototype.getPortoflioExcludedAssets = function (requestParameters, options) {
|
|
3374
|
-
var _this = this;
|
|
3375
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).getPortoflioExcludedAssets(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3376
|
-
};
|
|
3377
|
-
/**
|
|
3378
|
-
*
|
|
3379
|
-
* @summary Import target allocation based on portfolio group
|
|
3380
|
-
* @param {PortfolioManagementApiImportModelPortfolioRequest} requestParameters Request parameters.
|
|
3381
|
-
* @param {*} [options] Override http request option.
|
|
3382
|
-
* @throws {RequiredError}
|
|
3383
|
-
* @memberof PortfolioManagementApi
|
|
3384
|
-
*/
|
|
3385
|
-
PortfolioManagementApi.prototype.importModelPortfolio = function (requestParameters, options) {
|
|
3386
|
-
var _this = this;
|
|
3387
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).importModelPortfolio(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3388
|
-
};
|
|
3389
|
-
/**
|
|
3390
|
-
*
|
|
3391
|
-
* @summary List all portfolio groups
|
|
3392
|
-
* @param {PortfolioManagementApiListRequest} requestParameters Request parameters.
|
|
3393
|
-
* @param {*} [options] Override http request option.
|
|
3394
|
-
* @throws {RequiredError}
|
|
3395
|
-
* @memberof PortfolioManagementApi
|
|
3396
|
-
*/
|
|
3397
|
-
PortfolioManagementApi.prototype.list = function (requestParameters, options) {
|
|
3398
|
-
var _this = this;
|
|
3399
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).list(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3400
|
-
};
|
|
3401
|
-
/**
|
|
3402
|
-
*
|
|
3403
|
-
* @summary List of model asset class
|
|
3404
|
-
* @param {PortfolioManagementApiListAssetClassesRequest} requestParameters Request parameters.
|
|
3405
|
-
* @param {*} [options] Override http request option.
|
|
3406
|
-
* @throws {RequiredError}
|
|
3407
|
-
* @memberof PortfolioManagementApi
|
|
3408
|
-
*/
|
|
3409
|
-
PortfolioManagementApi.prototype.listAssetClasses = function (requestParameters, options) {
|
|
3410
|
-
var _this = this;
|
|
3411
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).listAssetClasses(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3412
|
-
};
|
|
3413
|
-
/**
|
|
3414
|
-
*
|
|
3415
|
-
* @summary List of trades to make to rebalance portfolio group
|
|
3416
|
-
* @param {PortfolioManagementApiListCalculatedTradesRequest} requestParameters Request parameters.
|
|
3417
|
-
* @param {*} [options] Override http request option.
|
|
3418
|
-
* @throws {RequiredError}
|
|
3419
|
-
* @memberof PortfolioManagementApi
|
|
3420
|
-
*/
|
|
3421
|
-
PortfolioManagementApi.prototype.listCalculatedTrades = function (requestParameters, options) {
|
|
3422
|
-
var _this = this;
|
|
3423
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).listCalculatedTrades(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3424
|
-
};
|
|
3425
|
-
/**
|
|
3426
|
-
*
|
|
3427
|
-
* @summary List of model portfolio
|
|
3428
|
-
* @param {*} [options] Override http request option.
|
|
3429
|
-
* @throws {RequiredError}
|
|
3430
|
-
* @memberof PortfolioManagementApi
|
|
3431
|
-
*/
|
|
3432
|
-
PortfolioManagementApi.prototype.listModelPortfolio = function (options) {
|
|
3433
|
-
var _this = this;
|
|
3434
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).listModelPortfolio(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3435
|
-
};
|
|
3436
|
-
/**
|
|
3437
|
-
*
|
|
3438
|
-
* @summary Get all accounts associated with a portfolio group
|
|
3439
|
-
* @param {PortfolioManagementApiListPortfolioAccountsRequest} requestParameters Request parameters.
|
|
3440
|
-
* @param {*} [options] Override http request option.
|
|
3441
|
-
* @throws {RequiredError}
|
|
3442
|
-
* @memberof PortfolioManagementApi
|
|
3443
|
-
*/
|
|
3444
|
-
PortfolioManagementApi.prototype.listPortfolioAccounts = function (requestParameters, options) {
|
|
3445
|
-
var _this = this;
|
|
3446
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).listPortfolioAccounts(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3447
|
-
};
|
|
3448
|
-
/**
|
|
3449
|
-
*
|
|
3450
|
-
* @summary Updates model portfolio object
|
|
3451
|
-
* @param {PortfolioManagementApiModifyModelPortfolioByIdRequest} requestParameters Request parameters.
|
|
3452
|
-
* @param {*} [options] Override http request option.
|
|
3453
|
-
* @throws {RequiredError}
|
|
3454
|
-
* @memberof PortfolioManagementApi
|
|
3455
|
-
*/
|
|
3456
|
-
PortfolioManagementApi.prototype.modifyModelPortfolioById = function (requestParameters, options) {
|
|
3457
|
-
var _this = this;
|
|
3458
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).modifyModelPortfolioById(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3459
|
-
};
|
|
3460
|
-
/**
|
|
3461
|
-
*
|
|
3462
|
-
* @summary Update an existing target portfolio.
|
|
3463
|
-
* @param {PortfolioManagementApiSavePortfolioRequest} requestParameters Request parameters.
|
|
3464
|
-
* @param {*} [options] Override http request option.
|
|
3465
|
-
* @throws {RequiredError}
|
|
3466
|
-
* @memberof PortfolioManagementApi
|
|
3467
|
-
*/
|
|
3468
|
-
PortfolioManagementApi.prototype.savePortfolio = function (requestParameters, options) {
|
|
3469
|
-
var _this = this;
|
|
3470
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).savePortfolio(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3471
|
-
};
|
|
3472
|
-
/**
|
|
3473
|
-
*
|
|
3474
|
-
* @summary Search for symbols limited to brokerages under the specified portfolio group
|
|
3475
|
-
* @param {PortfolioManagementApiSearchPortfolioSymbolsRequest} requestParameters Request parameters.
|
|
3476
|
-
* @param {*} [options] Override http request option.
|
|
3477
|
-
* @throws {RequiredError}
|
|
3478
|
-
* @memberof PortfolioManagementApi
|
|
3479
|
-
*/
|
|
3480
|
-
PortfolioManagementApi.prototype.searchPortfolioSymbols = function (requestParameters, options) {
|
|
3481
|
-
var _this = this;
|
|
3482
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).searchPortfolioSymbols(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3483
|
-
};
|
|
3484
|
-
/**
|
|
3485
|
-
*
|
|
3486
|
-
* @summary Set a new list of target assets under the specified PortfolioGroup. All existing target assets under this portfolio group will be replaced with the new list.
|
|
3487
|
-
* @param {PortfolioManagementApiSetPortfolioTargetsRequest} requestParameters Request parameters.
|
|
3488
|
-
* @param {*} [options] Override http request option.
|
|
3489
|
-
* @throws {RequiredError}
|
|
3490
|
-
* @memberof PortfolioManagementApi
|
|
3491
|
-
*/
|
|
3492
|
-
PortfolioManagementApi.prototype.setPortfolioTargets = function (requestParameters, options) {
|
|
3493
|
-
var _this = this;
|
|
3494
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).setPortfolioTargets(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3495
|
-
};
|
|
3496
|
-
/**
|
|
3497
|
-
*
|
|
3498
|
-
* @summary Updates model asset class objects
|
|
3499
|
-
* @param {PortfolioManagementApiUpdateAssetClassRequest} requestParameters Request parameters.
|
|
3500
|
-
* @param {*} [options] Override http request option.
|
|
3501
|
-
* @throws {RequiredError}
|
|
3502
|
-
* @memberof PortfolioManagementApi
|
|
3503
|
-
*/
|
|
3504
|
-
PortfolioManagementApi.prototype.updateAssetClass = function (requestParameters, options) {
|
|
3505
|
-
var _this = this;
|
|
3506
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).updateAssetClass(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3507
|
-
};
|
|
3508
|
-
/**
|
|
3509
|
-
*
|
|
3510
|
-
* @summary Updates portfolio group settings
|
|
3511
|
-
* @param {PortfolioManagementApiUpdatePortfolioSettingsRequest} requestParameters Request parameters.
|
|
3512
|
-
* @param {*} [options] Override http request option.
|
|
3513
|
-
* @throws {RequiredError}
|
|
3514
|
-
* @memberof PortfolioManagementApi
|
|
3515
|
-
*/
|
|
3516
|
-
PortfolioManagementApi.prototype.updatePortfolioSettings = function (requestParameters, options) {
|
|
3517
|
-
var _this = this;
|
|
3518
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).updatePortfolioSettings(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3519
|
-
};
|
|
3520
|
-
/**
|
|
3521
|
-
*
|
|
3522
|
-
* @summary Update a TargetAsset under the specified PortfolioGroup.
|
|
3523
|
-
* @param {PortfolioManagementApiUpdatePortfolioTargetByIdRequest} requestParameters Request parameters.
|
|
3524
|
-
* @param {*} [options] Override http request option.
|
|
3525
|
-
* @throws {RequiredError}
|
|
3526
|
-
* @memberof PortfolioManagementApi
|
|
3527
|
-
*/
|
|
3528
|
-
PortfolioManagementApi.prototype.updatePortfolioTargetById = function (requestParameters, options) {
|
|
3529
|
-
var _this = this;
|
|
3530
|
-
return (0, exports.PortfolioManagementApiFp)(this.configuration).updatePortfolioTargetById(requestParameters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3531
|
-
};
|
|
3532
|
-
return PortfolioManagementApi;
|
|
3533
|
-
}(portfolio_management_api_custom_1.PortfolioManagementApiCustom));
|
|
3534
|
-
exports.PortfolioManagementApi = PortfolioManagementApi;
|