@grvt/client 1.4.27 → 1.4.28
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 +28 -6
- package/interfaces/codegen/data.interface.js +8 -1
- package/interfaces/codegen/enum-int.d.ts +2 -1
- package/interfaces/codegen/enum-int.js +7 -1
- package/interfaces/codegen/hex-string-map.js +0 -1
- package/interfaces/codegen/schema-maps/api_funding_account_summary_response.js +5 -2
- package/interfaces/codegen/schema-maps/api_get_client_tiers_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_client_tiers_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_set_client_tiers_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_set_client_tiers_request.js +13 -0
- package/interfaces/codegen/schema-maps/api_vault_view_redemption_queue_response.js +6 -4
- package/interfaces/codegen/schema-maps/client_tier.d.ts +2 -0
- package/interfaces/codegen/schema-maps/client_tier.js +20 -0
- package/interfaces/codegen/schema-maps/epoch_lp_point.js +2 -0
- package/interfaces/codegen/schema-maps/index.d.ts +3 -0
- package/interfaces/codegen/schema-maps/index.js +3 -0
- package/interfaces/codegen/schema-maps/query_vault_summary_history_request.js +4 -2
- package/interfaces/codegen/schema-maps/vault_redemption_req_view.d.ts +1 -1
- package/interfaces/codegen/schema-maps/vault_redemption_req_view.js +5 -7
- package/package.json +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 EVaultInvestorAction {
|
|
230
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
231
|
+
VAULT_INVEST = "VAULT_INVEST",
|
|
232
|
+
VAULT_BURN_LP_TOKEN = "VAULT_BURN_LP_TOKEN",
|
|
233
|
+
VAULT_REDEEM = "VAULT_REDEEM"
|
|
234
|
+
}
|
|
229
235
|
export declare enum EVaultRedemptionReqAgeCategory {
|
|
230
236
|
NORMAL = "NORMAL",
|
|
231
237
|
URGENT = "URGENT",
|
|
@@ -411,6 +417,7 @@ export interface IApiFindTraderLeaderboardResponse {
|
|
|
411
417
|
}
|
|
412
418
|
export interface IApiFundingAccountSummaryResponse {
|
|
413
419
|
result?: IFundingAccountSummary;
|
|
420
|
+
tier?: IClientTier;
|
|
414
421
|
}
|
|
415
422
|
export interface IApiFundingPaymentHistoryRequest {
|
|
416
423
|
sub_account_id?: string;
|
|
@@ -447,6 +454,9 @@ export interface IApiGetAllInstrumentsRequest {
|
|
|
447
454
|
export interface IApiGetAllInstrumentsResponse {
|
|
448
455
|
result?: IInstrument[];
|
|
449
456
|
}
|
|
457
|
+
export interface IApiGetClientTiersResponse {
|
|
458
|
+
tiers?: IClientTier[];
|
|
459
|
+
}
|
|
450
460
|
export interface IApiGetCurrencyRequest {
|
|
451
461
|
}
|
|
452
462
|
export interface IApiGetCurrencyResponse {
|
|
@@ -766,6 +776,9 @@ export interface IApiResolveEpochEcosystemMetricResponse {
|
|
|
766
776
|
point?: number;
|
|
767
777
|
last_calculated_time?: string;
|
|
768
778
|
}
|
|
779
|
+
export interface IApiSetClientTiersRequest {
|
|
780
|
+
tiers?: IClientTier[];
|
|
781
|
+
}
|
|
769
782
|
export interface IApiSetDeriskToMaintenanceMarginRatioRequest {
|
|
770
783
|
sub_account_id?: string;
|
|
771
784
|
ratio?: string;
|
|
@@ -960,7 +973,7 @@ export interface IApiVaultInvestorHistory {
|
|
|
960
973
|
event_time?: string;
|
|
961
974
|
off_chain_account_id?: string;
|
|
962
975
|
vault_id?: string;
|
|
963
|
-
type?:
|
|
976
|
+
type?: EVaultInvestorAction;
|
|
964
977
|
price?: string;
|
|
965
978
|
size?: string;
|
|
966
979
|
realized_pnl?: string;
|
|
@@ -1013,10 +1026,11 @@ export interface IApiVaultViewRedemptionQueueRequest {
|
|
|
1013
1026
|
vault_id?: string;
|
|
1014
1027
|
}
|
|
1015
1028
|
export interface IApiVaultViewRedemptionQueueResponse {
|
|
1016
|
-
redemption_queue?:
|
|
1029
|
+
redemption_queue?: IVaultRedemptionRequest[];
|
|
1017
1030
|
pending_redemption_token_count?: string;
|
|
1018
1031
|
urgent_redemption_token_count?: string;
|
|
1019
1032
|
auto_redeemable_balance?: string;
|
|
1033
|
+
share_price?: string;
|
|
1020
1034
|
}
|
|
1021
1035
|
export interface IApiWithdrawalHistoryRequest {
|
|
1022
1036
|
currency?: string[];
|
|
@@ -1092,6 +1106,13 @@ export interface IClientOrderIDsByGroup {
|
|
|
1092
1106
|
client_order_id?: string[];
|
|
1093
1107
|
sub_account_id?: string;
|
|
1094
1108
|
}
|
|
1109
|
+
export interface IClientTier {
|
|
1110
|
+
tier?: number;
|
|
1111
|
+
futures_taker_fee?: number;
|
|
1112
|
+
futures_maker_fee?: number;
|
|
1113
|
+
options_taker_fee?: number;
|
|
1114
|
+
options_maker_fee?: number;
|
|
1115
|
+
}
|
|
1095
1116
|
export interface ICurrencyDetail {
|
|
1096
1117
|
id?: number;
|
|
1097
1118
|
symbol?: string;
|
|
@@ -1190,8 +1211,9 @@ export interface IEpochBadgePointDistribution {
|
|
|
1190
1211
|
count?: number;
|
|
1191
1212
|
}
|
|
1192
1213
|
export interface IEpochLPPoint {
|
|
1193
|
-
epoch?:
|
|
1214
|
+
epoch?: number;
|
|
1194
1215
|
main_account_id?: string;
|
|
1216
|
+
off_chain_account_id?: string;
|
|
1195
1217
|
lp_asset?: string;
|
|
1196
1218
|
liquidity_score?: string;
|
|
1197
1219
|
vault_liquidity_score?: string;
|
|
@@ -1531,6 +1553,7 @@ export interface IQueryVaultSummaryHistoryRequest {
|
|
|
1531
1553
|
start_time?: string;
|
|
1532
1554
|
end_time?: string;
|
|
1533
1555
|
time_interval?: ETimeInterval;
|
|
1556
|
+
start_interval?: string;
|
|
1534
1557
|
}
|
|
1535
1558
|
export interface IQueryVaultSummaryHistoryResponse {
|
|
1536
1559
|
result?: ISnapVaultSummary[];
|
|
@@ -1800,13 +1823,12 @@ export interface IVaultRedemption {
|
|
|
1800
1823
|
request_time?: string;
|
|
1801
1824
|
max_redemption_period_timestamp?: string;
|
|
1802
1825
|
}
|
|
1803
|
-
export interface
|
|
1826
|
+
export interface IVaultRedemptionRequest {
|
|
1804
1827
|
request_time?: string;
|
|
1805
|
-
currency?: string;
|
|
1806
1828
|
num_lp_tokens?: string;
|
|
1807
1829
|
max_redemption_period_timestamp?: string;
|
|
1808
1830
|
age_category?: EVaultRedemptionReqAgeCategory;
|
|
1809
|
-
|
|
1831
|
+
is_manager?: boolean;
|
|
1810
1832
|
}
|
|
1811
1833
|
export interface IVaultRiskMetric {
|
|
1812
1834
|
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.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;
|
|
3
|
+
exports.EVenue = exports.EVaultType = exports.EVaultRedemptionReqAgeCategory = exports.EVaultInvestorAction = 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,13 @@ 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
|
+
var EVaultInvestorAction;
|
|
407
|
+
(function (EVaultInvestorAction) {
|
|
408
|
+
EVaultInvestorAction["UNSPECIFIED"] = "UNSPECIFIED";
|
|
409
|
+
EVaultInvestorAction["VAULT_INVEST"] = "VAULT_INVEST";
|
|
410
|
+
EVaultInvestorAction["VAULT_BURN_LP_TOKEN"] = "VAULT_BURN_LP_TOKEN";
|
|
411
|
+
EVaultInvestorAction["VAULT_REDEEM"] = "VAULT_REDEEM";
|
|
412
|
+
})(EVaultInvestorAction || (exports.EVaultInvestorAction = EVaultInvestorAction = {}));
|
|
406
413
|
// Denotes the age category of a given redemption request.
|
|
407
414
|
//
|
|
408
415
|
//
|
|
@@ -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, EVaultRedemptionReqAgeCategory, 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, EVaultInvestorAction, 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,6 +21,7 @@ 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 EVaultInvestorActionInt: Record<EVaultInvestorAction, number>;
|
|
24
25
|
export declare const EVaultRedemptionReqAgeCategoryInt: Record<EVaultRedemptionReqAgeCategory, number>;
|
|
25
26
|
export declare const EVaultTypeInt: Record<EVaultType, number>;
|
|
26
27
|
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.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;
|
|
3
|
+
exports.EVenueInt = exports.EVaultTypeInt = exports.EVaultRedemptionReqAgeCategoryInt = exports.EVaultInvestorActionInt = 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.EVaultInvestorActionInt = Object.freeze({
|
|
234
|
+
[data_interface_1.EVaultInvestorAction.UNSPECIFIED]: 0,
|
|
235
|
+
[data_interface_1.EVaultInvestorAction.VAULT_INVEST]: 1,
|
|
236
|
+
[data_interface_1.EVaultInvestorAction.VAULT_BURN_LP_TOKEN]: 2,
|
|
237
|
+
[data_interface_1.EVaultInvestorAction.VAULT_REDEEM]: 3
|
|
238
|
+
});
|
|
233
239
|
exports.EVaultRedemptionReqAgeCategoryInt = Object.freeze({
|
|
234
240
|
[data_interface_1.EVaultRedemptionReqAgeCategory.NORMAL]: 1,
|
|
235
241
|
[data_interface_1.EVaultRedemptionReqAgeCategory.URGENT]: 2,
|
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.API_FUNDING_ACCOUNT_SUMMARY_RESPONSE_MAP = void 0;
|
|
4
4
|
const funding_account_summary_1 = require("./funding_account_summary");
|
|
5
|
+
const client_tier_1 = require("./client_tier");
|
|
5
6
|
// Schema map for the 'API_FUNDING_ACCOUNT_SUMMARY_RESPONSE' struct.
|
|
6
7
|
exports.API_FUNDING_ACCOUNT_SUMMARY_RESPONSE_MAP = Object.freeze({
|
|
7
8
|
FULL_TO_LITE: {
|
|
8
|
-
result: ['r', funding_account_summary_1.FUNDING_ACCOUNT_SUMMARY_MAP.FULL_TO_LITE]
|
|
9
|
+
result: ['r', funding_account_summary_1.FUNDING_ACCOUNT_SUMMARY_MAP.FULL_TO_LITE],
|
|
10
|
+
tier: ['t', client_tier_1.CLIENT_TIER_MAP.FULL_TO_LITE]
|
|
9
11
|
},
|
|
10
12
|
LITE_TO_FULL: {
|
|
11
|
-
r: ['result', funding_account_summary_1.FUNDING_ACCOUNT_SUMMARY_MAP.LITE_TO_FULL]
|
|
13
|
+
r: ['result', funding_account_summary_1.FUNDING_ACCOUNT_SUMMARY_MAP.LITE_TO_FULL],
|
|
14
|
+
t: ['tier', client_tier_1.CLIENT_TIER_MAP.LITE_TO_FULL]
|
|
12
15
|
}
|
|
13
16
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_CLIENT_TIERS_RESPONSE_MAP = void 0;
|
|
4
|
+
const client_tier_1 = require("./client_tier");
|
|
5
|
+
// Schema map for the 'API_GET_CLIENT_TIERS_RESPONSE' struct.
|
|
6
|
+
exports.API_GET_CLIENT_TIERS_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
tiers: ['t', [client_tier_1.CLIENT_TIER_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
t: ['tiers', [client_tier_1.CLIENT_TIER_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_SET_CLIENT_TIERS_REQUEST_MAP = void 0;
|
|
4
|
+
const client_tier_1 = require("./client_tier");
|
|
5
|
+
// Schema map for the 'API_SET_CLIENT_TIERS_REQUEST' struct.
|
|
6
|
+
exports.API_SET_CLIENT_TIERS_REQUEST_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
tiers: ['t', [client_tier_1.CLIENT_TIER_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
t: ['tiers', [client_tier_1.CLIENT_TIER_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -5,15 +5,17 @@ const vault_redemption_req_view_1 = require("./vault_redemption_req_view");
|
|
|
5
5
|
// Schema map for the 'API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE' struct.
|
|
6
6
|
exports.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP = Object.freeze({
|
|
7
7
|
FULL_TO_LITE: {
|
|
8
|
-
redemption_queue: ['rq', [vault_redemption_req_view_1.
|
|
8
|
+
redemption_queue: ['rq', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQUEST_MAP.FULL_TO_LITE]],
|
|
9
9
|
pending_redemption_token_count: 'pr',
|
|
10
10
|
urgent_redemption_token_count: 'ur',
|
|
11
|
-
auto_redeemable_balance: 'ar'
|
|
11
|
+
auto_redeemable_balance: 'ar',
|
|
12
|
+
share_price: 'sp'
|
|
12
13
|
},
|
|
13
14
|
LITE_TO_FULL: {
|
|
14
|
-
rq: ['redemption_queue', [vault_redemption_req_view_1.
|
|
15
|
+
rq: ['redemption_queue', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQUEST_MAP.LITE_TO_FULL]],
|
|
15
16
|
pr: 'pending_redemption_token_count',
|
|
16
17
|
ur: 'urgent_redemption_token_count',
|
|
17
|
-
ar: 'auto_redeemable_balance'
|
|
18
|
+
ar: 'auto_redeemable_balance',
|
|
19
|
+
sp: 'share_price'
|
|
18
20
|
}
|
|
19
21
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLIENT_TIER_MAP = void 0;
|
|
4
|
+
// Schema map for the 'CLIENT_TIER' struct.
|
|
5
|
+
exports.CLIENT_TIER_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
tier: 't',
|
|
8
|
+
futures_taker_fee: 'ft',
|
|
9
|
+
futures_maker_fee: 'fm',
|
|
10
|
+
options_taker_fee: 'ot',
|
|
11
|
+
options_maker_fee: 'om'
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
t: 'tier',
|
|
15
|
+
ft: 'futures_taker_fee',
|
|
16
|
+
fm: 'futures_maker_fee',
|
|
17
|
+
ot: 'options_taker_fee',
|
|
18
|
+
om: 'options_maker_fee'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -6,6 +6,7 @@ exports.EPOCH_LP_POINT_MAP = Object.freeze({
|
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
epoch: 'e',
|
|
8
8
|
main_account_id: 'ma',
|
|
9
|
+
off_chain_account_id: 'oc',
|
|
9
10
|
lp_asset: 'la',
|
|
10
11
|
liquidity_score: 'ls',
|
|
11
12
|
vault_liquidity_score: 'vl'
|
|
@@ -13,6 +14,7 @@ exports.EPOCH_LP_POINT_MAP = Object.freeze({
|
|
|
13
14
|
LITE_TO_FULL: {
|
|
14
15
|
e: 'epoch',
|
|
15
16
|
ma: 'main_account_id',
|
|
17
|
+
oc: 'off_chain_account_id',
|
|
16
18
|
la: 'lp_asset',
|
|
17
19
|
ls: 'liquidity_score',
|
|
18
20
|
vl: 'vault_liquidity_score'
|
|
@@ -46,6 +46,7 @@ export * from './api_get_all_initial_leverage_request';
|
|
|
46
46
|
export * from './api_get_all_initial_leverage_response';
|
|
47
47
|
export * from './api_get_all_instruments_request';
|
|
48
48
|
export * from './api_get_all_instruments_response';
|
|
49
|
+
export * from './api_get_client_tiers_response';
|
|
49
50
|
export * from './api_get_currency_request';
|
|
50
51
|
export * from './api_get_currency_response';
|
|
51
52
|
export * from './api_get_ecosystem_leaderboard_request';
|
|
@@ -127,6 +128,7 @@ export * from './api_query_vault_summary_history_response';
|
|
|
127
128
|
export * from './api_replace_orders_request';
|
|
128
129
|
export * from './api_replace_orders_response';
|
|
129
130
|
export * from './api_resolve_epoch_ecosystem_metric_response';
|
|
131
|
+
export * from './api_set_client_tiers_request';
|
|
130
132
|
export * from './api_set_derisk_to_maintenance_margin_ratio_request';
|
|
131
133
|
export * from './api_set_derisk_to_maintenance_margin_ratio_response';
|
|
132
134
|
export * from './api_set_initial_leverage_request';
|
|
@@ -188,6 +190,7 @@ export * from './cancel_status_feed';
|
|
|
188
190
|
export * from './candlestick';
|
|
189
191
|
export * from './claim_ecosystem_badge_response';
|
|
190
192
|
export * from './client_order_i_ds_by_group';
|
|
193
|
+
export * from './client_tier';
|
|
191
194
|
export * from './currency_detail';
|
|
192
195
|
export * from './deposit';
|
|
193
196
|
export * from './deposit_history';
|
|
@@ -62,6 +62,7 @@ __exportStar(require("./api_get_all_initial_leverage_request"), exports);
|
|
|
62
62
|
__exportStar(require("./api_get_all_initial_leverage_response"), exports);
|
|
63
63
|
__exportStar(require("./api_get_all_instruments_request"), exports);
|
|
64
64
|
__exportStar(require("./api_get_all_instruments_response"), exports);
|
|
65
|
+
__exportStar(require("./api_get_client_tiers_response"), exports);
|
|
65
66
|
__exportStar(require("./api_get_currency_request"), exports);
|
|
66
67
|
__exportStar(require("./api_get_currency_response"), exports);
|
|
67
68
|
__exportStar(require("./api_get_ecosystem_leaderboard_request"), exports);
|
|
@@ -143,6 +144,7 @@ __exportStar(require("./api_query_vault_summary_history_response"), exports);
|
|
|
143
144
|
__exportStar(require("./api_replace_orders_request"), exports);
|
|
144
145
|
__exportStar(require("./api_replace_orders_response"), exports);
|
|
145
146
|
__exportStar(require("./api_resolve_epoch_ecosystem_metric_response"), exports);
|
|
147
|
+
__exportStar(require("./api_set_client_tiers_request"), exports);
|
|
146
148
|
__exportStar(require("./api_set_derisk_to_maintenance_margin_ratio_request"), exports);
|
|
147
149
|
__exportStar(require("./api_set_derisk_to_maintenance_margin_ratio_response"), exports);
|
|
148
150
|
__exportStar(require("./api_set_initial_leverage_request"), exports);
|
|
@@ -204,6 +206,7 @@ __exportStar(require("./cancel_status_feed"), exports);
|
|
|
204
206
|
__exportStar(require("./candlestick"), exports);
|
|
205
207
|
__exportStar(require("./claim_ecosystem_badge_response"), exports);
|
|
206
208
|
__exportStar(require("./client_order_i_ds_by_group"), exports);
|
|
209
|
+
__exportStar(require("./client_tier"), exports);
|
|
207
210
|
__exportStar(require("./currency_detail"), exports);
|
|
208
211
|
__exportStar(require("./deposit"), exports);
|
|
209
212
|
__exportStar(require("./deposit_history"), exports);
|
|
@@ -7,12 +7,14 @@ exports.QUERY_VAULT_SUMMARY_HISTORY_REQUEST_MAP = Object.freeze({
|
|
|
7
7
|
vault_id: 'vi',
|
|
8
8
|
start_time: 'st',
|
|
9
9
|
end_time: 'et',
|
|
10
|
-
time_interval: 'ti'
|
|
10
|
+
time_interval: 'ti',
|
|
11
|
+
start_interval: 'si'
|
|
11
12
|
},
|
|
12
13
|
LITE_TO_FULL: {
|
|
13
14
|
vi: 'vault_id',
|
|
14
15
|
st: 'start_time',
|
|
15
16
|
et: 'end_time',
|
|
16
|
-
ti: 'time_interval'
|
|
17
|
+
ti: 'time_interval',
|
|
18
|
+
si: 'start_interval'
|
|
17
19
|
}
|
|
18
20
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type SchemaPairMap } from './types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const VAULT_REDEMPTION_REQUEST_MAP: SchemaPairMap;
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
// Schema map for the '
|
|
5
|
-
exports.
|
|
3
|
+
exports.VAULT_REDEMPTION_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'VAULT_REDEMPTION_REQUEST' struct.
|
|
5
|
+
exports.VAULT_REDEMPTION_REQUEST_MAP = Object.freeze({
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
request_time: 'rt',
|
|
8
|
-
currency: 'c',
|
|
9
8
|
num_lp_tokens: 'nl',
|
|
10
9
|
max_redemption_period_timestamp: 'mr',
|
|
11
10
|
age_category: 'ac',
|
|
12
|
-
|
|
11
|
+
is_manager: 'im'
|
|
13
12
|
},
|
|
14
13
|
LITE_TO_FULL: {
|
|
15
14
|
rt: 'request_time',
|
|
16
|
-
c: 'currency',
|
|
17
15
|
nl: 'num_lp_tokens',
|
|
18
16
|
mr: 'max_redemption_period_timestamp',
|
|
19
17
|
ac: 'age_category',
|
|
20
|
-
|
|
18
|
+
im: 'is_manager'
|
|
21
19
|
}
|
|
22
20
|
});
|