@grvt/client 1.4.24 → 1.4.26

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.
@@ -226,6 +226,12 @@ export declare enum ETriggerType {
226
226
  TAKE_PROFIT = "TAKE_PROFIT",
227
227
  STOP_LOSS = "STOP_LOSS"
228
228
  }
229
+ export declare enum EVaultRedemptionReqAgeCategory {
230
+ NORMAL = "NORMAL",
231
+ URGENT = "URGENT",
232
+ OVERDUE = "OVERDUE",
233
+ PRE_MIN = "PRE_MIN"
234
+ }
229
235
  export declare enum EVaultType {
230
236
  PRIME = "PRIME",
231
237
  LAUNCH_PAD = "LAUNCH_PAD"
@@ -959,6 +965,7 @@ export interface IApiVaultInvestorHistory {
959
965
  size?: string;
960
966
  realized_pnl?: string;
961
967
  performance_fee?: string;
968
+ off_chain_account_id?: string;
962
969
  }
963
970
  export interface IApiVaultInvestorSummaryRequest {
964
971
  main_account_id?: string;
@@ -1010,8 +1017,7 @@ export interface IApiVaultViewRedemptionQueueResponse {
1010
1017
  redemption_queue?: IVaultRedemptionReqView[];
1011
1018
  pending_redemption_token_count?: string;
1012
1019
  urgent_redemption_token_count?: string;
1013
- auto_redeemable_balance_vault_quote_cur?: string;
1014
- currency?: string;
1020
+ auto_redeemable_balance?: string;
1015
1021
  }
1016
1022
  export interface IApiWithdrawalHistoryRequest {
1017
1023
  currency?: string[];
@@ -1773,6 +1779,7 @@ export interface IVaultRedemptionReqView {
1773
1779
  currency?: string;
1774
1780
  num_lp_tokens?: string;
1775
1781
  max_redemption_period_timestamp?: string;
1782
+ age_category?: EVaultRedemptionReqAgeCategory;
1776
1783
  }
1777
1784
  export interface IVaultRiskMetric {
1778
1785
  vault_id?: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EVenue = exports.EVaultType = exports.ETriggerType = exports.ETriggerBy = exports.ETransferType = exports.ETransactionType = exports.ETimeInterval = exports.ETimeInForce = exports.ESubAccountTradeInterval = exports.ESource = exports.ERewardProgramType = exports.ERewardEpochStatus = exports.EQueryMainAccountLeaderboardOrderBy = exports.EOrderStatus = exports.EOrderRejectReason = exports.EMarginType = exports.EKind = exports.EInstrumentSettlementPeriod = exports.EEpochBadgeType = exports.ECandlestickType = exports.ECandlestickInterval = exports.ECancelStatus = exports.EBrokerTag = exports.EBridgeType = void 0;
3
+ exports.EVenue = exports.EVaultType = exports.EVaultRedemptionReqAgeCategory = exports.ETriggerType = exports.ETriggerBy = exports.ETransferType = exports.ETransactionType = exports.ETimeInterval = exports.ETimeInForce = exports.ESubAccountTradeInterval = exports.ESource = exports.ERewardProgramType = exports.ERewardEpochStatus = exports.EQueryMainAccountLeaderboardOrderBy = exports.EOrderStatus = exports.EOrderRejectReason = exports.EMarginType = exports.EKind = exports.EInstrumentSettlementPeriod = exports.EEpochBadgeType = exports.ECandlestickType = exports.ECandlestickInterval = exports.ECancelStatus = exports.EBrokerTag = exports.EBridgeType = void 0;
4
4
  var EBridgeType;
5
5
  (function (EBridgeType) {
6
6
  // XY Bridge type
@@ -403,6 +403,20 @@ var ETriggerType;
403
403
  // Stop Loss Order - Executes when the price reaches a specified level to limit losses.
404
404
  ETriggerType["STOP_LOSS"] = "STOP_LOSS";
405
405
  })(ETriggerType || (exports.ETriggerType = ETriggerType = {}));
406
+ // Denotes the age category of a given redemption request.
407
+ //
408
+ //
409
+ var EVaultRedemptionReqAgeCategory;
410
+ (function (EVaultRedemptionReqAgeCategory) {
411
+ // This request is at least as old as the minimum redemption period, and is eligible for automated redemption.
412
+ EVaultRedemptionReqAgeCategory["NORMAL"] = "NORMAL";
413
+ // This request is nearing the maxmimum redemption period and will be factored into pre-order check margin requirements.
414
+ EVaultRedemptionReqAgeCategory["URGENT"] = "URGENT";
415
+ // This request has exceeded the maximum redemption period and will be considered for forced redemptions.
416
+ EVaultRedemptionReqAgeCategory["OVERDUE"] = "OVERDUE";
417
+ // This request has yet to exceed the minimum redemption period, and is not yet eligible for automated redemption.
418
+ EVaultRedemptionReqAgeCategory["PRE_MIN"] = "PRE_MIN";
419
+ })(EVaultRedemptionReqAgeCategory || (exports.EVaultRedemptionReqAgeCategory = EVaultRedemptionReqAgeCategory = {}));
406
420
  var EVaultType;
407
421
  (function (EVaultType) {
408
422
  // Prime vault
@@ -1,4 +1,4 @@
1
- import { EBridgeType, EBrokerTag, ECancelStatus, ECandlestickInterval, ECandlestickType, EEpochBadgeType, EInstrumentSettlementPeriod, EKind, EMarginType, EOrderRejectReason, EOrderStatus, EQueryMainAccountLeaderboardOrderBy, ERewardEpochStatus, ERewardProgramType, ESource, ESubAccountTradeInterval, ETimeInForce, ETimeInterval, ETransactionType, ETransferType, ETriggerBy, ETriggerType, EVaultType, EVenue } from './data.interface';
1
+ import { EBridgeType, EBrokerTag, ECancelStatus, ECandlestickInterval, ECandlestickType, EEpochBadgeType, EInstrumentSettlementPeriod, EKind, EMarginType, EOrderRejectReason, EOrderStatus, EQueryMainAccountLeaderboardOrderBy, ERewardEpochStatus, ERewardProgramType, ESource, ESubAccountTradeInterval, ETimeInForce, ETimeInterval, ETransactionType, ETransferType, ETriggerBy, ETriggerType, EVaultRedemptionReqAgeCategory, EVaultType, EVenue } from './data.interface';
2
2
  export declare const EBridgeTypeInt: Record<EBridgeType, number>;
3
3
  export declare const EBrokerTagInt: Record<EBrokerTag, number>;
4
4
  export declare const ECancelStatusInt: Record<ECancelStatus, number>;
@@ -21,5 +21,6 @@ export declare const ETransactionTypeInt: Record<ETransactionType, number>;
21
21
  export declare const ETransferTypeInt: Record<ETransferType, number>;
22
22
  export declare const ETriggerByInt: Record<ETriggerBy, number>;
23
23
  export declare const ETriggerTypeInt: Record<ETriggerType, number>;
24
+ export declare const EVaultRedemptionReqAgeCategoryInt: Record<EVaultRedemptionReqAgeCategory, number>;
24
25
  export declare const EVaultTypeInt: Record<EVaultType, number>;
25
26
  export declare const EVenueInt: Record<EVenue, number>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EVenueInt = exports.EVaultTypeInt = exports.ETriggerTypeInt = exports.ETriggerByInt = exports.ETransferTypeInt = exports.ETransactionTypeInt = exports.ETimeIntervalInt = exports.ETimeInForceInt = exports.ESubAccountTradeIntervalInt = exports.ESourceInt = exports.ERewardProgramTypeInt = exports.ERewardEpochStatusInt = exports.EQueryMainAccountLeaderboardOrderByInt = exports.EOrderStatusInt = exports.EOrderRejectReasonInt = exports.EMarginTypeInt = exports.EKindInt = exports.EInstrumentSettlementPeriodInt = exports.EEpochBadgeTypeInt = exports.ECandlestickTypeInt = exports.ECandlestickIntervalInt = exports.ECancelStatusInt = exports.EBrokerTagInt = exports.EBridgeTypeInt = void 0;
3
+ exports.EVenueInt = exports.EVaultTypeInt = exports.EVaultRedemptionReqAgeCategoryInt = exports.ETriggerTypeInt = exports.ETriggerByInt = exports.ETransferTypeInt = exports.ETransactionTypeInt = exports.ETimeIntervalInt = exports.ETimeInForceInt = exports.ESubAccountTradeIntervalInt = exports.ESourceInt = exports.ERewardProgramTypeInt = exports.ERewardEpochStatusInt = exports.EQueryMainAccountLeaderboardOrderByInt = exports.EOrderStatusInt = exports.EOrderRejectReasonInt = exports.EMarginTypeInt = exports.EKindInt = exports.EInstrumentSettlementPeriodInt = exports.EEpochBadgeTypeInt = exports.ECandlestickTypeInt = exports.ECandlestickIntervalInt = exports.ECancelStatusInt = exports.EBrokerTagInt = exports.EBridgeTypeInt = void 0;
4
4
  const data_interface_1 = require("./data.interface");
5
5
  exports.EBridgeTypeInt = Object.freeze({
6
6
  [data_interface_1.EBridgeType.XY]: 1,
@@ -230,6 +230,12 @@ exports.ETriggerTypeInt = Object.freeze({
230
230
  [data_interface_1.ETriggerType.TAKE_PROFIT]: 1,
231
231
  [data_interface_1.ETriggerType.STOP_LOSS]: 2
232
232
  });
233
+ exports.EVaultRedemptionReqAgeCategoryInt = Object.freeze({
234
+ [data_interface_1.EVaultRedemptionReqAgeCategory.NORMAL]: 1,
235
+ [data_interface_1.EVaultRedemptionReqAgeCategory.URGENT]: 2,
236
+ [data_interface_1.EVaultRedemptionReqAgeCategory.OVERDUE]: 3,
237
+ [data_interface_1.EVaultRedemptionReqAgeCategory.PRE_MIN]: 4
238
+ });
233
239
  exports.EVaultTypeInt = Object.freeze({
234
240
  [data_interface_1.EVaultType.PRIME]: 1,
235
241
  [data_interface_1.EVaultType.LAUNCH_PAD]: 2
@@ -11,7 +11,8 @@ exports.API_VAULT_INVESTOR_HISTORY_MAP = Object.freeze({
11
11
  price: 'p',
12
12
  size: 's',
13
13
  realized_pnl: 'rp',
14
- performance_fee: 'pf'
14
+ performance_fee: 'pf',
15
+ off_chain_account_id: 'oc'
15
16
  },
16
17
  LITE_TO_FULL: {
17
18
  et: 'event_time',
@@ -21,6 +22,7 @@ exports.API_VAULT_INVESTOR_HISTORY_MAP = Object.freeze({
21
22
  p: 'price',
22
23
  s: 'size',
23
24
  rp: 'realized_pnl',
24
- pf: 'performance_fee'
25
+ pf: 'performance_fee',
26
+ oc: 'off_chain_account_id'
25
27
  }
26
28
  });
@@ -8,14 +8,12 @@ exports.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP = Object.freeze({
8
8
  redemption_queue: ['rq', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQ_VIEW_MAP.FULL_TO_LITE]],
9
9
  pending_redemption_token_count: 'pr',
10
10
  urgent_redemption_token_count: 'ur',
11
- auto_redeemable_balance_vault_quote_cur: 'ar',
12
- currency: 'c'
11
+ auto_redeemable_balance: 'ar'
13
12
  },
14
13
  LITE_TO_FULL: {
15
14
  rq: ['redemption_queue', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQ_VIEW_MAP.LITE_TO_FULL]],
16
15
  pr: 'pending_redemption_token_count',
17
16
  ur: 'urgent_redemption_token_count',
18
- ar: 'auto_redeemable_balance_vault_quote_cur',
19
- c: 'currency'
17
+ ar: 'auto_redeemable_balance'
20
18
  }
21
19
  });
@@ -7,12 +7,14 @@ exports.VAULT_REDEMPTION_REQ_VIEW_MAP = Object.freeze({
7
7
  request_time: 'rt',
8
8
  currency: 'c',
9
9
  num_lp_tokens: 'nl',
10
- max_redemption_period_timestamp: 'mr'
10
+ max_redemption_period_timestamp: 'mr',
11
+ age_category: 'ac'
11
12
  },
12
13
  LITE_TO_FULL: {
13
14
  rt: 'request_time',
14
15
  c: 'currency',
15
16
  nl: 'num_lp_tokens',
16
- mr: 'max_redemption_period_timestamp'
17
+ mr: 'max_redemption_period_timestamp',
18
+ ac: 'age_category'
17
19
  }
18
20
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.4.24",
3
+ "version": "1.4.26",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",