@grvt/client 1.4.23 → 1.4.25
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/interfaces/codegen/data.interface.d.ts +7 -0
- package/interfaces/codegen/data.interface.js +15 -1
- package/interfaces/codegen/enum-int.d.ts +2 -1
- package/interfaces/codegen/enum-int.js +7 -1
- package/interfaces/codegen/schema-maps/vault_redemption_req_view.js +4 -2
- package/package.json +1 -1
- package/ws/ws.js +1 -1
|
@@ -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"
|
|
@@ -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
|
|
@@ -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
package/ws/ws.js
CHANGED