@grvt/client 1.4.27 → 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.
- package/interfaces/codegen/data.interface.d.ts +44 -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/aggregated_account_summary.js +5 -2
- 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_trading_performance_trend.js +4 -2
- package/interfaces/codegen/schema-maps/api_vault_performance_trend.js +4 -2
- package/interfaces/codegen/schema-maps/api_vault_view_redemption_queue_response.js +9 -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/funding_account_summary.js +5 -2
- package/interfaces/codegen/schema-maps/index.d.ts +5 -0
- package/interfaces/codegen/schema-maps/index.js +5 -0
- package/interfaces/codegen/schema-maps/pre_min_redemptions.d.ts +2 -0
- package/interfaces/codegen/schema-maps/pre_min_redemptions.js +15 -0
- package/interfaces/codegen/schema-maps/query_vault_summary_history_request.js +4 -2
- package/interfaces/codegen/schema-maps/trading_performance_point.js +4 -2
- package/interfaces/codegen/schema-maps/vault_investment.d.ts +2 -0
- package/interfaces/codegen/schema-maps/vault_investment.js +16 -0
- 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",
|
|
@@ -256,6 +262,7 @@ export interface IAggregatedAccountSummary {
|
|
|
256
262
|
main_account_id?: string;
|
|
257
263
|
total_equity?: string;
|
|
258
264
|
spot_balances?: ISpotBalance[];
|
|
265
|
+
vault_investments?: IVaultInvestment[];
|
|
259
266
|
}
|
|
260
267
|
export interface IApiAggregatedAccountSummaryResponse {
|
|
261
268
|
result?: IAggregatedAccountSummary;
|
|
@@ -411,6 +418,7 @@ export interface IApiFindTraderLeaderboardResponse {
|
|
|
411
418
|
}
|
|
412
419
|
export interface IApiFundingAccountSummaryResponse {
|
|
413
420
|
result?: IFundingAccountSummary;
|
|
421
|
+
tier?: IClientTier;
|
|
414
422
|
}
|
|
415
423
|
export interface IApiFundingPaymentHistoryRequest {
|
|
416
424
|
sub_account_id?: string;
|
|
@@ -447,6 +455,9 @@ export interface IApiGetAllInstrumentsRequest {
|
|
|
447
455
|
export interface IApiGetAllInstrumentsResponse {
|
|
448
456
|
result?: IInstrument[];
|
|
449
457
|
}
|
|
458
|
+
export interface IApiGetClientTiersResponse {
|
|
459
|
+
tiers?: IClientTier[];
|
|
460
|
+
}
|
|
450
461
|
export interface IApiGetCurrencyRequest {
|
|
451
462
|
}
|
|
452
463
|
export interface IApiGetCurrencyResponse {
|
|
@@ -766,6 +777,9 @@ export interface IApiResolveEpochEcosystemMetricResponse {
|
|
|
766
777
|
point?: number;
|
|
767
778
|
last_calculated_time?: string;
|
|
768
779
|
}
|
|
780
|
+
export interface IApiSetClientTiersRequest {
|
|
781
|
+
tiers?: IClientTier[];
|
|
782
|
+
}
|
|
769
783
|
export interface IApiSetDeriskToMaintenanceMarginRatioRequest {
|
|
770
784
|
sub_account_id?: string;
|
|
771
785
|
ratio?: string;
|
|
@@ -878,6 +892,7 @@ export interface IApiTradingPerformanceTrend {
|
|
|
878
892
|
end_interval?: string;
|
|
879
893
|
trading_volume?: string;
|
|
880
894
|
realized_pnl?: string;
|
|
895
|
+
pnl?: string;
|
|
881
896
|
}
|
|
882
897
|
export interface IApiTransferAck {
|
|
883
898
|
ack?: boolean;
|
|
@@ -960,7 +975,7 @@ export interface IApiVaultInvestorHistory {
|
|
|
960
975
|
event_time?: string;
|
|
961
976
|
off_chain_account_id?: string;
|
|
962
977
|
vault_id?: string;
|
|
963
|
-
type?:
|
|
978
|
+
type?: EVaultInvestorAction;
|
|
964
979
|
price?: string;
|
|
965
980
|
size?: string;
|
|
966
981
|
realized_pnl?: string;
|
|
@@ -985,6 +1000,7 @@ export interface IApiVaultPerformanceTrend {
|
|
|
985
1000
|
end_interval?: string;
|
|
986
1001
|
trading_volume?: string;
|
|
987
1002
|
realized_pnl?: string;
|
|
1003
|
+
pnl?: string;
|
|
988
1004
|
}
|
|
989
1005
|
export interface IApiVaultRedeemCancelRequest {
|
|
990
1006
|
main_account_id?: string;
|
|
@@ -1013,10 +1029,12 @@ export interface IApiVaultViewRedemptionQueueRequest {
|
|
|
1013
1029
|
vault_id?: string;
|
|
1014
1030
|
}
|
|
1015
1031
|
export interface IApiVaultViewRedemptionQueueResponse {
|
|
1016
|
-
redemption_queue?:
|
|
1032
|
+
redemption_queue?: IVaultRedemptionRequest[];
|
|
1017
1033
|
pending_redemption_token_count?: string;
|
|
1018
1034
|
urgent_redemption_token_count?: string;
|
|
1019
1035
|
auto_redeemable_balance?: string;
|
|
1036
|
+
share_price?: string;
|
|
1037
|
+
pre_min?: IPreMinRedemptions;
|
|
1020
1038
|
}
|
|
1021
1039
|
export interface IApiWithdrawalHistoryRequest {
|
|
1022
1040
|
currency?: string[];
|
|
@@ -1092,6 +1110,13 @@ export interface IClientOrderIDsByGroup {
|
|
|
1092
1110
|
client_order_id?: string[];
|
|
1093
1111
|
sub_account_id?: string;
|
|
1094
1112
|
}
|
|
1113
|
+
export interface IClientTier {
|
|
1114
|
+
tier?: number;
|
|
1115
|
+
futures_taker_fee?: number;
|
|
1116
|
+
futures_maker_fee?: number;
|
|
1117
|
+
options_taker_fee?: number;
|
|
1118
|
+
options_maker_fee?: number;
|
|
1119
|
+
}
|
|
1095
1120
|
export interface ICurrencyDetail {
|
|
1096
1121
|
id?: number;
|
|
1097
1122
|
symbol?: string;
|
|
@@ -1190,8 +1215,9 @@ export interface IEpochBadgePointDistribution {
|
|
|
1190
1215
|
count?: number;
|
|
1191
1216
|
}
|
|
1192
1217
|
export interface IEpochLPPoint {
|
|
1193
|
-
epoch?:
|
|
1218
|
+
epoch?: number;
|
|
1194
1219
|
main_account_id?: string;
|
|
1220
|
+
off_chain_account_id?: string;
|
|
1195
1221
|
lp_asset?: string;
|
|
1196
1222
|
liquidity_score?: string;
|
|
1197
1223
|
vault_liquidity_score?: string;
|
|
@@ -1243,6 +1269,7 @@ export interface IFundingAccountSummary {
|
|
|
1243
1269
|
main_account_id?: string;
|
|
1244
1270
|
total_equity?: string;
|
|
1245
1271
|
spot_balances?: ISpotBalance[];
|
|
1272
|
+
vault_investments?: IVaultInvestment[];
|
|
1246
1273
|
}
|
|
1247
1274
|
export interface IFundingPayment {
|
|
1248
1275
|
event_time?: string;
|
|
@@ -1448,6 +1475,10 @@ export interface IPositions {
|
|
|
1448
1475
|
est_liquidation_price?: string;
|
|
1449
1476
|
leverage?: string;
|
|
1450
1477
|
}
|
|
1478
|
+
export interface IPreMinRedemptions {
|
|
1479
|
+
requests?: IVaultRedemptionRequest[];
|
|
1480
|
+
token_count?: string;
|
|
1481
|
+
}
|
|
1451
1482
|
export interface IPreOrderCheckResult {
|
|
1452
1483
|
max_qty?: IAssetMaxQty[];
|
|
1453
1484
|
margin_required?: string;
|
|
@@ -1531,6 +1562,7 @@ export interface IQueryVaultSummaryHistoryRequest {
|
|
|
1531
1562
|
start_time?: string;
|
|
1532
1563
|
end_time?: string;
|
|
1533
1564
|
time_interval?: ETimeInterval;
|
|
1565
|
+
start_interval?: string;
|
|
1534
1566
|
}
|
|
1535
1567
|
export interface IQueryVaultSummaryHistoryResponse {
|
|
1536
1568
|
result?: ISnapVaultSummary[];
|
|
@@ -1688,6 +1720,7 @@ export interface ITradingPerformancePoint {
|
|
|
1688
1720
|
start_interval?: string;
|
|
1689
1721
|
trading_volume?: string;
|
|
1690
1722
|
realized_pnl?: string;
|
|
1723
|
+
unrealized_pnl?: string;
|
|
1691
1724
|
}
|
|
1692
1725
|
export interface ITransferHistory {
|
|
1693
1726
|
tx_id?: string;
|
|
@@ -1744,6 +1777,11 @@ export interface IVaultInvestResults {
|
|
|
1744
1777
|
vault_share_price?: string;
|
|
1745
1778
|
num_lp_tokens?: string;
|
|
1746
1779
|
}
|
|
1780
|
+
export interface IVaultInvestment {
|
|
1781
|
+
vault_id?: string;
|
|
1782
|
+
num_lp_tokens?: string;
|
|
1783
|
+
share_price?: string;
|
|
1784
|
+
}
|
|
1747
1785
|
export interface IVaultInvestorHistory {
|
|
1748
1786
|
event_time?: string;
|
|
1749
1787
|
main_account_id?: string;
|
|
@@ -1800,13 +1838,13 @@ export interface IVaultRedemption {
|
|
|
1800
1838
|
request_time?: string;
|
|
1801
1839
|
max_redemption_period_timestamp?: string;
|
|
1802
1840
|
}
|
|
1803
|
-
export interface
|
|
1841
|
+
export interface IVaultRedemptionRequest {
|
|
1804
1842
|
request_time?: string;
|
|
1805
|
-
currency?: string;
|
|
1806
1843
|
num_lp_tokens?: string;
|
|
1807
1844
|
max_redemption_period_timestamp?: string;
|
|
1808
1845
|
age_category?: EVaultRedemptionReqAgeCategory;
|
|
1809
|
-
|
|
1846
|
+
is_manager?: boolean;
|
|
1847
|
+
eligible_for_auto_redemption_timestamp?: string;
|
|
1810
1848
|
}
|
|
1811
1849
|
export interface IVaultRiskMetric {
|
|
1812
1850
|
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,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
|
});
|
|
@@ -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
|
+
});
|
|
@@ -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,18 +2,23 @@
|
|
|
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: {
|
|
8
|
-
redemption_queue: ['rq', [vault_redemption_req_view_1.
|
|
9
|
+
redemption_queue: ['rq', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQUEST_MAP.FULL_TO_LITE]],
|
|
9
10
|
pending_redemption_token_count: 'pr',
|
|
10
11
|
urgent_redemption_token_count: 'ur',
|
|
11
|
-
auto_redeemable_balance: 'ar'
|
|
12
|
+
auto_redeemable_balance: 'ar',
|
|
13
|
+
share_price: 'sp',
|
|
14
|
+
pre_min: ['pm', pre_min_redemptions_1.PRE_MIN_REDEMPTIONS_MAP.FULL_TO_LITE]
|
|
12
15
|
},
|
|
13
16
|
LITE_TO_FULL: {
|
|
14
|
-
rq: ['redemption_queue', [vault_redemption_req_view_1.
|
|
17
|
+
rq: ['redemption_queue', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQUEST_MAP.LITE_TO_FULL]],
|
|
15
18
|
pr: 'pending_redemption_token_count',
|
|
16
19
|
ur: 'urgent_redemption_token_count',
|
|
17
|
-
ar: 'auto_redeemable_balance'
|
|
20
|
+
ar: 'auto_redeemable_balance',
|
|
21
|
+
sp: 'share_price',
|
|
22
|
+
pm: ['pre_min', pre_min_redemptions_1.PRE_MIN_REDEMPTIONS_MAP.LITE_TO_FULL]
|
|
18
23
|
}
|
|
19
24
|
});
|
|
@@ -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'
|
|
@@ -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
|
});
|
|
@@ -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';
|
|
@@ -228,6 +231,7 @@ export * from './orderbook_level';
|
|
|
228
231
|
export * from './api_orderbook_levels';
|
|
229
232
|
export * from './position_summary';
|
|
230
233
|
export * from './api_position';
|
|
234
|
+
export * from './pre_min_redemptions';
|
|
231
235
|
export * from './pre_order_check_result';
|
|
232
236
|
export * from './query_account_summary_request';
|
|
233
237
|
export * from './query_epoch_badge_point_distribution_request';
|
|
@@ -274,6 +278,7 @@ export * from './user_tracking_event';
|
|
|
274
278
|
export * from './user_vault_category_event_pay_load';
|
|
275
279
|
export * from './vault_burn_lp_token_results';
|
|
276
280
|
export * from './vault_invest_results';
|
|
281
|
+
export * from './vault_investment';
|
|
277
282
|
export * from './vault_investor_history';
|
|
278
283
|
export * from './vault_investor_summary';
|
|
279
284
|
export * from './vault_lp_info';
|
|
@@ -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);
|
|
@@ -244,6 +247,7 @@ __exportStar(require("./orderbook_level"), exports);
|
|
|
244
247
|
__exportStar(require("./api_orderbook_levels"), exports);
|
|
245
248
|
__exportStar(require("./position_summary"), exports);
|
|
246
249
|
__exportStar(require("./api_position"), exports);
|
|
250
|
+
__exportStar(require("./pre_min_redemptions"), exports);
|
|
247
251
|
__exportStar(require("./pre_order_check_result"), exports);
|
|
248
252
|
__exportStar(require("./query_account_summary_request"), exports);
|
|
249
253
|
__exportStar(require("./query_epoch_badge_point_distribution_request"), exports);
|
|
@@ -290,6 +294,7 @@ __exportStar(require("./user_tracking_event"), exports);
|
|
|
290
294
|
__exportStar(require("./user_vault_category_event_pay_load"), exports);
|
|
291
295
|
__exportStar(require("./vault_burn_lp_token_results"), exports);
|
|
292
296
|
__exportStar(require("./vault_invest_results"), exports);
|
|
297
|
+
__exportStar(require("./vault_investment"), exports);
|
|
293
298
|
__exportStar(require("./vault_investor_history"), exports);
|
|
294
299
|
__exportStar(require("./vault_investor_summary"), exports);
|
|
295
300
|
__exportStar(require("./vault_lp_info"), exports);
|
|
@@ -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
|
+
});
|
|
@@ -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
|
});
|
|
@@ -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,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
|
+
});
|
|
@@ -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,22 @@
|
|
|
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',
|
|
12
|
+
eligible_for_auto_redemption_timestamp: 'ef'
|
|
13
13
|
},
|
|
14
14
|
LITE_TO_FULL: {
|
|
15
15
|
rt: 'request_time',
|
|
16
|
-
c: 'currency',
|
|
17
16
|
nl: 'num_lp_tokens',
|
|
18
17
|
mr: 'max_redemption_period_timestamp',
|
|
19
18
|
ac: 'age_category',
|
|
20
|
-
|
|
19
|
+
im: 'is_manager',
|
|
20
|
+
ef: 'eligible_for_auto_redemption_timestamp'
|
|
21
21
|
}
|
|
22
22
|
});
|