@grvt/client 1.6.3 → 1.6.5

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, IApiAggregatedAccountSummaryResponse, IApiCancelAllOrdersRequest, IApiCancelAllOrdersResponse, IApiCancelOrderRequest, IApiCancelOrderResponse, IApiCreateBulkOrdersRequest, IApiCreateBulkOrdersResponse, IApiCreateOrderRequest, IApiCreateOrderResponse, IApiCrossExchVaultAttestEquityRequest, IApiCrossExchVaultGetInvestorAllocationStatsResponse, IApiCrossExchVaultInvestCancelRequest, IApiCrossExchVaultPreInternalTransferCheckRequest, IApiCrossExchVaultPreInternalTransferCheckResponse, IApiCrossExchVaultPreWithdrawCheckRequest, IApiCrossExchVaultPreWithdrawCheckResponse, IApiCrossExchVaultTriggerRedemptionRequest, IApiCrossExchVaultViewInvestmentQueueRequest, IApiCrossExchVaultViewInvestmentQueueResponse, IApiCrossExchVaultViewPendingInvestmentRequest, IApiCrossExchVaultViewPendingInvestmentResponse, IApiDedustPositionRequest, IApiDedustPositionResponse, IApiDepositHistoryRequest, IApiDepositHistoryResponse, IApiFillHistoryRequest, IApiFillHistoryResponse, IApiFundingAccountSummaryResponse, IApiFundingPaymentHistoryRequest, IApiFundingPaymentHistoryResponse, IApiGetAllInitialLeverageRequest, IApiGetAllInitialLeverageResponse, IApiGetMarginTiersResponse, IApiGetOrderGroupRequest, IApiGetOrderGroupResponse, IApiGetOrderRequest, IApiGetOrderResponse, IApiOpenOrdersRequest, IApiOpenOrdersResponse, IApiOrderHistoryRequest, IApiOrderHistoryResponse, IApiPositionsRequest, IApiPositionsResponse, IApiPreDepositCheckRequest, IApiPreDepositCheckResponse, IApiPreOrderCheckRequest, IApiPreOrderCheckResponse, IApiQueryListFundingAccountSummaryRequest, IApiQueryListFundingAccountSummaryResponse, IApiQueryListSubAccountSummaryRequest, IApiQueryListSubAccountSummaryResponse, IApiQueryTradingPerformanceRequest, IApiQueryTradingPerformanceResponse, IApiQueryTradingPerformanceTrendRequest, IApiQueryTradingPerformanceTrendResponse, IApiQueryVaultInvestorHistoryRequest, IApiQueryVaultInvestorHistoryResponse, IApiQueryVaultManagerInvestorHistoryRequest, IApiQueryVaultManagerInvestorHistoryResponse, IApiReplaceOrdersRequest, IApiReplaceOrdersResponse, IApiSetInitialLeverageRequest, IApiSetInitialLeverageResponse, 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, IApiAggregatedAccountSummaryResponse, 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, IApiGetMarginTiersResponse, IApiGetOrderGroupRequest, IApiGetOrderGroupResponse, IApiGetOrderRequest, IApiGetOrderResponse, IApiOpenOrdersRequest, IApiOpenOrdersResponse, IApiOrderHistoryRequest, IApiOrderHistoryResponse, IApiPositionsRequest, IApiPositionsResponse, IApiPreDepositCheckRequest, IApiPreDepositCheckResponse, IApiPreOrderCheckRequest, IApiPreOrderCheckResponse, IApiQueryListFundingAccountSummaryRequest, IApiQueryListFundingAccountSummaryResponse, IApiQueryListSubAccountSummaryRequest, IApiQueryListSubAccountSummaryResponse, IApiQueryTradingPerformanceRequest, IApiQueryTradingPerformanceResponse, IApiQueryTradingPerformanceTrendRequest, IApiQueryTradingPerformanceTrendResponse, IApiQueryVaultInvestorHistoryRequest, IApiQueryVaultInvestorHistoryResponse, IApiQueryVaultManagerInvestorHistoryRequest, IApiQueryVaultManagerInvestorHistoryResponse, IApiReplaceOrdersRequest, IApiReplaceOrdersResponse, IApiSetInitialLeverageRequest, IApiSetInitialLeverageResponse, 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;
@@ -134,4 +134,6 @@ export declare class TDG {
134
134
  cevGetInvestorAllocationStats(payload?: {}, config?: AxiosRequestConfig): Promise<IApiCrossExchVaultGetInvestorAllocationStatsResponse>;
135
135
  cevPreInternalTransferCheck(payload: IApiCrossExchVaultPreInternalTransferCheckRequest, config?: AxiosRequestConfig): Promise<IApiCrossExchVaultPreInternalTransferCheckResponse>;
136
136
  cevPreWithdrawCheck(payload: IApiCrossExchVaultPreWithdrawCheckRequest, config?: AxiosRequestConfig): Promise<IApiCrossExchVaultPreWithdrawCheckResponse>;
137
+ cevLock(payload: IApiCrossExchVaultLockRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
138
+ cevUnlock(payload: IApiCrossExchVaultUnlockRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
137
139
  }
package/TDG/index.js CHANGED
@@ -15,11 +15,13 @@ const api_create_order_response_1 = require("../interfaces/codegen/schema-maps/a
15
15
  const api_cross_exch_vault_attest_equity_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_attest_equity_request");
16
16
  const api_cross_exch_vault_get_investor_allocation_stats_response_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_get_investor_allocation_stats_response");
17
17
  const api_cross_exch_vault_invest_cancel_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_invest_cancel_request");
18
+ const api_cross_exch_vault_lock_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_lock_request");
18
19
  const api_cross_exch_vault_pre_internal_transfer_check_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_pre_internal_transfer_check_request");
19
20
  const api_cross_exch_vault_pre_internal_transfer_check_response_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_pre_internal_transfer_check_response");
20
21
  const api_cross_exch_vault_pre_withdraw_check_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_pre_withdraw_check_request");
21
22
  const api_cross_exch_vault_pre_withdraw_check_response_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_pre_withdraw_check_response");
22
23
  const api_cross_exch_vault_trigger_redemption_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_trigger_redemption_request");
24
+ const api_cross_exch_vault_unlock_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_unlock_request");
23
25
  const api_cross_exch_vault_view_investment_queue_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_request");
24
26
  const api_cross_exch_vault_view_investment_queue_response_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_response");
25
27
  const api_cross_exch_vault_view_pending_investment_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_view_pending_investment_request");
@@ -428,5 +430,15 @@ class TDG {
428
430
  return utils_1.Utils.schemaMap(response.data, api_cross_exch_vault_pre_withdraw_check_response_1.API_CROSS_EXCH_VAULT_PRE_WITHDRAW_CHECK_RESPONSE_MAP.LITE_TO_FULL);
429
431
  }).catch(utils_1.Utils.coverApiError);
430
432
  }
433
+ cevLock(payload, config) {
434
+ return this._axios.post(this._liteUrl + '/cev_lock', utils_1.Utils.schemaMap(payload, api_cross_exch_vault_lock_request_1.API_CROSS_EXCH_VAULT_LOCK_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
435
+ return utils_1.Utils.schemaMap(response.data, ack_response_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
436
+ }).catch(utils_1.Utils.coverApiError);
437
+ }
438
+ cevUnlock(payload, config) {
439
+ return this._axios.post(this._liteUrl + '/cev_unlock', utils_1.Utils.schemaMap(payload, api_cross_exch_vault_unlock_request_1.API_CROSS_EXCH_VAULT_UNLOCK_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
440
+ return utils_1.Utils.schemaMap(response.data, ack_response_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
441
+ }).catch(utils_1.Utils.coverApiError);
442
+ }
431
443
  }
432
444
  exports.TDG = TDG;
@@ -47,6 +47,7 @@ export interface IAggregatedAccountSummary {
47
47
  total_equity?: string;
48
48
  spot_balances?: ISpotBalance[];
49
49
  vault_investments?: IVaultInvestment[];
50
+ total_sub_account_balance?: string;
50
51
  }
51
52
  export interface IApiAggregatedAccountSummaryResponse {
52
53
  result?: IAggregatedAccountSummary;
@@ -400,6 +401,10 @@ export interface IApiGetAllInstrumentsRequest {
400
401
  export interface IApiGetAllInstrumentsResponse {
401
402
  result?: IInstrument[];
402
403
  }
404
+ export interface IApiGetCEVAccessTiersResponse {
405
+ enabled?: boolean;
406
+ tiers?: ICEVAccessTier[];
407
+ }
403
408
  export interface IApiGetClientTiersResponse {
404
409
  tiers?: IClientTier[];
405
410
  }
@@ -795,6 +800,10 @@ export interface IApiRewardLeaderboardItem {
795
800
  rank?: number;
796
801
  point?: string;
797
802
  }
803
+ export interface IApiSetCEVAccessTiersRequest {
804
+ enabled?: boolean;
805
+ tiers?: ICEVAccessTier[];
806
+ }
798
807
  export interface IApiSetClientTiersRequest {
799
808
  tiers?: IClientTier[];
800
809
  }
@@ -931,6 +940,7 @@ export interface IApiTransferHistoryRequest {
931
940
  cursor?: string;
932
941
  tx_id?: string;
933
942
  main_account_id?: string;
943
+ transfer_types?: ETransferType[];
934
944
  }
935
945
  export interface IApiTransferHistoryResponse {
936
946
  result?: ITransferHistory[];
@@ -1125,6 +1135,13 @@ export interface IBatchCreateAccountMultiplierElement {
1125
1135
  account_type?: EAccountType;
1126
1136
  multiplier?: number;
1127
1137
  }
1138
+ export interface ICEVAccessTier {
1139
+ idx?: number;
1140
+ lifetime_trading_volume_range_start?: string;
1141
+ lifetime_trading_volume_range_end?: string;
1142
+ allocation_total_equity_percentage_centi_beeps?: number;
1143
+ allocation_max_cap?: string;
1144
+ }
1128
1145
  export interface ICEVAllocStatsAccOverview {
1129
1146
  total_allocation?: string;
1130
1147
  total_invested?: string;
@@ -1319,6 +1336,7 @@ export interface IEpochPoint {
1319
1336
  epoch?: number;
1320
1337
  off_chain_account_id?: string;
1321
1338
  point?: string;
1339
+ reserve_point?: string;
1322
1340
  }
1323
1341
  export interface IEpochPointStats {
1324
1342
  epoch?: number;
@@ -1838,6 +1856,7 @@ export interface ISubAccountTradingPerformance {
1838
1856
  unrealized_pnl?: string;
1839
1857
  is_unrealized_pnl_snapshotted?: boolean;
1840
1858
  funding_payment_amount?: string;
1859
+ filled_order_count?: string;
1841
1860
  }
1842
1861
  export interface ITPSLOrderMetadata {
1843
1862
  trigger_by?: ETriggerBy;
@@ -1911,6 +1930,7 @@ export interface ITradingPerformance {
1911
1930
  is_unrealized_pnl_snapshotted?: boolean;
1912
1931
  last_start_interval?: string;
1913
1932
  funding_payment_amount?: string;
1933
+ filled_order_count?: string;
1914
1934
  }
1915
1935
  export interface ITradingPerformanceTrendPoint {
1916
1936
  start_interval?: string;
@@ -1922,6 +1942,7 @@ export interface ITradingPerformanceTrendPoint {
1922
1942
  unrealized_pnl?: string;
1923
1943
  is_unrealized_pnl_snapshotted?: boolean;
1924
1944
  funding_payment_amount?: string;
1945
+ filled_order_count?: string;
1925
1946
  }
1926
1947
  export interface ITransferHistory {
1927
1948
  tx_id?: string;
@@ -39,6 +39,7 @@ export declare enum EClusterConfigType {
39
39
  FLAG_ENABLE_MSG_TIMER = "FLAG_ENABLE_MSG_TIMER",
40
40
  FLAG_ENABLE_POSITION_TRANSFER = "FLAG_ENABLE_POSITION_TRANSFER",
41
41
  FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT = "FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT",
42
- FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE = "FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE"
42
+ FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE = "FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE",
43
+ FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES = "FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES"
43
44
  }
44
45
  export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
@@ -85,6 +85,8 @@ var EClusterConfigType;
85
85
  EClusterConfigType["FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT"] = "FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT";
86
86
  // Flag to let scribe write to local file storage
87
87
  EClusterConfigType["FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE"] = "FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE";
88
+ // Flag to exclude liquidation from public trades
89
+ EClusterConfigType["FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES"] = "FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES";
88
90
  })(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
89
91
  exports.EClusterConfigTypeInt = Object.freeze({
90
92
  [EClusterConfigType.CLIENT_TIER]: 1,
@@ -127,5 +129,6 @@ exports.EClusterConfigTypeInt = Object.freeze({
127
129
  [EClusterConfigType.FLAG_ENABLE_MSG_TIMER]: 38,
128
130
  [EClusterConfigType.FLAG_ENABLE_POSITION_TRANSFER]: 39,
129
131
  [EClusterConfigType.FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT]: 40,
130
- [EClusterConfigType.FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE]: 41
132
+ [EClusterConfigType.FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE]: 41,
133
+ [EClusterConfigType.FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES]: 42
131
134
  });
@@ -4,6 +4,9 @@ export declare enum ETransferType {
4
4
  FAST_ARB_DEPOSIT = "FAST_ARB_DEPOSIT",
5
5
  FAST_ARB_WITHDRAWAL = "FAST_ARB_WITHDRAWAL",
6
6
  NON_NATIVE_BRIDGE_DEPOSIT = "NON_NATIVE_BRIDGE_DEPOSIT",
7
- NON_NATIVE_BRIDGE_WITHDRAWAL = "NON_NATIVE_BRIDGE_WITHDRAWAL"
7
+ NON_NATIVE_BRIDGE_WITHDRAWAL = "NON_NATIVE_BRIDGE_WITHDRAWAL",
8
+ ADHOC_INCENTIVE = "ADHOC_INCENTIVE",
9
+ REFERRAL_INCENTIVE = "REFERRAL_INCENTIVE",
10
+ TRADING_DEPOSIT_YIELD_INCENTIVE = "TRADING_DEPOSIT_YIELD_INCENTIVE"
8
11
  }
9
12
  export declare const ETransferTypeInt: Record<ETransferType, number>;
@@ -15,6 +15,12 @@ var ETransferType;
15
15
  ETransferType["NON_NATIVE_BRIDGE_DEPOSIT"] = "NON_NATIVE_BRIDGE_DEPOSIT";
16
16
  // Transfer type for non native bridging withdrawal
17
17
  ETransferType["NON_NATIVE_BRIDGE_WITHDRAWAL"] = "NON_NATIVE_BRIDGE_WITHDRAWAL";
18
+ // Transfer type for adhoc incentive
19
+ ETransferType["ADHOC_INCENTIVE"] = "ADHOC_INCENTIVE";
20
+ // Transfer type for referral incentive
21
+ ETransferType["REFERRAL_INCENTIVE"] = "REFERRAL_INCENTIVE";
22
+ // Transfer type for trading deposit yield incentive
23
+ ETransferType["TRADING_DEPOSIT_YIELD_INCENTIVE"] = "TRADING_DEPOSIT_YIELD_INCENTIVE";
18
24
  })(ETransferType || (exports.ETransferType = ETransferType = {}));
19
25
  exports.ETransferTypeInt = Object.freeze({
20
26
  [ETransferType.UNSPECIFIED]: 0,
@@ -22,5 +28,8 @@ exports.ETransferTypeInt = Object.freeze({
22
28
  [ETransferType.FAST_ARB_DEPOSIT]: 2,
23
29
  [ETransferType.FAST_ARB_WITHDRAWAL]: 3,
24
30
  [ETransferType.NON_NATIVE_BRIDGE_DEPOSIT]: 4,
25
- [ETransferType.NON_NATIVE_BRIDGE_WITHDRAWAL]: 5
31
+ [ETransferType.NON_NATIVE_BRIDGE_WITHDRAWAL]: 5,
32
+ [ETransferType.ADHOC_INCENTIVE]: 6,
33
+ [ETransferType.REFERRAL_INCENTIVE]: 7,
34
+ [ETransferType.TRADING_DEPOSIT_YIELD_INCENTIVE]: 8
26
35
  });
@@ -9,12 +9,14 @@ exports.AGGREGATED_ACCOUNT_SUMMARY_MAP = Object.freeze({
9
9
  main_account_id: 'ma',
10
10
  total_equity: 'te',
11
11
  spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]],
12
- vault_investments: ['vi', [vault_investment_1.VAULT_INVESTMENT_MAP.FULL_TO_LITE]]
12
+ vault_investments: ['vi', [vault_investment_1.VAULT_INVESTMENT_MAP.FULL_TO_LITE]],
13
+ total_sub_account_balance: 'ts'
13
14
  },
14
15
  LITE_TO_FULL: {
15
16
  ma: 'main_account_id',
16
17
  te: 'total_equity',
17
18
  sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]],
18
- vi: ['vault_investments', [vault_investment_1.VAULT_INVESTMENT_MAP.LITE_TO_FULL]]
19
+ vi: ['vault_investments', [vault_investment_1.VAULT_INVESTMENT_MAP.LITE_TO_FULL]],
20
+ ts: 'total_sub_account_balance'
19
21
  }
20
22
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_GET_CEV_ACCESS_TIERS_RESPONSE_MAP: SchemaPairMap;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_GET_CEV_ACCESS_TIERS_RESPONSE_MAP = void 0;
4
+ const cev_access_tier_1 = require("./cev_access_tier");
5
+ // Schema map for the 'API_GET_CEV_ACCESS_TIERS_RESPONSE' struct.
6
+ exports.API_GET_CEV_ACCESS_TIERS_RESPONSE_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ enabled: 'e',
9
+ tiers: ['t', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.FULL_TO_LITE]]
10
+ },
11
+ LITE_TO_FULL: {
12
+ e: 'enabled',
13
+ t: ['tiers', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.LITE_TO_FULL]]
14
+ }
15
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_SET_CEV_ACCESS_TIERS_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_SET_CEV_ACCESS_TIERS_REQUEST_MAP = void 0;
4
+ const cev_access_tier_1 = require("./cev_access_tier");
5
+ // Schema map for the 'API_SET_CEV_ACCESS_TIERS_REQUEST' struct.
6
+ exports.API_SET_CEV_ACCESS_TIERS_REQUEST_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ enabled: 'e',
9
+ tiers: ['t', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.FULL_TO_LITE]]
10
+ },
11
+ LITE_TO_FULL: {
12
+ e: 'enabled',
13
+ t: ['tiers', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.LITE_TO_FULL]]
14
+ }
15
+ });
@@ -10,7 +10,8 @@ exports.API_TRANSFER_HISTORY_REQUEST_MAP = Object.freeze({
10
10
  limit: 'l',
11
11
  cursor: 'c1',
12
12
  tx_id: 'ti',
13
- main_account_id: 'ma'
13
+ main_account_id: 'ma',
14
+ transfer_types: 'tt'
14
15
  },
15
16
  LITE_TO_FULL: {
16
17
  c: 'currency',
@@ -19,6 +20,7 @@ exports.API_TRANSFER_HISTORY_REQUEST_MAP = Object.freeze({
19
20
  l: 'limit',
20
21
  c1: 'cursor',
21
22
  ti: 'tx_id',
22
- ma: 'main_account_id'
23
+ ma: 'main_account_id',
24
+ tt: 'transfer_types'
23
25
  }
24
26
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const CEV_ACCESS_TIER_MAP: SchemaPairMap;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CEV_ACCESS_TIER_MAP = void 0;
4
+ // Schema map for the 'CEV_ACCESS_TIER' struct.
5
+ exports.CEV_ACCESS_TIER_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ idx: 'i',
8
+ lifetime_trading_volume_range_start: 'lt',
9
+ lifetime_trading_volume_range_end: 'lt1',
10
+ allocation_total_equity_percentage_centi_beeps: 'at',
11
+ allocation_max_cap: 'am'
12
+ },
13
+ LITE_TO_FULL: {
14
+ i: 'idx',
15
+ lt: 'lifetime_trading_volume_range_start',
16
+ lt1: 'lifetime_trading_volume_range_end',
17
+ at: 'allocation_total_equity_percentage_centi_beeps',
18
+ am: 'allocation_max_cap'
19
+ }
20
+ });
@@ -6,11 +6,13 @@ exports.EPOCH_POINT_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  epoch: 'e',
8
8
  off_chain_account_id: 'oc',
9
- point: 'p'
9
+ point: 'p',
10
+ reserve_point: 'rp'
10
11
  },
11
12
  LITE_TO_FULL: {
12
13
  e: 'epoch',
13
14
  oc: 'off_chain_account_id',
14
- p: 'point'
15
+ p: 'point',
16
+ rp: 'reserve_point'
15
17
  }
16
18
  });
@@ -13,7 +13,8 @@ exports.SUB_ACCOUNT_TRADING_PERFORMANCE_MAP = Object.freeze({
13
13
  realized_pnl: 'rp',
14
14
  unrealized_pnl: 'up',
15
15
  is_unrealized_pnl_snapshotted: 'iu',
16
- funding_payment_amount: 'fp'
16
+ funding_payment_amount: 'fp',
17
+ filled_order_count: 'fo'
17
18
  },
18
19
  LITE_TO_FULL: {
19
20
  si: 'start_interval',
@@ -25,6 +26,7 @@ exports.SUB_ACCOUNT_TRADING_PERFORMANCE_MAP = Object.freeze({
25
26
  rp: 'realized_pnl',
26
27
  up: 'unrealized_pnl',
27
28
  iu: 'is_unrealized_pnl_snapshotted',
28
- fp: 'funding_payment_amount'
29
+ fp: 'funding_payment_amount',
30
+ fo: 'filled_order_count'
29
31
  }
30
32
  });
@@ -13,7 +13,8 @@ exports.TRADING_PERFORMANCE_MAP = Object.freeze({
13
13
  unrealized_pnl: 'up',
14
14
  is_unrealized_pnl_snapshotted: 'iu',
15
15
  last_start_interval: 'ls',
16
- funding_payment_amount: 'fp'
16
+ funding_payment_amount: 'fp',
17
+ filled_order_count: 'fo'
17
18
  },
18
19
  LITE_TO_FULL: {
19
20
  sa: 'sub_account_id',
@@ -25,6 +26,7 @@ exports.TRADING_PERFORMANCE_MAP = Object.freeze({
25
26
  up: 'unrealized_pnl',
26
27
  iu: 'is_unrealized_pnl_snapshotted',
27
28
  ls: 'last_start_interval',
28
- fp: 'funding_payment_amount'
29
+ fp: 'funding_payment_amount',
30
+ fo: 'filled_order_count'
29
31
  }
30
32
  });
@@ -12,7 +12,8 @@ exports.TRADING_PERFORMANCE_TREND_POINT_MAP = Object.freeze({
12
12
  realized_pnl: 'rp',
13
13
  unrealized_pnl: 'up',
14
14
  is_unrealized_pnl_snapshotted: 'iu',
15
- funding_payment_amount: 'fp'
15
+ funding_payment_amount: 'fp',
16
+ filled_order_count: 'fo'
16
17
  },
17
18
  LITE_TO_FULL: {
18
19
  si: 'start_interval',
@@ -23,6 +24,7 @@ exports.TRADING_PERFORMANCE_TREND_POINT_MAP = Object.freeze({
23
24
  rp: 'realized_pnl',
24
25
  up: 'unrealized_pnl',
25
26
  iu: 'is_unrealized_pnl_snapshotted',
26
- fp: 'funding_payment_amount'
27
+ fp: 'funding_payment_amount',
28
+ fo: 'filled_order_count'
27
29
  }
28
30
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",