@grvt/client 1.6.20 → 1.6.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/TDG/index.d.ts +2 -2
  2. package/TDG/index.js +3 -2
  3. package/interfaces/codegen/data.interface.d.ts +23 -0
  4. package/interfaces/codegen/enums/portfolio-currency.d.ts +5 -0
  5. package/interfaces/codegen/enums/portfolio-currency.js +14 -0
  6. package/interfaces/codegen/schema-maps/api_query_account_daily_performance_request.js +2 -0
  7. package/interfaces/codegen/schema-maps/api_query_account_performance_trend_request.js +2 -0
  8. package/interfaces/codegen/schema-maps/api_query_account_today_performance_request.d.ts +2 -0
  9. package/interfaces/codegen/schema-maps/api_query_account_today_performance_request.js +12 -0
  10. package/interfaces/codegen/schema-maps/api_query_list_sub_account_summary_request.js +6 -2
  11. package/interfaces/codegen/schema-maps/api_query_list_vault_sub_account_summary_request.js +6 -2
  12. package/interfaces/codegen/schema-maps/api_query_sub_account_daily_performance_request.js +2 -0
  13. package/interfaces/codegen/schema-maps/api_query_sub_account_today_performance_request.js +4 -2
  14. package/interfaces/codegen/schema-maps/api_query_trading_performance_trend_request.js +6 -2
  15. package/interfaces/codegen/schema-maps/api_query_vault_performance_trend_request.js +6 -2
  16. package/interfaces/codegen/schema-maps/api_query_vault_summary_history_request.js +6 -2
  17. package/interfaces/codegen/schema-maps/api_timed_asset_exposure_request.js +6 -2
  18. package/interfaces/codegen/schema-maps/api_timed_vault_asset_exposure_request.js +6 -2
  19. package/interfaces/codegen/schema-maps/instrument_display.js +4 -2
  20. 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, 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,7 +152,7 @@ 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>;
package/TDG/index.js CHANGED
@@ -66,6 +66,7 @@ const api_query_account_daily_performance_response_1 = require("../interfaces/co
66
66
  const api_query_account_performance_response_1 = require("../interfaces/codegen/schema-maps/api_query_account_performance_response");
67
67
  const api_query_account_performance_trend_request_1 = require("../interfaces/codegen/schema-maps/api_query_account_performance_trend_request");
68
68
  const api_query_account_performance_trend_response_1 = require("../interfaces/codegen/schema-maps/api_query_account_performance_trend_response");
69
+ const api_query_account_today_performance_request_1 = require("../interfaces/codegen/schema-maps/api_query_account_today_performance_request");
69
70
  const api_query_account_today_performance_response_1 = require("../interfaces/codegen/schema-maps/api_query_account_today_performance_response");
70
71
  const api_query_list_funding_account_summary_request_1 = require("../interfaces/codegen/schema-maps/api_query_list_funding_account_summary_request");
71
72
  const api_query_list_funding_account_summary_response_1 = require("../interfaces/codegen/schema-maps/api_query_list_funding_account_summary_response");
@@ -509,8 +510,8 @@ class TDG {
509
510
  /**
510
511
  * START: Portfolio
511
512
  */
512
- accountTodayPerformance(config) {
513
- return this._axios.post(this._liteUrl + '/account_today_performance', null, config).then((response) => {
513
+ accountTodayPerformance(payload, config) {
514
+ 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
515
  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
516
  }).catch(utils_1.Utils.coverApiError);
516
517
  }
@@ -20,6 +20,7 @@ import type { EMetricType } from './enums/metric-type.ts';
20
20
  import type { EOrderRejectReason } from './enums/order-reject-reason.ts';
21
21
  import type { EOrderStatus } from './enums/order-status.ts';
22
22
  import type { EPointType } from './enums/point-type.ts';
23
+ import type { EPortfolioCurrency } from './enums/portfolio-currency.ts';
23
24
  import type { EPositionMarginType } from './enums/position-margin-type.ts';
24
25
  import type { EQueryMainAccountLeaderboardOrderBy } from './enums/query-main-account-leaderboard-order-by.ts';
25
26
  import type { ERewardEpochStatus } from './enums/reward-epoch-status.ts';
@@ -877,6 +878,7 @@ export interface IApiPreOrderCheckResponse {
877
878
  results?: IPreOrderCheckResult[];
878
879
  }
879
880
  export interface IApiQueryAccountDailyPerformanceRequest {
881
+ currency?: EPortfolioCurrency;
880
882
  start_time?: string;
881
883
  end_time?: string;
882
884
  }
@@ -888,6 +890,7 @@ export interface IApiQueryAccountPerformanceResponse {
888
890
  investment_pnl?: string;
889
891
  }
890
892
  export interface IApiQueryAccountPerformanceTrendRequest {
893
+ currency?: EPortfolioCurrency;
891
894
  time_interval?: ETimeInterval;
892
895
  start_time?: string;
893
896
  end_time?: string;
@@ -896,6 +899,9 @@ export interface IApiQueryAccountPerformanceTrendResponse {
896
899
  result?: IApiAccountPerformanceTrend[];
897
900
  interval?: ESubAccountTradeInterval;
898
901
  }
902
+ export interface IApiQueryAccountTodayPerformanceRequest {
903
+ currency?: EPortfolioCurrency;
904
+ }
899
905
  export interface IApiQueryAccountTodayPerformanceResponse {
900
906
  aggregated_pnl?: string;
901
907
  investment_pnl?: string;
@@ -919,6 +925,8 @@ export interface IApiQueryListFundingAccountSummaryResponse {
919
925
  export interface IApiQueryListSubAccountSummaryRequest {
920
926
  time_interval?: ETimeInterval;
921
927
  sub_account_id?: string;
928
+ start_time?: string;
929
+ end_time?: string;
922
930
  }
923
931
  export interface IApiQueryListSubAccountSummaryResponse {
924
932
  result?: ISnapSubAccountSummary[];
@@ -927,6 +935,8 @@ export interface IApiQueryListSubAccountSummaryResponse {
927
935
  export interface IApiQueryListVaultSubAccountSummaryRequest {
928
936
  vault_id?: string;
929
937
  time_interval?: ETimeInterval;
938
+ start_time?: string;
939
+ end_time?: string;
930
940
  }
931
941
  export interface IApiQueryListVaultSubAccountSummaryResponse {
932
942
  result?: IApiVaultSubAccountSummary[];
@@ -939,6 +949,7 @@ export interface IApiQuerySnapVaultPositionResponse {
939
949
  positions?: IPositionSummary[];
940
950
  }
941
951
  export interface IApiQuerySubAccountDailyPerformanceRequest {
952
+ currency?: EPortfolioCurrency;
942
953
  sub_account_id?: string;
943
954
  start_time?: string;
944
955
  end_time?: string;
@@ -948,6 +959,7 @@ export interface IApiQuerySubAccountDailyPerformanceResponse {
948
959
  }
949
960
  export interface IApiQuerySubAccountTodayPerformanceRequest {
950
961
  sub_account_id?: string;
962
+ currency?: EPortfolioCurrency;
951
963
  }
952
964
  export interface IApiQuerySubAccountTodayPerformanceResponse {
953
965
  pnl?: string;
@@ -984,6 +996,8 @@ export interface IApiQueryTradingPerformanceSummaryResponse {
984
996
  export interface IApiQueryTradingPerformanceTrendRequest {
985
997
  sub_account_id?: string;
986
998
  time_interval?: ETimeInterval;
999
+ start_time?: string;
1000
+ end_time?: string;
987
1001
  }
988
1002
  export interface IApiQueryTradingPerformanceTrendResponse {
989
1003
  result?: IApiTradingPerformanceTrend[];
@@ -1018,6 +1032,8 @@ export interface IApiQueryVaultPerformanceResponse {
1018
1032
  export interface IApiQueryVaultPerformanceTrendRequest {
1019
1033
  vault_id?: string;
1020
1034
  time_interval?: ETimeInterval;
1035
+ start_time?: string;
1036
+ end_time?: string;
1021
1037
  }
1022
1038
  export interface IApiQueryVaultPerformanceTrendResponse {
1023
1039
  result?: IApiVaultPerformanceTrend[];
@@ -1034,6 +1050,8 @@ export interface IApiQueryVaultRiskMetricResponse {
1034
1050
  export interface IApiQueryVaultSummaryHistoryRequest {
1035
1051
  vault_id?: string;
1036
1052
  time_interval?: ETimeInterval;
1053
+ start_time?: string;
1054
+ end_time?: string;
1037
1055
  }
1038
1056
  export interface IApiQueryVaultSummaryHistoryResponse {
1039
1057
  result?: IApiVaultSummary[];
@@ -1157,6 +1175,8 @@ export interface IApiTimedAssetExposureRequest {
1157
1175
  is_gross_exposure?: boolean;
1158
1176
  time_interval?: ETimeInterval;
1159
1177
  sub_account_id?: string;
1178
+ start_time?: string;
1179
+ end_time?: string;
1160
1180
  }
1161
1181
  export interface IApiTimedAssetExposureResponse {
1162
1182
  result?: ITimedAssetExposureSummary[];
@@ -1166,6 +1186,8 @@ export interface IApiTimedVaultAssetExposureRequest {
1166
1186
  vault_id?: string;
1167
1187
  is_gross_exposure?: boolean;
1168
1188
  time_interval?: ETimeInterval;
1189
+ start_time?: string;
1190
+ end_time?: string;
1169
1191
  }
1170
1192
  export interface IApiTradeHistoryRequest {
1171
1193
  instrument?: string;
@@ -1745,6 +1767,7 @@ export interface IInstrumentDisplay {
1745
1767
  funding_interval_hours?: number;
1746
1768
  adjusted_funding_rate_cap?: string;
1747
1769
  adjusted_funding_rate_floor?: string;
1770
+ min_notional?: string;
1748
1771
  }
1749
1772
  export interface IJSONRPCRequest {
1750
1773
  jsonrpc?: string;
@@ -0,0 +1,5 @@
1
+ export declare enum EPortfolioCurrency {
2
+ USD = "USD",
3
+ USDT = "USDT"
4
+ }
5
+ export declare const EPortfolioCurrencyInt: Record<EPortfolioCurrency, number>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPortfolioCurrencyInt = exports.EPortfolioCurrency = void 0;
4
+ var EPortfolioCurrency;
5
+ (function (EPortfolioCurrency) {
6
+ // the USD portfolio currency, defaults to USDT
7
+ EPortfolioCurrency["USD"] = "USD";
8
+ // the USDT portfolio currency
9
+ EPortfolioCurrency["USDT"] = "USDT";
10
+ })(EPortfolioCurrency || (exports.EPortfolioCurrency = EPortfolioCurrency = {}));
11
+ exports.EPortfolioCurrencyInt = Object.freeze({
12
+ [EPortfolioCurrency.USD]: 1,
13
+ [EPortfolioCurrency.USDT]: 2
14
+ });
@@ -4,10 +4,12 @@ exports.API_QUERY_ACCOUNT_DAILY_PERFORMANCE_REQUEST_MAP = void 0;
4
4
  // Schema map for the 'API_QUERY_ACCOUNT_DAILY_PERFORMANCE_REQUEST' struct.
5
5
  exports.API_QUERY_ACCOUNT_DAILY_PERFORMANCE_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
+ currency: 'c',
7
8
  start_time: 'st',
8
9
  end_time: 'et'
9
10
  },
10
11
  LITE_TO_FULL: {
12
+ c: 'currency',
11
13
  st: 'start_time',
12
14
  et: 'end_time'
13
15
  }
@@ -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'
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_QUERY_ACCOUNT_TODAY_PERFORMANCE_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_QUERY_ACCOUNT_TODAY_PERFORMANCE_REQUEST_MAP = void 0;
4
+ // Schema map for the 'API_QUERY_ACCOUNT_TODAY_PERFORMANCE_REQUEST' struct.
5
+ exports.API_QUERY_ACCOUNT_TODAY_PERFORMANCE_REQUEST_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ currency: 'c'
8
+ },
9
+ LITE_TO_FULL: {
10
+ c: 'currency'
11
+ }
12
+ });
@@ -5,10 +5,14 @@ exports.API_QUERY_LIST_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = void 0;
5
5
  exports.API_QUERY_LIST_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  time_interval: 'ti',
8
- sub_account_id: 'sa'
8
+ sub_account_id: 'sa',
9
+ start_time: 'st',
10
+ end_time: 'et'
9
11
  },
10
12
  LITE_TO_FULL: {
11
13
  ti: 'time_interval',
12
- sa: 'sub_account_id'
14
+ sa: 'sub_account_id',
15
+ st: 'start_time',
16
+ et: 'end_time'
13
17
  }
14
18
  });
@@ -5,10 +5,14 @@ exports.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = void 0;
5
5
  exports.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  vault_id: 'vi',
8
- time_interval: 'ti'
8
+ time_interval: 'ti',
9
+ start_time: 'st',
10
+ end_time: 'et'
9
11
  },
10
12
  LITE_TO_FULL: {
11
13
  vi: 'vault_id',
12
- ti: 'time_interval'
14
+ ti: 'time_interval',
15
+ st: 'start_time',
16
+ et: 'end_time'
13
17
  }
14
18
  });
@@ -4,11 +4,13 @@ exports.API_QUERY_SUB_ACCOUNT_DAILY_PERFORMANCE_REQUEST_MAP = void 0;
4
4
  // Schema map for the 'API_QUERY_SUB_ACCOUNT_DAILY_PERFORMANCE_REQUEST' struct.
5
5
  exports.API_QUERY_SUB_ACCOUNT_DAILY_PERFORMANCE_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
+ currency: 'c',
7
8
  sub_account_id: 'sa',
8
9
  start_time: 'st',
9
10
  end_time: 'et'
10
11
  },
11
12
  LITE_TO_FULL: {
13
+ c: 'currency',
12
14
  sa: 'sub_account_id',
13
15
  st: 'start_time',
14
16
  et: 'end_time'
@@ -4,9 +4,11 @@ exports.API_QUERY_SUB_ACCOUNT_TODAY_PERFORMANCE_REQUEST_MAP = void 0;
4
4
  // Schema map for the 'API_QUERY_SUB_ACCOUNT_TODAY_PERFORMANCE_REQUEST' struct.
5
5
  exports.API_QUERY_SUB_ACCOUNT_TODAY_PERFORMANCE_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
- sub_account_id: 'sa'
7
+ sub_account_id: 'sa',
8
+ currency: 'c'
8
9
  },
9
10
  LITE_TO_FULL: {
10
- sa: 'sub_account_id'
11
+ sa: 'sub_account_id',
12
+ c: 'currency'
11
13
  }
12
14
  });
@@ -5,10 +5,14 @@ exports.API_QUERY_TRADING_PERFORMANCE_TREND_REQUEST_MAP = void 0;
5
5
  exports.API_QUERY_TRADING_PERFORMANCE_TREND_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  sub_account_id: 'sa',
8
- time_interval: 'ti'
8
+ time_interval: 'ti',
9
+ start_time: 'st',
10
+ end_time: 'et'
9
11
  },
10
12
  LITE_TO_FULL: {
11
13
  sa: 'sub_account_id',
12
- ti: 'time_interval'
14
+ ti: 'time_interval',
15
+ st: 'start_time',
16
+ et: 'end_time'
13
17
  }
14
18
  });
@@ -5,10 +5,14 @@ exports.API_QUERY_VAULT_PERFORMANCE_TREND_REQUEST_MAP = void 0;
5
5
  exports.API_QUERY_VAULT_PERFORMANCE_TREND_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  vault_id: 'vi',
8
- time_interval: 'ti'
8
+ time_interval: 'ti',
9
+ start_time: 'st',
10
+ end_time: 'et'
9
11
  },
10
12
  LITE_TO_FULL: {
11
13
  vi: 'vault_id',
12
- ti: 'time_interval'
14
+ ti: 'time_interval',
15
+ st: 'start_time',
16
+ et: 'end_time'
13
17
  }
14
18
  });
@@ -5,10 +5,14 @@ exports.API_QUERY_VAULT_SUMMARY_HISTORY_REQUEST_MAP = void 0;
5
5
  exports.API_QUERY_VAULT_SUMMARY_HISTORY_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  vault_id: 'vi',
8
- time_interval: 'ti'
8
+ time_interval: 'ti',
9
+ start_time: 'st',
10
+ end_time: 'et'
9
11
  },
10
12
  LITE_TO_FULL: {
11
13
  vi: 'vault_id',
12
- ti: 'time_interval'
14
+ ti: 'time_interval',
15
+ st: 'start_time',
16
+ et: 'end_time'
13
17
  }
14
18
  });
@@ -6,11 +6,15 @@ exports.API_TIMED_ASSET_EXPOSURE_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  is_gross_exposure: 'ig',
8
8
  time_interval: 'ti',
9
- sub_account_id: 'sa'
9
+ sub_account_id: 'sa',
10
+ start_time: 'st',
11
+ end_time: 'et'
10
12
  },
11
13
  LITE_TO_FULL: {
12
14
  ig: 'is_gross_exposure',
13
15
  ti: 'time_interval',
14
- sa: 'sub_account_id'
16
+ sa: 'sub_account_id',
17
+ st: 'start_time',
18
+ et: 'end_time'
15
19
  }
16
20
  });
@@ -6,11 +6,15 @@ exports.API_TIMED_VAULT_ASSET_EXPOSURE_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  vault_id: 'vi',
8
8
  is_gross_exposure: 'ig',
9
- time_interval: 'ti'
9
+ time_interval: 'ti',
10
+ start_time: 'st',
11
+ end_time: 'et'
10
12
  },
11
13
  LITE_TO_FULL: {
12
14
  vi: 'vault_id',
13
15
  ig: 'is_gross_exposure',
14
- ti: 'time_interval'
16
+ ti: 'time_interval',
17
+ st: 'start_time',
18
+ et: 'end_time'
15
19
  }
16
20
  });
@@ -23,7 +23,8 @@ exports.INSTRUMENT_DISPLAY_MAP = Object.freeze({
23
23
  funding_methodology_version: 'fm',
24
24
  funding_interval_hours: 'fi',
25
25
  adjusted_funding_rate_cap: 'af',
26
- adjusted_funding_rate_floor: 'af1'
26
+ adjusted_funding_rate_floor: 'af1',
27
+ min_notional: 'mn'
27
28
  },
28
29
  LITE_TO_FULL: {
29
30
  i: 'instrument',
@@ -45,6 +46,7 @@ exports.INSTRUMENT_DISPLAY_MAP = Object.freeze({
45
46
  fm: 'funding_methodology_version',
46
47
  fi: 'funding_interval_hours',
47
48
  af: 'adjusted_funding_rate_cap',
48
- af1: 'adjusted_funding_rate_floor'
49
+ af1: 'adjusted_funding_rate_floor',
50
+ mn: 'min_notional'
49
51
  }
50
52
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.6.20",
3
+ "version": "1.6.22",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",