@grvt/client 1.6.22 → 1.6.24

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 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, 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';
2
+ import type { IAckResponse, IApiAddIsolatedPositionMarginRequest, IApiAddIsolatedPositionMarginResponse, IApiAggregatedAccountSummaryResponse, IApiAuthorizeBuilderRequest, IApiBuilderFillHistoryRequest, IApiBuilderFillHistoryResponse, IApiBulkOrdersRequest, IApiBulkOrdersResponse, 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;
@@ -65,6 +65,7 @@ export declare class TDG {
65
65
  */
66
66
  createOrder(payload: IApiCreateOrderRequest, config?: AxiosRequestConfig): Promise<IApiCreateOrderResponse>;
67
67
  createBulkOrders(payload: IApiCreateBulkOrdersRequest, config?: AxiosRequestConfig): Promise<IApiCreateBulkOrdersResponse>;
68
+ bulkOrders(payload: IApiBulkOrdersRequest, config?: AxiosRequestConfig): Promise<IApiBulkOrdersResponse>;
68
69
  getPriceProtectionBands(config?: AxiosRequestConfig): Promise<IApiGetPriceProtectionBandsResponse>;
69
70
  preOrderCheck(payload: IApiPreOrderCheckRequest, config?: AxiosRequestConfig): Promise<IApiPreOrderCheckResponse>;
70
71
  dedustPosition(payload: IApiDedustPositionRequest, config?: AxiosRequestConfig): Promise<IApiDedustPositionResponse>;
@@ -156,7 +157,7 @@ export declare class TDG {
156
157
  accountPerformanceTrend(payload: IApiQueryAccountPerformanceTrendRequest, config?: AxiosRequestConfig): Promise<IApiQueryAccountPerformanceTrendResponse>;
157
158
  tradingPerformanceSummary(payload: IApiQueryTradingPerformanceSummaryRequest, config?: AxiosRequestConfig): Promise<IApiQueryTradingPerformanceSummaryResponse>;
158
159
  subAccountRiskMetric(payload: IApiQueryTradingAccountRiskMetricRequest, config?: AxiosRequestConfig): Promise<IApiQueryTradingAccountRiskMetricResponse>;
159
- accountPerformance(config?: AxiosRequestConfig): Promise<IApiQueryAccountPerformanceResponse>;
160
+ accountPerformance(payload: IApiQueryAccountPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQueryAccountPerformanceResponse>;
160
161
  accountDailyPerformance(payload: IApiQueryAccountDailyPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQueryAccountDailyPerformanceResponse>;
161
162
  subAccountDailyPerformance(payload: IApiQuerySubAccountDailyPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQuerySubAccountDailyPerformanceResponse>;
162
163
  subAccountTodayPerformance(payload: IApiQuerySubAccountTodayPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQuerySubAccountTodayPerformanceResponse>;
package/TDG/index.js CHANGED
@@ -9,6 +9,8 @@ const api_aggregated_account_summary_response_1 = require("../interfaces/codegen
9
9
  const api_authorize_builder_request_1 = require("../interfaces/codegen/schema-maps/api_authorize_builder_request");
10
10
  const api_builder_fill_history_request_1 = require("../interfaces/codegen/schema-maps/api_builder_fill_history_request");
11
11
  const api_builder_fill_history_response_1 = require("../interfaces/codegen/schema-maps/api_builder_fill_history_response");
12
+ const api_bulk_orders_request_1 = require("../interfaces/codegen/schema-maps/api_bulk_orders_request");
13
+ const api_bulk_orders_response_1 = require("../interfaces/codegen/schema-maps/api_bulk_orders_response");
12
14
  const api_cancel_all_orders_request_1 = require("../interfaces/codegen/schema-maps/api_cancel_all_orders_request");
13
15
  const api_cancel_all_orders_response_1 = require("../interfaces/codegen/schema-maps/api_cancel_all_orders_response");
14
16
  const api_cancel_order_request_1 = require("../interfaces/codegen/schema-maps/api_cancel_order_request");
@@ -63,6 +65,7 @@ const api_pre_order_check_request_1 = require("../interfaces/codegen/schema-maps
63
65
  const api_pre_order_check_response_1 = require("../interfaces/codegen/schema-maps/api_pre_order_check_response");
64
66
  const api_query_account_daily_performance_request_1 = require("../interfaces/codegen/schema-maps/api_query_account_daily_performance_request");
65
67
  const api_query_account_daily_performance_response_1 = require("../interfaces/codegen/schema-maps/api_query_account_daily_performance_response");
68
+ const api_query_account_performance_request_1 = require("../interfaces/codegen/schema-maps/api_query_account_performance_request");
66
69
  const api_query_account_performance_response_1 = require("../interfaces/codegen/schema-maps/api_query_account_performance_response");
67
70
  const api_query_account_performance_trend_request_1 = require("../interfaces/codegen/schema-maps/api_query_account_performance_trend_request");
68
71
  const api_query_account_performance_trend_response_1 = require("../interfaces/codegen/schema-maps/api_query_account_performance_trend_response");
@@ -267,6 +270,11 @@ class TDG {
267
270
  return utils_1.Utils.schemaMap(response.data, api_create_bulk_orders_response_1.API_CREATE_BULK_ORDERS_RESPONSE_MAP.LITE_TO_FULL);
268
271
  }).catch(utils_1.Utils.coverApiError);
269
272
  }
273
+ bulkOrders(payload, config) {
274
+ return this._axios.post(this._liteUrl + '/bulk_orders', utils_1.Utils.schemaMap(payload, api_bulk_orders_request_1.API_BULK_ORDERS_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
275
+ return utils_1.Utils.schemaMap(response.data, api_bulk_orders_response_1.API_BULK_ORDERS_RESPONSE_MAP.LITE_TO_FULL);
276
+ }).catch(utils_1.Utils.coverApiError);
277
+ }
270
278
  getPriceProtectionBands(config) {
271
279
  return this._axios.post(this._liteUrl + '/get_price_protection_bands', null, config).then((response) => {
272
280
  return utils_1.Utils.schemaMap(response.data, api_get_price_protection_bands_response_1.API_GET_PRICE_PROTECTION_BANDS_RESPONSE_MAP.LITE_TO_FULL);
@@ -530,8 +538,8 @@ class TDG {
530
538
  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);
531
539
  }).catch(utils_1.Utils.coverApiError);
532
540
  }
533
- accountPerformance(config) {
534
- return this._axios.post(this._liteUrl + '/account_performance', null, config).then((response) => {
541
+ accountPerformance(payload, config) {
542
+ 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) => {
535
543
  return utils_1.Utils.schemaMap(response.data, api_query_account_performance_response_1.API_QUERY_ACCOUNT_PERFORMANCE_RESPONSE_MAP.LITE_TO_FULL);
536
544
  }).catch(utils_1.Utils.coverApiError);
537
545
  }
@@ -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[];
@@ -717,14 +718,14 @@ export interface IApiGetUserEcosystemPointResponse {
717
718
  }
718
719
  export interface IApiGetUserEpochPointStatsResponse {
719
720
  epoch?: number;
720
- epoch_point?: string;
721
- cumulative_point?: string;
721
+ epoch_point?: number;
722
+ cumulative_point?: number;
722
723
  epoch_rank?: number;
723
724
  cumulative_rank?: number;
724
725
  cumulative_rank_change?: number;
725
726
  last_calculated_time?: string;
726
- epoch_referral_point?: string;
727
- cumulative_referral_point?: string;
727
+ epoch_referral_point?: number;
728
+ cumulative_referral_point?: number;
728
729
  }
729
730
  export interface IApiGetUserVaultRewardPointResponse {
730
731
  ecosystem_point?: string;
@@ -885,6 +886,9 @@ 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;
@@ -1074,7 +1078,7 @@ export interface IApiRewardLeaderboardItem {
1074
1078
  off_chain_account_id?: string;
1075
1079
  twitter_username?: string;
1076
1080
  rank?: number;
1077
- point?: string;
1081
+ point?: number;
1078
1082
  }
1079
1083
  export interface IApiSetBuilderCodeConfig {
1080
1084
  enabled?: boolean;
@@ -1326,6 +1330,10 @@ export interface IApiVaultPerformance {
1326
1330
  realized_pnl?: string;
1327
1331
  pnl?: string;
1328
1332
  cumulative_pnl?: string;
1333
+ return_since_interception?: number;
1334
+ return_30_d?: number;
1335
+ return_90_d?: number;
1336
+ return_ytd?: number;
1329
1337
  }
1330
1338
  export interface IApiVaultPerformanceTrend {
1331
1339
  start_interval?: string;
@@ -2028,6 +2036,7 @@ export interface IQueryFindEpochResponse {
2028
2036
  }
2029
2037
  export interface IQueryFirstVaultSnapshotsRequest {
2030
2038
  vault_i_ds?: string[];
2039
+ start_time?: string;
2031
2040
  }
2032
2041
  export interface IQueryFirstVaultSnapshotsResponse {
2033
2042
  result?: ILiteSnapVaultSummary[];
@@ -64,6 +64,8 @@ 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",
69
+ FLAG_FIX_OID_ASSIGNMENT = "FLAG_FIX_OID_ASSIGNMENT"
68
70
  }
69
71
  export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
@@ -135,6 +135,10 @@ 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";
140
+ // Flag to fix oid assignment
141
+ EClusterConfigType["FLAG_FIX_OID_ASSIGNMENT"] = "FLAG_FIX_OID_ASSIGNMENT";
138
142
  })(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
139
143
  exports.EClusterConfigTypeInt = Object.freeze({
140
144
  [EClusterConfigType.CLIENT_TIER]: 1,
@@ -202,5 +206,7 @@ exports.EClusterConfigTypeInt = Object.freeze({
202
206
  [EClusterConfigType.FLAG_BUILDER_CODE]: 63,
203
207
  [EClusterConfigType.FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION]: 64,
204
208
  [EClusterConfigType.FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE]: 65,
205
- [EClusterConfigType.FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS]: 66
209
+ [EClusterConfigType.FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS]: 66,
210
+ [EClusterConfigType.FLAG_TRIGGER_ORDER_CANCELLATION_V_2]: 67,
211
+ [EClusterConfigType.FLAG_FIX_OID_ASSIGNMENT]: 68
206
212
  });
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_QUERY_ACCOUNT_PERFORMANCE_REQUEST_MAP: SchemaPairMap;
@@ -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
+ });
@@ -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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.6.22",
3
+ "version": "1.6.24",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",