@grvt/client 1.4.17 → 1.4.19
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/TDG/index.d.ts +4 -1
- package/TDG/index.js +15 -0
- package/interfaces/codegen/data.interface.d.ts +164 -38
- package/interfaces/codegen/data.interface.js +63 -2
- package/interfaces/codegen/enum-int.d.ts +3 -2
- package/interfaces/codegen/enum-int.js +55 -43
- package/interfaces/codegen/schema-maps/api_query_list_vault_sub_account_summary_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_list_vault_sub_account_summary_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_query_list_vault_sub_account_summary_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_list_vault_sub_account_summary_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_query_vault_investor_history_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_investor_history_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_query_vault_investor_history_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_investor_history_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_query_vault_manager_investor_history_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_manager_investor_history_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_query_vault_manager_investor_history_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_query_vault_manager_investor_history_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_validate_vault_account_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_validate_vault_account_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_validate_vault_account_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_validate_vault_account_response.js +12 -0
- package/interfaces/codegen/schema-maps/api_vault_investor_history.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_vault_investor_history.js +26 -0
- package/interfaces/codegen/schema-maps/api_vault_sub_account_summary.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_vault_sub_account_summary.js +16 -0
- package/interfaces/codegen/schema-maps/index.d.ts +15 -0
- package/interfaces/codegen/schema-maps/index.js +15 -0
- package/interfaces/codegen/schema-maps/main_account_leaderboard_entry.d.ts +2 -0
- package/interfaces/codegen/schema-maps/main_account_leaderboard_entry.js +22 -0
- package/interfaces/codegen/schema-maps/query_main_account_leaderboard_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_main_account_leaderboard_request.js +20 -0
- package/interfaces/codegen/schema-maps/query_main_account_leaderboard_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_main_account_leaderboard_response.js +15 -0
- package/interfaces/codegen/schema-maps/query_vault_investor_history_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_vault_investor_history_request.js +14 -0
- package/interfaces/codegen/schema-maps/query_vault_investor_history_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_vault_investor_history_response.js +13 -0
- package/interfaces/codegen/schema-maps/vault_investor_history.js +2 -2
- package/interfaces/codegen/schema-maps/vault_redeem_results.js +4 -2
- package/package.json +1 -1
|
@@ -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.ETimeIntervalInt = exports.ETimeInForceInt = exports.ESubAccountTradeIntervalInt = exports.ESourceInt = exports.ERewardProgramTypeInt = exports.ERewardEpochStatusInt = exports.EOrderStatusInt = exports.EOrderRejectReasonInt = exports.EMarginTypeInt = exports.EKindInt = exports.EInstrumentSettlementPeriodInt = exports.EEpochBadgeTypeInt = exports.
|
|
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;
|
|
4
4
|
const data_interface_1 = require("./data.interface");
|
|
5
5
|
exports.EBridgeTypeInt = Object.freeze({
|
|
6
6
|
[data_interface_1.EBridgeType.XY]: 1,
|
|
@@ -42,48 +42,6 @@ exports.ECandlestickTypeInt = Object.freeze({
|
|
|
42
42
|
[data_interface_1.ECandlestickType.INDEX]: 3,
|
|
43
43
|
[data_interface_1.ECandlestickType.MID]: 4
|
|
44
44
|
});
|
|
45
|
-
exports.ECurrencyInt = Object.freeze({
|
|
46
|
-
[data_interface_1.ECurrency.USD]: 1,
|
|
47
|
-
[data_interface_1.ECurrency.USDC]: 2,
|
|
48
|
-
[data_interface_1.ECurrency.USDT]: 3,
|
|
49
|
-
[data_interface_1.ECurrency.ETH]: 4,
|
|
50
|
-
[data_interface_1.ECurrency.BTC]: 5,
|
|
51
|
-
[data_interface_1.ECurrency.SOL]: 6,
|
|
52
|
-
[data_interface_1.ECurrency.ARB]: 7,
|
|
53
|
-
[data_interface_1.ECurrency.BNB]: 8,
|
|
54
|
-
[data_interface_1.ECurrency.ZK]: 9,
|
|
55
|
-
[data_interface_1.ECurrency.POL]: 10,
|
|
56
|
-
[data_interface_1.ECurrency.OP]: 11,
|
|
57
|
-
[data_interface_1.ECurrency.ATOM]: 12,
|
|
58
|
-
[data_interface_1.ECurrency.KPEPE]: 13,
|
|
59
|
-
[data_interface_1.ECurrency.TON]: 14,
|
|
60
|
-
[data_interface_1.ECurrency.XRP]: 15,
|
|
61
|
-
[data_interface_1.ECurrency.XLM]: 16,
|
|
62
|
-
[data_interface_1.ECurrency.WLD]: 17,
|
|
63
|
-
[data_interface_1.ECurrency.WIF]: 18,
|
|
64
|
-
[data_interface_1.ECurrency.VIRTUAL]: 19,
|
|
65
|
-
[data_interface_1.ECurrency.TRUMP]: 20,
|
|
66
|
-
[data_interface_1.ECurrency.SUI]: 21,
|
|
67
|
-
[data_interface_1.ECurrency.KSHIB]: 22,
|
|
68
|
-
[data_interface_1.ECurrency.POPCAT]: 23,
|
|
69
|
-
[data_interface_1.ECurrency.PENGU]: 24,
|
|
70
|
-
[data_interface_1.ECurrency.LINK]: 25,
|
|
71
|
-
[data_interface_1.ECurrency.KBONK]: 26,
|
|
72
|
-
[data_interface_1.ECurrency.JUP]: 27,
|
|
73
|
-
[data_interface_1.ECurrency.FARTCOIN]: 28,
|
|
74
|
-
[data_interface_1.ECurrency.ENA]: 29,
|
|
75
|
-
[data_interface_1.ECurrency.DOGE]: 30,
|
|
76
|
-
[data_interface_1.ECurrency.AIXBT]: 31,
|
|
77
|
-
[data_interface_1.ECurrency.AI16Z]: 32,
|
|
78
|
-
[data_interface_1.ECurrency.ADA]: 33,
|
|
79
|
-
[data_interface_1.ECurrency.AAVE]: 34,
|
|
80
|
-
[data_interface_1.ECurrency.BERA]: 35,
|
|
81
|
-
[data_interface_1.ECurrency.VINE]: 36,
|
|
82
|
-
[data_interface_1.ECurrency.PENDLE]: 37,
|
|
83
|
-
[data_interface_1.ECurrency.UXLINK]: 38,
|
|
84
|
-
[data_interface_1.ECurrency.KAITO]: 39,
|
|
85
|
-
[data_interface_1.ECurrency.IP]: 40
|
|
86
|
-
});
|
|
87
45
|
exports.EEpochBadgeTypeInt = Object.freeze({
|
|
88
46
|
[data_interface_1.EEpochBadgeType.CHAMPION]: 1,
|
|
89
47
|
[data_interface_1.EEpochBadgeType.LEGEND]: 2,
|
|
@@ -161,6 +119,10 @@ exports.EOrderStatusInt = Object.freeze({
|
|
|
161
119
|
[data_interface_1.EOrderStatus.REJECTED]: 4,
|
|
162
120
|
[data_interface_1.EOrderStatus.CANCELLED]: 5
|
|
163
121
|
});
|
|
122
|
+
exports.EQueryMainAccountLeaderboardOrderByInt = Object.freeze({
|
|
123
|
+
[data_interface_1.EQueryMainAccountLeaderboardOrderBy.PNL]: 1,
|
|
124
|
+
[data_interface_1.EQueryMainAccountLeaderboardOrderBy.TRADING_VOLUME]: 2
|
|
125
|
+
});
|
|
164
126
|
exports.ERewardEpochStatusInt = Object.freeze({
|
|
165
127
|
[data_interface_1.ERewardEpochStatus.PAST]: 1,
|
|
166
128
|
[data_interface_1.ERewardEpochStatus.CURRENT]: 2,
|
|
@@ -197,6 +159,56 @@ exports.ETimeIntervalInt = Object.freeze({
|
|
|
197
159
|
[data_interface_1.ETimeInterval.INTERVAL_90_D]: 4,
|
|
198
160
|
[data_interface_1.ETimeInterval.INTERVAL_LIFETIME]: 5
|
|
199
161
|
});
|
|
162
|
+
exports.ETransactionTypeInt = Object.freeze({
|
|
163
|
+
[data_interface_1.ETransactionType.UNSPECIFIED_1]: 1,
|
|
164
|
+
[data_interface_1.ETransactionType.UNSPECIFIED_2]: 2,
|
|
165
|
+
[data_interface_1.ETransactionType.UNSPECIFIED_3]: 3,
|
|
166
|
+
[data_interface_1.ETransactionType.CREATE_ACCOUNT]: 4,
|
|
167
|
+
[data_interface_1.ETransactionType.CREATE_SUB_ACCOUNT]: 5,
|
|
168
|
+
[data_interface_1.ETransactionType.SET_ACCOUNT_MULTI_SIG_THRESHOLD]: 6,
|
|
169
|
+
[data_interface_1.ETransactionType.ADD_ACCOUNT_SIGNER]: 7,
|
|
170
|
+
[data_interface_1.ETransactionType.REMOVE_ACCOUNT_SIGNER]: 8,
|
|
171
|
+
[data_interface_1.ETransactionType.ADD_WITHDRAWAL_ADDRESS]: 9,
|
|
172
|
+
[data_interface_1.ETransactionType.REMOVE_WITHDRAWAL_ADDRESS]: 10,
|
|
173
|
+
[data_interface_1.ETransactionType.ADD_TRANSFER_ACCOUNT]: 11,
|
|
174
|
+
[data_interface_1.ETransactionType.REMOVE_TRANSFER_ACCOUNT]: 12,
|
|
175
|
+
[data_interface_1.ETransactionType.SET_SUB_ACCOUNT_MARGIN_TYPE]: 13,
|
|
176
|
+
[data_interface_1.ETransactionType.ADD_SUB_ACCOUNT_SIGNER]: 14,
|
|
177
|
+
[data_interface_1.ETransactionType.REMOVE_SUB_ACCOUNT_SIGNER]: 15,
|
|
178
|
+
[data_interface_1.ETransactionType.ADD_SESSION_KEY]: 16,
|
|
179
|
+
[data_interface_1.ETransactionType.REMOVE_SESSION_KEY]: 17,
|
|
180
|
+
[data_interface_1.ETransactionType.DEPOSIT]: 18,
|
|
181
|
+
[data_interface_1.ETransactionType.WITHDRAWAL]: 19,
|
|
182
|
+
[data_interface_1.ETransactionType.TRANSFER]: 20,
|
|
183
|
+
[data_interface_1.ETransactionType.MARK_PRICE_TICK]: 21,
|
|
184
|
+
[data_interface_1.ETransactionType.SETTLEMENT_PRICE_TICK]: 22,
|
|
185
|
+
[data_interface_1.ETransactionType.FUNDING_TICK]: 23,
|
|
186
|
+
[data_interface_1.ETransactionType.INTEREST_RATE_TICK]: 24,
|
|
187
|
+
[data_interface_1.ETransactionType.SCHEDULE_CONFIG]: 25,
|
|
188
|
+
[data_interface_1.ETransactionType.SET_CONFIG]: 26,
|
|
189
|
+
[data_interface_1.ETransactionType.TRADE]: 27,
|
|
190
|
+
[data_interface_1.ETransactionType.ADD_RECOVERY_ADDRESS]: 28,
|
|
191
|
+
[data_interface_1.ETransactionType.REMOVE_RECOVERY_ADDRESS]: 29,
|
|
192
|
+
[data_interface_1.ETransactionType.RECOVER_ADDRESS]: 30,
|
|
193
|
+
[data_interface_1.ETransactionType.SETTLE_START]: 31,
|
|
194
|
+
[data_interface_1.ETransactionType.SETTLE_INSTRUMENTS]: 32,
|
|
195
|
+
[data_interface_1.ETransactionType.SETTLE_SOCIALISED_LOSS]: 33,
|
|
196
|
+
[data_interface_1.ETransactionType.SETTLE_END]: 34,
|
|
197
|
+
[data_interface_1.ETransactionType.SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS]: 35,
|
|
198
|
+
[data_interface_1.ETransactionType.SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS]: 36,
|
|
199
|
+
[data_interface_1.ETransactionType.INITIALIZE_CONFIG]: 37,
|
|
200
|
+
[data_interface_1.ETransactionType.CREATE_ACCOUNT_WITH_SUB_ACCOUNT]: 38,
|
|
201
|
+
[data_interface_1.ETransactionType.VAULT_CREATE]: 39,
|
|
202
|
+
[data_interface_1.ETransactionType.VAULT_UPDATE]: 40,
|
|
203
|
+
[data_interface_1.ETransactionType.VAULT_DELIST]: 41,
|
|
204
|
+
[data_interface_1.ETransactionType.VAULT_CLOSE]: 42,
|
|
205
|
+
[data_interface_1.ETransactionType.VAULT_INVEST]: 43,
|
|
206
|
+
[data_interface_1.ETransactionType.VAULT_BURN_LP_TOKEN]: 44,
|
|
207
|
+
[data_interface_1.ETransactionType.VAULT_REDEEM]: 45,
|
|
208
|
+
[data_interface_1.ETransactionType.VAULT_MANAGEMENT_FEE_TICK]: 46,
|
|
209
|
+
[data_interface_1.ETransactionType.ADD_CURRENCY]: 47,
|
|
210
|
+
[data_interface_1.ETransactionType.SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO]: 48
|
|
211
|
+
});
|
|
200
212
|
exports.ETransferTypeInt = Object.freeze({
|
|
201
213
|
[data_interface_1.ETransferType.UNSPECIFIED]: 0,
|
|
202
214
|
[data_interface_1.ETransferType.STANDARD]: 1,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_REQUEST' struct.
|
|
5
|
+
exports.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi',
|
|
8
|
+
time_interval: 'ti'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
vi: 'vault_id',
|
|
12
|
+
ti: 'time_interval'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP = void 0;
|
|
4
|
+
const api_vault_sub_account_summary_1 = require("./api_vault_sub_account_summary");
|
|
5
|
+
// Schema map for the 'API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_RESPONSE' struct.
|
|
6
|
+
exports.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [api_vault_sub_account_summary_1.API_VAULT_SUB_ACCOUNT_SUMMARY_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [api_vault_sub_account_summary_1.API_VAULT_SUB_ACCOUNT_SUMMARY_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_INVESTOR_HISTORY_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_QUERY_VAULT_INVESTOR_HISTORY_REQUEST' struct.
|
|
5
|
+
exports.API_QUERY_VAULT_INVESTOR_HISTORY_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
vi: 'vault_id'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_INVESTOR_HISTORY_RESPONSE_MAP = void 0;
|
|
4
|
+
const api_vault_investor_history_1 = require("./api_vault_investor_history");
|
|
5
|
+
// Schema map for the 'API_QUERY_VAULT_INVESTOR_HISTORY_RESPONSE' struct.
|
|
6
|
+
exports.API_QUERY_VAULT_INVESTOR_HISTORY_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [api_vault_investor_history_1.API_VAULT_INVESTOR_HISTORY_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [api_vault_investor_history_1.API_VAULT_INVESTOR_HISTORY_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_REQUEST' struct.
|
|
5
|
+
exports.API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi',
|
|
8
|
+
only_own_investments: 'oo'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
vi: 'vault_id',
|
|
12
|
+
oo: 'only_own_investments'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_RESPONSE_MAP = void 0;
|
|
4
|
+
const api_vault_investor_history_1 = require("./api_vault_investor_history");
|
|
5
|
+
// Schema map for the 'API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_RESPONSE' struct.
|
|
6
|
+
exports.API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [api_vault_investor_history_1.API_VAULT_INVESTOR_HISTORY_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [api_vault_investor_history_1.API_VAULT_INVESTOR_HISTORY_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_VALIDATE_VAULT_ACCOUNT_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_VALIDATE_VAULT_ACCOUNT_REQUEST' struct.
|
|
5
|
+
exports.API_VALIDATE_VAULT_ACCOUNT_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_i_ds: 'vi'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
vi: 'vault_i_ds'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_VALIDATE_VAULT_ACCOUNT_RESPONSE_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_VALIDATE_VAULT_ACCOUNT_RESPONSE' struct.
|
|
5
|
+
exports.API_VALIDATE_VAULT_ACCOUNT_RESPONSE_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
result: 'r'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
r: 'result'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_VAULT_INVESTOR_HISTORY_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_VAULT_INVESTOR_HISTORY' struct.
|
|
5
|
+
exports.API_VAULT_INVESTOR_HISTORY_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
event_time: 'et',
|
|
8
|
+
funding_address: 'fa',
|
|
9
|
+
vault_id: 'vi',
|
|
10
|
+
type: 't',
|
|
11
|
+
price: 'p',
|
|
12
|
+
size: 's',
|
|
13
|
+
realized_pnl: 'rp',
|
|
14
|
+
performance_fee: 'pf'
|
|
15
|
+
},
|
|
16
|
+
LITE_TO_FULL: {
|
|
17
|
+
et: 'event_time',
|
|
18
|
+
fa: 'funding_address',
|
|
19
|
+
vi: 'vault_id',
|
|
20
|
+
t: 'type',
|
|
21
|
+
p: 'price',
|
|
22
|
+
s: 'size',
|
|
23
|
+
rp: 'realized_pnl',
|
|
24
|
+
pf: 'performance_fee'
|
|
25
|
+
}
|
|
26
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_VAULT_SUB_ACCOUNT_SUMMARY_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_VAULT_SUB_ACCOUNT_SUMMARY' struct.
|
|
5
|
+
exports.API_VAULT_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
event_time: 'et',
|
|
8
|
+
start_interval: 'si',
|
|
9
|
+
total_equity: 'te'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
et: 'event_time',
|
|
13
|
+
si: 'start_interval',
|
|
14
|
+
te: 'total_equity'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -94,12 +94,18 @@ export * from './api_query_list_funding_account_summary_request';
|
|
|
94
94
|
export * from './api_query_list_funding_account_summary_response';
|
|
95
95
|
export * from './api_query_list_sub_account_summary_request';
|
|
96
96
|
export * from './api_query_list_sub_account_summary_response';
|
|
97
|
+
export * from './api_query_list_vault_sub_account_summary_request';
|
|
98
|
+
export * from './api_query_list_vault_sub_account_summary_response';
|
|
97
99
|
export * from './api_query_snap_vault_position_request';
|
|
98
100
|
export * from './api_query_snap_vault_position_response';
|
|
99
101
|
export * from './api_query_trading_performance_request';
|
|
100
102
|
export * from './api_query_trading_performance_response';
|
|
101
103
|
export * from './api_query_trading_performance_trend_request';
|
|
102
104
|
export * from './api_query_trading_performance_trend_response';
|
|
105
|
+
export * from './api_query_vault_investor_history_request';
|
|
106
|
+
export * from './api_query_vault_investor_history_response';
|
|
107
|
+
export * from './api_query_vault_manager_investor_history_request';
|
|
108
|
+
export * from './api_query_vault_manager_investor_history_response';
|
|
103
109
|
export * from './api_query_vault_performance_request';
|
|
104
110
|
export * from './api_query_vault_performance_response';
|
|
105
111
|
export * from './api_query_vault_performance_trend_request';
|
|
@@ -142,15 +148,19 @@ export * from './api_transfer_request';
|
|
|
142
148
|
export * from './api_transfer_response';
|
|
143
149
|
export * from './api_user_category_affinity_score_request';
|
|
144
150
|
export * from './api_user_category_affinity_score_response';
|
|
151
|
+
export * from './api_validate_vault_account_request';
|
|
152
|
+
export * from './api_validate_vault_account_response';
|
|
145
153
|
export * from './api_vault_burn_tokens_request';
|
|
146
154
|
export * from './api_vault_detail_request';
|
|
147
155
|
export * from './api_vault_detail_response';
|
|
148
156
|
export * from './api_vault_invest_request';
|
|
157
|
+
export * from './api_vault_investor_history';
|
|
149
158
|
export * from './api_vault_investor_summary_request';
|
|
150
159
|
export * from './api_vault_investor_summary_response';
|
|
151
160
|
export * from './api_vault_performance_trend';
|
|
152
161
|
export * from './api_vault_redeem_cancel_request';
|
|
153
162
|
export * from './api_vault_redeem_request';
|
|
163
|
+
export * from './api_vault_sub_account_summary';
|
|
154
164
|
export * from './api_vault_summary';
|
|
155
165
|
export * from './api_vault_view_redemption_queue_request';
|
|
156
166
|
export * from './api_vault_view_redemption_queue_response';
|
|
@@ -190,6 +200,7 @@ export * from './lp_point';
|
|
|
190
200
|
export * from './lp_snapshot';
|
|
191
201
|
export * from './lp_info_entry';
|
|
192
202
|
export * from './main_acc_id_request';
|
|
203
|
+
export * from './main_account_leaderboard_entry';
|
|
193
204
|
export * from './margin_tier_response';
|
|
194
205
|
export * from './mini_ticker';
|
|
195
206
|
export * from './order';
|
|
@@ -214,8 +225,12 @@ export * from './query_get_list_epoch_request';
|
|
|
214
225
|
export * from './query_get_list_epoch_response';
|
|
215
226
|
export * from './query_latest_sub_account_summary_request';
|
|
216
227
|
export * from './query_latest_sub_account_summary_response';
|
|
228
|
+
export * from './query_main_account_leaderboard_request';
|
|
229
|
+
export * from './query_main_account_leaderboard_response';
|
|
217
230
|
export * from './query_trading_performance_trend_request';
|
|
218
231
|
export * from './query_trading_performance_trend_response';
|
|
232
|
+
export * from './query_vault_investor_history_request';
|
|
233
|
+
export * from './query_vault_investor_history_response';
|
|
219
234
|
export * from './query_vault_summary_history_request';
|
|
220
235
|
export * from './query_vault_summary_history_response';
|
|
221
236
|
export * from './reward_epoch_info';
|
|
@@ -110,12 +110,18 @@ __exportStar(require("./api_query_list_funding_account_summary_request"), export
|
|
|
110
110
|
__exportStar(require("./api_query_list_funding_account_summary_response"), exports);
|
|
111
111
|
__exportStar(require("./api_query_list_sub_account_summary_request"), exports);
|
|
112
112
|
__exportStar(require("./api_query_list_sub_account_summary_response"), exports);
|
|
113
|
+
__exportStar(require("./api_query_list_vault_sub_account_summary_request"), exports);
|
|
114
|
+
__exportStar(require("./api_query_list_vault_sub_account_summary_response"), exports);
|
|
113
115
|
__exportStar(require("./api_query_snap_vault_position_request"), exports);
|
|
114
116
|
__exportStar(require("./api_query_snap_vault_position_response"), exports);
|
|
115
117
|
__exportStar(require("./api_query_trading_performance_request"), exports);
|
|
116
118
|
__exportStar(require("./api_query_trading_performance_response"), exports);
|
|
117
119
|
__exportStar(require("./api_query_trading_performance_trend_request"), exports);
|
|
118
120
|
__exportStar(require("./api_query_trading_performance_trend_response"), exports);
|
|
121
|
+
__exportStar(require("./api_query_vault_investor_history_request"), exports);
|
|
122
|
+
__exportStar(require("./api_query_vault_investor_history_response"), exports);
|
|
123
|
+
__exportStar(require("./api_query_vault_manager_investor_history_request"), exports);
|
|
124
|
+
__exportStar(require("./api_query_vault_manager_investor_history_response"), exports);
|
|
119
125
|
__exportStar(require("./api_query_vault_performance_request"), exports);
|
|
120
126
|
__exportStar(require("./api_query_vault_performance_response"), exports);
|
|
121
127
|
__exportStar(require("./api_query_vault_performance_trend_request"), exports);
|
|
@@ -158,15 +164,19 @@ __exportStar(require("./api_transfer_request"), exports);
|
|
|
158
164
|
__exportStar(require("./api_transfer_response"), exports);
|
|
159
165
|
__exportStar(require("./api_user_category_affinity_score_request"), exports);
|
|
160
166
|
__exportStar(require("./api_user_category_affinity_score_response"), exports);
|
|
167
|
+
__exportStar(require("./api_validate_vault_account_request"), exports);
|
|
168
|
+
__exportStar(require("./api_validate_vault_account_response"), exports);
|
|
161
169
|
__exportStar(require("./api_vault_burn_tokens_request"), exports);
|
|
162
170
|
__exportStar(require("./api_vault_detail_request"), exports);
|
|
163
171
|
__exportStar(require("./api_vault_detail_response"), exports);
|
|
164
172
|
__exportStar(require("./api_vault_invest_request"), exports);
|
|
173
|
+
__exportStar(require("./api_vault_investor_history"), exports);
|
|
165
174
|
__exportStar(require("./api_vault_investor_summary_request"), exports);
|
|
166
175
|
__exportStar(require("./api_vault_investor_summary_response"), exports);
|
|
167
176
|
__exportStar(require("./api_vault_performance_trend"), exports);
|
|
168
177
|
__exportStar(require("./api_vault_redeem_cancel_request"), exports);
|
|
169
178
|
__exportStar(require("./api_vault_redeem_request"), exports);
|
|
179
|
+
__exportStar(require("./api_vault_sub_account_summary"), exports);
|
|
170
180
|
__exportStar(require("./api_vault_summary"), exports);
|
|
171
181
|
__exportStar(require("./api_vault_view_redemption_queue_request"), exports);
|
|
172
182
|
__exportStar(require("./api_vault_view_redemption_queue_response"), exports);
|
|
@@ -206,6 +216,7 @@ __exportStar(require("./lp_point"), exports);
|
|
|
206
216
|
__exportStar(require("./lp_snapshot"), exports);
|
|
207
217
|
__exportStar(require("./lp_info_entry"), exports);
|
|
208
218
|
__exportStar(require("./main_acc_id_request"), exports);
|
|
219
|
+
__exportStar(require("./main_account_leaderboard_entry"), exports);
|
|
209
220
|
__exportStar(require("./margin_tier_response"), exports);
|
|
210
221
|
__exportStar(require("./mini_ticker"), exports);
|
|
211
222
|
__exportStar(require("./order"), exports);
|
|
@@ -230,8 +241,12 @@ __exportStar(require("./query_get_list_epoch_request"), exports);
|
|
|
230
241
|
__exportStar(require("./query_get_list_epoch_response"), exports);
|
|
231
242
|
__exportStar(require("./query_latest_sub_account_summary_request"), exports);
|
|
232
243
|
__exportStar(require("./query_latest_sub_account_summary_response"), exports);
|
|
244
|
+
__exportStar(require("./query_main_account_leaderboard_request"), exports);
|
|
245
|
+
__exportStar(require("./query_main_account_leaderboard_response"), exports);
|
|
233
246
|
__exportStar(require("./query_trading_performance_trend_request"), exports);
|
|
234
247
|
__exportStar(require("./query_trading_performance_trend_response"), exports);
|
|
248
|
+
__exportStar(require("./query_vault_investor_history_request"), exports);
|
|
249
|
+
__exportStar(require("./query_vault_investor_history_response"), exports);
|
|
235
250
|
__exportStar(require("./query_vault_summary_history_request"), exports);
|
|
236
251
|
__exportStar(require("./query_vault_summary_history_response"), exports);
|
|
237
252
|
__exportStar(require("./reward_epoch_info"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAIN_ACCOUNT_LEADERBOARD_ENTRY_MAP = void 0;
|
|
4
|
+
// Schema map for the 'MAIN_ACCOUNT_LEADERBOARD_ENTRY' struct.
|
|
5
|
+
exports.MAIN_ACCOUNT_LEADERBOARD_ENTRY_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
main_account_id: 'ma',
|
|
8
|
+
total_fee: 'tf',
|
|
9
|
+
total_trade_volume: 'tt',
|
|
10
|
+
num_traded: 'nt',
|
|
11
|
+
positive_fee: 'pf',
|
|
12
|
+
realized_pnl: 'rp'
|
|
13
|
+
},
|
|
14
|
+
LITE_TO_FULL: {
|
|
15
|
+
ma: 'main_account_id',
|
|
16
|
+
tf: 'total_fee',
|
|
17
|
+
tt: 'total_trade_volume',
|
|
18
|
+
nt: 'num_traded',
|
|
19
|
+
pf: 'positive_fee',
|
|
20
|
+
rp: 'realized_pnl'
|
|
21
|
+
}
|
|
22
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_MAIN_ACCOUNT_LEADERBOARD_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'QUERY_MAIN_ACCOUNT_LEADERBOARD_REQUEST' struct.
|
|
5
|
+
exports.QUERY_MAIN_ACCOUNT_LEADERBOARD_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
limit: 'l',
|
|
8
|
+
start_time: 'st',
|
|
9
|
+
end_time: 'et',
|
|
10
|
+
order_by: 'ob',
|
|
11
|
+
cursor: 'c'
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
l: 'limit',
|
|
15
|
+
st: 'start_time',
|
|
16
|
+
et: 'end_time',
|
|
17
|
+
ob: 'order_by',
|
|
18
|
+
c: 'cursor'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_MAIN_ACCOUNT_LEADERBOARD_RESPONSE_MAP = void 0;
|
|
4
|
+
const main_account_leaderboard_entry_1 = require("./main_account_leaderboard_entry");
|
|
5
|
+
// Schema map for the 'QUERY_MAIN_ACCOUNT_LEADERBOARD_RESPONSE' struct.
|
|
6
|
+
exports.QUERY_MAIN_ACCOUNT_LEADERBOARD_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [main_account_leaderboard_entry_1.MAIN_ACCOUNT_LEADERBOARD_ENTRY_MAP.FULL_TO_LITE]],
|
|
9
|
+
cursor: 'c'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
r: ['result', [main_account_leaderboard_entry_1.MAIN_ACCOUNT_LEADERBOARD_ENTRY_MAP.LITE_TO_FULL]],
|
|
13
|
+
c: 'cursor'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_VAULT_INVESTOR_HISTORY_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'QUERY_VAULT_INVESTOR_HISTORY_REQUEST' struct.
|
|
5
|
+
exports.QUERY_VAULT_INVESTOR_HISTORY_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
main_account_id: 'ma',
|
|
8
|
+
vault_id: 'vi'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
ma: 'main_account_id',
|
|
12
|
+
vi: 'vault_id'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_VAULT_INVESTOR_HISTORY_RESPONSE_MAP = void 0;
|
|
4
|
+
const vault_investor_history_1 = require("./vault_investor_history");
|
|
5
|
+
// Schema map for the 'QUERY_VAULT_INVESTOR_HISTORY_RESPONSE' struct.
|
|
6
|
+
exports.QUERY_VAULT_INVESTOR_HISTORY_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [vault_investor_history_1.VAULT_INVESTOR_HISTORY_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [vault_investor_history_1.VAULT_INVESTOR_HISTORY_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -7,7 +7,7 @@ exports.VAULT_INVESTOR_HISTORY_MAP = Object.freeze({
|
|
|
7
7
|
event_time: 'et',
|
|
8
8
|
main_account_id: 'ma',
|
|
9
9
|
vault_id: 'vi',
|
|
10
|
-
|
|
10
|
+
type: 't',
|
|
11
11
|
price: 'p',
|
|
12
12
|
size: 's',
|
|
13
13
|
realized_pnl: 'rp',
|
|
@@ -17,7 +17,7 @@ exports.VAULT_INVESTOR_HISTORY_MAP = Object.freeze({
|
|
|
17
17
|
et: 'event_time',
|
|
18
18
|
ma: 'main_account_id',
|
|
19
19
|
vi: 'vault_id',
|
|
20
|
-
|
|
20
|
+
t: 'type',
|
|
21
21
|
p: 'price',
|
|
22
22
|
s: 'size',
|
|
23
23
|
rp: 'realized_pnl',
|
|
@@ -10,7 +10,8 @@ exports.VAULT_REDEEM_RESULTS_MAP = Object.freeze({
|
|
|
10
10
|
currency: 'c',
|
|
11
11
|
num_tokens: 'nt',
|
|
12
12
|
avg_entry_price: 'ae',
|
|
13
|
-
fees_charged: 'fc'
|
|
13
|
+
fees_charged: 'fc',
|
|
14
|
+
realized_pnl: 'rp'
|
|
14
15
|
},
|
|
15
16
|
LITE_TO_FULL: {
|
|
16
17
|
ti: 'token_index_price',
|
|
@@ -19,6 +20,7 @@ exports.VAULT_REDEEM_RESULTS_MAP = Object.freeze({
|
|
|
19
20
|
c: 'currency',
|
|
20
21
|
nt: 'num_tokens',
|
|
21
22
|
ae: 'avg_entry_price',
|
|
22
|
-
fc: 'fees_charged'
|
|
23
|
+
fc: 'fees_charged',
|
|
24
|
+
rp: 'realized_pnl'
|
|
23
25
|
}
|
|
24
26
|
});
|