@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
package/TDG/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { type IAckResponse, type IApiAggregatedAccountSummaryResponse, type IApiCancelAllOrdersRequest, type IApiCancelAllOrdersResponse, type IApiCancelOrderRequest, type IApiCancelOrderResponse, type IApiCreateBulkOrdersRequest, type IApiCreateBulkOrdersResponse, type IApiCreateOrderRequest, type IApiCreateOrderResponse, type IApiDedustPositionRequest, type IApiDedustPositionResponse, type IApiDepositHistoryRequest, type IApiDepositHistoryResponse, type IApiFillHistoryRequest, type IApiFillHistoryResponse, type IApiFundingAccountSummaryResponse, type IApiFundingPaymentHistoryRequest, type IApiFundingPaymentHistoryResponse, type IApiGetAllInitialLeverageRequest, type IApiGetAllInitialLeverageResponse, type IApiGetMarginTiersResponse, type IApiGetOrderGroupRequest, type IApiGetOrderGroupResponse, type IApiGetOrderRequest, type IApiGetOrderResponse, type IApiOpenOrdersRequest, type IApiOpenOrdersResponse, type IApiOrderHistoryRequest, type IApiOrderHistoryResponse, type IApiPositionsRequest, type IApiPositionsResponse, type IApiPreDepositCheckRequest, type IApiPreDepositCheckResponse, type IApiPreOrderCheckRequest, type IApiPreOrderCheckResponse, type IApiQueryListFundingAccountSummaryRequest, type IApiQueryListFundingAccountSummaryResponse, type IApiQueryListSubAccountSummaryRequest, type IApiQueryListSubAccountSummaryResponse, type IApiQuerySnapVaultPositionRequest, type IApiQuerySnapVaultPositionResponse, type IApiQueryTradingPerformanceRequest, type IApiQueryTradingPerformanceResponse, type IApiQueryTradingPerformanceTrendRequest, type IApiQueryTradingPerformanceTrendResponse, type IApiQueryVaultPerformanceRequest, type IApiQueryVaultPerformanceResponse, type IApiQueryVaultPerformanceTrendRequest, type IApiQueryVaultPerformanceTrendResponse, type IApiQueryVaultRiskMetricRequest, type IApiQueryVaultRiskMetricResponse, type IApiQueryVaultSummaryHistoryRequest, type IApiQueryVaultSummaryHistoryResponse, type IApiReplaceOrdersRequest, type IApiReplaceOrdersResponse, type IApiSetInitialLeverageRequest, type IApiSetInitialLeverageResponse, type IApiSocializedLossStatusResponse, type IApiSubAccountHistoryRequest, type IApiSubAccountHistoryResponse, type IApiSubAccountSummaryRequest, type IApiSubAccountSummaryResponse, type IApiTimedAssetExposureRequest, type IApiTimedAssetExposureResponse, type IApiTimedVaultAssetExposureRequest, type IApiTransferHistoryRequest, type IApiTransferHistoryResponse, type IApiTransferRequest, type IApiTransferResponse, type IApiVaultBurnTokensRequest, type IApiVaultDetailRequest, type IApiVaultDetailResponse, type IApiVaultInvestorSummaryRequest, type IApiVaultInvestorSummaryResponse, type IApiVaultInvestRequest, type IApiVaultRedeemCancelRequest, type IApiVaultRedeemRequest, type IApiVaultViewRedemptionQueueRequest, type IApiVaultViewRedemptionQueueResponse, type IApiWithdrawalHistoryRequest, type IApiWithdrawalHistoryResponse, type IApiWithdrawalRequest, type IConfig } from '../interfaces';
|
|
2
|
+
import { type IAckResponse, type IApiAggregatedAccountSummaryResponse, type IApiCancelAllOrdersRequest, type IApiCancelAllOrdersResponse, type IApiCancelOrderRequest, type IApiCancelOrderResponse, type IApiCreateBulkOrdersRequest, type IApiCreateBulkOrdersResponse, type IApiCreateOrderRequest, type IApiCreateOrderResponse, type IApiDedustPositionRequest, type IApiDedustPositionResponse, type IApiDepositHistoryRequest, type IApiDepositHistoryResponse, type IApiFillHistoryRequest, type IApiFillHistoryResponse, type IApiFundingAccountSummaryResponse, type IApiFundingPaymentHistoryRequest, type IApiFundingPaymentHistoryResponse, type IApiGetAllInitialLeverageRequest, type IApiGetAllInitialLeverageResponse, type IApiGetMarginTiersResponse, type IApiGetOrderGroupRequest, type IApiGetOrderGroupResponse, type IApiGetOrderRequest, type IApiGetOrderResponse, type IApiOpenOrdersRequest, type IApiOpenOrdersResponse, type IApiOrderHistoryRequest, type IApiOrderHistoryResponse, type IApiPositionsRequest, type IApiPositionsResponse, type IApiPreDepositCheckRequest, type IApiPreDepositCheckResponse, type IApiPreOrderCheckRequest, type IApiPreOrderCheckResponse, type IApiQueryListFundingAccountSummaryRequest, type IApiQueryListFundingAccountSummaryResponse, type IApiQueryListSubAccountSummaryRequest, type IApiQueryListSubAccountSummaryResponse, type IApiQueryListVaultSubAccountSummaryRequest, type IApiQueryListVaultSubAccountSummaryResponse, type IApiQuerySnapVaultPositionRequest, type IApiQuerySnapVaultPositionResponse, type IApiQueryTradingPerformanceRequest, type IApiQueryTradingPerformanceResponse, type IApiQueryTradingPerformanceTrendRequest, type IApiQueryTradingPerformanceTrendResponse, type IApiQueryVaultInvestorHistoryRequest, type IApiQueryVaultInvestorHistoryResponse, type IApiQueryVaultManagerInvestorHistoryRequest, type IApiQueryVaultManagerInvestorHistoryResponse, type IApiQueryVaultPerformanceRequest, type IApiQueryVaultPerformanceResponse, type IApiQueryVaultPerformanceTrendRequest, type IApiQueryVaultPerformanceTrendResponse, type IApiQueryVaultRiskMetricRequest, type IApiQueryVaultRiskMetricResponse, type IApiQueryVaultSummaryHistoryRequest, type IApiQueryVaultSummaryHistoryResponse, type IApiReplaceOrdersRequest, type IApiReplaceOrdersResponse, type IApiSetInitialLeverageRequest, type IApiSetInitialLeverageResponse, type IApiSocializedLossStatusResponse, type IApiSubAccountHistoryRequest, type IApiSubAccountHistoryResponse, type IApiSubAccountSummaryRequest, type IApiSubAccountSummaryResponse, type IApiTimedAssetExposureRequest, type IApiTimedAssetExposureResponse, type IApiTimedVaultAssetExposureRequest, type IApiTransferHistoryRequest, type IApiTransferHistoryResponse, type IApiTransferRequest, type IApiTransferResponse, type IApiVaultBurnTokensRequest, type IApiVaultDetailRequest, type IApiVaultDetailResponse, type IApiVaultInvestorSummaryRequest, type IApiVaultInvestorSummaryResponse, type IApiVaultInvestRequest, type IApiVaultRedeemCancelRequest, type IApiVaultRedeemRequest, type IApiVaultViewRedemptionQueueRequest, type IApiVaultViewRedemptionQueueResponse, type IApiWithdrawalHistoryRequest, type IApiWithdrawalHistoryResponse, type IApiWithdrawalRequest, type IConfig } from '../interfaces';
|
|
3
3
|
export declare class TDG {
|
|
4
4
|
private readonly _axios;
|
|
5
5
|
private readonly _fullUrl;
|
|
@@ -123,7 +123,10 @@ export declare class TDG {
|
|
|
123
123
|
vaultPerformanceTrend(payload: IApiQueryVaultPerformanceTrendRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultPerformanceTrendResponse>;
|
|
124
124
|
vaultRiskMetric(payload: IApiQueryVaultRiskMetricRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultRiskMetricResponse>;
|
|
125
125
|
vaultSummaryHistory(payload: IApiQueryVaultSummaryHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultSummaryHistoryResponse>;
|
|
126
|
+
vaultSubAccountSummaryHistory(payload: IApiQueryListVaultSubAccountSummaryRequest, config?: AxiosRequestConfig): Promise<IApiQueryListVaultSubAccountSummaryResponse>;
|
|
127
|
+
vaultInvestorHistory(payload: IApiQueryVaultInvestorHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultInvestorHistoryResponse>;
|
|
126
128
|
vaultAssetExposure(payload: IApiTimedVaultAssetExposureRequest, config?: AxiosRequestConfig): Promise<IApiTimedAssetExposureResponse>;
|
|
127
129
|
snapVaultPosition(payload: IApiQuerySnapVaultPositionRequest, config?: AxiosRequestConfig): Promise<IApiQuerySnapVaultPositionResponse>;
|
|
128
130
|
vaultDetail(payload: IApiVaultDetailRequest, config?: AxiosRequestConfig): Promise<IApiVaultDetailResponse>;
|
|
131
|
+
vaultManagerInvestorHistory(payload: IApiQueryVaultManagerInvestorHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultManagerInvestorHistoryResponse>;
|
|
129
132
|
}
|
package/TDG/index.js
CHANGED
|
@@ -301,6 +301,16 @@ class TDG {
|
|
|
301
301
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_SUMMARY_HISTORY_RESPONSE_MAP.LITE_TO_FULL);
|
|
302
302
|
}).catch(utils_1.Utils.coverApiError);
|
|
303
303
|
}
|
|
304
|
+
vaultSubAccountSummaryHistory(payload, config) {
|
|
305
|
+
return this._axios.post(this._liteUrl + '/vault_sub_account_summary_history', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
306
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP.LITE_TO_FULL);
|
|
307
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
308
|
+
}
|
|
309
|
+
vaultInvestorHistory(payload, config) {
|
|
310
|
+
return this._axios.post(this._liteUrl + '/vault_investor_history', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_VAULT_INVESTOR_HISTORY_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
311
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_INVESTOR_HISTORY_RESPONSE_MAP.LITE_TO_FULL);
|
|
312
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
313
|
+
}
|
|
304
314
|
vaultAssetExposure(payload, config) {
|
|
305
315
|
return this._axios.post(this._liteUrl + '/vault_asset_exposure', utils_1.Utils.schemaMap(payload, interfaces_1.API_TIMED_VAULT_ASSET_EXPOSURE_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
306
316
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_TIMED_ASSET_EXPOSURE_RESPONSE_MAP.LITE_TO_FULL);
|
|
@@ -316,5 +326,10 @@ class TDG {
|
|
|
316
326
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_VAULT_DETAIL_RESPONSE_MAP.LITE_TO_FULL);
|
|
317
327
|
}).catch(utils_1.Utils.coverApiError);
|
|
318
328
|
}
|
|
329
|
+
vaultManagerInvestorHistory(payload, config) {
|
|
330
|
+
return this._axios.post(this._liteUrl + '/vault_manager_investor_history', utils_1.Utils.schemaMap(payload, interfaces_1.API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
|
|
331
|
+
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_RESPONSE_MAP.LITE_TO_FULL);
|
|
332
|
+
}).catch(utils_1.Utils.coverApiError);
|
|
333
|
+
}
|
|
319
334
|
}
|
|
320
335
|
exports.TDG = TDG;
|
|
@@ -38,6 +38,10 @@ export declare enum ECandlestickType {
|
|
|
38
38
|
INDEX = "INDEX",
|
|
39
39
|
MID = "MID"
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* The list of Currencies that are supported on the GRVT exchange
|
|
43
|
+
* @deprecated
|
|
44
|
+
*/
|
|
41
45
|
export declare enum ECurrency {
|
|
42
46
|
USD = "USD",
|
|
43
47
|
USDC = "USDC",
|
|
@@ -157,6 +161,10 @@ export declare enum EOrderStatus {
|
|
|
157
161
|
REJECTED = "REJECTED",
|
|
158
162
|
CANCELLED = "CANCELLED"
|
|
159
163
|
}
|
|
164
|
+
export declare enum EQueryMainAccountLeaderboardOrderBy {
|
|
165
|
+
PNL = "PNL",
|
|
166
|
+
TRADING_VOLUME = "TRADING_VOLUME"
|
|
167
|
+
}
|
|
160
168
|
export declare enum ERewardEpochStatus {
|
|
161
169
|
PAST = "PAST",
|
|
162
170
|
CURRENT = "CURRENT",
|
|
@@ -193,6 +201,56 @@ export declare enum ETimeInterval {
|
|
|
193
201
|
INTERVAL_90_D = "INTERVAL_90_D",
|
|
194
202
|
INTERVAL_LIFETIME = "INTERVAL_LIFETIME"
|
|
195
203
|
}
|
|
204
|
+
export declare enum ETransactionType {
|
|
205
|
+
UNSPECIFIED_1 = "UNSPECIFIED_1",
|
|
206
|
+
UNSPECIFIED_2 = "UNSPECIFIED_2",
|
|
207
|
+
UNSPECIFIED_3 = "UNSPECIFIED_3",
|
|
208
|
+
CREATE_ACCOUNT = "CREATE_ACCOUNT",
|
|
209
|
+
CREATE_SUB_ACCOUNT = "CREATE_SUB_ACCOUNT",
|
|
210
|
+
SET_ACCOUNT_MULTI_SIG_THRESHOLD = "SET_ACCOUNT_MULTI_SIG_THRESHOLD",
|
|
211
|
+
ADD_ACCOUNT_SIGNER = "ADD_ACCOUNT_SIGNER",
|
|
212
|
+
REMOVE_ACCOUNT_SIGNER = "REMOVE_ACCOUNT_SIGNER",
|
|
213
|
+
ADD_WITHDRAWAL_ADDRESS = "ADD_WITHDRAWAL_ADDRESS",
|
|
214
|
+
REMOVE_WITHDRAWAL_ADDRESS = "REMOVE_WITHDRAWAL_ADDRESS",
|
|
215
|
+
ADD_TRANSFER_ACCOUNT = "ADD_TRANSFER_ACCOUNT",
|
|
216
|
+
REMOVE_TRANSFER_ACCOUNT = "REMOVE_TRANSFER_ACCOUNT",
|
|
217
|
+
SET_SUB_ACCOUNT_MARGIN_TYPE = "SET_SUB_ACCOUNT_MARGIN_TYPE",
|
|
218
|
+
ADD_SUB_ACCOUNT_SIGNER = "ADD_SUB_ACCOUNT_SIGNER",
|
|
219
|
+
REMOVE_SUB_ACCOUNT_SIGNER = "REMOVE_SUB_ACCOUNT_SIGNER",
|
|
220
|
+
ADD_SESSION_KEY = "ADD_SESSION_KEY",
|
|
221
|
+
REMOVE_SESSION_KEY = "REMOVE_SESSION_KEY",
|
|
222
|
+
DEPOSIT = "DEPOSIT",
|
|
223
|
+
WITHDRAWAL = "WITHDRAWAL",
|
|
224
|
+
TRANSFER = "TRANSFER",
|
|
225
|
+
MARK_PRICE_TICK = "MARK_PRICE_TICK",
|
|
226
|
+
SETTLEMENT_PRICE_TICK = "SETTLEMENT_PRICE_TICK",
|
|
227
|
+
FUNDING_TICK = "FUNDING_TICK",
|
|
228
|
+
INTEREST_RATE_TICK = "INTEREST_RATE_TICK",
|
|
229
|
+
SCHEDULE_CONFIG = "SCHEDULE_CONFIG",
|
|
230
|
+
SET_CONFIG = "SET_CONFIG",
|
|
231
|
+
TRADE = "TRADE",
|
|
232
|
+
ADD_RECOVERY_ADDRESS = "ADD_RECOVERY_ADDRESS",
|
|
233
|
+
REMOVE_RECOVERY_ADDRESS = "REMOVE_RECOVERY_ADDRESS",
|
|
234
|
+
RECOVER_ADDRESS = "RECOVER_ADDRESS",
|
|
235
|
+
SETTLE_START = "SETTLE_START",
|
|
236
|
+
SETTLE_INSTRUMENTS = "SETTLE_INSTRUMENTS",
|
|
237
|
+
SETTLE_SOCIALISED_LOSS = "SETTLE_SOCIALISED_LOSS",
|
|
238
|
+
SETTLE_END = "SETTLE_END",
|
|
239
|
+
SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS = "SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS",
|
|
240
|
+
SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS = "SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS",
|
|
241
|
+
INITIALIZE_CONFIG = "INITIALIZE_CONFIG",
|
|
242
|
+
CREATE_ACCOUNT_WITH_SUB_ACCOUNT = "CREATE_ACCOUNT_WITH_SUB_ACCOUNT",
|
|
243
|
+
VAULT_CREATE = "VAULT_CREATE",
|
|
244
|
+
VAULT_UPDATE = "VAULT_UPDATE",
|
|
245
|
+
VAULT_DELIST = "VAULT_DELIST",
|
|
246
|
+
VAULT_CLOSE = "VAULT_CLOSE",
|
|
247
|
+
VAULT_INVEST = "VAULT_INVEST",
|
|
248
|
+
VAULT_BURN_LP_TOKEN = "VAULT_BURN_LP_TOKEN",
|
|
249
|
+
VAULT_REDEEM = "VAULT_REDEEM",
|
|
250
|
+
VAULT_MANAGEMENT_FEE_TICK = "VAULT_MANAGEMENT_FEE_TICK",
|
|
251
|
+
ADD_CURRENCY = "ADD_CURRENCY",
|
|
252
|
+
SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO = "SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO"
|
|
253
|
+
}
|
|
196
254
|
export declare enum ETransferType {
|
|
197
255
|
UNSPECIFIED = "UNSPECIFIED",
|
|
198
256
|
STANDARD = "STANDARD",
|
|
@@ -242,8 +300,8 @@ export interface IApiAggregatedAccountSummaryResponse {
|
|
|
242
300
|
export interface IApiCancelAllOrdersRequest {
|
|
243
301
|
sub_account_id?: string;
|
|
244
302
|
kind?: EKind[];
|
|
245
|
-
base?:
|
|
246
|
-
quote?:
|
|
303
|
+
base?: string[];
|
|
304
|
+
quote?: string[];
|
|
247
305
|
}
|
|
248
306
|
export interface IApiCancelAllOrdersResponse {
|
|
249
307
|
result?: number;
|
|
@@ -300,7 +358,7 @@ export interface IApiDedustPositionResponse {
|
|
|
300
358
|
result?: IOrder;
|
|
301
359
|
}
|
|
302
360
|
export interface IApiDepositHistoryRequest {
|
|
303
|
-
currency?:
|
|
361
|
+
currency?: string[];
|
|
304
362
|
start_time?: string;
|
|
305
363
|
end_time?: string;
|
|
306
364
|
limit?: number;
|
|
@@ -320,8 +378,8 @@ export interface IApiDropClientWsResponse {
|
|
|
320
378
|
export interface IApiFillHistoryRequest {
|
|
321
379
|
sub_account_id?: string;
|
|
322
380
|
kind?: EKind[];
|
|
323
|
-
base?:
|
|
324
|
-
quote?:
|
|
381
|
+
base?: string[];
|
|
382
|
+
quote?: string[];
|
|
325
383
|
start_time?: string;
|
|
326
384
|
end_time?: string;
|
|
327
385
|
limit?: number;
|
|
@@ -428,7 +486,7 @@ export interface IApiGetInstrumentResponse {
|
|
|
428
486
|
}
|
|
429
487
|
export interface IApiGetLPInfoRequest {
|
|
430
488
|
kind?: EKind;
|
|
431
|
-
base?:
|
|
489
|
+
base?: string;
|
|
432
490
|
}
|
|
433
491
|
export interface IApiGetLPInfoResponse {
|
|
434
492
|
is_lp_maker?: boolean;
|
|
@@ -444,7 +502,7 @@ export interface IApiGetLPLeaderboardRequest {
|
|
|
444
502
|
epoch?: number;
|
|
445
503
|
limit?: number;
|
|
446
504
|
kind?: EKind;
|
|
447
|
-
base?:
|
|
505
|
+
base?: string;
|
|
448
506
|
}
|
|
449
507
|
export interface IApiGetLPLeaderboardResponse {
|
|
450
508
|
points?: IApproximateLPPoint[];
|
|
@@ -452,7 +510,7 @@ export interface IApiGetLPLeaderboardResponse {
|
|
|
452
510
|
export interface IApiGetLPPointRequest {
|
|
453
511
|
epoch?: number;
|
|
454
512
|
kind?: EKind;
|
|
455
|
-
base?:
|
|
513
|
+
base?: string;
|
|
456
514
|
}
|
|
457
515
|
export interface IApiGetLPPointResponse {
|
|
458
516
|
point?: ILPPoint;
|
|
@@ -460,7 +518,7 @@ export interface IApiGetLPPointResponse {
|
|
|
460
518
|
}
|
|
461
519
|
export interface IApiGetLatestLPSnapshotRequest {
|
|
462
520
|
kind?: EKind;
|
|
463
|
-
base?:
|
|
521
|
+
base?: string;
|
|
464
522
|
}
|
|
465
523
|
export interface IApiGetLatestLPSnapshotResponse {
|
|
466
524
|
snapshot?: IApproximateLPSnapshot;
|
|
@@ -534,8 +592,8 @@ export interface IApiMiniTickerResponse {
|
|
|
534
592
|
export interface IApiOpenOrdersRequest {
|
|
535
593
|
sub_account_id?: string;
|
|
536
594
|
kind?: EKind[];
|
|
537
|
-
base?:
|
|
538
|
-
quote?:
|
|
595
|
+
base?: string[];
|
|
596
|
+
quote?: string[];
|
|
539
597
|
}
|
|
540
598
|
export interface IApiOpenOrdersResponse {
|
|
541
599
|
result?: IOrder[];
|
|
@@ -543,8 +601,8 @@ export interface IApiOpenOrdersResponse {
|
|
|
543
601
|
export interface IApiOrderHistoryRequest {
|
|
544
602
|
sub_account_id?: string;
|
|
545
603
|
kind?: EKind[];
|
|
546
|
-
base?:
|
|
547
|
-
quote?:
|
|
604
|
+
base?: string[];
|
|
605
|
+
quote?: string[];
|
|
548
606
|
start_time?: string;
|
|
549
607
|
end_time?: string;
|
|
550
608
|
limit?: number;
|
|
@@ -572,19 +630,19 @@ export interface IApiOrderbookLevelsResponse {
|
|
|
572
630
|
export interface IApiPositionsRequest {
|
|
573
631
|
sub_account_id?: string;
|
|
574
632
|
kind?: EKind[];
|
|
575
|
-
base?:
|
|
576
|
-
quote?:
|
|
633
|
+
base?: string[];
|
|
634
|
+
quote?: string[];
|
|
577
635
|
}
|
|
578
636
|
export interface IApiPositionsResponse {
|
|
579
637
|
result?: IPositions[];
|
|
580
638
|
}
|
|
581
639
|
export interface IApiPreDepositCheckRequest {
|
|
582
|
-
currency?:
|
|
640
|
+
currency?: string;
|
|
583
641
|
bridge?: EBridgeType;
|
|
584
642
|
}
|
|
585
643
|
export interface IApiPreDepositCheckResponse {
|
|
586
644
|
max_deposit_limit?: string;
|
|
587
|
-
currency?:
|
|
645
|
+
currency?: string;
|
|
588
646
|
}
|
|
589
647
|
export interface IApiPreOrderCheckRequest {
|
|
590
648
|
sub_account_id?: string;
|
|
@@ -622,6 +680,13 @@ export interface IApiQueryListSubAccountSummaryResponse {
|
|
|
622
680
|
result?: ISnapSubAccountSummary[];
|
|
623
681
|
next?: string;
|
|
624
682
|
}
|
|
683
|
+
export interface IApiQueryListVaultSubAccountSummaryRequest {
|
|
684
|
+
vault_id?: string;
|
|
685
|
+
time_interval?: ETimeInterval;
|
|
686
|
+
}
|
|
687
|
+
export interface IApiQueryListVaultSubAccountSummaryResponse {
|
|
688
|
+
result?: IApiVaultSubAccountSummary[];
|
|
689
|
+
}
|
|
625
690
|
export interface IApiQuerySnapVaultPositionRequest {
|
|
626
691
|
vault_id?: string;
|
|
627
692
|
}
|
|
@@ -645,6 +710,19 @@ export interface IApiQueryTradingPerformanceTrendResponse {
|
|
|
645
710
|
result?: IApiTradingPerformanceTrend[];
|
|
646
711
|
next?: string;
|
|
647
712
|
}
|
|
713
|
+
export interface IApiQueryVaultInvestorHistoryRequest {
|
|
714
|
+
vault_id?: string;
|
|
715
|
+
}
|
|
716
|
+
export interface IApiQueryVaultInvestorHistoryResponse {
|
|
717
|
+
result?: IApiVaultInvestorHistory[];
|
|
718
|
+
}
|
|
719
|
+
export interface IApiQueryVaultManagerInvestorHistoryRequest {
|
|
720
|
+
vault_id?: string;
|
|
721
|
+
only_own_investments?: boolean;
|
|
722
|
+
}
|
|
723
|
+
export interface IApiQueryVaultManagerInvestorHistoryResponse {
|
|
724
|
+
result?: IApiVaultInvestorHistory[];
|
|
725
|
+
}
|
|
648
726
|
export interface IApiQueryVaultPerformanceRequest {
|
|
649
727
|
vault_id?: string;
|
|
650
728
|
}
|
|
@@ -809,7 +887,7 @@ export interface IApiTransferAck {
|
|
|
809
887
|
tx_id?: string;
|
|
810
888
|
}
|
|
811
889
|
export interface IApiTransferHistoryRequest {
|
|
812
|
-
currency?:
|
|
890
|
+
currency?: string[];
|
|
813
891
|
start_time?: string;
|
|
814
892
|
end_time?: string;
|
|
815
893
|
limit?: number;
|
|
@@ -826,7 +904,7 @@ export interface IApiTransferRequest {
|
|
|
826
904
|
from_sub_account_id?: string;
|
|
827
905
|
to_account_id?: string;
|
|
828
906
|
to_sub_account_id?: string;
|
|
829
|
-
currency?:
|
|
907
|
+
currency?: string;
|
|
830
908
|
num_tokens?: string;
|
|
831
909
|
signature?: ISignature;
|
|
832
910
|
transfer_type?: ETransferType;
|
|
@@ -843,10 +921,16 @@ export interface IApiUserCategoryAffinityScoreRequest {
|
|
|
843
921
|
export interface IApiUserCategoryAffinityScoreResponse {
|
|
844
922
|
result?: IUserCategoryAffinityScore[];
|
|
845
923
|
}
|
|
924
|
+
export interface IApiValidateVaultAccountRequest {
|
|
925
|
+
vault_i_ds?: string[];
|
|
926
|
+
}
|
|
927
|
+
export interface IApiValidateVaultAccountResponse {
|
|
928
|
+
result?: boolean;
|
|
929
|
+
}
|
|
846
930
|
export interface IApiVaultBurnTokensRequest {
|
|
847
931
|
main_account_id?: string;
|
|
848
932
|
vault_id?: string;
|
|
849
|
-
currency?:
|
|
933
|
+
currency?: string;
|
|
850
934
|
num_tokens?: string;
|
|
851
935
|
signature?: ISignature;
|
|
852
936
|
}
|
|
@@ -864,10 +948,20 @@ export interface IApiVaultDetailResponse {
|
|
|
864
948
|
export interface IApiVaultInvestRequest {
|
|
865
949
|
main_account_id?: string;
|
|
866
950
|
vault_id?: string;
|
|
867
|
-
currency?:
|
|
951
|
+
currency?: string;
|
|
868
952
|
num_tokens?: string;
|
|
869
953
|
signature?: ISignature;
|
|
870
954
|
}
|
|
955
|
+
export interface IApiVaultInvestorHistory {
|
|
956
|
+
event_time?: string;
|
|
957
|
+
funding_address?: string;
|
|
958
|
+
vault_id?: string;
|
|
959
|
+
type?: ETransactionType;
|
|
960
|
+
price?: string;
|
|
961
|
+
size?: string;
|
|
962
|
+
realized_pnl?: string;
|
|
963
|
+
performance_fee?: string;
|
|
964
|
+
}
|
|
871
965
|
export interface IApiVaultInvestorSummaryRequest {
|
|
872
966
|
main_account_id?: string;
|
|
873
967
|
vault_id?: string;
|
|
@@ -887,10 +981,15 @@ export interface IApiVaultRedeemCancelRequest {
|
|
|
887
981
|
export interface IApiVaultRedeemRequest {
|
|
888
982
|
main_account_id?: string;
|
|
889
983
|
vault_id?: string;
|
|
890
|
-
currency?:
|
|
984
|
+
currency?: string;
|
|
891
985
|
num_tokens?: string;
|
|
892
986
|
signature?: ISignature;
|
|
893
987
|
}
|
|
988
|
+
export interface IApiVaultSubAccountSummary {
|
|
989
|
+
event_time?: string;
|
|
990
|
+
start_interval?: string;
|
|
991
|
+
total_equity?: string;
|
|
992
|
+
}
|
|
894
993
|
export interface IApiVaultSummary {
|
|
895
994
|
event_time?: string;
|
|
896
995
|
start_interval?: string;
|
|
@@ -905,7 +1004,7 @@ export interface IApiVaultViewRedemptionQueueResponse {
|
|
|
905
1004
|
redemption_queue?: IVaultRedemptionReqView[];
|
|
906
1005
|
}
|
|
907
1006
|
export interface IApiWithdrawalHistoryRequest {
|
|
908
|
-
currency?:
|
|
1007
|
+
currency?: string[];
|
|
909
1008
|
start_time?: string;
|
|
910
1009
|
end_time?: string;
|
|
911
1010
|
limit?: number;
|
|
@@ -919,7 +1018,7 @@ export interface IApiWithdrawalHistoryResponse {
|
|
|
919
1018
|
export interface IApiWithdrawalRequest {
|
|
920
1019
|
from_account_id?: string;
|
|
921
1020
|
to_eth_address?: string;
|
|
922
|
-
currency?:
|
|
1021
|
+
currency?: string;
|
|
923
1022
|
num_tokens?: string;
|
|
924
1023
|
signature?: ISignature;
|
|
925
1024
|
}
|
|
@@ -981,14 +1080,14 @@ export interface IClientOrderIDsByGroup {
|
|
|
981
1080
|
export interface IDeposit {
|
|
982
1081
|
tx_hash?: string;
|
|
983
1082
|
to_account_id?: string;
|
|
984
|
-
currency?:
|
|
1083
|
+
currency?: string;
|
|
985
1084
|
num_tokens?: string;
|
|
986
1085
|
}
|
|
987
1086
|
export interface IDepositHistory {
|
|
988
1087
|
l_1_hash?: string;
|
|
989
1088
|
l_2_hash?: string;
|
|
990
1089
|
to_account_id?: string;
|
|
991
|
-
currency?:
|
|
1090
|
+
currency?: string;
|
|
992
1091
|
num_tokens?: string;
|
|
993
1092
|
initiated_time?: string;
|
|
994
1093
|
confirmed_time?: string;
|
|
@@ -1108,7 +1207,7 @@ export interface IFundingPayment {
|
|
|
1108
1207
|
event_time?: string;
|
|
1109
1208
|
sub_account_id?: string;
|
|
1110
1209
|
instrument?: string;
|
|
1111
|
-
currency?:
|
|
1210
|
+
currency?: string;
|
|
1112
1211
|
amount?: string;
|
|
1113
1212
|
tx_id?: string;
|
|
1114
1213
|
}
|
|
@@ -1133,8 +1232,8 @@ export interface IInitialLeverageResult {
|
|
|
1133
1232
|
export interface IInstrument {
|
|
1134
1233
|
instrument?: string;
|
|
1135
1234
|
instrument_hash?: string;
|
|
1136
|
-
base?:
|
|
1137
|
-
quote?:
|
|
1235
|
+
base?: string;
|
|
1236
|
+
quote?: string;
|
|
1138
1237
|
kind?: EKind;
|
|
1139
1238
|
expiry?: string;
|
|
1140
1239
|
strike_price?: string;
|
|
@@ -1183,6 +1282,14 @@ export interface ILpInfoEntry {
|
|
|
1183
1282
|
export interface IMainAccIDRequest {
|
|
1184
1283
|
main_account_id?: string;
|
|
1185
1284
|
}
|
|
1285
|
+
export interface IMainAccountLeaderboardEntry {
|
|
1286
|
+
main_account_id?: string;
|
|
1287
|
+
total_fee?: string;
|
|
1288
|
+
total_trade_volume?: string;
|
|
1289
|
+
num_traded?: string;
|
|
1290
|
+
positive_fee?: string;
|
|
1291
|
+
realized_pnl?: string;
|
|
1292
|
+
}
|
|
1186
1293
|
export interface IMarginTierResponse {
|
|
1187
1294
|
lower_bound?: string;
|
|
1188
1295
|
rate?: string;
|
|
@@ -1284,7 +1391,7 @@ export interface IPreOrderCheckResult {
|
|
|
1284
1391
|
margin_required?: string;
|
|
1285
1392
|
order_valid?: boolean;
|
|
1286
1393
|
reason?: string;
|
|
1287
|
-
settle_currency?:
|
|
1394
|
+
settle_currency?: string;
|
|
1288
1395
|
}
|
|
1289
1396
|
export interface IQueryAccountSummaryRequest {
|
|
1290
1397
|
time_interval?: ETimeInterval;
|
|
@@ -1331,6 +1438,17 @@ export interface IQueryLatestSubAccountSummaryRequest {
|
|
|
1331
1438
|
export interface IQueryLatestSubAccountSummaryResponse {
|
|
1332
1439
|
result?: ISnapSubAccountSummary;
|
|
1333
1440
|
}
|
|
1441
|
+
export interface IQueryMainAccountLeaderboardRequest {
|
|
1442
|
+
limit?: number;
|
|
1443
|
+
start_time?: string;
|
|
1444
|
+
end_time?: string;
|
|
1445
|
+
order_by?: EQueryMainAccountLeaderboardOrderBy;
|
|
1446
|
+
cursor?: string;
|
|
1447
|
+
}
|
|
1448
|
+
export interface IQueryMainAccountLeaderboardResponse {
|
|
1449
|
+
result?: IMainAccountLeaderboardEntry[];
|
|
1450
|
+
cursor?: string;
|
|
1451
|
+
}
|
|
1334
1452
|
export interface IQueryTradingPerformanceTrendRequest {
|
|
1335
1453
|
sub_account_i_ds?: string[];
|
|
1336
1454
|
time_interval?: ETimeInterval;
|
|
@@ -1339,6 +1457,13 @@ export interface IQueryTradingPerformanceTrendResponse {
|
|
|
1339
1457
|
result?: ITradingPerformancePoint[];
|
|
1340
1458
|
next?: string;
|
|
1341
1459
|
}
|
|
1460
|
+
export interface IQueryVaultInvestorHistoryRequest {
|
|
1461
|
+
main_account_id?: string;
|
|
1462
|
+
vault_id?: string;
|
|
1463
|
+
}
|
|
1464
|
+
export interface IQueryVaultInvestorHistoryResponse {
|
|
1465
|
+
result?: IVaultInvestorHistory[];
|
|
1466
|
+
}
|
|
1342
1467
|
export interface IQueryVaultSummaryHistoryRequest {
|
|
1343
1468
|
vault_id?: string;
|
|
1344
1469
|
start_time?: string;
|
|
@@ -1399,7 +1524,7 @@ export interface ISnapVaultSummary {
|
|
|
1399
1524
|
share_price?: string;
|
|
1400
1525
|
}
|
|
1401
1526
|
export interface ISpotBalance {
|
|
1402
|
-
currency?:
|
|
1527
|
+
currency?: string;
|
|
1403
1528
|
balance?: string;
|
|
1404
1529
|
index_price?: string;
|
|
1405
1530
|
}
|
|
@@ -1411,7 +1536,7 @@ export interface ISubAccount {
|
|
|
1411
1536
|
event_time?: string;
|
|
1412
1537
|
sub_account_id?: string;
|
|
1413
1538
|
margin_type?: EMarginType;
|
|
1414
|
-
settle_currency?:
|
|
1539
|
+
settle_currency?: string;
|
|
1415
1540
|
unrealized_pnl?: string;
|
|
1416
1541
|
total_equity?: string;
|
|
1417
1542
|
initial_margin?: string;
|
|
@@ -1507,7 +1632,7 @@ export interface ITransferHistory {
|
|
|
1507
1632
|
from_sub_account_id?: string;
|
|
1508
1633
|
to_account_id?: string;
|
|
1509
1634
|
to_sub_account_id?: string;
|
|
1510
|
-
currency?:
|
|
1635
|
+
currency?: string;
|
|
1511
1636
|
num_tokens?: string;
|
|
1512
1637
|
signature?: ISignature;
|
|
1513
1638
|
event_time?: string;
|
|
@@ -1557,7 +1682,7 @@ export interface IVaultInvestorHistory {
|
|
|
1557
1682
|
event_time?: string;
|
|
1558
1683
|
main_account_id?: string;
|
|
1559
1684
|
vault_id?: string;
|
|
1560
|
-
|
|
1685
|
+
type?: ETransactionType;
|
|
1561
1686
|
price?: string;
|
|
1562
1687
|
size?: string;
|
|
1563
1688
|
realized_pnl?: string;
|
|
@@ -1597,10 +1722,11 @@ export interface IVaultRedeemResults {
|
|
|
1597
1722
|
token_index_price?: string;
|
|
1598
1723
|
vault_total_equity?: string;
|
|
1599
1724
|
vault_share_price?: string;
|
|
1600
|
-
currency?:
|
|
1725
|
+
currency?: string;
|
|
1601
1726
|
num_tokens?: string;
|
|
1602
1727
|
avg_entry_price?: string;
|
|
1603
1728
|
fees_charged?: string;
|
|
1729
|
+
realized_pnl?: string;
|
|
1604
1730
|
}
|
|
1605
1731
|
export interface IVaultRedemption {
|
|
1606
1732
|
num_lp_tokens?: string;
|
|
@@ -1610,7 +1736,7 @@ export interface IVaultRedemption {
|
|
|
1610
1736
|
}
|
|
1611
1737
|
export interface IVaultRedemptionReqView {
|
|
1612
1738
|
request_time?: string;
|
|
1613
|
-
currency?:
|
|
1739
|
+
currency?: string;
|
|
1614
1740
|
num_lp_tokens?: string;
|
|
1615
1741
|
max_redemption_period_timestamp?: string;
|
|
1616
1742
|
}
|
|
@@ -1817,7 +1943,7 @@ export interface IWSWithdrawalFeedSelectorV1 {
|
|
|
1817
1943
|
export interface IWithdrawal {
|
|
1818
1944
|
from_account_id?: string;
|
|
1819
1945
|
to_eth_address?: string;
|
|
1820
|
-
currency?:
|
|
1946
|
+
currency?: string;
|
|
1821
1947
|
num_tokens?: string;
|
|
1822
1948
|
signature?: ISignature;
|
|
1823
1949
|
}
|
|
@@ -1825,7 +1951,7 @@ export interface IWithdrawalHistory {
|
|
|
1825
1951
|
tx_id?: string;
|
|
1826
1952
|
from_account_id?: string;
|
|
1827
1953
|
to_eth_address?: string;
|
|
1828
|
-
currency?:
|
|
1954
|
+
currency?: string;
|
|
1829
1955
|
num_tokens?: string;
|
|
1830
1956
|
signature?: ISignature;
|
|
1831
1957
|
event_time?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EVenue = exports.EVaultType = exports.ETriggerType = exports.ETriggerBy = exports.ETransferType = exports.ETimeInterval = exports.ETimeInForce = exports.ESubAccountTradeInterval = exports.ESource = exports.ERewardProgramType = exports.ERewardEpochStatus = exports.EOrderStatus = exports.EOrderRejectReason = exports.EMarginType = exports.EKind = exports.EInstrumentSettlementPeriod = exports.EEpochBadgeType = exports.ECurrency = exports.ECandlestickType = exports.ECandlestickInterval = exports.ECancelStatus = exports.EBrokerTag = exports.EBridgeType = void 0;
|
|
3
|
+
exports.EVenue = exports.EVaultType = exports.ETriggerType = exports.ETriggerBy = exports.ETransferType = exports.ETransactionType = exports.ETimeInterval = exports.ETimeInForce = exports.ESubAccountTradeInterval = exports.ESource = exports.ERewardProgramType = exports.ERewardEpochStatus = exports.EQueryMainAccountLeaderboardOrderBy = exports.EOrderStatus = exports.EOrderRejectReason = exports.EMarginType = exports.EKind = exports.EInstrumentSettlementPeriod = exports.EEpochBadgeType = exports.ECurrency = 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
|
|
@@ -76,7 +76,10 @@ var ECandlestickType;
|
|
|
76
76
|
// Tracks book mid prices
|
|
77
77
|
ECandlestickType["MID"] = "MID";
|
|
78
78
|
})(ECandlestickType || (exports.ECandlestickType = ECandlestickType = {}));
|
|
79
|
-
|
|
79
|
+
/**
|
|
80
|
+
* The list of Currencies that are supported on the GRVT exchange
|
|
81
|
+
* @deprecated
|
|
82
|
+
*/
|
|
80
83
|
var ECurrency;
|
|
81
84
|
(function (ECurrency) {
|
|
82
85
|
// the USD fiat currency
|
|
@@ -309,6 +312,13 @@ var EOrderStatus;
|
|
|
309
312
|
// Order is cancelled by the user using one of the supported APIs (See OrderRejectReason). Before an order is open, it cannot be cancelled.
|
|
310
313
|
EOrderStatus["CANCELLED"] = "CANCELLED";
|
|
311
314
|
})(EOrderStatus || (exports.EOrderStatus = EOrderStatus = {}));
|
|
315
|
+
var EQueryMainAccountLeaderboardOrderBy;
|
|
316
|
+
(function (EQueryMainAccountLeaderboardOrderBy) {
|
|
317
|
+
// Sort by realized PnL
|
|
318
|
+
EQueryMainAccountLeaderboardOrderBy["PNL"] = "PNL";
|
|
319
|
+
// Sort by trading volume
|
|
320
|
+
EQueryMainAccountLeaderboardOrderBy["TRADING_VOLUME"] = "TRADING_VOLUME";
|
|
321
|
+
})(EQueryMainAccountLeaderboardOrderBy || (exports.EQueryMainAccountLeaderboardOrderBy = EQueryMainAccountLeaderboardOrderBy = {}));
|
|
312
322
|
var ERewardEpochStatus;
|
|
313
323
|
(function (ERewardEpochStatus) {
|
|
314
324
|
// Past
|
|
@@ -380,6 +390,57 @@ var ETimeInterval;
|
|
|
380
390
|
// Lifetime
|
|
381
391
|
ETimeInterval["INTERVAL_LIFETIME"] = "INTERVAL_LIFETIME";
|
|
382
392
|
})(ETimeInterval || (exports.ETimeInterval = ETimeInterval = {}));
|
|
393
|
+
var ETransactionType;
|
|
394
|
+
(function (ETransactionType) {
|
|
395
|
+
ETransactionType["UNSPECIFIED_1"] = "UNSPECIFIED_1";
|
|
396
|
+
ETransactionType["UNSPECIFIED_2"] = "UNSPECIFIED_2";
|
|
397
|
+
ETransactionType["UNSPECIFIED_3"] = "UNSPECIFIED_3";
|
|
398
|
+
ETransactionType["CREATE_ACCOUNT"] = "CREATE_ACCOUNT";
|
|
399
|
+
ETransactionType["CREATE_SUB_ACCOUNT"] = "CREATE_SUB_ACCOUNT";
|
|
400
|
+
ETransactionType["SET_ACCOUNT_MULTI_SIG_THRESHOLD"] = "SET_ACCOUNT_MULTI_SIG_THRESHOLD";
|
|
401
|
+
ETransactionType["ADD_ACCOUNT_SIGNER"] = "ADD_ACCOUNT_SIGNER";
|
|
402
|
+
ETransactionType["REMOVE_ACCOUNT_SIGNER"] = "REMOVE_ACCOUNT_SIGNER";
|
|
403
|
+
ETransactionType["ADD_WITHDRAWAL_ADDRESS"] = "ADD_WITHDRAWAL_ADDRESS";
|
|
404
|
+
ETransactionType["REMOVE_WITHDRAWAL_ADDRESS"] = "REMOVE_WITHDRAWAL_ADDRESS";
|
|
405
|
+
ETransactionType["ADD_TRANSFER_ACCOUNT"] = "ADD_TRANSFER_ACCOUNT";
|
|
406
|
+
ETransactionType["REMOVE_TRANSFER_ACCOUNT"] = "REMOVE_TRANSFER_ACCOUNT";
|
|
407
|
+
ETransactionType["SET_SUB_ACCOUNT_MARGIN_TYPE"] = "SET_SUB_ACCOUNT_MARGIN_TYPE";
|
|
408
|
+
ETransactionType["ADD_SUB_ACCOUNT_SIGNER"] = "ADD_SUB_ACCOUNT_SIGNER";
|
|
409
|
+
ETransactionType["REMOVE_SUB_ACCOUNT_SIGNER"] = "REMOVE_SUB_ACCOUNT_SIGNER";
|
|
410
|
+
ETransactionType["ADD_SESSION_KEY"] = "ADD_SESSION_KEY";
|
|
411
|
+
ETransactionType["REMOVE_SESSION_KEY"] = "REMOVE_SESSION_KEY";
|
|
412
|
+
ETransactionType["DEPOSIT"] = "DEPOSIT";
|
|
413
|
+
ETransactionType["WITHDRAWAL"] = "WITHDRAWAL";
|
|
414
|
+
ETransactionType["TRANSFER"] = "TRANSFER";
|
|
415
|
+
ETransactionType["MARK_PRICE_TICK"] = "MARK_PRICE_TICK";
|
|
416
|
+
ETransactionType["SETTLEMENT_PRICE_TICK"] = "SETTLEMENT_PRICE_TICK";
|
|
417
|
+
ETransactionType["FUNDING_TICK"] = "FUNDING_TICK";
|
|
418
|
+
ETransactionType["INTEREST_RATE_TICK"] = "INTEREST_RATE_TICK";
|
|
419
|
+
ETransactionType["SCHEDULE_CONFIG"] = "SCHEDULE_CONFIG";
|
|
420
|
+
ETransactionType["SET_CONFIG"] = "SET_CONFIG";
|
|
421
|
+
ETransactionType["TRADE"] = "TRADE";
|
|
422
|
+
ETransactionType["ADD_RECOVERY_ADDRESS"] = "ADD_RECOVERY_ADDRESS";
|
|
423
|
+
ETransactionType["REMOVE_RECOVERY_ADDRESS"] = "REMOVE_RECOVERY_ADDRESS";
|
|
424
|
+
ETransactionType["RECOVER_ADDRESS"] = "RECOVER_ADDRESS";
|
|
425
|
+
ETransactionType["SETTLE_START"] = "SETTLE_START";
|
|
426
|
+
ETransactionType["SETTLE_INSTRUMENTS"] = "SETTLE_INSTRUMENTS";
|
|
427
|
+
ETransactionType["SETTLE_SOCIALISED_LOSS"] = "SETTLE_SOCIALISED_LOSS";
|
|
428
|
+
ETransactionType["SETTLE_END"] = "SETTLE_END";
|
|
429
|
+
ETransactionType["SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS"] = "SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS";
|
|
430
|
+
ETransactionType["SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS"] = "SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS";
|
|
431
|
+
ETransactionType["INITIALIZE_CONFIG"] = "INITIALIZE_CONFIG";
|
|
432
|
+
ETransactionType["CREATE_ACCOUNT_WITH_SUB_ACCOUNT"] = "CREATE_ACCOUNT_WITH_SUB_ACCOUNT";
|
|
433
|
+
ETransactionType["VAULT_CREATE"] = "VAULT_CREATE";
|
|
434
|
+
ETransactionType["VAULT_UPDATE"] = "VAULT_UPDATE";
|
|
435
|
+
ETransactionType["VAULT_DELIST"] = "VAULT_DELIST";
|
|
436
|
+
ETransactionType["VAULT_CLOSE"] = "VAULT_CLOSE";
|
|
437
|
+
ETransactionType["VAULT_INVEST"] = "VAULT_INVEST";
|
|
438
|
+
ETransactionType["VAULT_BURN_LP_TOKEN"] = "VAULT_BURN_LP_TOKEN";
|
|
439
|
+
ETransactionType["VAULT_REDEEM"] = "VAULT_REDEEM";
|
|
440
|
+
ETransactionType["VAULT_MANAGEMENT_FEE_TICK"] = "VAULT_MANAGEMENT_FEE_TICK";
|
|
441
|
+
ETransactionType["ADD_CURRENCY"] = "ADD_CURRENCY";
|
|
442
|
+
ETransactionType["SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO"] = "SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO";
|
|
443
|
+
})(ETransactionType || (exports.ETransactionType = ETransactionType = {}));
|
|
383
444
|
var ETransferType;
|
|
384
445
|
(function (ETransferType) {
|
|
385
446
|
// Default transfer that has nothing to do with bridging
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { EBridgeType, EBrokerTag, ECancelStatus, ECandlestickInterval, ECandlestickType,
|
|
1
|
+
import { EBridgeType, EBrokerTag, ECancelStatus, ECandlestickInterval, ECandlestickType, EEpochBadgeType, EInstrumentSettlementPeriod, EKind, EMarginType, EOrderRejectReason, EOrderStatus, EQueryMainAccountLeaderboardOrderBy, ERewardEpochStatus, ERewardProgramType, ESource, ESubAccountTradeInterval, ETimeInForce, ETimeInterval, ETransactionType, ETransferType, ETriggerBy, ETriggerType, EVaultType, EVenue } from './data.interface';
|
|
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>;
|
|
5
5
|
export declare const ECandlestickIntervalInt: Record<ECandlestickInterval, number>;
|
|
6
6
|
export declare const ECandlestickTypeInt: Record<ECandlestickType, number>;
|
|
7
|
-
export declare const ECurrencyInt: Record<ECurrency, number>;
|
|
8
7
|
export declare const EEpochBadgeTypeInt: Record<EEpochBadgeType, number>;
|
|
9
8
|
export declare const EInstrumentSettlementPeriodInt: Record<EInstrumentSettlementPeriod, number>;
|
|
10
9
|
export declare const EKindInt: Record<EKind, number>;
|
|
11
10
|
export declare const EMarginTypeInt: Record<EMarginType, number>;
|
|
12
11
|
export declare const EOrderRejectReasonInt: Record<EOrderRejectReason, number>;
|
|
13
12
|
export declare const EOrderStatusInt: Record<EOrderStatus, number>;
|
|
13
|
+
export declare const EQueryMainAccountLeaderboardOrderByInt: Record<EQueryMainAccountLeaderboardOrderBy, number>;
|
|
14
14
|
export declare const ERewardEpochStatusInt: Record<ERewardEpochStatus, number>;
|
|
15
15
|
export declare const ERewardProgramTypeInt: Record<ERewardProgramType, number>;
|
|
16
16
|
export declare const ESourceInt: Record<ESource, number>;
|
|
17
17
|
export declare const ESubAccountTradeIntervalInt: Record<ESubAccountTradeInterval, number>;
|
|
18
18
|
export declare const ETimeInForceInt: Record<ETimeInForce, number>;
|
|
19
19
|
export declare const ETimeIntervalInt: Record<ETimeInterval, number>;
|
|
20
|
+
export declare const ETransactionTypeInt: Record<ETransactionType, number>;
|
|
20
21
|
export declare const ETransferTypeInt: Record<ETransferType, number>;
|
|
21
22
|
export declare const ETriggerByInt: Record<ETriggerBy, number>;
|
|
22
23
|
export declare const ETriggerTypeInt: Record<ETriggerType, number>;
|