@grvt/client 1.4.26 → 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 +55 -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 +4 -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_investor_history.js +4 -6
- 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.d.ts +2 -0
- package/interfaces/codegen/schema-maps/epoch_lp_point.js +22 -0
- package/interfaces/codegen/schema-maps/index.d.ts +5 -0
- package/interfaces/codegen/schema-maps/index.js +5 -0
- package/interfaces/codegen/schema-maps/lp_sub_account_snapshot.d.ts +2 -0
- package/interfaces/codegen/schema-maps/lp_sub_account_snapshot.js +46 -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 +7 -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;
|
|
@@ -958,14 +971,13 @@ export interface IApiVaultInvestRequest {
|
|
|
958
971
|
}
|
|
959
972
|
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;
|
|
967
980
|
performance_fee?: string;
|
|
968
|
-
off_chain_account_id?: string;
|
|
969
981
|
}
|
|
970
982
|
export interface IApiVaultInvestorSummaryRequest {
|
|
971
983
|
main_account_id?: string;
|
|
@@ -1014,10 +1026,11 @@ export interface IApiVaultViewRedemptionQueueRequest {
|
|
|
1014
1026
|
vault_id?: string;
|
|
1015
1027
|
}
|
|
1016
1028
|
export interface IApiVaultViewRedemptionQueueResponse {
|
|
1017
|
-
redemption_queue?:
|
|
1029
|
+
redemption_queue?: IVaultRedemptionRequest[];
|
|
1018
1030
|
pending_redemption_token_count?: string;
|
|
1019
1031
|
urgent_redemption_token_count?: string;
|
|
1020
1032
|
auto_redeemable_balance?: string;
|
|
1033
|
+
share_price?: string;
|
|
1021
1034
|
}
|
|
1022
1035
|
export interface IApiWithdrawalHistoryRequest {
|
|
1023
1036
|
currency?: string[];
|
|
@@ -1093,6 +1106,13 @@ export interface IClientOrderIDsByGroup {
|
|
|
1093
1106
|
client_order_id?: string[];
|
|
1094
1107
|
sub_account_id?: string;
|
|
1095
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
|
+
}
|
|
1096
1116
|
export interface ICurrencyDetail {
|
|
1097
1117
|
id?: number;
|
|
1098
1118
|
symbol?: string;
|
|
@@ -1190,6 +1210,14 @@ export interface IEpochBadgePointDistribution {
|
|
|
1190
1210
|
total_point?: string;
|
|
1191
1211
|
count?: number;
|
|
1192
1212
|
}
|
|
1213
|
+
export interface IEpochLPPoint {
|
|
1214
|
+
epoch?: number;
|
|
1215
|
+
main_account_id?: string;
|
|
1216
|
+
off_chain_account_id?: string;
|
|
1217
|
+
lp_asset?: string;
|
|
1218
|
+
liquidity_score?: string;
|
|
1219
|
+
vault_liquidity_score?: string;
|
|
1220
|
+
}
|
|
1193
1221
|
export interface IError {
|
|
1194
1222
|
code?: number;
|
|
1195
1223
|
message?: string;
|
|
@@ -1310,6 +1338,26 @@ export interface ILPSnapshot {
|
|
|
1310
1338
|
liquidity_score?: string;
|
|
1311
1339
|
calculate_at?: string;
|
|
1312
1340
|
}
|
|
1341
|
+
export interface ILPSubAccountSnapshot {
|
|
1342
|
+
sub_account_id?: string;
|
|
1343
|
+
is_vault?: boolean;
|
|
1344
|
+
main_account_id?: string;
|
|
1345
|
+
lp_asset?: string;
|
|
1346
|
+
underlying_multiplier?: string;
|
|
1347
|
+
maker_trading_volume?: string;
|
|
1348
|
+
bid_fast_market_multiplier?: number;
|
|
1349
|
+
bid_prices?: string[];
|
|
1350
|
+
bid_sizes?: string[];
|
|
1351
|
+
bid_depth_scores?: string[];
|
|
1352
|
+
bid_spread_scores?: number[];
|
|
1353
|
+
ask_fast_market_multiplier?: number;
|
|
1354
|
+
ask_prices?: string[];
|
|
1355
|
+
ask_sizes?: string[];
|
|
1356
|
+
ask_depth_scores?: string[];
|
|
1357
|
+
ask_spread_scores?: number[];
|
|
1358
|
+
liquidity_score?: string;
|
|
1359
|
+
calculate_at?: string;
|
|
1360
|
+
}
|
|
1313
1361
|
export interface ILpInfoEntry {
|
|
1314
1362
|
lp_address?: string;
|
|
1315
1363
|
info?: IVaultLpInfo;
|
|
@@ -1505,6 +1553,7 @@ export interface IQueryVaultSummaryHistoryRequest {
|
|
|
1505
1553
|
start_time?: string;
|
|
1506
1554
|
end_time?: string;
|
|
1507
1555
|
time_interval?: ETimeInterval;
|
|
1556
|
+
start_interval?: string;
|
|
1508
1557
|
}
|
|
1509
1558
|
export interface IQueryVaultSummaryHistoryResponse {
|
|
1510
1559
|
result?: ISnapVaultSummary[];
|
|
@@ -1774,12 +1823,12 @@ export interface IVaultRedemption {
|
|
|
1774
1823
|
request_time?: string;
|
|
1775
1824
|
max_redemption_period_timestamp?: string;
|
|
1776
1825
|
}
|
|
1777
|
-
export interface
|
|
1826
|
+
export interface IVaultRedemptionRequest {
|
|
1778
1827
|
request_time?: string;
|
|
1779
|
-
currency?: string;
|
|
1780
1828
|
num_lp_tokens?: string;
|
|
1781
1829
|
max_redemption_period_timestamp?: string;
|
|
1782
1830
|
age_category?: EVaultRedemptionReqAgeCategory;
|
|
1831
|
+
is_manager?: boolean;
|
|
1783
1832
|
}
|
|
1784
1833
|
export interface IVaultRiskMetric {
|
|
1785
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,
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.HexStringMap = void 0;
|
|
4
4
|
// HexStringMap contains all bigints the should be encoded/decoded to/from hex strings
|
|
5
5
|
exports.HexStringMap = [
|
|
6
|
+
'ask_depth_scores',
|
|
7
|
+
'bid_depth_scores',
|
|
6
8
|
'brokered_trading_volume',
|
|
7
9
|
'direct_invite_trading_volume',
|
|
8
10
|
'from_account_id',
|
|
@@ -26,5 +28,6 @@ exports.HexStringMap = [
|
|
|
26
28
|
'to_eth_address',
|
|
27
29
|
'total_trade_volume',
|
|
28
30
|
'trading_volume',
|
|
29
|
-
'tx_hash'
|
|
31
|
+
'tx_hash',
|
|
32
|
+
'vault_liquidity_score'
|
|
30
33
|
];
|
|
@@ -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,24 +5,22 @@ exports.API_VAULT_INVESTOR_HISTORY_MAP = void 0;
|
|
|
5
5
|
exports.API_VAULT_INVESTOR_HISTORY_MAP = Object.freeze({
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
event_time: 'et',
|
|
8
|
-
|
|
8
|
+
off_chain_account_id: 'oc',
|
|
9
9
|
vault_id: 'vi',
|
|
10
10
|
type: 't',
|
|
11
11
|
price: 'p',
|
|
12
12
|
size: 's',
|
|
13
13
|
realized_pnl: 'rp',
|
|
14
|
-
performance_fee: 'pf'
|
|
15
|
-
off_chain_account_id: 'oc'
|
|
14
|
+
performance_fee: 'pf'
|
|
16
15
|
},
|
|
17
16
|
LITE_TO_FULL: {
|
|
18
17
|
et: 'event_time',
|
|
19
|
-
|
|
18
|
+
oc: 'off_chain_account_id',
|
|
20
19
|
vi: 'vault_id',
|
|
21
20
|
t: 'type',
|
|
22
21
|
p: 'price',
|
|
23
22
|
s: 'size',
|
|
24
23
|
rp: 'realized_pnl',
|
|
25
|
-
pf: 'performance_fee'
|
|
26
|
-
oc: 'off_chain_account_id'
|
|
24
|
+
pf: 'performance_fee'
|
|
27
25
|
}
|
|
28
26
|
});
|
|
@@ -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
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPOCH_LP_POINT_MAP = void 0;
|
|
4
|
+
// Schema map for the 'EPOCH_LP_POINT' struct.
|
|
5
|
+
exports.EPOCH_LP_POINT_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
epoch: 'e',
|
|
8
|
+
main_account_id: 'ma',
|
|
9
|
+
off_chain_account_id: 'oc',
|
|
10
|
+
lp_asset: 'la',
|
|
11
|
+
liquidity_score: 'ls',
|
|
12
|
+
vault_liquidity_score: 'vl'
|
|
13
|
+
},
|
|
14
|
+
LITE_TO_FULL: {
|
|
15
|
+
e: 'epoch',
|
|
16
|
+
ma: 'main_account_id',
|
|
17
|
+
oc: 'off_chain_account_id',
|
|
18
|
+
la: 'lp_asset',
|
|
19
|
+
ls: 'liquidity_score',
|
|
20
|
+
vl: 'vault_liquidity_score'
|
|
21
|
+
}
|
|
22
|
+
});
|
|
@@ -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';
|
|
@@ -199,6 +202,7 @@ export * from './empty_request';
|
|
|
199
202
|
export * from './epoch';
|
|
200
203
|
export * from './epoch_badge';
|
|
201
204
|
export * from './epoch_badge_point_distribution';
|
|
205
|
+
export * from './epoch_lp_point';
|
|
202
206
|
export * from './error';
|
|
203
207
|
export * from './flat_private_trade';
|
|
204
208
|
export * from './flat_referral';
|
|
@@ -212,6 +216,7 @@ export * from './jsonrpc_request';
|
|
|
212
216
|
export * from './jsonrpc_response';
|
|
213
217
|
export * from './lp_point';
|
|
214
218
|
export * from './lp_snapshot';
|
|
219
|
+
export * from './lp_sub_account_snapshot';
|
|
215
220
|
export * from './lp_info_entry';
|
|
216
221
|
export * from './main_acc_id_request';
|
|
217
222
|
export * from './main_account_leaderboard_entry';
|
|
@@ -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);
|
|
@@ -215,6 +218,7 @@ __exportStar(require("./empty_request"), exports);
|
|
|
215
218
|
__exportStar(require("./epoch"), exports);
|
|
216
219
|
__exportStar(require("./epoch_badge"), exports);
|
|
217
220
|
__exportStar(require("./epoch_badge_point_distribution"), exports);
|
|
221
|
+
__exportStar(require("./epoch_lp_point"), exports);
|
|
218
222
|
__exportStar(require("./error"), exports);
|
|
219
223
|
__exportStar(require("./flat_private_trade"), exports);
|
|
220
224
|
__exportStar(require("./flat_referral"), exports);
|
|
@@ -228,6 +232,7 @@ __exportStar(require("./jsonrpc_request"), exports);
|
|
|
228
232
|
__exportStar(require("./jsonrpc_response"), exports);
|
|
229
233
|
__exportStar(require("./lp_point"), exports);
|
|
230
234
|
__exportStar(require("./lp_snapshot"), exports);
|
|
235
|
+
__exportStar(require("./lp_sub_account_snapshot"), exports);
|
|
231
236
|
__exportStar(require("./lp_info_entry"), exports);
|
|
232
237
|
__exportStar(require("./main_acc_id_request"), exports);
|
|
233
238
|
__exportStar(require("./main_account_leaderboard_entry"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LP_SUB_ACCOUNT_SNAPSHOT_MAP = void 0;
|
|
4
|
+
// Schema map for the 'LP_SUB_ACCOUNT_SNAPSHOT' struct.
|
|
5
|
+
exports.LP_SUB_ACCOUNT_SNAPSHOT_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sub_account_id: 'sa',
|
|
8
|
+
is_vault: 'iv',
|
|
9
|
+
main_account_id: 'ma',
|
|
10
|
+
lp_asset: 'la',
|
|
11
|
+
underlying_multiplier: 'um',
|
|
12
|
+
maker_trading_volume: 'mt',
|
|
13
|
+
bid_fast_market_multiplier: 'bf',
|
|
14
|
+
bid_prices: 'bp',
|
|
15
|
+
bid_sizes: 'bs',
|
|
16
|
+
bid_depth_scores: 'bd',
|
|
17
|
+
bid_spread_scores: 'bs1',
|
|
18
|
+
ask_fast_market_multiplier: 'af',
|
|
19
|
+
ask_prices: 'ap',
|
|
20
|
+
ask_sizes: 'as',
|
|
21
|
+
ask_depth_scores: 'ad',
|
|
22
|
+
ask_spread_scores: 'as1',
|
|
23
|
+
liquidity_score: 'ls',
|
|
24
|
+
calculate_at: 'ca'
|
|
25
|
+
},
|
|
26
|
+
LITE_TO_FULL: {
|
|
27
|
+
sa: 'sub_account_id',
|
|
28
|
+
iv: 'is_vault',
|
|
29
|
+
ma: 'main_account_id',
|
|
30
|
+
la: 'lp_asset',
|
|
31
|
+
um: 'underlying_multiplier',
|
|
32
|
+
mt: 'maker_trading_volume',
|
|
33
|
+
bf: 'bid_fast_market_multiplier',
|
|
34
|
+
bp: 'bid_prices',
|
|
35
|
+
bs: 'bid_sizes',
|
|
36
|
+
bd: 'bid_depth_scores',
|
|
37
|
+
bs1: 'bid_spread_scores',
|
|
38
|
+
af: 'ask_fast_market_multiplier',
|
|
39
|
+
ap: 'ask_prices',
|
|
40
|
+
as: 'ask_sizes',
|
|
41
|
+
ad: 'ask_depth_scores',
|
|
42
|
+
as1: 'ask_spread_scores',
|
|
43
|
+
ls: 'liquidity_score',
|
|
44
|
+
ca: 'calculate_at'
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -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,20 +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
|
-
age_category: 'ac'
|
|
10
|
+
age_category: 'ac',
|
|
11
|
+
is_manager: 'im'
|
|
12
12
|
},
|
|
13
13
|
LITE_TO_FULL: {
|
|
14
14
|
rt: 'request_time',
|
|
15
|
-
c: 'currency',
|
|
16
15
|
nl: 'num_lp_tokens',
|
|
17
16
|
mr: 'max_redemption_period_timestamp',
|
|
18
|
-
ac: 'age_category'
|
|
17
|
+
ac: 'age_category',
|
|
18
|
+
im: 'is_manager'
|
|
19
19
|
}
|
|
20
20
|
});
|