@grvt/client 1.4.18 → 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 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",
@@ -197,6 +201,56 @@ export declare enum ETimeInterval {
197
201
  INTERVAL_90_D = "INTERVAL_90_D",
198
202
  INTERVAL_LIFETIME = "INTERVAL_LIFETIME"
199
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
+ }
200
254
  export declare enum ETransferType {
201
255
  UNSPECIFIED = "UNSPECIFIED",
202
256
  STANDARD = "STANDARD",
@@ -246,8 +300,8 @@ export interface IApiAggregatedAccountSummaryResponse {
246
300
  export interface IApiCancelAllOrdersRequest {
247
301
  sub_account_id?: string;
248
302
  kind?: EKind[];
249
- base?: ECurrency[];
250
- quote?: ECurrency[];
303
+ base?: string[];
304
+ quote?: string[];
251
305
  }
252
306
  export interface IApiCancelAllOrdersResponse {
253
307
  result?: number;
@@ -304,7 +358,7 @@ export interface IApiDedustPositionResponse {
304
358
  result?: IOrder;
305
359
  }
306
360
  export interface IApiDepositHistoryRequest {
307
- currency?: ECurrency[];
361
+ currency?: string[];
308
362
  start_time?: string;
309
363
  end_time?: string;
310
364
  limit?: number;
@@ -324,8 +378,8 @@ export interface IApiDropClientWsResponse {
324
378
  export interface IApiFillHistoryRequest {
325
379
  sub_account_id?: string;
326
380
  kind?: EKind[];
327
- base?: ECurrency[];
328
- quote?: ECurrency[];
381
+ base?: string[];
382
+ quote?: string[];
329
383
  start_time?: string;
330
384
  end_time?: string;
331
385
  limit?: number;
@@ -432,7 +486,7 @@ export interface IApiGetInstrumentResponse {
432
486
  }
433
487
  export interface IApiGetLPInfoRequest {
434
488
  kind?: EKind;
435
- base?: ECurrency;
489
+ base?: string;
436
490
  }
437
491
  export interface IApiGetLPInfoResponse {
438
492
  is_lp_maker?: boolean;
@@ -448,7 +502,7 @@ export interface IApiGetLPLeaderboardRequest {
448
502
  epoch?: number;
449
503
  limit?: number;
450
504
  kind?: EKind;
451
- base?: ECurrency;
505
+ base?: string;
452
506
  }
453
507
  export interface IApiGetLPLeaderboardResponse {
454
508
  points?: IApproximateLPPoint[];
@@ -456,7 +510,7 @@ export interface IApiGetLPLeaderboardResponse {
456
510
  export interface IApiGetLPPointRequest {
457
511
  epoch?: number;
458
512
  kind?: EKind;
459
- base?: ECurrency;
513
+ base?: string;
460
514
  }
461
515
  export interface IApiGetLPPointResponse {
462
516
  point?: ILPPoint;
@@ -464,7 +518,7 @@ export interface IApiGetLPPointResponse {
464
518
  }
465
519
  export interface IApiGetLatestLPSnapshotRequest {
466
520
  kind?: EKind;
467
- base?: ECurrency;
521
+ base?: string;
468
522
  }
469
523
  export interface IApiGetLatestLPSnapshotResponse {
470
524
  snapshot?: IApproximateLPSnapshot;
@@ -538,8 +592,8 @@ export interface IApiMiniTickerResponse {
538
592
  export interface IApiOpenOrdersRequest {
539
593
  sub_account_id?: string;
540
594
  kind?: EKind[];
541
- base?: ECurrency[];
542
- quote?: ECurrency[];
595
+ base?: string[];
596
+ quote?: string[];
543
597
  }
544
598
  export interface IApiOpenOrdersResponse {
545
599
  result?: IOrder[];
@@ -547,8 +601,8 @@ export interface IApiOpenOrdersResponse {
547
601
  export interface IApiOrderHistoryRequest {
548
602
  sub_account_id?: string;
549
603
  kind?: EKind[];
550
- base?: ECurrency[];
551
- quote?: ECurrency[];
604
+ base?: string[];
605
+ quote?: string[];
552
606
  start_time?: string;
553
607
  end_time?: string;
554
608
  limit?: number;
@@ -576,19 +630,19 @@ export interface IApiOrderbookLevelsResponse {
576
630
  export interface IApiPositionsRequest {
577
631
  sub_account_id?: string;
578
632
  kind?: EKind[];
579
- base?: ECurrency[];
580
- quote?: ECurrency[];
633
+ base?: string[];
634
+ quote?: string[];
581
635
  }
582
636
  export interface IApiPositionsResponse {
583
637
  result?: IPositions[];
584
638
  }
585
639
  export interface IApiPreDepositCheckRequest {
586
- currency?: ECurrency;
640
+ currency?: string;
587
641
  bridge?: EBridgeType;
588
642
  }
589
643
  export interface IApiPreDepositCheckResponse {
590
644
  max_deposit_limit?: string;
591
- currency?: ECurrency;
645
+ currency?: string;
592
646
  }
593
647
  export interface IApiPreOrderCheckRequest {
594
648
  sub_account_id?: string;
@@ -660,7 +714,14 @@ export interface IApiQueryVaultInvestorHistoryRequest {
660
714
  vault_id?: string;
661
715
  }
662
716
  export interface IApiQueryVaultInvestorHistoryResponse {
663
- result?: IVaultInvestorHistory[];
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[];
664
725
  }
665
726
  export interface IApiQueryVaultPerformanceRequest {
666
727
  vault_id?: string;
@@ -826,7 +887,7 @@ export interface IApiTransferAck {
826
887
  tx_id?: string;
827
888
  }
828
889
  export interface IApiTransferHistoryRequest {
829
- currency?: ECurrency[];
890
+ currency?: string[];
830
891
  start_time?: string;
831
892
  end_time?: string;
832
893
  limit?: number;
@@ -843,7 +904,7 @@ export interface IApiTransferRequest {
843
904
  from_sub_account_id?: string;
844
905
  to_account_id?: string;
845
906
  to_sub_account_id?: string;
846
- currency?: ECurrency;
907
+ currency?: string;
847
908
  num_tokens?: string;
848
909
  signature?: ISignature;
849
910
  transfer_type?: ETransferType;
@@ -869,7 +930,7 @@ export interface IApiValidateVaultAccountResponse {
869
930
  export interface IApiVaultBurnTokensRequest {
870
931
  main_account_id?: string;
871
932
  vault_id?: string;
872
- currency?: ECurrency;
933
+ currency?: string;
873
934
  num_tokens?: string;
874
935
  signature?: ISignature;
875
936
  }
@@ -887,10 +948,20 @@ export interface IApiVaultDetailResponse {
887
948
  export interface IApiVaultInvestRequest {
888
949
  main_account_id?: string;
889
950
  vault_id?: string;
890
- currency?: ECurrency;
951
+ currency?: string;
891
952
  num_tokens?: string;
892
953
  signature?: ISignature;
893
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
+ }
894
965
  export interface IApiVaultInvestorSummaryRequest {
895
966
  main_account_id?: string;
896
967
  vault_id?: string;
@@ -910,7 +981,7 @@ export interface IApiVaultRedeemCancelRequest {
910
981
  export interface IApiVaultRedeemRequest {
911
982
  main_account_id?: string;
912
983
  vault_id?: string;
913
- currency?: ECurrency;
984
+ currency?: string;
914
985
  num_tokens?: string;
915
986
  signature?: ISignature;
916
987
  }
@@ -933,7 +1004,7 @@ export interface IApiVaultViewRedemptionQueueResponse {
933
1004
  redemption_queue?: IVaultRedemptionReqView[];
934
1005
  }
935
1006
  export interface IApiWithdrawalHistoryRequest {
936
- currency?: ECurrency[];
1007
+ currency?: string[];
937
1008
  start_time?: string;
938
1009
  end_time?: string;
939
1010
  limit?: number;
@@ -947,7 +1018,7 @@ export interface IApiWithdrawalHistoryResponse {
947
1018
  export interface IApiWithdrawalRequest {
948
1019
  from_account_id?: string;
949
1020
  to_eth_address?: string;
950
- currency?: ECurrency;
1021
+ currency?: string;
951
1022
  num_tokens?: string;
952
1023
  signature?: ISignature;
953
1024
  }
@@ -1009,14 +1080,14 @@ export interface IClientOrderIDsByGroup {
1009
1080
  export interface IDeposit {
1010
1081
  tx_hash?: string;
1011
1082
  to_account_id?: string;
1012
- currency?: ECurrency;
1083
+ currency?: string;
1013
1084
  num_tokens?: string;
1014
1085
  }
1015
1086
  export interface IDepositHistory {
1016
1087
  l_1_hash?: string;
1017
1088
  l_2_hash?: string;
1018
1089
  to_account_id?: string;
1019
- currency?: ECurrency;
1090
+ currency?: string;
1020
1091
  num_tokens?: string;
1021
1092
  initiated_time?: string;
1022
1093
  confirmed_time?: string;
@@ -1136,7 +1207,7 @@ export interface IFundingPayment {
1136
1207
  event_time?: string;
1137
1208
  sub_account_id?: string;
1138
1209
  instrument?: string;
1139
- currency?: ECurrency;
1210
+ currency?: string;
1140
1211
  amount?: string;
1141
1212
  tx_id?: string;
1142
1213
  }
@@ -1161,8 +1232,8 @@ export interface IInitialLeverageResult {
1161
1232
  export interface IInstrument {
1162
1233
  instrument?: string;
1163
1234
  instrument_hash?: string;
1164
- base?: ECurrency;
1165
- quote?: ECurrency;
1235
+ base?: string;
1236
+ quote?: string;
1166
1237
  kind?: EKind;
1167
1238
  expiry?: string;
1168
1239
  strike_price?: string;
@@ -1320,7 +1391,7 @@ export interface IPreOrderCheckResult {
1320
1391
  margin_required?: string;
1321
1392
  order_valid?: boolean;
1322
1393
  reason?: string;
1323
- settle_currency?: ECurrency;
1394
+ settle_currency?: string;
1324
1395
  }
1325
1396
  export interface IQueryAccountSummaryRequest {
1326
1397
  time_interval?: ETimeInterval;
@@ -1390,6 +1461,9 @@ export interface IQueryVaultInvestorHistoryRequest {
1390
1461
  main_account_id?: string;
1391
1462
  vault_id?: string;
1392
1463
  }
1464
+ export interface IQueryVaultInvestorHistoryResponse {
1465
+ result?: IVaultInvestorHistory[];
1466
+ }
1393
1467
  export interface IQueryVaultSummaryHistoryRequest {
1394
1468
  vault_id?: string;
1395
1469
  start_time?: string;
@@ -1450,7 +1524,7 @@ export interface ISnapVaultSummary {
1450
1524
  share_price?: string;
1451
1525
  }
1452
1526
  export interface ISpotBalance {
1453
- currency?: ECurrency;
1527
+ currency?: string;
1454
1528
  balance?: string;
1455
1529
  index_price?: string;
1456
1530
  }
@@ -1462,7 +1536,7 @@ export interface ISubAccount {
1462
1536
  event_time?: string;
1463
1537
  sub_account_id?: string;
1464
1538
  margin_type?: EMarginType;
1465
- settle_currency?: ECurrency;
1539
+ settle_currency?: string;
1466
1540
  unrealized_pnl?: string;
1467
1541
  total_equity?: string;
1468
1542
  initial_margin?: string;
@@ -1558,7 +1632,7 @@ export interface ITransferHistory {
1558
1632
  from_sub_account_id?: string;
1559
1633
  to_account_id?: string;
1560
1634
  to_sub_account_id?: string;
1561
- currency?: ECurrency;
1635
+ currency?: string;
1562
1636
  num_tokens?: string;
1563
1637
  signature?: ISignature;
1564
1638
  event_time?: string;
@@ -1608,7 +1682,7 @@ export interface IVaultInvestorHistory {
1608
1682
  event_time?: string;
1609
1683
  main_account_id?: string;
1610
1684
  vault_id?: string;
1611
- is_investing?: boolean;
1685
+ type?: ETransactionType;
1612
1686
  price?: string;
1613
1687
  size?: string;
1614
1688
  realized_pnl?: string;
@@ -1648,7 +1722,7 @@ export interface IVaultRedeemResults {
1648
1722
  token_index_price?: string;
1649
1723
  vault_total_equity?: string;
1650
1724
  vault_share_price?: string;
1651
- currency?: ECurrency;
1725
+ currency?: string;
1652
1726
  num_tokens?: string;
1653
1727
  avg_entry_price?: string;
1654
1728
  fees_charged?: string;
@@ -1662,7 +1736,7 @@ export interface IVaultRedemption {
1662
1736
  }
1663
1737
  export interface IVaultRedemptionReqView {
1664
1738
  request_time?: string;
1665
- currency?: ECurrency;
1739
+ currency?: string;
1666
1740
  num_lp_tokens?: string;
1667
1741
  max_redemption_period_timestamp?: string;
1668
1742
  }
@@ -1869,7 +1943,7 @@ export interface IWSWithdrawalFeedSelectorV1 {
1869
1943
  export interface IWithdrawal {
1870
1944
  from_account_id?: string;
1871
1945
  to_eth_address?: string;
1872
- currency?: ECurrency;
1946
+ currency?: string;
1873
1947
  num_tokens?: string;
1874
1948
  signature?: ISignature;
1875
1949
  }
@@ -1877,7 +1951,7 @@ export interface IWithdrawalHistory {
1877
1951
  tx_id?: string;
1878
1952
  from_account_id?: string;
1879
1953
  to_eth_address?: string;
1880
- currency?: ECurrency;
1954
+ currency?: string;
1881
1955
  num_tokens?: string;
1882
1956
  signature?: ISignature;
1883
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.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
- // The list of Currencies that are supported on the GRVT exchange
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
@@ -387,6 +390,57 @@ var ETimeInterval;
387
390
  // Lifetime
388
391
  ETimeInterval["INTERVAL_LIFETIME"] = "INTERVAL_LIFETIME";
389
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 = {}));
390
444
  var ETransferType;
391
445
  (function (ETransferType) {
392
446
  // Default transfer that has nothing to do with bridging
@@ -1,10 +1,9 @@
1
- import { EBridgeType, EBrokerTag, ECancelStatus, ECandlestickInterval, ECandlestickType, ECurrency, EEpochBadgeType, EInstrumentSettlementPeriod, EKind, EMarginType, EOrderRejectReason, EOrderStatus, EQueryMainAccountLeaderboardOrderBy, ERewardEpochStatus, ERewardProgramType, ESource, ESubAccountTradeInterval, ETimeInForce, ETimeInterval, ETransferType, ETriggerBy, ETriggerType, EVaultType, EVenue } from './data.interface';
1
+ import { EBridgeType, EBrokerTag, ECancelStatus, ECandlestickInterval, ECandlestickType, EEpochBadgeType, EInstrumentSettlementPeriod, EKind, EMarginType, EOrderRejectReason, EOrderStatus, EQueryMainAccountLeaderboardOrderBy, ERewardEpochStatus, ERewardProgramType, ESource, ESubAccountTradeInterval, ETimeInForce, ETimeInterval, ETransactionType, ETransferType, ETriggerBy, ETriggerType, 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.ECurrencyInt = exports.ECandlestickTypeInt = exports.ECandlestickIntervalInt = exports.ECancelStatusInt = exports.EBrokerTagInt = exports.EBridgeTypeInt = void 0;
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,
@@ -201,6 +159,56 @@ exports.ETimeIntervalInt = Object.freeze({
201
159
  [data_interface_1.ETimeInterval.INTERVAL_90_D]: 4,
202
160
  [data_interface_1.ETimeInterval.INTERVAL_LIFETIME]: 5
203
161
  });
162
+ exports.ETransactionTypeInt = Object.freeze({
163
+ [data_interface_1.ETransactionType.UNSPECIFIED_1]: 1,
164
+ [data_interface_1.ETransactionType.UNSPECIFIED_2]: 2,
165
+ [data_interface_1.ETransactionType.UNSPECIFIED_3]: 3,
166
+ [data_interface_1.ETransactionType.CREATE_ACCOUNT]: 4,
167
+ [data_interface_1.ETransactionType.CREATE_SUB_ACCOUNT]: 5,
168
+ [data_interface_1.ETransactionType.SET_ACCOUNT_MULTI_SIG_THRESHOLD]: 6,
169
+ [data_interface_1.ETransactionType.ADD_ACCOUNT_SIGNER]: 7,
170
+ [data_interface_1.ETransactionType.REMOVE_ACCOUNT_SIGNER]: 8,
171
+ [data_interface_1.ETransactionType.ADD_WITHDRAWAL_ADDRESS]: 9,
172
+ [data_interface_1.ETransactionType.REMOVE_WITHDRAWAL_ADDRESS]: 10,
173
+ [data_interface_1.ETransactionType.ADD_TRANSFER_ACCOUNT]: 11,
174
+ [data_interface_1.ETransactionType.REMOVE_TRANSFER_ACCOUNT]: 12,
175
+ [data_interface_1.ETransactionType.SET_SUB_ACCOUNT_MARGIN_TYPE]: 13,
176
+ [data_interface_1.ETransactionType.ADD_SUB_ACCOUNT_SIGNER]: 14,
177
+ [data_interface_1.ETransactionType.REMOVE_SUB_ACCOUNT_SIGNER]: 15,
178
+ [data_interface_1.ETransactionType.ADD_SESSION_KEY]: 16,
179
+ [data_interface_1.ETransactionType.REMOVE_SESSION_KEY]: 17,
180
+ [data_interface_1.ETransactionType.DEPOSIT]: 18,
181
+ [data_interface_1.ETransactionType.WITHDRAWAL]: 19,
182
+ [data_interface_1.ETransactionType.TRANSFER]: 20,
183
+ [data_interface_1.ETransactionType.MARK_PRICE_TICK]: 21,
184
+ [data_interface_1.ETransactionType.SETTLEMENT_PRICE_TICK]: 22,
185
+ [data_interface_1.ETransactionType.FUNDING_TICK]: 23,
186
+ [data_interface_1.ETransactionType.INTEREST_RATE_TICK]: 24,
187
+ [data_interface_1.ETransactionType.SCHEDULE_CONFIG]: 25,
188
+ [data_interface_1.ETransactionType.SET_CONFIG]: 26,
189
+ [data_interface_1.ETransactionType.TRADE]: 27,
190
+ [data_interface_1.ETransactionType.ADD_RECOVERY_ADDRESS]: 28,
191
+ [data_interface_1.ETransactionType.REMOVE_RECOVERY_ADDRESS]: 29,
192
+ [data_interface_1.ETransactionType.RECOVER_ADDRESS]: 30,
193
+ [data_interface_1.ETransactionType.SETTLE_START]: 31,
194
+ [data_interface_1.ETransactionType.SETTLE_INSTRUMENTS]: 32,
195
+ [data_interface_1.ETransactionType.SETTLE_SOCIALISED_LOSS]: 33,
196
+ [data_interface_1.ETransactionType.SETTLE_END]: 34,
197
+ [data_interface_1.ETransactionType.SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS]: 35,
198
+ [data_interface_1.ETransactionType.SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS]: 36,
199
+ [data_interface_1.ETransactionType.INITIALIZE_CONFIG]: 37,
200
+ [data_interface_1.ETransactionType.CREATE_ACCOUNT_WITH_SUB_ACCOUNT]: 38,
201
+ [data_interface_1.ETransactionType.VAULT_CREATE]: 39,
202
+ [data_interface_1.ETransactionType.VAULT_UPDATE]: 40,
203
+ [data_interface_1.ETransactionType.VAULT_DELIST]: 41,
204
+ [data_interface_1.ETransactionType.VAULT_CLOSE]: 42,
205
+ [data_interface_1.ETransactionType.VAULT_INVEST]: 43,
206
+ [data_interface_1.ETransactionType.VAULT_BURN_LP_TOKEN]: 44,
207
+ [data_interface_1.ETransactionType.VAULT_REDEEM]: 45,
208
+ [data_interface_1.ETransactionType.VAULT_MANAGEMENT_FEE_TICK]: 46,
209
+ [data_interface_1.ETransactionType.ADD_CURRENCY]: 47,
210
+ [data_interface_1.ETransactionType.SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO]: 48
211
+ });
204
212
  exports.ETransferTypeInt = Object.freeze({
205
213
  [data_interface_1.ETransferType.UNSPECIFIED]: 0,
206
214
  [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 vault_investor_history_1 = require("./vault_investor_history");
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', [vault_investor_history_1.VAULT_INVESTOR_HISTORY_MAP.FULL_TO_LITE]]
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', [vault_investor_history_1.VAULT_INVESTOR_HISTORY_MAP.LITE_TO_FULL]]
11
+ r: ['result', [api_vault_investor_history_1.API_VAULT_INVESTOR_HISTORY_MAP.LITE_TO_FULL]]
12
12
  }
13
13
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_REQUEST_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_RESPONSE_MAP: SchemaPairMap;
@@ -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,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_VAULT_INVESTOR_HISTORY_MAP: SchemaPairMap;
@@ -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
+ });
@@ -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';
@@ -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);
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const QUERY_VAULT_INVESTOR_HISTORY_RESPONSE_MAP: SchemaPairMap;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUERY_VAULT_INVESTOR_HISTORY_RESPONSE_MAP = void 0;
4
+ const vault_investor_history_1 = require("./vault_investor_history");
5
+ // Schema map for the 'QUERY_VAULT_INVESTOR_HISTORY_RESPONSE' struct.
6
+ exports.QUERY_VAULT_INVESTOR_HISTORY_RESPONSE_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ result: ['r', [vault_investor_history_1.VAULT_INVESTOR_HISTORY_MAP.FULL_TO_LITE]]
9
+ },
10
+ LITE_TO_FULL: {
11
+ r: ['result', [vault_investor_history_1.VAULT_INVESTOR_HISTORY_MAP.LITE_TO_FULL]]
12
+ }
13
+ });
@@ -7,7 +7,7 @@ exports.VAULT_INVESTOR_HISTORY_MAP = Object.freeze({
7
7
  event_time: 'et',
8
8
  main_account_id: 'ma',
9
9
  vault_id: 'vi',
10
- is_investing: 'ii',
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
- ii: 'is_investing',
20
+ t: 'type',
21
21
  p: 'price',
22
22
  s: 'size',
23
23
  rp: 'realized_pnl',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.4.18",
3
+ "version": "1.4.19",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",