@grvt/client 1.4.28 → 1.4.29

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.
@@ -262,6 +262,7 @@ export interface IAggregatedAccountSummary {
262
262
  main_account_id?: string;
263
263
  total_equity?: string;
264
264
  spot_balances?: ISpotBalance[];
265
+ vault_investments?: IVaultInvestment[];
265
266
  }
266
267
  export interface IApiAggregatedAccountSummaryResponse {
267
268
  result?: IAggregatedAccountSummary;
@@ -891,6 +892,7 @@ export interface IApiTradingPerformanceTrend {
891
892
  end_interval?: string;
892
893
  trading_volume?: string;
893
894
  realized_pnl?: string;
895
+ pnl?: string;
894
896
  }
895
897
  export interface IApiTransferAck {
896
898
  ack?: boolean;
@@ -998,6 +1000,7 @@ export interface IApiVaultPerformanceTrend {
998
1000
  end_interval?: string;
999
1001
  trading_volume?: string;
1000
1002
  realized_pnl?: string;
1003
+ pnl?: string;
1001
1004
  }
1002
1005
  export interface IApiVaultRedeemCancelRequest {
1003
1006
  main_account_id?: string;
@@ -1031,6 +1034,7 @@ export interface IApiVaultViewRedemptionQueueResponse {
1031
1034
  urgent_redemption_token_count?: string;
1032
1035
  auto_redeemable_balance?: string;
1033
1036
  share_price?: string;
1037
+ pre_min?: IPreMinRedemptions;
1034
1038
  }
1035
1039
  export interface IApiWithdrawalHistoryRequest {
1036
1040
  currency?: string[];
@@ -1265,6 +1269,7 @@ export interface IFundingAccountSummary {
1265
1269
  main_account_id?: string;
1266
1270
  total_equity?: string;
1267
1271
  spot_balances?: ISpotBalance[];
1272
+ vault_investments?: IVaultInvestment[];
1268
1273
  }
1269
1274
  export interface IFundingPayment {
1270
1275
  event_time?: string;
@@ -1470,6 +1475,10 @@ export interface IPositions {
1470
1475
  est_liquidation_price?: string;
1471
1476
  leverage?: string;
1472
1477
  }
1478
+ export interface IPreMinRedemptions {
1479
+ requests?: IVaultRedemptionRequest[];
1480
+ token_count?: string;
1481
+ }
1473
1482
  export interface IPreOrderCheckResult {
1474
1483
  max_qty?: IAssetMaxQty[];
1475
1484
  margin_required?: string;
@@ -1711,6 +1720,7 @@ export interface ITradingPerformancePoint {
1711
1720
  start_interval?: string;
1712
1721
  trading_volume?: string;
1713
1722
  realized_pnl?: string;
1723
+ unrealized_pnl?: string;
1714
1724
  }
1715
1725
  export interface ITransferHistory {
1716
1726
  tx_id?: string;
@@ -1767,6 +1777,11 @@ export interface IVaultInvestResults {
1767
1777
  vault_share_price?: string;
1768
1778
  num_lp_tokens?: string;
1769
1779
  }
1780
+ export interface IVaultInvestment {
1781
+ vault_id?: string;
1782
+ num_lp_tokens?: string;
1783
+ share_price?: string;
1784
+ }
1770
1785
  export interface IVaultInvestorHistory {
1771
1786
  event_time?: string;
1772
1787
  main_account_id?: string;
@@ -1829,6 +1844,7 @@ export interface IVaultRedemptionRequest {
1829
1844
  max_redemption_period_timestamp?: string;
1830
1845
  age_category?: EVaultRedemptionReqAgeCategory;
1831
1846
  is_manager?: boolean;
1847
+ eligible_for_auto_redemption_timestamp?: string;
1832
1848
  }
1833
1849
  export interface IVaultRiskMetric {
1834
1850
  vault_id?: string;
@@ -2,16 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AGGREGATED_ACCOUNT_SUMMARY_MAP = void 0;
4
4
  const api_spot_balance_1 = require("./api_spot_balance");
5
+ const vault_investment_1 = require("./vault_investment");
5
6
  // Schema map for the 'AGGREGATED_ACCOUNT_SUMMARY' struct.
6
7
  exports.AGGREGATED_ACCOUNT_SUMMARY_MAP = Object.freeze({
7
8
  FULL_TO_LITE: {
8
9
  main_account_id: 'ma',
9
10
  total_equity: 'te',
10
- spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]]
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]]
11
13
  },
12
14
  LITE_TO_FULL: {
13
15
  ma: 'main_account_id',
14
16
  te: 'total_equity',
15
- sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]]
17
+ 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]]
16
19
  }
17
20
  });
@@ -7,12 +7,14 @@ exports.API_TRADING_PERFORMANCE_TREND_MAP = Object.freeze({
7
7
  start_interval: 'si',
8
8
  end_interval: 'ei',
9
9
  trading_volume: 'tv',
10
- realized_pnl: 'rp'
10
+ realized_pnl: 'rp',
11
+ pnl: 'p'
11
12
  },
12
13
  LITE_TO_FULL: {
13
14
  si: 'start_interval',
14
15
  ei: 'end_interval',
15
16
  tv: 'trading_volume',
16
- rp: 'realized_pnl'
17
+ rp: 'realized_pnl',
18
+ p: 'pnl'
17
19
  }
18
20
  });
@@ -7,12 +7,14 @@ exports.API_VAULT_PERFORMANCE_TREND_MAP = Object.freeze({
7
7
  start_interval: 'si',
8
8
  end_interval: 'ei',
9
9
  trading_volume: 'tv',
10
- realized_pnl: 'rp'
10
+ realized_pnl: 'rp',
11
+ pnl: 'p'
11
12
  },
12
13
  LITE_TO_FULL: {
13
14
  si: 'start_interval',
14
15
  ei: 'end_interval',
15
16
  tv: 'trading_volume',
16
- rp: 'realized_pnl'
17
+ rp: 'realized_pnl',
18
+ p: 'pnl'
17
19
  }
18
20
  });
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP = void 0;
4
4
  const vault_redemption_req_view_1 = require("./vault_redemption_req_view");
5
+ const pre_min_redemptions_1 = require("./pre_min_redemptions");
5
6
  // Schema map for the 'API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE' struct.
6
7
  exports.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP = Object.freeze({
7
8
  FULL_TO_LITE: {
@@ -9,13 +10,15 @@ exports.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP = Object.freeze({
9
10
  pending_redemption_token_count: 'pr',
10
11
  urgent_redemption_token_count: 'ur',
11
12
  auto_redeemable_balance: 'ar',
12
- share_price: 'sp'
13
+ share_price: 'sp',
14
+ pre_min: ['pm', pre_min_redemptions_1.PRE_MIN_REDEMPTIONS_MAP.FULL_TO_LITE]
13
15
  },
14
16
  LITE_TO_FULL: {
15
17
  rq: ['redemption_queue', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQUEST_MAP.LITE_TO_FULL]],
16
18
  pr: 'pending_redemption_token_count',
17
19
  ur: 'urgent_redemption_token_count',
18
20
  ar: 'auto_redeemable_balance',
19
- sp: 'share_price'
21
+ sp: 'share_price',
22
+ pm: ['pre_min', pre_min_redemptions_1.PRE_MIN_REDEMPTIONS_MAP.LITE_TO_FULL]
20
23
  }
21
24
  });
@@ -2,16 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FUNDING_ACCOUNT_SUMMARY_MAP = void 0;
4
4
  const api_spot_balance_1 = require("./api_spot_balance");
5
+ const vault_investment_1 = require("./vault_investment");
5
6
  // Schema map for the 'FUNDING_ACCOUNT_SUMMARY' struct.
6
7
  exports.FUNDING_ACCOUNT_SUMMARY_MAP = Object.freeze({
7
8
  FULL_TO_LITE: {
8
9
  main_account_id: 'ma',
9
10
  total_equity: 'te',
10
- spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]]
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]]
11
13
  },
12
14
  LITE_TO_FULL: {
13
15
  ma: 'main_account_id',
14
16
  te: 'total_equity',
15
- sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]]
17
+ 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]]
16
19
  }
17
20
  });
@@ -231,6 +231,7 @@ export * from './orderbook_level';
231
231
  export * from './api_orderbook_levels';
232
232
  export * from './position_summary';
233
233
  export * from './api_position';
234
+ export * from './pre_min_redemptions';
234
235
  export * from './pre_order_check_result';
235
236
  export * from './query_account_summary_request';
236
237
  export * from './query_epoch_badge_point_distribution_request';
@@ -277,6 +278,7 @@ export * from './user_tracking_event';
277
278
  export * from './user_vault_category_event_pay_load';
278
279
  export * from './vault_burn_lp_token_results';
279
280
  export * from './vault_invest_results';
281
+ export * from './vault_investment';
280
282
  export * from './vault_investor_history';
281
283
  export * from './vault_investor_summary';
282
284
  export * from './vault_lp_info';
@@ -247,6 +247,7 @@ __exportStar(require("./orderbook_level"), exports);
247
247
  __exportStar(require("./api_orderbook_levels"), exports);
248
248
  __exportStar(require("./position_summary"), exports);
249
249
  __exportStar(require("./api_position"), exports);
250
+ __exportStar(require("./pre_min_redemptions"), exports);
250
251
  __exportStar(require("./pre_order_check_result"), exports);
251
252
  __exportStar(require("./query_account_summary_request"), exports);
252
253
  __exportStar(require("./query_epoch_badge_point_distribution_request"), exports);
@@ -293,6 +294,7 @@ __exportStar(require("./user_tracking_event"), exports);
293
294
  __exportStar(require("./user_vault_category_event_pay_load"), exports);
294
295
  __exportStar(require("./vault_burn_lp_token_results"), exports);
295
296
  __exportStar(require("./vault_invest_results"), exports);
297
+ __exportStar(require("./vault_investment"), exports);
296
298
  __exportStar(require("./vault_investor_history"), exports);
297
299
  __exportStar(require("./vault_investor_summary"), exports);
298
300
  __exportStar(require("./vault_lp_info"), exports);
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const PRE_MIN_REDEMPTIONS_MAP: SchemaPairMap;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRE_MIN_REDEMPTIONS_MAP = void 0;
4
+ const vault_redemption_req_view_1 = require("./vault_redemption_req_view");
5
+ // Schema map for the 'PRE_MIN_REDEMPTIONS' struct.
6
+ exports.PRE_MIN_REDEMPTIONS_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ requests: ['r', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQUEST_MAP.FULL_TO_LITE]],
9
+ token_count: 'tc'
10
+ },
11
+ LITE_TO_FULL: {
12
+ r: ['requests', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQUEST_MAP.LITE_TO_FULL]],
13
+ tc: 'token_count'
14
+ }
15
+ });
@@ -6,11 +6,13 @@ exports.TRADING_PERFORMANCE_POINT_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  start_interval: 'si',
8
8
  trading_volume: 'tv',
9
- realized_pnl: 'rp'
9
+ realized_pnl: 'rp',
10
+ unrealized_pnl: 'up'
10
11
  },
11
12
  LITE_TO_FULL: {
12
13
  si: 'start_interval',
13
14
  tv: 'trading_volume',
14
- rp: 'realized_pnl'
15
+ rp: 'realized_pnl',
16
+ up: 'unrealized_pnl'
15
17
  }
16
18
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const VAULT_INVESTMENT_MAP: SchemaPairMap;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VAULT_INVESTMENT_MAP = void 0;
4
+ // Schema map for the 'VAULT_INVESTMENT' struct.
5
+ exports.VAULT_INVESTMENT_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ vault_id: 'vi',
8
+ num_lp_tokens: 'nl',
9
+ share_price: 'sp'
10
+ },
11
+ LITE_TO_FULL: {
12
+ vi: 'vault_id',
13
+ nl: 'num_lp_tokens',
14
+ sp: 'share_price'
15
+ }
16
+ });
@@ -8,13 +8,15 @@ exports.VAULT_REDEMPTION_REQUEST_MAP = Object.freeze({
8
8
  num_lp_tokens: 'nl',
9
9
  max_redemption_period_timestamp: 'mr',
10
10
  age_category: 'ac',
11
- is_manager: 'im'
11
+ is_manager: 'im',
12
+ eligible_for_auto_redemption_timestamp: 'ef'
12
13
  },
13
14
  LITE_TO_FULL: {
14
15
  rt: 'request_time',
15
16
  nl: 'num_lp_tokens',
16
17
  mr: 'max_redemption_period_timestamp',
17
18
  ac: 'age_category',
18
- im: 'is_manager'
19
+ im: 'is_manager',
20
+ ef: 'eligible_for_auto_redemption_timestamp'
19
21
  }
20
22
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.4.28",
3
+ "version": "1.4.29",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",