@grvt/client 1.6.18 → 1.6.20

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 (26) hide show
  1. package/interfaces/codegen/data.interface.d.ts +27 -8
  2. package/interfaces/codegen/enums/cluster-config-type.d.ts +3 -1
  3. package/interfaces/codegen/enums/cluster-config-type.js +7 -1
  4. package/interfaces/codegen/enums/sub-account-trade-interval.d.ts +7 -0
  5. package/interfaces/codegen/enums/sub-account-trade-interval.js +20 -0
  6. package/interfaces/codegen/enums/time-interval.d.ts +2 -1
  7. package/interfaces/codegen/enums/time-interval.js +4 -1
  8. package/interfaces/codegen/schema-maps/aggregated_account_performance.js +4 -2
  9. package/interfaces/codegen/schema-maps/api_account_performance_trend.js +2 -0
  10. package/interfaces/codegen/schema-maps/api_funding_payment_history_request.js +8 -2
  11. package/interfaces/codegen/schema-maps/api_get_cev_access_tiers_response.js +5 -2
  12. package/interfaces/codegen/schema-maps/api_query_account_performance_trend_response.js +4 -2
  13. package/interfaces/codegen/schema-maps/api_snap_aggregated_account_summary.js +2 -20
  14. package/interfaces/codegen/schema-maps/query_first_vault_snapshots_request.d.ts +2 -0
  15. package/interfaces/codegen/schema-maps/query_first_vault_snapshots_request.js +12 -0
  16. package/interfaces/codegen/schema-maps/query_first_vault_snapshots_response.d.ts +2 -0
  17. package/interfaces/codegen/schema-maps/query_first_vault_snapshots_response.js +13 -0
  18. package/interfaces/codegen/schema-maps/query_latest_vault_snapshot_request.d.ts +2 -0
  19. package/interfaces/codegen/schema-maps/query_latest_vault_snapshot_request.js +12 -0
  20. package/interfaces/codegen/schema-maps/query_latest_vault_snapshots_response.d.ts +2 -0
  21. package/interfaces/codegen/schema-maps/query_latest_vault_snapshots_response.js +13 -0
  22. package/interfaces/codegen/schema-maps/snap_sub_account_history.js +4 -2
  23. package/interfaces/codegen/schema-maps/snap_vault_summary_lite.d.ts +2 -0
  24. package/interfaces/codegen/schema-maps/snap_vault_summary_lite.js +16 -0
  25. package/interfaces/codegen/schema-maps/sub_account_performance.js +4 -2
  26. package/package.json +1 -1
@@ -26,6 +26,7 @@ import type { ERewardEpochStatus } from './enums/reward-epoch-status.ts';
26
26
  import type { ERewardProgramType } from './enums/reward-program-type.ts';
27
27
  import type { ERewardSession } from './enums/reward-session.ts';
28
28
  import type { ESource } from './enums/source.ts';
29
+ import type { ESubAccountTradeInterval } from './enums/sub-account-trade-interval.ts';
29
30
  import type { ETimeInForce } from './enums/time-in-force.ts';
30
31
  import type { ETimeInterval } from './enums/time-interval.ts';
31
32
  import type { ETransactionType } from './enums/transaction-type.ts';
@@ -83,6 +84,7 @@ export interface IAggregatedAccountPerformance {
83
84
  investment_balance_start?: string;
84
85
  investment_balance_end?: string;
85
86
  net_investment?: string;
87
+ currency?: number;
86
88
  }
87
89
  export interface IAggregatedAccountSummary {
88
90
  main_account_id?: string;
@@ -97,6 +99,7 @@ export interface IAggregatedAccountSummary {
97
99
  }
98
100
  export interface IApiAccountPerformanceTrend {
99
101
  start_interval?: string;
102
+ end_interval?: string;
100
103
  aggregated_pnl?: string;
101
104
  investment_pnl?: string;
102
105
  }
@@ -480,6 +483,9 @@ export interface IApiFundingPaymentHistoryRequest {
480
483
  end_time?: string;
481
484
  limit?: number;
482
485
  cursor?: string;
486
+ kind?: EKind[];
487
+ base?: string[];
488
+ quote?: string[];
483
489
  }
484
490
  export interface IApiFundingPaymentHistoryResponse {
485
491
  result?: IFundingPayment[];
@@ -540,6 +546,7 @@ export interface IApiGetAuthorizedBuildersResponse {
540
546
  export interface IApiGetCEVAccessTiersResponse {
541
547
  enabled?: boolean;
542
548
  tiers?: ICEVAccessTier[];
549
+ overwrites?: ICEVAccessTierOverwrite[];
543
550
  }
544
551
  export interface IApiGetClientTiersResponse {
545
552
  tiers?: IClientTier[];
@@ -887,6 +894,7 @@ export interface IApiQueryAccountPerformanceTrendRequest {
887
894
  }
888
895
  export interface IApiQueryAccountPerformanceTrendResponse {
889
896
  result?: IApiAccountPerformanceTrend[];
897
+ interval?: ESubAccountTradeInterval;
890
898
  }
891
899
  export interface IApiQueryAccountTodayPerformanceResponse {
892
900
  aggregated_pnl?: string;
@@ -1109,15 +1117,7 @@ export interface IApiSettlementPriceResponse {
1109
1117
  export interface IApiSnapAggregatedAccountSummary {
1110
1118
  event_time?: string;
1111
1119
  start_interval?: string;
1112
- main_account_id?: string;
1113
1120
  total_equity?: string;
1114
- spot_balances?: ISpotBalance[];
1115
- vault_investments?: IVaultInvestment[];
1116
- funding_account_balance?: string;
1117
- total_sub_account_balance?: string;
1118
- total_vault_investments_balance?: string;
1119
- funding_account_equity?: string;
1120
- total_sub_account_equity?: string;
1121
1121
  }
1122
1122
  export interface IApiSocializedLossStatusResponse {
1123
1123
  is_active?: boolean;
@@ -1797,6 +1797,11 @@ export interface ILPSubAccountSnapshot {
1797
1797
  export interface IListRewardEpochResponse {
1798
1798
  result?: IAdminRewardEpoch[];
1799
1799
  }
1800
+ export interface ILiteSnapVaultSummary {
1801
+ start_interval?: string;
1802
+ vault_id?: string;
1803
+ share_price?: string;
1804
+ }
1800
1805
  export interface ILiveFundingRateComparisonEntry {
1801
1806
  instrument?: string;
1802
1807
  next_funding_time?: string;
@@ -1998,6 +2003,12 @@ export interface IQueryFindEpochRequest {
1998
2003
  export interface IQueryFindEpochResponse {
1999
2004
  epoch?: IEpoch;
2000
2005
  }
2006
+ export interface IQueryFirstVaultSnapshotsRequest {
2007
+ vault_i_ds?: string[];
2008
+ }
2009
+ export interface IQueryFirstVaultSnapshotsResponse {
2010
+ result?: ILiteSnapVaultSummary[];
2011
+ }
2001
2012
  export interface IQueryGetLatestLPSnapshotResponse {
2002
2013
  snapshot?: ILPSnapshot;
2003
2014
  }
@@ -2013,6 +2024,12 @@ export interface IQueryLatestSubAccountSummaryRequest {
2013
2024
  export interface IQueryLatestSubAccountSummaryResponse {
2014
2025
  result?: ISnapSubAccountSummary;
2015
2026
  }
2027
+ export interface IQueryLatestVaultSnapshotRequest {
2028
+ vault_i_ds?: string[];
2029
+ }
2030
+ export interface IQueryLatestVaultSnapshotsResponse {
2031
+ result?: ILiteSnapVaultSummary[];
2032
+ }
2016
2033
  export interface IQueryListSubAccountHistoryRequest {
2017
2034
  sub_account_id?: string;
2018
2035
  start_time?: string;
@@ -2154,6 +2171,7 @@ export interface ISnapSubAccountHistory {
2154
2171
  total_equity?: string;
2155
2172
  unrealized_pnl?: string;
2156
2173
  is_vault?: boolean;
2174
+ event_time?: string;
2157
2175
  }
2158
2176
  export interface ISnapSubAccountSummary {
2159
2177
  event_time?: string;
@@ -2211,6 +2229,7 @@ export interface ISubAccountPerformance {
2211
2229
  equity_start?: string;
2212
2230
  equity_end?: string;
2213
2231
  net_transfer?: string;
2232
+ currency?: number;
2214
2233
  }
2215
2234
  export interface ISubAccountTradingPerformance {
2216
2235
  start_interval?: string;
@@ -62,6 +62,8 @@ export declare enum EClusterConfigType {
62
62
  FLAG_ENABLE_SET_SUB_ACCOUNT_POSITION_MARGIN_CONFIG = "FLAG_ENABLE_SET_SUB_ACCOUNT_POSITION_MARGIN_CONFIG",
63
63
  FLAG_ENABLE_ADD_ISOLATED_POSITION_MARGIN = "FLAG_ENABLE_ADD_ISOLATED_POSITION_MARGIN",
64
64
  FLAG_BUILDER_CODE = "FLAG_BUILDER_CODE",
65
- FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION = "FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION"
65
+ FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION = "FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION",
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"
66
68
  }
67
69
  export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
@@ -131,6 +131,10 @@ var EClusterConfigType;
131
131
  EClusterConfigType["FLAG_BUILDER_CODE"] = "FLAG_BUILDER_CODE";
132
132
  // Flag to enable adjust is reducing position
133
133
  EClusterConfigType["FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION"] = "FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION";
134
+ // Flag to fix cross liquidation post trade
135
+ EClusterConfigType["FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE"] = "FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE";
136
+ // Flag to allow keeping session keys for 180 days
137
+ EClusterConfigType["FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS"] = "FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS";
134
138
  })(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
135
139
  exports.EClusterConfigTypeInt = Object.freeze({
136
140
  [EClusterConfigType.CLIENT_TIER]: 1,
@@ -196,5 +200,7 @@ exports.EClusterConfigTypeInt = Object.freeze({
196
200
  [EClusterConfigType.FLAG_ENABLE_SET_SUB_ACCOUNT_POSITION_MARGIN_CONFIG]: 61,
197
201
  [EClusterConfigType.FLAG_ENABLE_ADD_ISOLATED_POSITION_MARGIN]: 62,
198
202
  [EClusterConfigType.FLAG_BUILDER_CODE]: 63,
199
- [EClusterConfigType.FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION]: 64
203
+ [EClusterConfigType.FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION]: 64,
204
+ [EClusterConfigType.FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE]: 65,
205
+ [EClusterConfigType.FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS]: 66
200
206
  });
@@ -0,0 +1,7 @@
1
+ export declare enum ESubAccountTradeInterval {
2
+ SAT_1_MO = "SAT_1_MO",
3
+ SAT_1_D = "SAT_1_D",
4
+ SAT_1_H = "SAT_1_H",
5
+ SAT_4_H = "SAT_4_H"
6
+ }
7
+ export declare const ESubAccountTradeIntervalInt: Record<ESubAccountTradeInterval, number>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ESubAccountTradeIntervalInt = exports.ESubAccountTradeInterval = void 0;
4
+ var ESubAccountTradeInterval;
5
+ (function (ESubAccountTradeInterval) {
6
+ // 1 month
7
+ ESubAccountTradeInterval["SAT_1_MO"] = "SAT_1_MO";
8
+ // 1 day
9
+ ESubAccountTradeInterval["SAT_1_D"] = "SAT_1_D";
10
+ // 1 hour
11
+ ESubAccountTradeInterval["SAT_1_H"] = "SAT_1_H";
12
+ // 4 hour
13
+ ESubAccountTradeInterval["SAT_4_H"] = "SAT_4_H";
14
+ })(ESubAccountTradeInterval || (exports.ESubAccountTradeInterval = ESubAccountTradeInterval = {}));
15
+ exports.ESubAccountTradeIntervalInt = Object.freeze({
16
+ [ESubAccountTradeInterval.SAT_1_MO]: 1,
17
+ [ESubAccountTradeInterval.SAT_1_D]: 2,
18
+ [ESubAccountTradeInterval.SAT_1_H]: 3,
19
+ [ESubAccountTradeInterval.SAT_4_H]: 4
20
+ });
@@ -3,6 +3,7 @@ export declare enum ETimeInterval {
3
3
  INTERVAL_7_D = "INTERVAL_7_D",
4
4
  INTERVAL_30_D = "INTERVAL_30_D",
5
5
  INTERVAL_90_D = "INTERVAL_90_D",
6
- INTERVAL_LIFETIME = "INTERVAL_LIFETIME"
6
+ INTERVAL_LIFETIME = "INTERVAL_LIFETIME",
7
+ INTERVAL_14_D = "INTERVAL_14_D"
7
8
  }
8
9
  export declare const ETimeIntervalInt: Record<ETimeInterval, number>;
@@ -14,11 +14,14 @@ var ETimeInterval;
14
14
  ETimeInterval["INTERVAL_90_D"] = "INTERVAL_90_D";
15
15
  // Lifetime
16
16
  ETimeInterval["INTERVAL_LIFETIME"] = "INTERVAL_LIFETIME";
17
+ // 14 days
18
+ ETimeInterval["INTERVAL_14_D"] = "INTERVAL_14_D";
17
19
  })(ETimeInterval || (exports.ETimeInterval = ETimeInterval = {}));
18
20
  exports.ETimeIntervalInt = Object.freeze({
19
21
  [ETimeInterval.INTERVAL_1_D]: 1,
20
22
  [ETimeInterval.INTERVAL_7_D]: 2,
21
23
  [ETimeInterval.INTERVAL_30_D]: 3,
22
24
  [ETimeInterval.INTERVAL_90_D]: 4,
23
- [ETimeInterval.INTERVAL_LIFETIME]: 5
25
+ [ETimeInterval.INTERVAL_LIFETIME]: 5,
26
+ [ETimeInterval.INTERVAL_14_D]: 6
24
27
  });
@@ -13,7 +13,8 @@ exports.AGGREGATED_ACCOUNT_PERFORMANCE_MAP = Object.freeze({
13
13
  net_transfer: 'nt',
14
14
  investment_balance_start: 'ib',
15
15
  investment_balance_end: 'ib1',
16
- net_investment: 'ni'
16
+ net_investment: 'ni',
17
+ currency: 'c'
17
18
  },
18
19
  LITE_TO_FULL: {
19
20
  si: 'start_interval',
@@ -25,6 +26,7 @@ exports.AGGREGATED_ACCOUNT_PERFORMANCE_MAP = Object.freeze({
25
26
  nt: 'net_transfer',
26
27
  ib: 'investment_balance_start',
27
28
  ib1: 'investment_balance_end',
28
- ni: 'net_investment'
29
+ ni: 'net_investment',
30
+ c: 'currency'
29
31
  }
30
32
  });
@@ -5,11 +5,13 @@ exports.API_ACCOUNT_PERFORMANCE_TREND_MAP = void 0;
5
5
  exports.API_ACCOUNT_PERFORMANCE_TREND_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  start_interval: 'si',
8
+ end_interval: 'ei',
8
9
  aggregated_pnl: 'ap',
9
10
  investment_pnl: 'ip'
10
11
  },
11
12
  LITE_TO_FULL: {
12
13
  si: 'start_interval',
14
+ ei: 'end_interval',
13
15
  ap: 'aggregated_pnl',
14
16
  ip: 'investment_pnl'
15
17
  }
@@ -9,7 +9,10 @@ exports.API_FUNDING_PAYMENT_HISTORY_REQUEST_MAP = Object.freeze({
9
9
  start_time: 'st',
10
10
  end_time: 'et',
11
11
  limit: 'l',
12
- cursor: 'c'
12
+ cursor: 'c',
13
+ kind: 'k',
14
+ base: 'b',
15
+ quote: 'q'
13
16
  },
14
17
  LITE_TO_FULL: {
15
18
  sa: 'sub_account_id',
@@ -17,6 +20,9 @@ exports.API_FUNDING_PAYMENT_HISTORY_REQUEST_MAP = Object.freeze({
17
20
  st: 'start_time',
18
21
  et: 'end_time',
19
22
  l: 'limit',
20
- c: 'cursor'
23
+ c: 'cursor',
24
+ k: 'kind',
25
+ b: 'base',
26
+ q: 'quote'
21
27
  }
22
28
  });
@@ -2,14 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.API_GET_CEV_ACCESS_TIERS_RESPONSE_MAP = void 0;
4
4
  const cev_access_tier_1 = require("./cev_access_tier");
5
+ const cev_access_tier_overwrite_1 = require("./cev_access_tier_overwrite");
5
6
  // Schema map for the 'API_GET_CEV_ACCESS_TIERS_RESPONSE' struct.
6
7
  exports.API_GET_CEV_ACCESS_TIERS_RESPONSE_MAP = Object.freeze({
7
8
  FULL_TO_LITE: {
8
9
  enabled: 'e',
9
- tiers: ['t', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.FULL_TO_LITE]]
10
+ tiers: ['t', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.FULL_TO_LITE]],
11
+ overwrites: ['o', [cev_access_tier_overwrite_1.CEV_ACCESS_TIER_OVERWRITE_MAP.FULL_TO_LITE]]
10
12
  },
11
13
  LITE_TO_FULL: {
12
14
  e: 'enabled',
13
- t: ['tiers', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.LITE_TO_FULL]]
15
+ t: ['tiers', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.LITE_TO_FULL]],
16
+ o: ['overwrites', [cev_access_tier_overwrite_1.CEV_ACCESS_TIER_OVERWRITE_MAP.LITE_TO_FULL]]
14
17
  }
15
18
  });
@@ -5,9 +5,11 @@ const api_account_performance_trend_1 = require("./api_account_performance_trend
5
5
  // Schema map for the 'API_QUERY_ACCOUNT_PERFORMANCE_TREND_RESPONSE' struct.
6
6
  exports.API_QUERY_ACCOUNT_PERFORMANCE_TREND_RESPONSE_MAP = Object.freeze({
7
7
  FULL_TO_LITE: {
8
- result: ['r', [api_account_performance_trend_1.API_ACCOUNT_PERFORMANCE_TREND_MAP.FULL_TO_LITE]]
8
+ result: ['r', [api_account_performance_trend_1.API_ACCOUNT_PERFORMANCE_TREND_MAP.FULL_TO_LITE]],
9
+ interval: 'i'
9
10
  },
10
11
  LITE_TO_FULL: {
11
- r: ['result', [api_account_performance_trend_1.API_ACCOUNT_PERFORMANCE_TREND_MAP.LITE_TO_FULL]]
12
+ r: ['result', [api_account_performance_trend_1.API_ACCOUNT_PERFORMANCE_TREND_MAP.LITE_TO_FULL]],
13
+ i: 'interval'
12
14
  }
13
15
  });
@@ -1,34 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.API_SNAP_AGGREGATED_ACCOUNT_SUMMARY_MAP = void 0;
4
- const api_spot_balance_1 = require("./api_spot_balance");
5
- const vault_investment_1 = require("./vault_investment");
6
4
  // Schema map for the 'API_SNAP_AGGREGATED_ACCOUNT_SUMMARY' struct.
7
5
  exports.API_SNAP_AGGREGATED_ACCOUNT_SUMMARY_MAP = Object.freeze({
8
6
  FULL_TO_LITE: {
9
7
  event_time: 'et',
10
8
  start_interval: 'si',
11
- main_account_id: 'ma',
12
- total_equity: 'te',
13
- spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]],
14
- vault_investments: ['vi', [vault_investment_1.VAULT_INVESTMENT_MAP.FULL_TO_LITE]],
15
- funding_account_balance: 'fa',
16
- total_sub_account_balance: 'ts',
17
- total_vault_investments_balance: 'tv',
18
- funding_account_equity: 'fa1',
19
- total_sub_account_equity: 'ts1'
9
+ total_equity: 'te'
20
10
  },
21
11
  LITE_TO_FULL: {
22
12
  et: 'event_time',
23
13
  si: 'start_interval',
24
- ma: 'main_account_id',
25
- te: 'total_equity',
26
- sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]],
27
- vi: ['vault_investments', [vault_investment_1.VAULT_INVESTMENT_MAP.LITE_TO_FULL]],
28
- fa: 'funding_account_balance',
29
- ts: 'total_sub_account_balance',
30
- tv: 'total_vault_investments_balance',
31
- fa1: 'funding_account_equity',
32
- ts1: 'total_sub_account_equity'
14
+ te: 'total_equity'
33
15
  }
34
16
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const QUERY_FIRST_VAULT_SNAPSHOTS_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUERY_FIRST_VAULT_SNAPSHOTS_REQUEST_MAP = void 0;
4
+ // Schema map for the 'QUERY_FIRST_VAULT_SNAPSHOTS_REQUEST' struct.
5
+ exports.QUERY_FIRST_VAULT_SNAPSHOTS_REQUEST_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ vault_i_ds: 'vi'
8
+ },
9
+ LITE_TO_FULL: {
10
+ vi: 'vault_i_ds'
11
+ }
12
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const QUERY_FIRST_VAULT_SNAPSHOTS_RESPONSE_MAP: SchemaPairMap;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUERY_FIRST_VAULT_SNAPSHOTS_RESPONSE_MAP = void 0;
4
+ const snap_vault_summary_lite_1 = require("./snap_vault_summary_lite");
5
+ // Schema map for the 'QUERY_FIRST_VAULT_SNAPSHOTS_RESPONSE' struct.
6
+ exports.QUERY_FIRST_VAULT_SNAPSHOTS_RESPONSE_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ result: ['r', [snap_vault_summary_lite_1.LITE_SNAP_VAULT_SUMMARY_MAP.FULL_TO_LITE]]
9
+ },
10
+ LITE_TO_FULL: {
11
+ r: ['result', [snap_vault_summary_lite_1.LITE_SNAP_VAULT_SUMMARY_MAP.LITE_TO_FULL]]
12
+ }
13
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const QUERY_LATEST_VAULT_SNAPSHOT_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUERY_LATEST_VAULT_SNAPSHOT_REQUEST_MAP = void 0;
4
+ // Schema map for the 'QUERY_LATEST_VAULT_SNAPSHOT_REQUEST' struct.
5
+ exports.QUERY_LATEST_VAULT_SNAPSHOT_REQUEST_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ vault_i_ds: 'vi'
8
+ },
9
+ LITE_TO_FULL: {
10
+ vi: 'vault_i_ds'
11
+ }
12
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const QUERY_LATEST_VAULT_SNAPSHOTS_RESPONSE_MAP: SchemaPairMap;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUERY_LATEST_VAULT_SNAPSHOTS_RESPONSE_MAP = void 0;
4
+ const snap_vault_summary_lite_1 = require("./snap_vault_summary_lite");
5
+ // Schema map for the 'QUERY_LATEST_VAULT_SNAPSHOTS_RESPONSE' struct.
6
+ exports.QUERY_LATEST_VAULT_SNAPSHOTS_RESPONSE_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ result: ['r', [snap_vault_summary_lite_1.LITE_SNAP_VAULT_SUMMARY_MAP.FULL_TO_LITE]]
9
+ },
10
+ LITE_TO_FULL: {
11
+ r: ['result', [snap_vault_summary_lite_1.LITE_SNAP_VAULT_SUMMARY_MAP.LITE_TO_FULL]]
12
+ }
13
+ });
@@ -8,13 +8,15 @@ exports.SNAP_SUB_ACCOUNT_HISTORY_MAP = Object.freeze({
8
8
  sub_account_id: 'sa',
9
9
  total_equity: 'te',
10
10
  unrealized_pnl: 'up',
11
- is_vault: 'iv'
11
+ is_vault: 'iv',
12
+ event_time: 'et'
12
13
  },
13
14
  LITE_TO_FULL: {
14
15
  si: 'start_interval',
15
16
  sa: 'sub_account_id',
16
17
  te: 'total_equity',
17
18
  up: 'unrealized_pnl',
18
- iv: 'is_vault'
19
+ iv: 'is_vault',
20
+ et: 'event_time'
19
21
  }
20
22
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const LITE_SNAP_VAULT_SUMMARY_MAP: SchemaPairMap;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LITE_SNAP_VAULT_SUMMARY_MAP = void 0;
4
+ // Schema map for the 'LITE_SNAP_VAULT_SUMMARY' struct.
5
+ exports.LITE_SNAP_VAULT_SUMMARY_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ start_interval: 'si',
8
+ vault_id: 'vi',
9
+ share_price: 'sp'
10
+ },
11
+ LITE_TO_FULL: {
12
+ si: 'start_interval',
13
+ vi: 'vault_id',
14
+ sp: 'share_price'
15
+ }
16
+ });
@@ -9,7 +9,8 @@ exports.SUB_ACCOUNT_PERFORMANCE_MAP = Object.freeze({
9
9
  pnl: 'p',
10
10
  equity_start: 'es',
11
11
  equity_end: 'ee',
12
- net_transfer: 'nt'
12
+ net_transfer: 'nt',
13
+ currency: 'c'
13
14
  },
14
15
  LITE_TO_FULL: {
15
16
  si: 'start_interval',
@@ -17,6 +18,7 @@ exports.SUB_ACCOUNT_PERFORMANCE_MAP = Object.freeze({
17
18
  p: 'pnl',
18
19
  es: 'equity_start',
19
20
  ee: 'equity_end',
20
- nt: 'net_transfer'
21
+ nt: 'net_transfer',
22
+ c: 'currency'
21
23
  }
22
24
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.6.18",
3
+ "version": "1.6.20",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",