@grvt/client 1.4.18 → 1.4.20
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 +2 -1
- package/TDG/index.js +5 -0
- package/interfaces/codegen/data.interface.d.ts +120 -40
- package/interfaces/codegen/data.interface.js +58 -2
- package/interfaces/codegen/enum-int.d.ts +2 -2
- package/interfaces/codegen/enum-int.js +53 -44
- package/interfaces/codegen/schema-maps/api_query_vault_investor_history_response.js +3 -3
- 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_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_performance_trend.js +4 -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/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/snap_sub_account_summary.js +5 -2
- package/interfaces/codegen/schema-maps/vault_burn_lp_token_results.d.ts +2 -0
- package/interfaces/codegen/schema-maps/vault_burn_lp_token_results.js +12 -0
- package/interfaces/codegen/schema-maps/vault_investor_history.js +2 -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 IApiQueryListVaultSubAccountSummaryRequest, type IApiQueryListVaultSubAccountSummaryResponse, type IApiQuerySnapVaultPositionRequest, type IApiQuerySnapVaultPositionResponse, type IApiQueryTradingPerformanceRequest, type IApiQueryTradingPerformanceResponse, type IApiQueryTradingPerformanceTrendRequest, type IApiQueryTradingPerformanceTrendResponse, type IApiQueryVaultInvestorHistoryRequest, type IApiQueryVaultInvestorHistoryResponse, 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;
|
|
@@ -128,4 +128,5 @@ export declare class TDG {
|
|
|
128
128
|
vaultAssetExposure(payload: IApiTimedVaultAssetExposureRequest, config?: AxiosRequestConfig): Promise<IApiTimedAssetExposureResponse>;
|
|
129
129
|
snapVaultPosition(payload: IApiQuerySnapVaultPositionRequest, config?: AxiosRequestConfig): Promise<IApiQuerySnapVaultPositionResponse>;
|
|
130
130
|
vaultDetail(payload: IApiVaultDetailRequest, config?: AxiosRequestConfig): Promise<IApiVaultDetailResponse>;
|
|
131
|
+
vaultManagerInvestorHistory(payload: IApiQueryVaultManagerInvestorHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultManagerInvestorHistoryResponse>;
|
|
131
132
|
}
|
package/TDG/index.js
CHANGED
|
@@ -326,5 +326,10 @@ class TDG {
|
|
|
326
326
|
return utils_1.Utils.schemaMap(response.data, interfaces_1.API_VAULT_DETAIL_RESPONSE_MAP.LITE_TO_FULL);
|
|
327
327
|
}).catch(utils_1.Utils.coverApiError);
|
|
328
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
|
+
}
|
|
329
334
|
}
|
|
330
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",
|
|
@@ -148,7 +152,8 @@ export declare enum EOrderRejectReason {
|
|
|
148
152
|
DERISK_MUST_BE_IOC = "DERISK_MUST_BE_IOC",
|
|
149
153
|
DERISK_MUST_BE_REDUCE_ONLY = "DERISK_MUST_BE_REDUCE_ONLY",
|
|
150
154
|
DERISK_NOT_SUPPORTED = "DERISK_NOT_SUPPORTED",
|
|
151
|
-
INVALID_ORDER_TYPE = "INVALID_ORDER_TYPE"
|
|
155
|
+
INVALID_ORDER_TYPE = "INVALID_ORDER_TYPE",
|
|
156
|
+
CURRENCY_NOT_DEFINED = "CURRENCY_NOT_DEFINED"
|
|
152
157
|
}
|
|
153
158
|
export declare enum EOrderStatus {
|
|
154
159
|
PENDING = "PENDING",
|
|
@@ -197,6 +202,56 @@ export declare enum ETimeInterval {
|
|
|
197
202
|
INTERVAL_90_D = "INTERVAL_90_D",
|
|
198
203
|
INTERVAL_LIFETIME = "INTERVAL_LIFETIME"
|
|
199
204
|
}
|
|
205
|
+
export declare enum ETransactionType {
|
|
206
|
+
UNSPECIFIED_1 = "UNSPECIFIED_1",
|
|
207
|
+
UNSPECIFIED_2 = "UNSPECIFIED_2",
|
|
208
|
+
UNSPECIFIED_3 = "UNSPECIFIED_3",
|
|
209
|
+
CREATE_ACCOUNT = "CREATE_ACCOUNT",
|
|
210
|
+
CREATE_SUB_ACCOUNT = "CREATE_SUB_ACCOUNT",
|
|
211
|
+
SET_ACCOUNT_MULTI_SIG_THRESHOLD = "SET_ACCOUNT_MULTI_SIG_THRESHOLD",
|
|
212
|
+
ADD_ACCOUNT_SIGNER = "ADD_ACCOUNT_SIGNER",
|
|
213
|
+
REMOVE_ACCOUNT_SIGNER = "REMOVE_ACCOUNT_SIGNER",
|
|
214
|
+
ADD_WITHDRAWAL_ADDRESS = "ADD_WITHDRAWAL_ADDRESS",
|
|
215
|
+
REMOVE_WITHDRAWAL_ADDRESS = "REMOVE_WITHDRAWAL_ADDRESS",
|
|
216
|
+
ADD_TRANSFER_ACCOUNT = "ADD_TRANSFER_ACCOUNT",
|
|
217
|
+
REMOVE_TRANSFER_ACCOUNT = "REMOVE_TRANSFER_ACCOUNT",
|
|
218
|
+
SET_SUB_ACCOUNT_MARGIN_TYPE = "SET_SUB_ACCOUNT_MARGIN_TYPE",
|
|
219
|
+
ADD_SUB_ACCOUNT_SIGNER = "ADD_SUB_ACCOUNT_SIGNER",
|
|
220
|
+
REMOVE_SUB_ACCOUNT_SIGNER = "REMOVE_SUB_ACCOUNT_SIGNER",
|
|
221
|
+
ADD_SESSION_KEY = "ADD_SESSION_KEY",
|
|
222
|
+
REMOVE_SESSION_KEY = "REMOVE_SESSION_KEY",
|
|
223
|
+
DEPOSIT = "DEPOSIT",
|
|
224
|
+
WITHDRAWAL = "WITHDRAWAL",
|
|
225
|
+
TRANSFER = "TRANSFER",
|
|
226
|
+
MARK_PRICE_TICK = "MARK_PRICE_TICK",
|
|
227
|
+
SETTLEMENT_PRICE_TICK = "SETTLEMENT_PRICE_TICK",
|
|
228
|
+
FUNDING_TICK = "FUNDING_TICK",
|
|
229
|
+
INTEREST_RATE_TICK = "INTEREST_RATE_TICK",
|
|
230
|
+
SCHEDULE_CONFIG = "SCHEDULE_CONFIG",
|
|
231
|
+
SET_CONFIG = "SET_CONFIG",
|
|
232
|
+
TRADE = "TRADE",
|
|
233
|
+
ADD_RECOVERY_ADDRESS = "ADD_RECOVERY_ADDRESS",
|
|
234
|
+
REMOVE_RECOVERY_ADDRESS = "REMOVE_RECOVERY_ADDRESS",
|
|
235
|
+
RECOVER_ADDRESS = "RECOVER_ADDRESS",
|
|
236
|
+
SETTLE_START = "SETTLE_START",
|
|
237
|
+
SETTLE_INSTRUMENTS = "SETTLE_INSTRUMENTS",
|
|
238
|
+
SETTLE_SOCIALISED_LOSS = "SETTLE_SOCIALISED_LOSS",
|
|
239
|
+
SETTLE_END = "SETTLE_END",
|
|
240
|
+
SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS = "SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS",
|
|
241
|
+
SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS = "SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS",
|
|
242
|
+
INITIALIZE_CONFIG = "INITIALIZE_CONFIG",
|
|
243
|
+
CREATE_ACCOUNT_WITH_SUB_ACCOUNT = "CREATE_ACCOUNT_WITH_SUB_ACCOUNT",
|
|
244
|
+
VAULT_CREATE = "VAULT_CREATE",
|
|
245
|
+
VAULT_UPDATE = "VAULT_UPDATE",
|
|
246
|
+
VAULT_DELIST = "VAULT_DELIST",
|
|
247
|
+
VAULT_CLOSE = "VAULT_CLOSE",
|
|
248
|
+
VAULT_INVEST = "VAULT_INVEST",
|
|
249
|
+
VAULT_BURN_LP_TOKEN = "VAULT_BURN_LP_TOKEN",
|
|
250
|
+
VAULT_REDEEM = "VAULT_REDEEM",
|
|
251
|
+
VAULT_MANAGEMENT_FEE_TICK = "VAULT_MANAGEMENT_FEE_TICK",
|
|
252
|
+
ADD_CURRENCY = "ADD_CURRENCY",
|
|
253
|
+
SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO = "SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO"
|
|
254
|
+
}
|
|
200
255
|
export declare enum ETransferType {
|
|
201
256
|
UNSPECIFIED = "UNSPECIFIED",
|
|
202
257
|
STANDARD = "STANDARD",
|
|
@@ -246,8 +301,8 @@ export interface IApiAggregatedAccountSummaryResponse {
|
|
|
246
301
|
export interface IApiCancelAllOrdersRequest {
|
|
247
302
|
sub_account_id?: string;
|
|
248
303
|
kind?: EKind[];
|
|
249
|
-
base?:
|
|
250
|
-
quote?:
|
|
304
|
+
base?: string[];
|
|
305
|
+
quote?: string[];
|
|
251
306
|
}
|
|
252
307
|
export interface IApiCancelAllOrdersResponse {
|
|
253
308
|
result?: number;
|
|
@@ -304,7 +359,7 @@ export interface IApiDedustPositionResponse {
|
|
|
304
359
|
result?: IOrder;
|
|
305
360
|
}
|
|
306
361
|
export interface IApiDepositHistoryRequest {
|
|
307
|
-
currency?:
|
|
362
|
+
currency?: string[];
|
|
308
363
|
start_time?: string;
|
|
309
364
|
end_time?: string;
|
|
310
365
|
limit?: number;
|
|
@@ -324,8 +379,8 @@ export interface IApiDropClientWsResponse {
|
|
|
324
379
|
export interface IApiFillHistoryRequest {
|
|
325
380
|
sub_account_id?: string;
|
|
326
381
|
kind?: EKind[];
|
|
327
|
-
base?:
|
|
328
|
-
quote?:
|
|
382
|
+
base?: string[];
|
|
383
|
+
quote?: string[];
|
|
329
384
|
start_time?: string;
|
|
330
385
|
end_time?: string;
|
|
331
386
|
limit?: number;
|
|
@@ -432,7 +487,7 @@ export interface IApiGetInstrumentResponse {
|
|
|
432
487
|
}
|
|
433
488
|
export interface IApiGetLPInfoRequest {
|
|
434
489
|
kind?: EKind;
|
|
435
|
-
base?:
|
|
490
|
+
base?: string;
|
|
436
491
|
}
|
|
437
492
|
export interface IApiGetLPInfoResponse {
|
|
438
493
|
is_lp_maker?: boolean;
|
|
@@ -448,7 +503,7 @@ export interface IApiGetLPLeaderboardRequest {
|
|
|
448
503
|
epoch?: number;
|
|
449
504
|
limit?: number;
|
|
450
505
|
kind?: EKind;
|
|
451
|
-
base?:
|
|
506
|
+
base?: string;
|
|
452
507
|
}
|
|
453
508
|
export interface IApiGetLPLeaderboardResponse {
|
|
454
509
|
points?: IApproximateLPPoint[];
|
|
@@ -456,7 +511,7 @@ export interface IApiGetLPLeaderboardResponse {
|
|
|
456
511
|
export interface IApiGetLPPointRequest {
|
|
457
512
|
epoch?: number;
|
|
458
513
|
kind?: EKind;
|
|
459
|
-
base?:
|
|
514
|
+
base?: string;
|
|
460
515
|
}
|
|
461
516
|
export interface IApiGetLPPointResponse {
|
|
462
517
|
point?: ILPPoint;
|
|
@@ -464,7 +519,7 @@ export interface IApiGetLPPointResponse {
|
|
|
464
519
|
}
|
|
465
520
|
export interface IApiGetLatestLPSnapshotRequest {
|
|
466
521
|
kind?: EKind;
|
|
467
|
-
base?:
|
|
522
|
+
base?: string;
|
|
468
523
|
}
|
|
469
524
|
export interface IApiGetLatestLPSnapshotResponse {
|
|
470
525
|
snapshot?: IApproximateLPSnapshot;
|
|
@@ -538,8 +593,8 @@ export interface IApiMiniTickerResponse {
|
|
|
538
593
|
export interface IApiOpenOrdersRequest {
|
|
539
594
|
sub_account_id?: string;
|
|
540
595
|
kind?: EKind[];
|
|
541
|
-
base?:
|
|
542
|
-
quote?:
|
|
596
|
+
base?: string[];
|
|
597
|
+
quote?: string[];
|
|
543
598
|
}
|
|
544
599
|
export interface IApiOpenOrdersResponse {
|
|
545
600
|
result?: IOrder[];
|
|
@@ -547,8 +602,8 @@ export interface IApiOpenOrdersResponse {
|
|
|
547
602
|
export interface IApiOrderHistoryRequest {
|
|
548
603
|
sub_account_id?: string;
|
|
549
604
|
kind?: EKind[];
|
|
550
|
-
base?:
|
|
551
|
-
quote?:
|
|
605
|
+
base?: string[];
|
|
606
|
+
quote?: string[];
|
|
552
607
|
start_time?: string;
|
|
553
608
|
end_time?: string;
|
|
554
609
|
limit?: number;
|
|
@@ -576,19 +631,19 @@ export interface IApiOrderbookLevelsResponse {
|
|
|
576
631
|
export interface IApiPositionsRequest {
|
|
577
632
|
sub_account_id?: string;
|
|
578
633
|
kind?: EKind[];
|
|
579
|
-
base?:
|
|
580
|
-
quote?:
|
|
634
|
+
base?: string[];
|
|
635
|
+
quote?: string[];
|
|
581
636
|
}
|
|
582
637
|
export interface IApiPositionsResponse {
|
|
583
638
|
result?: IPositions[];
|
|
584
639
|
}
|
|
585
640
|
export interface IApiPreDepositCheckRequest {
|
|
586
|
-
currency?:
|
|
641
|
+
currency?: string;
|
|
587
642
|
bridge?: EBridgeType;
|
|
588
643
|
}
|
|
589
644
|
export interface IApiPreDepositCheckResponse {
|
|
590
645
|
max_deposit_limit?: string;
|
|
591
|
-
currency?:
|
|
646
|
+
currency?: string;
|
|
592
647
|
}
|
|
593
648
|
export interface IApiPreOrderCheckRequest {
|
|
594
649
|
sub_account_id?: string;
|
|
@@ -660,7 +715,14 @@ export interface IApiQueryVaultInvestorHistoryRequest {
|
|
|
660
715
|
vault_id?: string;
|
|
661
716
|
}
|
|
662
717
|
export interface IApiQueryVaultInvestorHistoryResponse {
|
|
663
|
-
result?:
|
|
718
|
+
result?: IApiVaultInvestorHistory[];
|
|
719
|
+
}
|
|
720
|
+
export interface IApiQueryVaultManagerInvestorHistoryRequest {
|
|
721
|
+
vault_id?: string;
|
|
722
|
+
only_own_investments?: boolean;
|
|
723
|
+
}
|
|
724
|
+
export interface IApiQueryVaultManagerInvestorHistoryResponse {
|
|
725
|
+
result?: IApiVaultInvestorHistory[];
|
|
664
726
|
}
|
|
665
727
|
export interface IApiQueryVaultPerformanceRequest {
|
|
666
728
|
vault_id?: string;
|
|
@@ -826,7 +888,7 @@ export interface IApiTransferAck {
|
|
|
826
888
|
tx_id?: string;
|
|
827
889
|
}
|
|
828
890
|
export interface IApiTransferHistoryRequest {
|
|
829
|
-
currency?:
|
|
891
|
+
currency?: string[];
|
|
830
892
|
start_time?: string;
|
|
831
893
|
end_time?: string;
|
|
832
894
|
limit?: number;
|
|
@@ -843,7 +905,7 @@ export interface IApiTransferRequest {
|
|
|
843
905
|
from_sub_account_id?: string;
|
|
844
906
|
to_account_id?: string;
|
|
845
907
|
to_sub_account_id?: string;
|
|
846
|
-
currency?:
|
|
908
|
+
currency?: string;
|
|
847
909
|
num_tokens?: string;
|
|
848
910
|
signature?: ISignature;
|
|
849
911
|
transfer_type?: ETransferType;
|
|
@@ -869,7 +931,7 @@ export interface IApiValidateVaultAccountResponse {
|
|
|
869
931
|
export interface IApiVaultBurnTokensRequest {
|
|
870
932
|
main_account_id?: string;
|
|
871
933
|
vault_id?: string;
|
|
872
|
-
currency?:
|
|
934
|
+
currency?: string;
|
|
873
935
|
num_tokens?: string;
|
|
874
936
|
signature?: ISignature;
|
|
875
937
|
}
|
|
@@ -887,10 +949,20 @@ export interface IApiVaultDetailResponse {
|
|
|
887
949
|
export interface IApiVaultInvestRequest {
|
|
888
950
|
main_account_id?: string;
|
|
889
951
|
vault_id?: string;
|
|
890
|
-
currency?:
|
|
952
|
+
currency?: string;
|
|
891
953
|
num_tokens?: string;
|
|
892
954
|
signature?: ISignature;
|
|
893
955
|
}
|
|
956
|
+
export interface IApiVaultInvestorHistory {
|
|
957
|
+
event_time?: string;
|
|
958
|
+
funding_address?: string;
|
|
959
|
+
vault_id?: string;
|
|
960
|
+
type?: ETransactionType;
|
|
961
|
+
price?: string;
|
|
962
|
+
size?: string;
|
|
963
|
+
realized_pnl?: string;
|
|
964
|
+
performance_fee?: string;
|
|
965
|
+
}
|
|
894
966
|
export interface IApiVaultInvestorSummaryRequest {
|
|
895
967
|
main_account_id?: string;
|
|
896
968
|
vault_id?: string;
|
|
@@ -902,6 +974,7 @@ export interface IApiVaultPerformanceTrend {
|
|
|
902
974
|
start_interval?: string;
|
|
903
975
|
end_interval?: string;
|
|
904
976
|
trading_volume?: string;
|
|
977
|
+
realized_pnl?: string;
|
|
905
978
|
}
|
|
906
979
|
export interface IApiVaultRedeemCancelRequest {
|
|
907
980
|
main_account_id?: string;
|
|
@@ -910,7 +983,7 @@ export interface IApiVaultRedeemCancelRequest {
|
|
|
910
983
|
export interface IApiVaultRedeemRequest {
|
|
911
984
|
main_account_id?: string;
|
|
912
985
|
vault_id?: string;
|
|
913
|
-
currency?:
|
|
986
|
+
currency?: string;
|
|
914
987
|
num_tokens?: string;
|
|
915
988
|
signature?: ISignature;
|
|
916
989
|
}
|
|
@@ -933,7 +1006,7 @@ export interface IApiVaultViewRedemptionQueueResponse {
|
|
|
933
1006
|
redemption_queue?: IVaultRedemptionReqView[];
|
|
934
1007
|
}
|
|
935
1008
|
export interface IApiWithdrawalHistoryRequest {
|
|
936
|
-
currency?:
|
|
1009
|
+
currency?: string[];
|
|
937
1010
|
start_time?: string;
|
|
938
1011
|
end_time?: string;
|
|
939
1012
|
limit?: number;
|
|
@@ -947,7 +1020,7 @@ export interface IApiWithdrawalHistoryResponse {
|
|
|
947
1020
|
export interface IApiWithdrawalRequest {
|
|
948
1021
|
from_account_id?: string;
|
|
949
1022
|
to_eth_address?: string;
|
|
950
|
-
currency?:
|
|
1023
|
+
currency?: string;
|
|
951
1024
|
num_tokens?: string;
|
|
952
1025
|
signature?: ISignature;
|
|
953
1026
|
}
|
|
@@ -1009,14 +1082,14 @@ export interface IClientOrderIDsByGroup {
|
|
|
1009
1082
|
export interface IDeposit {
|
|
1010
1083
|
tx_hash?: string;
|
|
1011
1084
|
to_account_id?: string;
|
|
1012
|
-
currency?:
|
|
1085
|
+
currency?: string;
|
|
1013
1086
|
num_tokens?: string;
|
|
1014
1087
|
}
|
|
1015
1088
|
export interface IDepositHistory {
|
|
1016
1089
|
l_1_hash?: string;
|
|
1017
1090
|
l_2_hash?: string;
|
|
1018
1091
|
to_account_id?: string;
|
|
1019
|
-
currency?:
|
|
1092
|
+
currency?: string;
|
|
1020
1093
|
num_tokens?: string;
|
|
1021
1094
|
initiated_time?: string;
|
|
1022
1095
|
confirmed_time?: string;
|
|
@@ -1136,7 +1209,7 @@ export interface IFundingPayment {
|
|
|
1136
1209
|
event_time?: string;
|
|
1137
1210
|
sub_account_id?: string;
|
|
1138
1211
|
instrument?: string;
|
|
1139
|
-
currency?:
|
|
1212
|
+
currency?: string;
|
|
1140
1213
|
amount?: string;
|
|
1141
1214
|
tx_id?: string;
|
|
1142
1215
|
}
|
|
@@ -1161,8 +1234,8 @@ export interface IInitialLeverageResult {
|
|
|
1161
1234
|
export interface IInstrument {
|
|
1162
1235
|
instrument?: string;
|
|
1163
1236
|
instrument_hash?: string;
|
|
1164
|
-
base?:
|
|
1165
|
-
quote?:
|
|
1237
|
+
base?: string;
|
|
1238
|
+
quote?: string;
|
|
1166
1239
|
kind?: EKind;
|
|
1167
1240
|
expiry?: string;
|
|
1168
1241
|
strike_price?: string;
|
|
@@ -1320,7 +1393,7 @@ export interface IPreOrderCheckResult {
|
|
|
1320
1393
|
margin_required?: string;
|
|
1321
1394
|
order_valid?: boolean;
|
|
1322
1395
|
reason?: string;
|
|
1323
|
-
settle_currency?:
|
|
1396
|
+
settle_currency?: string;
|
|
1324
1397
|
}
|
|
1325
1398
|
export interface IQueryAccountSummaryRequest {
|
|
1326
1399
|
time_interval?: ETimeInterval;
|
|
@@ -1390,6 +1463,9 @@ export interface IQueryVaultInvestorHistoryRequest {
|
|
|
1390
1463
|
main_account_id?: string;
|
|
1391
1464
|
vault_id?: string;
|
|
1392
1465
|
}
|
|
1466
|
+
export interface IQueryVaultInvestorHistoryResponse {
|
|
1467
|
+
result?: IVaultInvestorHistory[];
|
|
1468
|
+
}
|
|
1393
1469
|
export interface IQueryVaultSummaryHistoryRequest {
|
|
1394
1470
|
vault_id?: string;
|
|
1395
1471
|
start_time?: string;
|
|
@@ -1440,6 +1516,7 @@ export interface ISnapSubAccountSummary {
|
|
|
1440
1516
|
positions?: IPositionSummary[];
|
|
1441
1517
|
is_vault?: boolean;
|
|
1442
1518
|
vault_im_additions?: string;
|
|
1519
|
+
spot_balances?: ISpotBalance[];
|
|
1443
1520
|
}
|
|
1444
1521
|
export interface ISnapVaultSummary {
|
|
1445
1522
|
event_time?: string;
|
|
@@ -1450,7 +1527,7 @@ export interface ISnapVaultSummary {
|
|
|
1450
1527
|
share_price?: string;
|
|
1451
1528
|
}
|
|
1452
1529
|
export interface ISpotBalance {
|
|
1453
|
-
currency?:
|
|
1530
|
+
currency?: string;
|
|
1454
1531
|
balance?: string;
|
|
1455
1532
|
index_price?: string;
|
|
1456
1533
|
}
|
|
@@ -1462,7 +1539,7 @@ export interface ISubAccount {
|
|
|
1462
1539
|
event_time?: string;
|
|
1463
1540
|
sub_account_id?: string;
|
|
1464
1541
|
margin_type?: EMarginType;
|
|
1465
|
-
settle_currency?:
|
|
1542
|
+
settle_currency?: string;
|
|
1466
1543
|
unrealized_pnl?: string;
|
|
1467
1544
|
total_equity?: string;
|
|
1468
1545
|
initial_margin?: string;
|
|
@@ -1558,7 +1635,7 @@ export interface ITransferHistory {
|
|
|
1558
1635
|
from_sub_account_id?: string;
|
|
1559
1636
|
to_account_id?: string;
|
|
1560
1637
|
to_sub_account_id?: string;
|
|
1561
|
-
currency?:
|
|
1638
|
+
currency?: string;
|
|
1562
1639
|
num_tokens?: string;
|
|
1563
1640
|
signature?: ISignature;
|
|
1564
1641
|
event_time?: string;
|
|
@@ -1598,6 +1675,9 @@ export interface IUserVaultCategoryEventPayLoad {
|
|
|
1598
1675
|
action?: string;
|
|
1599
1676
|
num_bumps?: string;
|
|
1600
1677
|
}
|
|
1678
|
+
export interface IVaultBurnLpTokenResults {
|
|
1679
|
+
vault_share_price?: string;
|
|
1680
|
+
}
|
|
1601
1681
|
export interface IVaultInvestResults {
|
|
1602
1682
|
token_index_price?: string;
|
|
1603
1683
|
vault_total_equity?: string;
|
|
@@ -1608,7 +1688,7 @@ export interface IVaultInvestorHistory {
|
|
|
1608
1688
|
event_time?: string;
|
|
1609
1689
|
main_account_id?: string;
|
|
1610
1690
|
vault_id?: string;
|
|
1611
|
-
|
|
1691
|
+
type?: ETransactionType;
|
|
1612
1692
|
price?: string;
|
|
1613
1693
|
size?: string;
|
|
1614
1694
|
realized_pnl?: string;
|
|
@@ -1648,7 +1728,7 @@ export interface IVaultRedeemResults {
|
|
|
1648
1728
|
token_index_price?: string;
|
|
1649
1729
|
vault_total_equity?: string;
|
|
1650
1730
|
vault_share_price?: string;
|
|
1651
|
-
currency?:
|
|
1731
|
+
currency?: string;
|
|
1652
1732
|
num_tokens?: string;
|
|
1653
1733
|
avg_entry_price?: string;
|
|
1654
1734
|
fees_charged?: string;
|
|
@@ -1662,7 +1742,7 @@ export interface IVaultRedemption {
|
|
|
1662
1742
|
}
|
|
1663
1743
|
export interface IVaultRedemptionReqView {
|
|
1664
1744
|
request_time?: string;
|
|
1665
|
-
currency?:
|
|
1745
|
+
currency?: string;
|
|
1666
1746
|
num_lp_tokens?: string;
|
|
1667
1747
|
max_redemption_period_timestamp?: string;
|
|
1668
1748
|
}
|
|
@@ -1869,7 +1949,7 @@ export interface IWSWithdrawalFeedSelectorV1 {
|
|
|
1869
1949
|
export interface IWithdrawal {
|
|
1870
1950
|
from_account_id?: string;
|
|
1871
1951
|
to_eth_address?: string;
|
|
1872
|
-
currency?:
|
|
1952
|
+
currency?: string;
|
|
1873
1953
|
num_tokens?: string;
|
|
1874
1954
|
signature?: ISignature;
|
|
1875
1955
|
}
|
|
@@ -1877,7 +1957,7 @@ export interface IWithdrawalHistory {
|
|
|
1877
1957
|
tx_id?: string;
|
|
1878
1958
|
from_account_id?: string;
|
|
1879
1959
|
to_eth_address?: string;
|
|
1880
|
-
currency?:
|
|
1960
|
+
currency?: string;
|
|
1881
1961
|
num_tokens?: string;
|
|
1882
1962
|
signature?: ISignature;
|
|
1883
1963
|
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.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;
|
|
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
|
|
@@ -295,6 +298,8 @@ var EOrderRejectReason;
|
|
|
295
298
|
EOrderRejectReason["DERISK_NOT_SUPPORTED"] = "DERISK_NOT_SUPPORTED";
|
|
296
299
|
// the order type is invalid
|
|
297
300
|
EOrderRejectReason["INVALID_ORDER_TYPE"] = "INVALID_ORDER_TYPE";
|
|
301
|
+
// the currency is not defined
|
|
302
|
+
EOrderRejectReason["CURRENCY_NOT_DEFINED"] = "CURRENCY_NOT_DEFINED";
|
|
298
303
|
})(EOrderRejectReason || (exports.EOrderRejectReason = EOrderRejectReason = {}));
|
|
299
304
|
var EOrderStatus;
|
|
300
305
|
(function (EOrderStatus) {
|
|
@@ -387,6 +392,57 @@ var ETimeInterval;
|
|
|
387
392
|
// Lifetime
|
|
388
393
|
ETimeInterval["INTERVAL_LIFETIME"] = "INTERVAL_LIFETIME";
|
|
389
394
|
})(ETimeInterval || (exports.ETimeInterval = ETimeInterval = {}));
|
|
395
|
+
var ETransactionType;
|
|
396
|
+
(function (ETransactionType) {
|
|
397
|
+
ETransactionType["UNSPECIFIED_1"] = "UNSPECIFIED_1";
|
|
398
|
+
ETransactionType["UNSPECIFIED_2"] = "UNSPECIFIED_2";
|
|
399
|
+
ETransactionType["UNSPECIFIED_3"] = "UNSPECIFIED_3";
|
|
400
|
+
ETransactionType["CREATE_ACCOUNT"] = "CREATE_ACCOUNT";
|
|
401
|
+
ETransactionType["CREATE_SUB_ACCOUNT"] = "CREATE_SUB_ACCOUNT";
|
|
402
|
+
ETransactionType["SET_ACCOUNT_MULTI_SIG_THRESHOLD"] = "SET_ACCOUNT_MULTI_SIG_THRESHOLD";
|
|
403
|
+
ETransactionType["ADD_ACCOUNT_SIGNER"] = "ADD_ACCOUNT_SIGNER";
|
|
404
|
+
ETransactionType["REMOVE_ACCOUNT_SIGNER"] = "REMOVE_ACCOUNT_SIGNER";
|
|
405
|
+
ETransactionType["ADD_WITHDRAWAL_ADDRESS"] = "ADD_WITHDRAWAL_ADDRESS";
|
|
406
|
+
ETransactionType["REMOVE_WITHDRAWAL_ADDRESS"] = "REMOVE_WITHDRAWAL_ADDRESS";
|
|
407
|
+
ETransactionType["ADD_TRANSFER_ACCOUNT"] = "ADD_TRANSFER_ACCOUNT";
|
|
408
|
+
ETransactionType["REMOVE_TRANSFER_ACCOUNT"] = "REMOVE_TRANSFER_ACCOUNT";
|
|
409
|
+
ETransactionType["SET_SUB_ACCOUNT_MARGIN_TYPE"] = "SET_SUB_ACCOUNT_MARGIN_TYPE";
|
|
410
|
+
ETransactionType["ADD_SUB_ACCOUNT_SIGNER"] = "ADD_SUB_ACCOUNT_SIGNER";
|
|
411
|
+
ETransactionType["REMOVE_SUB_ACCOUNT_SIGNER"] = "REMOVE_SUB_ACCOUNT_SIGNER";
|
|
412
|
+
ETransactionType["ADD_SESSION_KEY"] = "ADD_SESSION_KEY";
|
|
413
|
+
ETransactionType["REMOVE_SESSION_KEY"] = "REMOVE_SESSION_KEY";
|
|
414
|
+
ETransactionType["DEPOSIT"] = "DEPOSIT";
|
|
415
|
+
ETransactionType["WITHDRAWAL"] = "WITHDRAWAL";
|
|
416
|
+
ETransactionType["TRANSFER"] = "TRANSFER";
|
|
417
|
+
ETransactionType["MARK_PRICE_TICK"] = "MARK_PRICE_TICK";
|
|
418
|
+
ETransactionType["SETTLEMENT_PRICE_TICK"] = "SETTLEMENT_PRICE_TICK";
|
|
419
|
+
ETransactionType["FUNDING_TICK"] = "FUNDING_TICK";
|
|
420
|
+
ETransactionType["INTEREST_RATE_TICK"] = "INTEREST_RATE_TICK";
|
|
421
|
+
ETransactionType["SCHEDULE_CONFIG"] = "SCHEDULE_CONFIG";
|
|
422
|
+
ETransactionType["SET_CONFIG"] = "SET_CONFIG";
|
|
423
|
+
ETransactionType["TRADE"] = "TRADE";
|
|
424
|
+
ETransactionType["ADD_RECOVERY_ADDRESS"] = "ADD_RECOVERY_ADDRESS";
|
|
425
|
+
ETransactionType["REMOVE_RECOVERY_ADDRESS"] = "REMOVE_RECOVERY_ADDRESS";
|
|
426
|
+
ETransactionType["RECOVER_ADDRESS"] = "RECOVER_ADDRESS";
|
|
427
|
+
ETransactionType["SETTLE_START"] = "SETTLE_START";
|
|
428
|
+
ETransactionType["SETTLE_INSTRUMENTS"] = "SETTLE_INSTRUMENTS";
|
|
429
|
+
ETransactionType["SETTLE_SOCIALISED_LOSS"] = "SETTLE_SOCIALISED_LOSS";
|
|
430
|
+
ETransactionType["SETTLE_END"] = "SETTLE_END";
|
|
431
|
+
ETransactionType["SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS"] = "SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS";
|
|
432
|
+
ETransactionType["SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS"] = "SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS";
|
|
433
|
+
ETransactionType["INITIALIZE_CONFIG"] = "INITIALIZE_CONFIG";
|
|
434
|
+
ETransactionType["CREATE_ACCOUNT_WITH_SUB_ACCOUNT"] = "CREATE_ACCOUNT_WITH_SUB_ACCOUNT";
|
|
435
|
+
ETransactionType["VAULT_CREATE"] = "VAULT_CREATE";
|
|
436
|
+
ETransactionType["VAULT_UPDATE"] = "VAULT_UPDATE";
|
|
437
|
+
ETransactionType["VAULT_DELIST"] = "VAULT_DELIST";
|
|
438
|
+
ETransactionType["VAULT_CLOSE"] = "VAULT_CLOSE";
|
|
439
|
+
ETransactionType["VAULT_INVEST"] = "VAULT_INVEST";
|
|
440
|
+
ETransactionType["VAULT_BURN_LP_TOKEN"] = "VAULT_BURN_LP_TOKEN";
|
|
441
|
+
ETransactionType["VAULT_REDEEM"] = "VAULT_REDEEM";
|
|
442
|
+
ETransactionType["VAULT_MANAGEMENT_FEE_TICK"] = "VAULT_MANAGEMENT_FEE_TICK";
|
|
443
|
+
ETransactionType["ADD_CURRENCY"] = "ADD_CURRENCY";
|
|
444
|
+
ETransactionType["SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO"] = "SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO";
|
|
445
|
+
})(ETransactionType || (exports.ETransactionType = ETransactionType = {}));
|
|
390
446
|
var ETransferType;
|
|
391
447
|
(function (ETransferType) {
|
|
392
448
|
// Default transfer that has nothing to do with bridging
|
|
@@ -1,10 +1,9 @@
|
|
|
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>;
|
|
@@ -18,6 +17,7 @@ export declare const ESourceInt: Record<ESource, number>;
|
|
|
18
17
|
export declare const ESubAccountTradeIntervalInt: Record<ESubAccountTradeInterval, number>;
|
|
19
18
|
export declare const ETimeInForceInt: Record<ETimeInForce, number>;
|
|
20
19
|
export declare const ETimeIntervalInt: Record<ETimeInterval, number>;
|
|
20
|
+
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>;
|
|
@@ -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.EQueryMainAccountLeaderboardOrderByInt = 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,
|
|
@@ -152,7 +110,8 @@ exports.EOrderRejectReasonInt = Object.freeze({
|
|
|
152
110
|
[data_interface_1.EOrderRejectReason.DERISK_MUST_BE_IOC]: 33,
|
|
153
111
|
[data_interface_1.EOrderRejectReason.DERISK_MUST_BE_REDUCE_ONLY]: 34,
|
|
154
112
|
[data_interface_1.EOrderRejectReason.DERISK_NOT_SUPPORTED]: 35,
|
|
155
|
-
[data_interface_1.EOrderRejectReason.INVALID_ORDER_TYPE]: 36
|
|
113
|
+
[data_interface_1.EOrderRejectReason.INVALID_ORDER_TYPE]: 36,
|
|
114
|
+
[data_interface_1.EOrderRejectReason.CURRENCY_NOT_DEFINED]: 37
|
|
156
115
|
});
|
|
157
116
|
exports.EOrderStatusInt = Object.freeze({
|
|
158
117
|
[data_interface_1.EOrderStatus.PENDING]: 1,
|
|
@@ -201,6 +160,56 @@ exports.ETimeIntervalInt = Object.freeze({
|
|
|
201
160
|
[data_interface_1.ETimeInterval.INTERVAL_90_D]: 4,
|
|
202
161
|
[data_interface_1.ETimeInterval.INTERVAL_LIFETIME]: 5
|
|
203
162
|
});
|
|
163
|
+
exports.ETransactionTypeInt = Object.freeze({
|
|
164
|
+
[data_interface_1.ETransactionType.UNSPECIFIED_1]: 1,
|
|
165
|
+
[data_interface_1.ETransactionType.UNSPECIFIED_2]: 2,
|
|
166
|
+
[data_interface_1.ETransactionType.UNSPECIFIED_3]: 3,
|
|
167
|
+
[data_interface_1.ETransactionType.CREATE_ACCOUNT]: 4,
|
|
168
|
+
[data_interface_1.ETransactionType.CREATE_SUB_ACCOUNT]: 5,
|
|
169
|
+
[data_interface_1.ETransactionType.SET_ACCOUNT_MULTI_SIG_THRESHOLD]: 6,
|
|
170
|
+
[data_interface_1.ETransactionType.ADD_ACCOUNT_SIGNER]: 7,
|
|
171
|
+
[data_interface_1.ETransactionType.REMOVE_ACCOUNT_SIGNER]: 8,
|
|
172
|
+
[data_interface_1.ETransactionType.ADD_WITHDRAWAL_ADDRESS]: 9,
|
|
173
|
+
[data_interface_1.ETransactionType.REMOVE_WITHDRAWAL_ADDRESS]: 10,
|
|
174
|
+
[data_interface_1.ETransactionType.ADD_TRANSFER_ACCOUNT]: 11,
|
|
175
|
+
[data_interface_1.ETransactionType.REMOVE_TRANSFER_ACCOUNT]: 12,
|
|
176
|
+
[data_interface_1.ETransactionType.SET_SUB_ACCOUNT_MARGIN_TYPE]: 13,
|
|
177
|
+
[data_interface_1.ETransactionType.ADD_SUB_ACCOUNT_SIGNER]: 14,
|
|
178
|
+
[data_interface_1.ETransactionType.REMOVE_SUB_ACCOUNT_SIGNER]: 15,
|
|
179
|
+
[data_interface_1.ETransactionType.ADD_SESSION_KEY]: 16,
|
|
180
|
+
[data_interface_1.ETransactionType.REMOVE_SESSION_KEY]: 17,
|
|
181
|
+
[data_interface_1.ETransactionType.DEPOSIT]: 18,
|
|
182
|
+
[data_interface_1.ETransactionType.WITHDRAWAL]: 19,
|
|
183
|
+
[data_interface_1.ETransactionType.TRANSFER]: 20,
|
|
184
|
+
[data_interface_1.ETransactionType.MARK_PRICE_TICK]: 21,
|
|
185
|
+
[data_interface_1.ETransactionType.SETTLEMENT_PRICE_TICK]: 22,
|
|
186
|
+
[data_interface_1.ETransactionType.FUNDING_TICK]: 23,
|
|
187
|
+
[data_interface_1.ETransactionType.INTEREST_RATE_TICK]: 24,
|
|
188
|
+
[data_interface_1.ETransactionType.SCHEDULE_CONFIG]: 25,
|
|
189
|
+
[data_interface_1.ETransactionType.SET_CONFIG]: 26,
|
|
190
|
+
[data_interface_1.ETransactionType.TRADE]: 27,
|
|
191
|
+
[data_interface_1.ETransactionType.ADD_RECOVERY_ADDRESS]: 28,
|
|
192
|
+
[data_interface_1.ETransactionType.REMOVE_RECOVERY_ADDRESS]: 29,
|
|
193
|
+
[data_interface_1.ETransactionType.RECOVER_ADDRESS]: 30,
|
|
194
|
+
[data_interface_1.ETransactionType.SETTLE_START]: 31,
|
|
195
|
+
[data_interface_1.ETransactionType.SETTLE_INSTRUMENTS]: 32,
|
|
196
|
+
[data_interface_1.ETransactionType.SETTLE_SOCIALISED_LOSS]: 33,
|
|
197
|
+
[data_interface_1.ETransactionType.SETTLE_END]: 34,
|
|
198
|
+
[data_interface_1.ETransactionType.SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS]: 35,
|
|
199
|
+
[data_interface_1.ETransactionType.SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS]: 36,
|
|
200
|
+
[data_interface_1.ETransactionType.INITIALIZE_CONFIG]: 37,
|
|
201
|
+
[data_interface_1.ETransactionType.CREATE_ACCOUNT_WITH_SUB_ACCOUNT]: 38,
|
|
202
|
+
[data_interface_1.ETransactionType.VAULT_CREATE]: 39,
|
|
203
|
+
[data_interface_1.ETransactionType.VAULT_UPDATE]: 40,
|
|
204
|
+
[data_interface_1.ETransactionType.VAULT_DELIST]: 41,
|
|
205
|
+
[data_interface_1.ETransactionType.VAULT_CLOSE]: 42,
|
|
206
|
+
[data_interface_1.ETransactionType.VAULT_INVEST]: 43,
|
|
207
|
+
[data_interface_1.ETransactionType.VAULT_BURN_LP_TOKEN]: 44,
|
|
208
|
+
[data_interface_1.ETransactionType.VAULT_REDEEM]: 45,
|
|
209
|
+
[data_interface_1.ETransactionType.VAULT_MANAGEMENT_FEE_TICK]: 46,
|
|
210
|
+
[data_interface_1.ETransactionType.ADD_CURRENCY]: 47,
|
|
211
|
+
[data_interface_1.ETransactionType.SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO]: 48
|
|
212
|
+
});
|
|
204
213
|
exports.ETransferTypeInt = Object.freeze({
|
|
205
214
|
[data_interface_1.ETransferType.UNSPECIFIED]: 0,
|
|
206
215
|
[data_interface_1.ETransferType.STANDARD]: 1,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.API_QUERY_VAULT_INVESTOR_HISTORY_RESPONSE_MAP = void 0;
|
|
4
|
-
const
|
|
4
|
+
const api_vault_investor_history_1 = require("./api_vault_investor_history");
|
|
5
5
|
// Schema map for the 'API_QUERY_VAULT_INVESTOR_HISTORY_RESPONSE' struct.
|
|
6
6
|
exports.API_QUERY_VAULT_INVESTOR_HISTORY_RESPONSE_MAP = Object.freeze({
|
|
7
7
|
FULL_TO_LITE: {
|
|
8
|
-
result: ['r', [
|
|
8
|
+
result: ['r', [api_vault_investor_history_1.API_VAULT_INVESTOR_HISTORY_MAP.FULL_TO_LITE]]
|
|
9
9
|
},
|
|
10
10
|
LITE_TO_FULL: {
|
|
11
|
-
r: ['result', [
|
|
11
|
+
r: ['result', [api_vault_investor_history_1.API_VAULT_INVESTOR_HISTORY_MAP.LITE_TO_FULL]]
|
|
12
12
|
}
|
|
13
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,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
|
+
});
|
|
@@ -6,11 +6,13 @@ exports.API_VAULT_PERFORMANCE_TREND_MAP = Object.freeze({
|
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
start_interval: 'si',
|
|
8
8
|
end_interval: 'ei',
|
|
9
|
-
trading_volume: 'tv'
|
|
9
|
+
trading_volume: 'tv',
|
|
10
|
+
realized_pnl: 'rp'
|
|
10
11
|
},
|
|
11
12
|
LITE_TO_FULL: {
|
|
12
13
|
si: 'start_interval',
|
|
13
14
|
ei: 'end_interval',
|
|
14
|
-
tv: 'trading_volume'
|
|
15
|
+
tv: 'trading_volume',
|
|
16
|
+
rp: 'realized_pnl'
|
|
15
17
|
}
|
|
16
18
|
});
|
|
@@ -104,6 +104,8 @@ export * from './api_query_trading_performance_trend_request';
|
|
|
104
104
|
export * from './api_query_trading_performance_trend_response';
|
|
105
105
|
export * from './api_query_vault_investor_history_request';
|
|
106
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';
|
|
107
109
|
export * from './api_query_vault_performance_request';
|
|
108
110
|
export * from './api_query_vault_performance_response';
|
|
109
111
|
export * from './api_query_vault_performance_trend_request';
|
|
@@ -152,6 +154,7 @@ export * from './api_vault_burn_tokens_request';
|
|
|
152
154
|
export * from './api_vault_detail_request';
|
|
153
155
|
export * from './api_vault_detail_response';
|
|
154
156
|
export * from './api_vault_invest_request';
|
|
157
|
+
export * from './api_vault_investor_history';
|
|
155
158
|
export * from './api_vault_investor_summary_request';
|
|
156
159
|
export * from './api_vault_investor_summary_response';
|
|
157
160
|
export * from './api_vault_performance_trend';
|
|
@@ -227,6 +230,7 @@ export * from './query_main_account_leaderboard_response';
|
|
|
227
230
|
export * from './query_trading_performance_trend_request';
|
|
228
231
|
export * from './query_trading_performance_trend_response';
|
|
229
232
|
export * from './query_vault_investor_history_request';
|
|
233
|
+
export * from './query_vault_investor_history_response';
|
|
230
234
|
export * from './query_vault_summary_history_request';
|
|
231
235
|
export * from './query_vault_summary_history_response';
|
|
232
236
|
export * from './reward_epoch_info';
|
|
@@ -252,6 +256,7 @@ export * from './trigger_order_metadata';
|
|
|
252
256
|
export * from './user_category_affinity_score';
|
|
253
257
|
export * from './user_tracking_event';
|
|
254
258
|
export * from './user_vault_category_event_pay_load';
|
|
259
|
+
export * from './vault_burn_lp_token_results';
|
|
255
260
|
export * from './vault_invest_results';
|
|
256
261
|
export * from './vault_investor_history';
|
|
257
262
|
export * from './vault_investor_summary';
|
|
@@ -120,6 +120,8 @@ __exportStar(require("./api_query_trading_performance_trend_request"), exports);
|
|
|
120
120
|
__exportStar(require("./api_query_trading_performance_trend_response"), exports);
|
|
121
121
|
__exportStar(require("./api_query_vault_investor_history_request"), exports);
|
|
122
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);
|
|
123
125
|
__exportStar(require("./api_query_vault_performance_request"), exports);
|
|
124
126
|
__exportStar(require("./api_query_vault_performance_response"), exports);
|
|
125
127
|
__exportStar(require("./api_query_vault_performance_trend_request"), exports);
|
|
@@ -168,6 +170,7 @@ __exportStar(require("./api_vault_burn_tokens_request"), exports);
|
|
|
168
170
|
__exportStar(require("./api_vault_detail_request"), exports);
|
|
169
171
|
__exportStar(require("./api_vault_detail_response"), exports);
|
|
170
172
|
__exportStar(require("./api_vault_invest_request"), exports);
|
|
173
|
+
__exportStar(require("./api_vault_investor_history"), exports);
|
|
171
174
|
__exportStar(require("./api_vault_investor_summary_request"), exports);
|
|
172
175
|
__exportStar(require("./api_vault_investor_summary_response"), exports);
|
|
173
176
|
__exportStar(require("./api_vault_performance_trend"), exports);
|
|
@@ -243,6 +246,7 @@ __exportStar(require("./query_main_account_leaderboard_response"), exports);
|
|
|
243
246
|
__exportStar(require("./query_trading_performance_trend_request"), exports);
|
|
244
247
|
__exportStar(require("./query_trading_performance_trend_response"), exports);
|
|
245
248
|
__exportStar(require("./query_vault_investor_history_request"), exports);
|
|
249
|
+
__exportStar(require("./query_vault_investor_history_response"), exports);
|
|
246
250
|
__exportStar(require("./query_vault_summary_history_request"), exports);
|
|
247
251
|
__exportStar(require("./query_vault_summary_history_response"), exports);
|
|
248
252
|
__exportStar(require("./reward_epoch_info"), exports);
|
|
@@ -268,6 +272,7 @@ __exportStar(require("./trigger_order_metadata"), exports);
|
|
|
268
272
|
__exportStar(require("./user_category_affinity_score"), exports);
|
|
269
273
|
__exportStar(require("./user_tracking_event"), exports);
|
|
270
274
|
__exportStar(require("./user_vault_category_event_pay_load"), exports);
|
|
275
|
+
__exportStar(require("./vault_burn_lp_token_results"), exports);
|
|
271
276
|
__exportStar(require("./vault_invest_results"), exports);
|
|
272
277
|
__exportStar(require("./vault_investor_history"), exports);
|
|
273
278
|
__exportStar(require("./vault_investor_summary"), exports);
|
|
@@ -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
|
+
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SNAP_SUB_ACCOUNT_SUMMARY_MAP = void 0;
|
|
4
4
|
const position_summary_1 = require("./position_summary");
|
|
5
|
+
const api_spot_balance_1 = require("./api_spot_balance");
|
|
5
6
|
// Schema map for the 'SNAP_SUB_ACCOUNT_SUMMARY' struct.
|
|
6
7
|
exports.SNAP_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
7
8
|
FULL_TO_LITE: {
|
|
@@ -12,7 +13,8 @@ exports.SNAP_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
|
12
13
|
unrealized_pnl: 'up',
|
|
13
14
|
positions: ['p', [position_summary_1.POSITION_SUMMARY_MAP.FULL_TO_LITE]],
|
|
14
15
|
is_vault: 'iv',
|
|
15
|
-
vault_im_additions: 'vi'
|
|
16
|
+
vault_im_additions: 'vi',
|
|
17
|
+
spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]]
|
|
16
18
|
},
|
|
17
19
|
LITE_TO_FULL: {
|
|
18
20
|
et: 'event_time',
|
|
@@ -22,6 +24,7 @@ exports.SNAP_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
|
22
24
|
up: 'unrealized_pnl',
|
|
23
25
|
p: ['positions', [position_summary_1.POSITION_SUMMARY_MAP.LITE_TO_FULL]],
|
|
24
26
|
iv: 'is_vault',
|
|
25
|
-
vi: 'vault_im_additions'
|
|
27
|
+
vi: 'vault_im_additions',
|
|
28
|
+
sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]]
|
|
26
29
|
}
|
|
27
30
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VAULT_BURN_LP_TOKEN_RESULTS_MAP = void 0;
|
|
4
|
+
// Schema map for the 'VAULT_BURN_LP_TOKEN_RESULTS' struct.
|
|
5
|
+
exports.VAULT_BURN_LP_TOKEN_RESULTS_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_share_price: 'vs'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
vs: 'vault_share_price'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -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',
|