@grvt/client 1.6.21 → 1.6.23
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/TDG/index.d.ts +3 -3
- package/TDG/index.js +6 -4
- package/interfaces/codegen/data.interface.d.ts +10 -0
- package/interfaces/codegen/enums/cluster-config-type.d.ts +2 -1
- package/interfaces/codegen/enums/cluster-config-type.js +4 -1
- package/interfaces/codegen/schema-maps/api_batch_query_vault_performance_request.js +4 -2
- package/interfaces/codegen/schema-maps/api_query_account_performance_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_account_performance_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_query_account_performance_trend_request.js +2 -0
- package/interfaces/codegen/schema-maps/api_vault_performance.js +10 -2
- package/interfaces/codegen/schema-maps/query_first_vault_snapshots_request.js +4 -2
- package/package.json +1 -1
package/TDG/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import type { IAckResponse, IApiAddIsolatedPositionMarginRequest, IApiAddIsolatedPositionMarginResponse, IApiAggregatedAccountSummaryResponse, IApiAuthorizeBuilderRequest, IApiBuilderFillHistoryRequest, IApiBuilderFillHistoryResponse, IApiCancelAllOrdersRequest, IApiCancelAllOrdersResponse, IApiCancelOrderRequest, IApiCancelOrderResponse, IApiCreateBulkOrdersRequest, IApiCreateBulkOrdersResponse, IApiCreateOrderRequest, IApiCreateOrderResponse, IApiCrossExchVaultAttestEquityRequest, IApiCrossExchVaultGetInvestorAllocationStatsResponse, IApiCrossExchVaultInvestCancelRequest, IApiCrossExchVaultLockRequest, IApiCrossExchVaultPreInternalTransferCheckRequest, IApiCrossExchVaultPreInternalTransferCheckResponse, IApiCrossExchVaultPreWithdrawCheckRequest, IApiCrossExchVaultPreWithdrawCheckResponse, IApiCrossExchVaultTriggerRedemptionRequest, IApiCrossExchVaultUnlockRequest, IApiCrossExchVaultViewInvestmentQueueRequest, IApiCrossExchVaultViewInvestmentQueueResponse, IApiCrossExchVaultViewPendingInvestmentRequest, IApiCrossExchVaultViewPendingInvestmentResponse, IApiDedustPositionRequest, IApiDedustPositionResponse, IApiDepositHistoryRequest, IApiDepositHistoryResponse, IApiFillHistoryRequest, IApiFillHistoryResponse, IApiFundingAccountSummaryResponse, IApiFundingPaymentHistoryRequest, IApiFundingPaymentHistoryResponse, IApiGetAllInitialLeverageRequest, IApiGetAllInitialLeverageResponse, IApiGetAuthorizedBuildersResponse, IApiGetIsolatedPositionMarginLimitsRequest, IApiGetIsolatedPositionMarginLimitsResponse, IApiGetMarginTiersResponse, IApiGetOrderGroupRequest, IApiGetOrderGroupResponse, IApiGetOrderRequest, IApiGetOrderResponse, IApiGetPriceProtectionBandsResponse, IApiOpenOrdersRequest, IApiOpenOrdersResponse, IApiOrderHistoryRequest, IApiOrderHistoryResponse, IApiPositionsRequest, IApiPositionsResponse, IApiPreDepositCheckRequest, IApiPreDepositCheckResponse, IApiPreOrderCheckRequest, IApiPreOrderCheckResponse, IApiQueryAccountDailyPerformanceRequest, IApiQueryAccountDailyPerformanceResponse, IApiQueryAccountPerformanceResponse, IApiQueryAccountPerformanceTrendRequest, IApiQueryAccountPerformanceTrendResponse, IApiQueryAccountTodayPerformanceResponse, IApiQueryListFundingAccountSummaryRequest, IApiQueryListFundingAccountSummaryResponse, IApiQueryListSubAccountSummaryRequest, IApiQueryListSubAccountSummaryResponse, IApiQuerySubAccountDailyPerformanceRequest, IApiQuerySubAccountDailyPerformanceResponse, IApiQuerySubAccountTodayPerformanceRequest, IApiQuerySubAccountTodayPerformanceResponse, IApiQueryTradingAccountRiskMetricRequest, IApiQueryTradingAccountRiskMetricResponse, IApiQueryTradingPerformanceRequest, IApiQueryTradingPerformanceResponse, IApiQueryTradingPerformanceSummaryRequest, IApiQueryTradingPerformanceSummaryResponse, IApiQueryTradingPerformanceTrendRequest, IApiQueryTradingPerformanceTrendResponse, IApiQueryVaultInvestorHistoryRequest, IApiQueryVaultInvestorHistoryResponse, IApiQueryVaultManagerInvestorHistoryRequest, IApiQueryVaultManagerInvestorHistoryResponse, IApiReplaceOrdersRequest, IApiReplaceOrdersResponse, IApiSetInitialLeverageRequest, IApiSetInitialLeverageResponse, IApiSetSubAccountPositionMarginConfigRequest, IApiSetSubAccountPositionMarginConfigResponse, IApiSocializedLossStatusResponse, IApiSubAccountHistoryRequest, IApiSubAccountHistoryResponse, IApiSubAccountSummaryRequest, IApiSubAccountSummaryResponse, IApiTimedAssetExposureRequest, IApiTimedAssetExposureResponse, IApiTransferHistoryRequest, IApiTransferHistoryResponse, IApiTransferRequest, IApiTransferResponse, IApiVaultBurnTokensRequest, IApiVaultInvestorSummaryRequest, IApiVaultInvestorSummaryResponse, IApiVaultInvestRequest, IApiVaultRedeemCancelRequest, IApiVaultRedeemRequest, IApiVaultViewRedemptionQueueRequest, IApiVaultViewRedemptionQueueResponse, IApiWithdrawalHistoryRequest, IApiWithdrawalHistoryResponse, IApiWithdrawalRequest, IConfig } from '../interfaces';
|
|
2
|
+
import type { IAckResponse, IApiAddIsolatedPositionMarginRequest, IApiAddIsolatedPositionMarginResponse, IApiAggregatedAccountSummaryResponse, IApiAuthorizeBuilderRequest, IApiBuilderFillHistoryRequest, IApiBuilderFillHistoryResponse, IApiCancelAllOrdersRequest, IApiCancelAllOrdersResponse, IApiCancelOrderRequest, IApiCancelOrderResponse, IApiCreateBulkOrdersRequest, IApiCreateBulkOrdersResponse, IApiCreateOrderRequest, IApiCreateOrderResponse, IApiCrossExchVaultAttestEquityRequest, IApiCrossExchVaultGetInvestorAllocationStatsResponse, IApiCrossExchVaultInvestCancelRequest, IApiCrossExchVaultLockRequest, IApiCrossExchVaultPreInternalTransferCheckRequest, IApiCrossExchVaultPreInternalTransferCheckResponse, IApiCrossExchVaultPreWithdrawCheckRequest, IApiCrossExchVaultPreWithdrawCheckResponse, IApiCrossExchVaultTriggerRedemptionRequest, IApiCrossExchVaultUnlockRequest, IApiCrossExchVaultViewInvestmentQueueRequest, IApiCrossExchVaultViewInvestmentQueueResponse, IApiCrossExchVaultViewPendingInvestmentRequest, IApiCrossExchVaultViewPendingInvestmentResponse, IApiDedustPositionRequest, IApiDedustPositionResponse, IApiDepositHistoryRequest, IApiDepositHistoryResponse, IApiFillHistoryRequest, IApiFillHistoryResponse, IApiFundingAccountSummaryResponse, IApiFundingPaymentHistoryRequest, IApiFundingPaymentHistoryResponse, IApiGetAllInitialLeverageRequest, IApiGetAllInitialLeverageResponse, IApiGetAuthorizedBuildersResponse, IApiGetIsolatedPositionMarginLimitsRequest, IApiGetIsolatedPositionMarginLimitsResponse, IApiGetMarginTiersResponse, IApiGetOrderGroupRequest, IApiGetOrderGroupResponse, IApiGetOrderRequest, IApiGetOrderResponse, IApiGetPriceProtectionBandsResponse, IApiOpenOrdersRequest, IApiOpenOrdersResponse, IApiOrderHistoryRequest, IApiOrderHistoryResponse, IApiPositionsRequest, IApiPositionsResponse, IApiPreDepositCheckRequest, IApiPreDepositCheckResponse, IApiPreOrderCheckRequest, IApiPreOrderCheckResponse, IApiQueryAccountDailyPerformanceRequest, IApiQueryAccountDailyPerformanceResponse, IApiQueryAccountPerformanceRequest, IApiQueryAccountPerformanceResponse, IApiQueryAccountPerformanceTrendRequest, IApiQueryAccountPerformanceTrendResponse, IApiQueryAccountTodayPerformanceRequest, IApiQueryAccountTodayPerformanceResponse, IApiQueryListFundingAccountSummaryRequest, IApiQueryListFundingAccountSummaryResponse, IApiQueryListSubAccountSummaryRequest, IApiQueryListSubAccountSummaryResponse, IApiQuerySubAccountDailyPerformanceRequest, IApiQuerySubAccountDailyPerformanceResponse, IApiQuerySubAccountTodayPerformanceRequest, IApiQuerySubAccountTodayPerformanceResponse, IApiQueryTradingAccountRiskMetricRequest, IApiQueryTradingAccountRiskMetricResponse, IApiQueryTradingPerformanceRequest, IApiQueryTradingPerformanceResponse, IApiQueryTradingPerformanceSummaryRequest, IApiQueryTradingPerformanceSummaryResponse, IApiQueryTradingPerformanceTrendRequest, IApiQueryTradingPerformanceTrendResponse, IApiQueryVaultInvestorHistoryRequest, IApiQueryVaultInvestorHistoryResponse, IApiQueryVaultManagerInvestorHistoryRequest, IApiQueryVaultManagerInvestorHistoryResponse, IApiReplaceOrdersRequest, IApiReplaceOrdersResponse, IApiSetInitialLeverageRequest, IApiSetInitialLeverageResponse, IApiSetSubAccountPositionMarginConfigRequest, IApiSetSubAccountPositionMarginConfigResponse, IApiSocializedLossStatusResponse, IApiSubAccountHistoryRequest, IApiSubAccountHistoryResponse, IApiSubAccountSummaryRequest, IApiSubAccountSummaryResponse, IApiTimedAssetExposureRequest, IApiTimedAssetExposureResponse, IApiTransferHistoryRequest, IApiTransferHistoryResponse, IApiTransferRequest, IApiTransferResponse, IApiVaultBurnTokensRequest, IApiVaultInvestorSummaryRequest, IApiVaultInvestorSummaryResponse, IApiVaultInvestRequest, IApiVaultRedeemCancelRequest, IApiVaultRedeemRequest, IApiVaultViewRedemptionQueueRequest, IApiVaultViewRedemptionQueueResponse, IApiWithdrawalHistoryRequest, IApiWithdrawalHistoryResponse, IApiWithdrawalRequest, IConfig } from '../interfaces';
|
|
3
3
|
export declare class TDG {
|
|
4
4
|
private readonly _axios;
|
|
5
5
|
private readonly _fullUrl;
|
|
@@ -152,11 +152,11 @@ export declare class TDG {
|
|
|
152
152
|
/**
|
|
153
153
|
* START: Portfolio
|
|
154
154
|
*/
|
|
155
|
-
accountTodayPerformance(config?: AxiosRequestConfig): Promise<IApiQueryAccountTodayPerformanceResponse>;
|
|
155
|
+
accountTodayPerformance(payload: IApiQueryAccountTodayPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQueryAccountTodayPerformanceResponse>;
|
|
156
156
|
accountPerformanceTrend(payload: IApiQueryAccountPerformanceTrendRequest, config?: AxiosRequestConfig): Promise<IApiQueryAccountPerformanceTrendResponse>;
|
|
157
157
|
tradingPerformanceSummary(payload: IApiQueryTradingPerformanceSummaryRequest, config?: AxiosRequestConfig): Promise<IApiQueryTradingPerformanceSummaryResponse>;
|
|
158
158
|
subAccountRiskMetric(payload: IApiQueryTradingAccountRiskMetricRequest, config?: AxiosRequestConfig): Promise<IApiQueryTradingAccountRiskMetricResponse>;
|
|
159
|
-
accountPerformance(config?: AxiosRequestConfig): Promise<IApiQueryAccountPerformanceResponse>;
|
|
159
|
+
accountPerformance(payload: IApiQueryAccountPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQueryAccountPerformanceResponse>;
|
|
160
160
|
accountDailyPerformance(payload: IApiQueryAccountDailyPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQueryAccountDailyPerformanceResponse>;
|
|
161
161
|
subAccountDailyPerformance(payload: IApiQuerySubAccountDailyPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQuerySubAccountDailyPerformanceResponse>;
|
|
162
162
|
subAccountTodayPerformance(payload: IApiQuerySubAccountTodayPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQuerySubAccountTodayPerformanceResponse>;
|
package/TDG/index.js
CHANGED
|
@@ -63,9 +63,11 @@ const api_pre_order_check_request_1 = require("../interfaces/codegen/schema-maps
|
|
|
63
63
|
const api_pre_order_check_response_1 = require("../interfaces/codegen/schema-maps/api_pre_order_check_response");
|
|
64
64
|
const api_query_account_daily_performance_request_1 = require("../interfaces/codegen/schema-maps/api_query_account_daily_performance_request");
|
|
65
65
|
const api_query_account_daily_performance_response_1 = require("../interfaces/codegen/schema-maps/api_query_account_daily_performance_response");
|
|
66
|
+
const api_query_account_performance_request_1 = require("../interfaces/codegen/schema-maps/api_query_account_performance_request");
|
|
66
67
|
const api_query_account_performance_response_1 = require("../interfaces/codegen/schema-maps/api_query_account_performance_response");
|
|
67
68
|
const api_query_account_performance_trend_request_1 = require("../interfaces/codegen/schema-maps/api_query_account_performance_trend_request");
|
|
68
69
|
const api_query_account_performance_trend_response_1 = require("../interfaces/codegen/schema-maps/api_query_account_performance_trend_response");
|
|
70
|
+
const api_query_account_today_performance_request_1 = require("../interfaces/codegen/schema-maps/api_query_account_today_performance_request");
|
|
69
71
|
const api_query_account_today_performance_response_1 = require("../interfaces/codegen/schema-maps/api_query_account_today_performance_response");
|
|
70
72
|
const api_query_list_funding_account_summary_request_1 = require("../interfaces/codegen/schema-maps/api_query_list_funding_account_summary_request");
|
|
71
73
|
const api_query_list_funding_account_summary_response_1 = require("../interfaces/codegen/schema-maps/api_query_list_funding_account_summary_response");
|
|
@@ -509,8 +511,8 @@ class TDG {
|
|
|
509
511
|
/**
|
|
510
512
|
* START: Portfolio
|
|
511
513
|
*/
|
|
512
|
-
accountTodayPerformance(config) {
|
|
513
|
-
return this._axios.post(this._liteUrl + '/account_today_performance',
|
|
514
|
+
accountTodayPerformance(payload, config) {
|
|
515
|
+
return this._axios.post(this._liteUrl + '/account_today_performance', utils_1.Utils.schemaMap(payload, api_query_account_today_performance_request_1.API_QUERY_ACCOUNT_TODAY_PERFORMANCE_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
514
516
|
return utils_1.Utils.schemaMap(response.data, api_query_account_today_performance_response_1.API_QUERY_ACCOUNT_TODAY_PERFORMANCE_RESPONSE_MAP.LITE_TO_FULL);
|
|
515
517
|
}).catch(utils_1.Utils.coverApiError);
|
|
516
518
|
}
|
|
@@ -529,8 +531,8 @@ class TDG {
|
|
|
529
531
|
return utils_1.Utils.schemaMap(response.data, api_query_trading_account_risk_metric_response_1.API_QUERY_TRADING_ACCOUNT_RISK_METRIC_RESPONSE_MAP.LITE_TO_FULL);
|
|
530
532
|
}).catch(utils_1.Utils.coverApiError);
|
|
531
533
|
}
|
|
532
|
-
accountPerformance(config) {
|
|
533
|
-
return this._axios.post(this._liteUrl + '/account_performance',
|
|
534
|
+
accountPerformance(payload, config) {
|
|
535
|
+
return this._axios.post(this._liteUrl + '/account_performance', utils_1.Utils.schemaMap(payload, api_query_account_performance_request_1.API_QUERY_ACCOUNT_PERFORMANCE_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
534
536
|
return utils_1.Utils.schemaMap(response.data, api_query_account_performance_response_1.API_QUERY_ACCOUNT_PERFORMANCE_RESPONSE_MAP.LITE_TO_FULL);
|
|
535
537
|
}).catch(utils_1.Utils.coverApiError);
|
|
536
538
|
}
|
|
@@ -136,6 +136,7 @@ export interface IApiBatchQueryVaultDetailResponse {
|
|
|
136
136
|
}
|
|
137
137
|
export interface IApiBatchQueryVaultPerformanceRequest {
|
|
138
138
|
vault_i_ds?: string[];
|
|
139
|
+
use_annualized_returns?: boolean;
|
|
139
140
|
}
|
|
140
141
|
export interface IApiBatchQueryVaultPerformanceResponse {
|
|
141
142
|
result?: IApiVaultPerformance[];
|
|
@@ -885,11 +886,15 @@ export interface IApiQueryAccountDailyPerformanceRequest {
|
|
|
885
886
|
export interface IApiQueryAccountDailyPerformanceResponse {
|
|
886
887
|
result?: IApiAccountPerformanceTrend[];
|
|
887
888
|
}
|
|
889
|
+
export interface IApiQueryAccountPerformanceRequest {
|
|
890
|
+
currency?: EPortfolioCurrency;
|
|
891
|
+
}
|
|
888
892
|
export interface IApiQueryAccountPerformanceResponse {
|
|
889
893
|
aggregated_pnl?: string;
|
|
890
894
|
investment_pnl?: string;
|
|
891
895
|
}
|
|
892
896
|
export interface IApiQueryAccountPerformanceTrendRequest {
|
|
897
|
+
currency?: EPortfolioCurrency;
|
|
893
898
|
time_interval?: ETimeInterval;
|
|
894
899
|
start_time?: string;
|
|
895
900
|
end_time?: string;
|
|
@@ -1325,6 +1330,10 @@ export interface IApiVaultPerformance {
|
|
|
1325
1330
|
realized_pnl?: string;
|
|
1326
1331
|
pnl?: string;
|
|
1327
1332
|
cumulative_pnl?: string;
|
|
1333
|
+
return_since_interception?: number;
|
|
1334
|
+
return_30_d?: number;
|
|
1335
|
+
return_90_d?: number;
|
|
1336
|
+
return_ytd?: number;
|
|
1328
1337
|
}
|
|
1329
1338
|
export interface IApiVaultPerformanceTrend {
|
|
1330
1339
|
start_interval?: string;
|
|
@@ -2027,6 +2036,7 @@ export interface IQueryFindEpochResponse {
|
|
|
2027
2036
|
}
|
|
2028
2037
|
export interface IQueryFirstVaultSnapshotsRequest {
|
|
2029
2038
|
vault_i_ds?: string[];
|
|
2039
|
+
start_time?: string;
|
|
2030
2040
|
}
|
|
2031
2041
|
export interface IQueryFirstVaultSnapshotsResponse {
|
|
2032
2042
|
result?: ILiteSnapVaultSummary[];
|
|
@@ -64,6 +64,7 @@ export declare enum EClusterConfigType {
|
|
|
64
64
|
FLAG_BUILDER_CODE = "FLAG_BUILDER_CODE",
|
|
65
65
|
FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION = "FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION",
|
|
66
66
|
FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE = "FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE",
|
|
67
|
-
FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS = "FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS"
|
|
67
|
+
FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS = "FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS",
|
|
68
|
+
FLAG_TRIGGER_ORDER_CANCELLATION_V_2 = "FLAG_TRIGGER_ORDER_CANCELLATION_V_2"
|
|
68
69
|
}
|
|
69
70
|
export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
|
|
@@ -135,6 +135,8 @@ var EClusterConfigType;
|
|
|
135
135
|
EClusterConfigType["FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE"] = "FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE";
|
|
136
136
|
// Flag to allow keeping session keys for 180 days
|
|
137
137
|
EClusterConfigType["FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS"] = "FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS";
|
|
138
|
+
// Flag Trigger Order Cancellation V2
|
|
139
|
+
EClusterConfigType["FLAG_TRIGGER_ORDER_CANCELLATION_V_2"] = "FLAG_TRIGGER_ORDER_CANCELLATION_V_2";
|
|
138
140
|
})(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
|
|
139
141
|
exports.EClusterConfigTypeInt = Object.freeze({
|
|
140
142
|
[EClusterConfigType.CLIENT_TIER]: 1,
|
|
@@ -202,5 +204,6 @@ exports.EClusterConfigTypeInt = Object.freeze({
|
|
|
202
204
|
[EClusterConfigType.FLAG_BUILDER_CODE]: 63,
|
|
203
205
|
[EClusterConfigType.FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION]: 64,
|
|
204
206
|
[EClusterConfigType.FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE]: 65,
|
|
205
|
-
[EClusterConfigType.FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS]: 66
|
|
207
|
+
[EClusterConfigType.FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS]: 66,
|
|
208
|
+
[EClusterConfigType.FLAG_TRIGGER_ORDER_CANCELLATION_V_2]: 67
|
|
206
209
|
});
|
|
@@ -4,9 +4,11 @@ exports.API_BATCH_QUERY_VAULT_PERFORMANCE_REQUEST_MAP = void 0;
|
|
|
4
4
|
// Schema map for the 'API_BATCH_QUERY_VAULT_PERFORMANCE_REQUEST' struct.
|
|
5
5
|
exports.API_BATCH_QUERY_VAULT_PERFORMANCE_REQUEST_MAP = Object.freeze({
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
|
-
vault_i_ds: 'vi'
|
|
7
|
+
vault_i_ds: 'vi',
|
|
8
|
+
use_annualized_returns: 'ua'
|
|
8
9
|
},
|
|
9
10
|
LITE_TO_FULL: {
|
|
10
|
-
vi: 'vault_i_ds'
|
|
11
|
+
vi: 'vault_i_ds',
|
|
12
|
+
ua: 'use_annualized_returns'
|
|
11
13
|
}
|
|
12
14
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_ACCOUNT_PERFORMANCE_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_QUERY_ACCOUNT_PERFORMANCE_REQUEST' struct.
|
|
5
|
+
exports.API_QUERY_ACCOUNT_PERFORMANCE_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
currency: 'c'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
c: 'currency'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -4,11 +4,13 @@ exports.API_QUERY_ACCOUNT_PERFORMANCE_TREND_REQUEST_MAP = void 0;
|
|
|
4
4
|
// Schema map for the 'API_QUERY_ACCOUNT_PERFORMANCE_TREND_REQUEST' struct.
|
|
5
5
|
exports.API_QUERY_ACCOUNT_PERFORMANCE_TREND_REQUEST_MAP = Object.freeze({
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
|
+
currency: 'c',
|
|
7
8
|
time_interval: 'ti',
|
|
8
9
|
start_time: 'st',
|
|
9
10
|
end_time: 'et'
|
|
10
11
|
},
|
|
11
12
|
LITE_TO_FULL: {
|
|
13
|
+
c: 'currency',
|
|
12
14
|
ti: 'time_interval',
|
|
13
15
|
st: 'start_time',
|
|
14
16
|
et: 'end_time'
|
|
@@ -9,7 +9,11 @@ exports.API_VAULT_PERFORMANCE_MAP = Object.freeze({
|
|
|
9
9
|
apr: 'a',
|
|
10
10
|
realized_pnl: 'rp',
|
|
11
11
|
pnl: 'p',
|
|
12
|
-
cumulative_pnl: 'cp'
|
|
12
|
+
cumulative_pnl: 'cp',
|
|
13
|
+
return_since_interception: 'rs',
|
|
14
|
+
return_30_d: 'r3',
|
|
15
|
+
return_90_d: 'r9',
|
|
16
|
+
return_ytd: 'ry'
|
|
13
17
|
},
|
|
14
18
|
LITE_TO_FULL: {
|
|
15
19
|
vi: 'vault_id',
|
|
@@ -17,6 +21,10 @@ exports.API_VAULT_PERFORMANCE_MAP = Object.freeze({
|
|
|
17
21
|
a: 'apr',
|
|
18
22
|
rp: 'realized_pnl',
|
|
19
23
|
p: 'pnl',
|
|
20
|
-
cp: 'cumulative_pnl'
|
|
24
|
+
cp: 'cumulative_pnl',
|
|
25
|
+
rs: 'return_since_interception',
|
|
26
|
+
r3: 'return_30_d',
|
|
27
|
+
r9: 'return_90_d',
|
|
28
|
+
ry: 'return_ytd'
|
|
21
29
|
}
|
|
22
30
|
});
|
|
@@ -4,9 +4,11 @@ exports.QUERY_FIRST_VAULT_SNAPSHOTS_REQUEST_MAP = void 0;
|
|
|
4
4
|
// Schema map for the 'QUERY_FIRST_VAULT_SNAPSHOTS_REQUEST' struct.
|
|
5
5
|
exports.QUERY_FIRST_VAULT_SNAPSHOTS_REQUEST_MAP = Object.freeze({
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
|
-
vault_i_ds: 'vi'
|
|
7
|
+
vault_i_ds: 'vi',
|
|
8
|
+
start_time: 'st'
|
|
8
9
|
},
|
|
9
10
|
LITE_TO_FULL: {
|
|
10
|
-
vi: 'vault_i_ds'
|
|
11
|
+
vi: 'vault_i_ds',
|
|
12
|
+
st: 'start_time'
|
|
11
13
|
}
|
|
12
14
|
});
|