@grvt/client 1.6.1 → 1.6.2

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.
Files changed (123) hide show
  1. package/TDG/index.d.ts +13 -1
  2. package/TDG/index.js +43 -0
  3. package/interfaces/codegen/data.interface.d.ts +262 -6
  4. package/interfaces/codegen/enums/account-multiplier-status.d.ts +5 -0
  5. package/interfaces/codegen/enums/account-multiplier-status.js +14 -0
  6. package/interfaces/codegen/enums/account-type.d.ts +6 -0
  7. package/interfaces/codegen/enums/account-type.js +17 -0
  8. package/interfaces/codegen/enums/cluster-config-type.d.ts +8 -1
  9. package/interfaces/codegen/enums/cluster-config-type.js +22 -1
  10. package/interfaces/codegen/enums/epoch-band-status.d.ts +5 -0
  11. package/interfaces/codegen/enums/epoch-band-status.js +14 -0
  12. package/interfaces/codegen/enums/metric-type.d.ts +10 -0
  13. package/interfaces/codegen/enums/metric-type.js +29 -0
  14. package/interfaces/codegen/enums/reward-session.d.ts +5 -0
  15. package/interfaces/codegen/enums/reward-session.js +14 -0
  16. package/interfaces/codegen/enums/transaction-type.d.ts +2 -1
  17. package/interfaces/codegen/enums/transaction-type.js +3 -1
  18. package/interfaces/codegen/hex-string-map.js +2 -1
  19. package/interfaces/codegen/schema-maps/api_cross_exch_vault_attest_equity_request.d.ts +2 -0
  20. package/interfaces/codegen/schema-maps/api_cross_exch_vault_attest_equity_request.js +23 -0
  21. package/interfaces/codegen/schema-maps/api_cross_exch_vault_get_investor_allocation_stats_response.d.ts +2 -0
  22. package/interfaces/codegen/schema-maps/api_cross_exch_vault_get_investor_allocation_stats_response.js +18 -0
  23. package/interfaces/codegen/schema-maps/api_cross_exch_vault_invest_cancel_request.d.ts +2 -0
  24. package/interfaces/codegen/schema-maps/api_cross_exch_vault_invest_cancel_request.js +14 -0
  25. package/interfaces/codegen/schema-maps/api_cross_exch_vault_lock_request.d.ts +2 -0
  26. package/interfaces/codegen/schema-maps/api_cross_exch_vault_lock_request.js +12 -0
  27. package/interfaces/codegen/schema-maps/api_cross_exch_vault_trigger_redemption_request.d.ts +2 -0
  28. package/interfaces/codegen/schema-maps/api_cross_exch_vault_trigger_redemption_request.js +16 -0
  29. package/interfaces/codegen/schema-maps/api_cross_exch_vault_unlock_request.d.ts +2 -0
  30. package/interfaces/codegen/schema-maps/api_cross_exch_vault_unlock_request.js +12 -0
  31. package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_request.d.ts +2 -0
  32. package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_request.js +14 -0
  33. package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_response.d.ts +2 -0
  34. package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_response.js +15 -0
  35. package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_pending_investment_request.d.ts +2 -0
  36. package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_pending_investment_request.js +14 -0
  37. package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_pending_investment_response.d.ts +2 -0
  38. package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_pending_investment_response.js +15 -0
  39. package/interfaces/codegen/schema-maps/api_end_effect_account_multiplier_request.d.ts +2 -0
  40. package/interfaces/codegen/schema-maps/api_end_effect_account_multiplier_request.js +14 -0
  41. package/interfaces/codegen/schema-maps/api_end_effect_account_multiplier_response.d.ts +2 -0
  42. package/interfaces/codegen/schema-maps/api_end_effect_account_multiplier_response.js +12 -0
  43. package/interfaces/codegen/schema-maps/api_end_effect_epoch_band_parameter_request.d.ts +2 -0
  44. package/interfaces/codegen/schema-maps/api_end_effect_epoch_band_parameter_request.js +14 -0
  45. package/interfaces/codegen/schema-maps/api_end_effect_epoch_band_parameter_response.d.ts +2 -0
  46. package/interfaces/codegen/schema-maps/api_end_effect_epoch_band_parameter_response.js +12 -0
  47. package/interfaces/codegen/schema-maps/api_find_account_multiplier_request.d.ts +2 -0
  48. package/interfaces/codegen/schema-maps/api_find_account_multiplier_request.js +22 -0
  49. package/interfaces/codegen/schema-maps/api_find_account_multiplier_response.d.ts +2 -0
  50. package/interfaces/codegen/schema-maps/api_find_account_multiplier_response.js +13 -0
  51. package/interfaces/codegen/schema-maps/api_find_epoch_band_parameter_filter.d.ts +2 -0
  52. package/interfaces/codegen/schema-maps/api_find_epoch_band_parameter_filter.js +16 -0
  53. package/interfaces/codegen/schema-maps/api_find_epoch_band_parameter_response.d.ts +2 -0
  54. package/interfaces/codegen/schema-maps/api_find_epoch_band_parameter_response.js +13 -0
  55. package/interfaces/codegen/schema-maps/api_first_session_reward_response.d.ts +2 -0
  56. package/interfaces/codegen/schema-maps/api_first_session_reward_response.js +14 -0
  57. package/interfaces/codegen/schema-maps/api_get_active_account_multiplier_value_request.d.ts +2 -0
  58. package/interfaces/codegen/schema-maps/api_get_active_account_multiplier_value_request.js +20 -0
  59. package/interfaces/codegen/schema-maps/api_get_active_account_multiplier_value_response.d.ts +2 -0
  60. package/interfaces/codegen/schema-maps/api_get_active_account_multiplier_value_response.js +13 -0
  61. package/interfaces/codegen/schema-maps/api_get_active_epoch_band_parameter_value_request.d.ts +2 -0
  62. package/interfaces/codegen/schema-maps/api_get_active_epoch_band_parameter_value_request.js +14 -0
  63. package/interfaces/codegen/schema-maps/api_get_active_epoch_band_parameter_value_response.d.ts +2 -0
  64. package/interfaces/codegen/schema-maps/api_get_active_epoch_band_parameter_value_response.js +13 -0
  65. package/interfaces/codegen/schema-maps/api_get_epoch_point_stats_response.d.ts +2 -0
  66. package/interfaces/codegen/schema-maps/api_get_epoch_point_stats_response.js +18 -0
  67. package/interfaces/codegen/schema-maps/api_get_reward_leaderboard_response.d.ts +2 -0
  68. package/interfaces/codegen/schema-maps/api_get_reward_leaderboard_response.js +13 -0
  69. package/interfaces/codegen/schema-maps/api_get_user_epoch_point_stats_response.d.ts +2 -0
  70. package/interfaces/codegen/schema-maps/api_get_user_epoch_point_stats_response.js +24 -0
  71. package/interfaces/codegen/schema-maps/api_inactive_account_multiplier_request.d.ts +2 -0
  72. package/interfaces/codegen/schema-maps/api_inactive_account_multiplier_request.js +12 -0
  73. package/interfaces/codegen/schema-maps/api_inactive_account_multiplier_response.d.ts +2 -0
  74. package/interfaces/codegen/schema-maps/api_inactive_account_multiplier_response.js +12 -0
  75. package/interfaces/codegen/schema-maps/api_inactive_epoch_band_parameter_request.d.ts +2 -0
  76. package/interfaces/codegen/schema-maps/api_inactive_epoch_band_parameter_request.js +12 -0
  77. package/interfaces/codegen/schema-maps/api_inactive_epoch_band_parameter_response.d.ts +2 -0
  78. package/interfaces/codegen/schema-maps/api_inactive_epoch_band_parameter_response.js +12 -0
  79. package/interfaces/codegen/schema-maps/api_position.js +6 -2
  80. package/interfaces/codegen/schema-maps/api_reward_leaderboard_item.d.ts +2 -0
  81. package/interfaces/codegen/schema-maps/api_reward_leaderboard_item.js +18 -0
  82. package/interfaces/codegen/schema-maps/api_sub_account_trade_aggregation_request.js +4 -2
  83. package/interfaces/codegen/schema-maps/api_trading_performance_trend.js +4 -2
  84. package/interfaces/codegen/schema-maps/api_vault_detail.js +10 -2
  85. package/interfaces/codegen/schema-maps/api_vault_detail_response.js +10 -2
  86. package/interfaces/codegen/schema-maps/api_vault_performance.js +4 -2
  87. package/interfaces/codegen/schema-maps/cev_alloc_stats_acc_overview.d.ts +2 -0
  88. package/interfaces/codegen/schema-maps/cev_alloc_stats_acc_overview.js +22 -0
  89. package/interfaces/codegen/schema-maps/cev_alloc_stats_vault_level.d.ts +2 -0
  90. package/interfaces/codegen/schema-maps/cev_alloc_stats_vault_level.js +16 -0
  91. package/interfaces/codegen/schema-maps/cross_exch_vault_pending_investment_view.d.ts +2 -0
  92. package/interfaces/codegen/schema-maps/cross_exch_vault_pending_investment_view.js +18 -0
  93. package/interfaces/codegen/schema-maps/epoch.js +4 -2
  94. package/interfaces/codegen/schema-maps/epoch_metric_point.d.ts +2 -0
  95. package/interfaces/codegen/schema-maps/epoch_metric_point.js +25 -0
  96. package/interfaces/codegen/schema-maps/epoch_metric_point_calculator_metadata.d.ts +2 -0
  97. package/interfaces/codegen/schema-maps/epoch_metric_point_calculator_metadata.js +24 -0
  98. package/interfaces/codegen/schema-maps/epoch_point.d.ts +2 -0
  99. package/interfaces/codegen/schema-maps/epoch_point.js +16 -0
  100. package/interfaces/codegen/schema-maps/epoch_point_stats.d.ts +2 -0
  101. package/interfaces/codegen/schema-maps/epoch_point_stats.js +14 -0
  102. package/interfaces/codegen/schema-maps/query_epoch_point_stats_request.d.ts +2 -0
  103. package/interfaces/codegen/schema-maps/query_epoch_point_stats_request.js +12 -0
  104. package/interfaces/codegen/schema-maps/query_epoch_point_stats_response.d.ts +2 -0
  105. package/interfaces/codegen/schema-maps/query_epoch_point_stats_response.js +13 -0
  106. package/interfaces/codegen/schema-maps/query_reward_referral_point_request.d.ts +2 -0
  107. package/interfaces/codegen/schema-maps/query_reward_referral_point_request.js +16 -0
  108. package/interfaces/codegen/schema-maps/query_reward_referral_point_response.d.ts +2 -0
  109. package/interfaces/codegen/schema-maps/query_reward_referral_point_response.js +15 -0
  110. package/interfaces/codegen/schema-maps/reward_account_multiplier.d.ts +2 -0
  111. package/interfaces/codegen/schema-maps/reward_account_multiplier.js +32 -0
  112. package/interfaces/codegen/schema-maps/reward_epoch_band_parameter.d.ts +2 -0
  113. package/interfaces/codegen/schema-maps/reward_epoch_band_parameter.js +30 -0
  114. package/interfaces/codegen/schema-maps/reward_metric_point_metadata.d.ts +2 -0
  115. package/interfaces/codegen/schema-maps/reward_metric_point_metadata.js +14 -0
  116. package/interfaces/codegen/schema-maps/reward_referral_point.d.ts +2 -0
  117. package/interfaces/codegen/schema-maps/reward_referral_point.js +16 -0
  118. package/interfaces/codegen/schema-maps/sub_account_trading_performance.d.ts +2 -0
  119. package/interfaces/codegen/schema-maps/sub_account_trading_performance.js +30 -0
  120. package/interfaces/codegen/schema-maps/withdrawal_history.js +6 -2
  121. package/package.json +3 -3
  122. package/interfaces/codegen/schema-maps/trading_performance_point.d.ts +0 -2
  123. package/interfaces/codegen/schema-maps/trading_performance_point.js +0 -18
package/TDG/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
- import type { IAckResponse, IApiAggregatedAccountSummaryResponse, IApiCancelAllOrdersRequest, IApiCancelAllOrdersResponse, IApiCancelOrderRequest, IApiCancelOrderResponse, IApiCreateBulkOrdersRequest, IApiCreateBulkOrdersResponse, IApiCreateOrderRequest, IApiCreateOrderResponse, IApiDedustPositionRequest, IApiDedustPositionResponse, IApiDepositHistoryRequest, IApiDepositHistoryResponse, IApiFillHistoryRequest, IApiFillHistoryResponse, IApiFundingAccountSummaryResponse, IApiFundingPaymentHistoryRequest, IApiFundingPaymentHistoryResponse, IApiGetAllInitialLeverageRequest, IApiGetAllInitialLeverageResponse, IApiGetMarginTiersResponse, IApiGetOrderGroupRequest, IApiGetOrderGroupResponse, IApiGetOrderRequest, IApiGetOrderResponse, IApiOpenOrdersRequest, IApiOpenOrdersResponse, IApiOrderHistoryRequest, IApiOrderHistoryResponse, IApiPositionsRequest, IApiPositionsResponse, IApiPreDepositCheckRequest, IApiPreDepositCheckResponse, IApiPreOrderCheckRequest, IApiPreOrderCheckResponse, IApiQueryListFundingAccountSummaryRequest, IApiQueryListFundingAccountSummaryResponse, IApiQueryListSubAccountSummaryRequest, IApiQueryListSubAccountSummaryResponse, IApiQueryTradingPerformanceRequest, IApiQueryTradingPerformanceResponse, IApiQueryTradingPerformanceTrendRequest, IApiQueryTradingPerformanceTrendResponse, IApiQueryVaultInvestorHistoryRequest, IApiQueryVaultInvestorHistoryResponse, IApiQueryVaultManagerInvestorHistoryRequest, IApiQueryVaultManagerInvestorHistoryResponse, IApiReplaceOrdersRequest, IApiReplaceOrdersResponse, IApiSetInitialLeverageRequest, IApiSetInitialLeverageResponse, IApiSocializedLossStatusResponse, IApiSubAccountHistoryRequest, IApiSubAccountHistoryResponse, IApiSubAccountSummaryRequest, IApiSubAccountSummaryResponse, IApiTimedAssetExposureRequest, IApiTimedAssetExposureResponse, IApiTransferHistoryRequest, IApiTransferHistoryResponse, IApiTransferRequest, IApiTransferResponse, IApiVaultBurnTokensRequest, IApiVaultInvestorSummaryRequest, IApiVaultInvestorSummaryResponse, IApiVaultInvestRequest, IApiVaultRedeemCancelRequest, IApiVaultRedeemRequest, IApiVaultViewRedemptionQueueRequest, IApiVaultViewRedemptionQueueResponse, IApiWithdrawalHistoryRequest, IApiWithdrawalHistoryResponse, IApiWithdrawalRequest, IConfig } from '../interfaces';
2
+ import type { IAckResponse, IApiAggregatedAccountSummaryResponse, IApiCancelAllOrdersRequest, IApiCancelAllOrdersResponse, IApiCancelOrderRequest, IApiCancelOrderResponse, IApiCreateBulkOrdersRequest, IApiCreateBulkOrdersResponse, IApiCreateOrderRequest, IApiCreateOrderResponse, IApiCrossExchVaultAttestEquityRequest, IApiCrossExchVaultInvestCancelRequest, IApiCrossExchVaultTriggerRedemptionRequest, IApiCrossExchVaultViewInvestmentQueueRequest, IApiCrossExchVaultViewInvestmentQueueResponse, IApiCrossExchVaultViewPendingInvestmentRequest, IApiCrossExchVaultViewPendingInvestmentResponse, IApiDedustPositionRequest, IApiDedustPositionResponse, IApiDepositHistoryRequest, IApiDepositHistoryResponse, IApiFillHistoryRequest, IApiFillHistoryResponse, IApiFundingAccountSummaryResponse, IApiFundingPaymentHistoryRequest, IApiFundingPaymentHistoryResponse, IApiGetAllInitialLeverageRequest, IApiGetAllInitialLeverageResponse, IApiGetMarginTiersResponse, IApiGetOrderGroupRequest, IApiGetOrderGroupResponse, IApiGetOrderRequest, IApiGetOrderResponse, IApiOpenOrdersRequest, IApiOpenOrdersResponse, IApiOrderHistoryRequest, IApiOrderHistoryResponse, IApiPositionsRequest, IApiPositionsResponse, IApiPreDepositCheckRequest, IApiPreDepositCheckResponse, IApiPreOrderCheckRequest, IApiPreOrderCheckResponse, IApiQueryListFundingAccountSummaryRequest, IApiQueryListFundingAccountSummaryResponse, IApiQueryListSubAccountSummaryRequest, IApiQueryListSubAccountSummaryResponse, IApiQueryTradingPerformanceRequest, IApiQueryTradingPerformanceResponse, IApiQueryTradingPerformanceTrendRequest, IApiQueryTradingPerformanceTrendResponse, IApiQueryVaultInvestorHistoryRequest, IApiQueryVaultInvestorHistoryResponse, IApiQueryVaultManagerInvestorHistoryRequest, IApiQueryVaultManagerInvestorHistoryResponse, IApiReplaceOrdersRequest, IApiReplaceOrdersResponse, IApiSetInitialLeverageRequest, IApiSetInitialLeverageResponse, IApiSocializedLossStatusResponse, IApiSubAccountHistoryRequest, IApiSubAccountHistoryResponse, IApiSubAccountSummaryRequest, IApiSubAccountSummaryResponse, IApiTimedAssetExposureRequest, IApiTimedAssetExposureResponse, IApiTransferHistoryRequest, IApiTransferHistoryResponse, IApiTransferRequest, IApiTransferResponse, IApiVaultBurnTokensRequest, IApiVaultInvestorSummaryRequest, IApiVaultInvestorSummaryResponse, IApiVaultInvestRequest, IApiVaultRedeemCancelRequest, IApiVaultRedeemRequest, IApiVaultViewRedemptionQueueRequest, IApiVaultViewRedemptionQueueResponse, IApiWithdrawalHistoryRequest, IApiWithdrawalHistoryResponse, IApiWithdrawalRequest, IConfig } from '../interfaces';
3
3
  export declare class TDG {
4
4
  private readonly _axios;
5
5
  private readonly _fullUrl;
@@ -119,4 +119,16 @@ export declare class TDG {
119
119
  vaultViewRedemptionQueue(payload: IApiVaultViewRedemptionQueueRequest, config?: AxiosRequestConfig): Promise<IApiVaultViewRedemptionQueueResponse>;
120
120
  vaultInvestorHistory(payload: IApiQueryVaultInvestorHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultInvestorHistoryResponse>;
121
121
  vaultManagerInvestorHistory(payload: IApiQueryVaultManagerInvestorHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultManagerInvestorHistoryResponse>;
122
+ /**
123
+ * END: Vault
124
+ */
125
+ /**
126
+ * START: Cross-Exchange Vault
127
+ */
128
+ cevAttestEquity(payload: IApiCrossExchVaultAttestEquityRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
129
+ cevTriggerRedemption(payload: IApiCrossExchVaultTriggerRedemptionRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
130
+ cevViewInvestmentQueue(payload: IApiCrossExchVaultViewInvestmentQueueRequest, config?: AxiosRequestConfig): Promise<IApiCrossExchVaultViewInvestmentQueueResponse>;
131
+ cevInvest(payload: IApiVaultInvestRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
132
+ cevInvestCancel(payload: IApiCrossExchVaultInvestCancelRequest, config?: AxiosRequestConfig): Promise<IAckResponse>;
133
+ cevViewPendingInvestment(payload: IApiCrossExchVaultViewPendingInvestmentRequest, config?: AxiosRequestConfig): Promise<IApiCrossExchVaultViewPendingInvestmentResponse>;
122
134
  }
package/TDG/index.js CHANGED
@@ -12,6 +12,13 @@ const api_create_bulk_orders_request_1 = require("../interfaces/codegen/schema-m
12
12
  const api_create_bulk_orders_response_1 = require("../interfaces/codegen/schema-maps/api_create_bulk_orders_response");
13
13
  const api_create_order_request_1 = require("../interfaces/codegen/schema-maps/api_create_order_request");
14
14
  const api_create_order_response_1 = require("../interfaces/codegen/schema-maps/api_create_order_response");
15
+ const api_cross_exch_vault_attest_equity_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_attest_equity_request");
16
+ const api_cross_exch_vault_invest_cancel_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_invest_cancel_request");
17
+ const api_cross_exch_vault_trigger_redemption_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_trigger_redemption_request");
18
+ const api_cross_exch_vault_view_investment_queue_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_request");
19
+ const api_cross_exch_vault_view_investment_queue_response_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_response");
20
+ const api_cross_exch_vault_view_pending_investment_request_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_view_pending_investment_request");
21
+ const api_cross_exch_vault_view_pending_investment_response_1 = require("../interfaces/codegen/schema-maps/api_cross_exch_vault_view_pending_investment_response");
15
22
  const api_dedust_position_request_1 = require("../interfaces/codegen/schema-maps/api_dedust_position_request");
16
23
  const api_dedust_position_response_1 = require("../interfaces/codegen/schema-maps/api_dedust_position_response");
17
24
  const api_deposit_history_request_1 = require("../interfaces/codegen/schema-maps/api_deposit_history_request");
@@ -365,5 +372,41 @@ class TDG {
365
372
  return utils_1.Utils.schemaMap(response.data, api_query_vault_manager_investor_history_response_1.API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_RESPONSE_MAP.LITE_TO_FULL);
366
373
  }).catch(utils_1.Utils.coverApiError);
367
374
  }
375
+ /**
376
+ * END: Vault
377
+ */
378
+ /**
379
+ * START: Cross-Exchange Vault
380
+ */
381
+ cevAttestEquity(payload, config) {
382
+ return this._axios.post(this._liteUrl + '/cev_attest_equity', utils_1.Utils.schemaMap(payload, api_cross_exch_vault_attest_equity_request_1.API_CROSS_EXCH_VAULT_ATTEST_EQUITY_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
383
+ return utils_1.Utils.schemaMap(response.data, ack_response_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
384
+ }).catch(utils_1.Utils.coverApiError);
385
+ }
386
+ cevTriggerRedemption(payload, config) {
387
+ return this._axios.post(this._liteUrl + '/cev_trigger_redemption', utils_1.Utils.schemaMap(payload, api_cross_exch_vault_trigger_redemption_request_1.API_CROSS_EXCH_VAULT_TRIGGER_REDEMPTION_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
388
+ return utils_1.Utils.schemaMap(response.data, ack_response_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
389
+ }).catch(utils_1.Utils.coverApiError);
390
+ }
391
+ cevViewInvestmentQueue(payload, config) {
392
+ return this._axios.post(this._liteUrl + '/cev_view_investment_queue', utils_1.Utils.schemaMap(payload, api_cross_exch_vault_view_investment_queue_request_1.API_CROSS_EXCH_VAULT_VIEW_INVESTMENT_QUEUE_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
393
+ return utils_1.Utils.schemaMap(response.data, api_cross_exch_vault_view_investment_queue_response_1.API_CROSS_EXCH_VAULT_VIEW_INVESTMENT_QUEUE_RESPONSE_MAP.LITE_TO_FULL);
394
+ }).catch(utils_1.Utils.coverApiError);
395
+ }
396
+ cevInvest(payload, config) {
397
+ return this._axios.post(this._liteUrl + '/cev_invest', utils_1.Utils.schemaMap(payload, api_vault_invest_request_1.API_VAULT_INVEST_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
398
+ return utils_1.Utils.schemaMap(response.data, ack_response_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
399
+ }).catch(utils_1.Utils.coverApiError);
400
+ }
401
+ cevInvestCancel(payload, config) {
402
+ return this._axios.post(this._liteUrl + '/cev_invest_cancel', utils_1.Utils.schemaMap(payload, api_cross_exch_vault_invest_cancel_request_1.API_CROSS_EXCH_VAULT_INVEST_CANCEL_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
403
+ return utils_1.Utils.schemaMap(response.data, ack_response_1.ACK_RESPONSE_MAP.LITE_TO_FULL);
404
+ }).catch(utils_1.Utils.coverApiError);
405
+ }
406
+ cevViewPendingInvestment(payload, config) {
407
+ return this._axios.post(this._liteUrl + '/cev_view_pending_investment', utils_1.Utils.schemaMap(payload, api_cross_exch_vault_view_pending_investment_request_1.API_CROSS_EXCH_VAULT_VIEW_PENDING_INVESTMENT_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
408
+ return utils_1.Utils.schemaMap(response.data, api_cross_exch_vault_view_pending_investment_response_1.API_CROSS_EXCH_VAULT_VIEW_PENDING_INVESTMENT_RESPONSE_MAP.LITE_TO_FULL);
409
+ }).catch(utils_1.Utils.coverApiError);
410
+ }
368
411
  }
369
412
  exports.TDG = TDG;
@@ -1,3 +1,5 @@
1
+ import type { EAccountMultiplierStatus } from './enums/account-multiplier-status.ts';
2
+ import type { EAccountType } from './enums/account-type.ts';
1
3
  import type { EBridgeType } from './enums/bridge-type.ts';
2
4
  import type { EBrokerTag } from './enums/broker-tag.ts';
3
5
  import type { ECancelStatus } from './enums/cancel-status.ts';
@@ -5,14 +7,17 @@ import type { ECandlestickInterval } from './enums/candlestick-interval.ts';
5
7
  import type { ECandlestickType } from './enums/candlestick-type.ts';
6
8
  import type { EClusterConfigType } from './enums/cluster-config-type.ts';
7
9
  import type { EEpochBadgeType } from './enums/epoch-badge-type.ts';
10
+ import type { EEpochBandStatus } from './enums/epoch-band-status.ts';
8
11
  import type { EInstrumentSettlementPeriod } from './enums/instrument-settlement-period.ts';
9
12
  import type { EKind } from './enums/kind.ts';
10
13
  import type { EMarginType } from './enums/margin-type.ts';
14
+ import type { EMetricType } from './enums/metric-type.ts';
11
15
  import type { EOrderRejectReason } from './enums/order-reject-reason.ts';
12
16
  import type { EOrderStatus } from './enums/order-status.ts';
13
17
  import type { EQueryMainAccountLeaderboardOrderBy } from './enums/query-main-account-leaderboard-order-by.ts';
14
18
  import type { ERewardEpochStatus } from './enums/reward-epoch-status.ts';
15
19
  import type { ERewardProgramType } from './enums/reward-program-type.ts';
20
+ import type { ERewardSession } from './enums/reward-session.ts';
16
21
  import type { ESource } from './enums/source.ts';
17
22
  import type { ESubAccountTradeInterval } from './enums/sub-account-trade-interval.ts';
18
23
  import type { ETimeInForce } from './enums/time-in-force.ts';
@@ -134,6 +139,50 @@ export interface IApiCreateOrderRequest {
134
139
  export interface IApiCreateOrderResponse {
135
140
  result?: IOrder;
136
141
  }
142
+ export interface IApiCrossExchVaultAttestEquityRequest {
143
+ vault_id?: string;
144
+ total_equity?: string;
145
+ num_lp_tokens?: string;
146
+ share_price?: string;
147
+ last_update_timestamp?: string;
148
+ signature?: ISignature;
149
+ }
150
+ export interface IApiCrossExchVaultGetInvestorAllocationStatsResponse {
151
+ main_account_id?: string;
152
+ account_overview?: ICEVAllocStatsAccOverview;
153
+ per_vault?: ICEVAllocStatsVaultLevel[];
154
+ }
155
+ export interface IApiCrossExchVaultInvestCancelRequest {
156
+ main_account_id?: string;
157
+ vault_id?: string;
158
+ }
159
+ export interface IApiCrossExchVaultLockRequest {
160
+ cross_exch_vault_id?: string;
161
+ }
162
+ export interface IApiCrossExchVaultTriggerRedemptionRequest {
163
+ main_account_id?: string;
164
+ vault_id?: string;
165
+ request_time?: string;
166
+ }
167
+ export interface IApiCrossExchVaultUnlockRequest {
168
+ cross_exch_vault_id?: string;
169
+ }
170
+ export interface IApiCrossExchVaultViewInvestmentQueueRequest {
171
+ main_account_id?: string;
172
+ vault_id?: string;
173
+ }
174
+ export interface IApiCrossExchVaultViewInvestmentQueueResponse {
175
+ investment_queue?: ICrossExchVaultPendingInvestment[];
176
+ total_investment_equity?: string;
177
+ }
178
+ export interface IApiCrossExchVaultViewPendingInvestmentRequest {
179
+ main_account_id?: string;
180
+ vault_id?: string;
181
+ }
182
+ export interface IApiCrossExchVaultViewPendingInvestmentResponse {
183
+ vault_id?: string;
184
+ pending_investment?: ICrossExchVaultPendingInvestment;
185
+ }
137
186
  export interface IApiDedustPositionRequest {
138
187
  order?: IOrder;
139
188
  }
@@ -172,6 +221,20 @@ export interface IApiECNFromBrokerRequest {
172
221
  export interface IApiECNFromBrokerResponse {
173
222
  result?: boolean;
174
223
  }
224
+ export interface IApiEndEffectAccountMultiplierRequest {
225
+ epoch?: number;
226
+ ids?: string[];
227
+ }
228
+ export interface IApiEndEffectAccountMultiplierResponse {
229
+ ids?: string[];
230
+ }
231
+ export interface IApiEndEffectEpochBandParameterRequest {
232
+ epoch?: number;
233
+ ids?: string[];
234
+ }
235
+ export interface IApiEndEffectEpochBandParameterResponse {
236
+ ids?: string[];
237
+ }
175
238
  export interface IApiFillHistoryRequest {
176
239
  sub_account_id?: string;
177
240
  kind?: EKind[];
@@ -186,6 +249,17 @@ export interface IApiFillHistoryResponse {
186
249
  result?: IFill[];
187
250
  next?: string;
188
251
  }
252
+ export interface IApiFindAccountMultiplierRequest {
253
+ off_chain_account_id?: string;
254
+ filter_by_off_chain_account_id?: boolean;
255
+ account_type?: EAccountType;
256
+ metric?: EMetricType;
257
+ epoch?: number;
258
+ status?: EAccountMultiplierStatus;
259
+ }
260
+ export interface IApiFindAccountMultiplierResponse {
261
+ result?: IRewardAccountMultiplier[];
262
+ }
189
263
  export interface IApiFindEcosystemEpochMetricResponse {
190
264
  metric?: IEcosystemMetric;
191
265
  rank?: number;
@@ -197,6 +271,14 @@ export interface IApiFindEcosystemEpochMetricResponse {
197
271
  export interface IApiFindEcosystemLeaderboardResponse {
198
272
  users?: IEcosystemLeaderboardUser[];
199
273
  }
274
+ export interface IApiFindEpochBandParameterFilter {
275
+ status?: EEpochBandStatus;
276
+ epoch?: number;
277
+ metric?: EMetricType;
278
+ }
279
+ export interface IApiFindEpochBandParameterResponse {
280
+ result?: IRewardEpochBandParameter[];
281
+ }
200
282
  export interface IApiFindFirstEpochMetricResponse {
201
283
  phase_zero_metric?: IEcosystemMetric;
202
284
  phase_one_metric?: IEcosystemMetric;
@@ -214,6 +296,10 @@ export interface IApiFindTraderEpochMetricResponse {
214
296
  export interface IApiFindTraderLeaderboardResponse {
215
297
  users?: ITraderLeaderboardUser[];
216
298
  }
299
+ export interface IApiFirstSessionRewardResponse {
300
+ locked_airdrop_token_ratio?: number;
301
+ end_time?: string;
302
+ }
217
303
  export interface IApiFundingAccountSummaryResponse {
218
304
  result?: IFundingAccountSummary;
219
305
  tier?: IClientTier;
@@ -241,6 +327,23 @@ export interface IApiFundingRateResponse {
241
327
  result?: IFundingRate[];
242
328
  next?: string;
243
329
  }
330
+ export interface IApiGetActiveAccountMultiplierValueRequest {
331
+ epoch?: number;
332
+ off_chain_account_id?: string;
333
+ filter_by_off_chain_account_id?: boolean;
334
+ account_type?: EAccountType;
335
+ metric?: EMetricType;
336
+ }
337
+ export interface IApiGetActiveAccountMultiplierValueResponse {
338
+ result?: IRewardAccountMultiplier[];
339
+ }
340
+ export interface IApiGetActiveEpochBandParameterValueRequest {
341
+ epoch?: number;
342
+ metric?: EMetricType;
343
+ }
344
+ export interface IApiGetActiveEpochBandParameterValueResponse {
345
+ result?: IRewardEpochBandParameter[];
346
+ }
244
347
  export interface IApiGetAllInitialLeverageRequest {
245
348
  sub_account_id?: string;
246
349
  }
@@ -277,6 +380,12 @@ export interface IApiGetEcosystemReferralStatResponse {
277
380
  direct_invite_trading_volume?: string;
278
381
  indirect_invite_trading_volume?: string;
279
382
  }
383
+ export interface IApiGetEpochPointStatsResponse {
384
+ epoch?: number;
385
+ epoch_start_time?: string;
386
+ epoch_end_time?: string;
387
+ emitted_point?: string;
388
+ }
280
389
  export interface IApiGetFilteredInstrumentsRequest {
281
390
  kind?: EKind[];
282
391
  base?: string[];
@@ -370,6 +479,9 @@ export interface IApiGetPriceProtectionBandsResponse {
370
479
  default_band?: IPriceProtectionBand;
371
480
  asset_specific?: IAssetSpecificPriceProtectionBand[];
372
481
  }
482
+ export interface IApiGetRewardLeaderboardResponse {
483
+ result?: IApiRewardLeaderboardItem[];
484
+ }
373
485
  export interface IApiGetTraderStatResponse {
374
486
  total_fee?: string;
375
487
  }
@@ -381,6 +493,15 @@ export interface IApiGetUserEcosystemPointRequest {
381
493
  export interface IApiGetUserEcosystemPointResponse {
382
494
  points?: IEcosystemPoint[];
383
495
  }
496
+ export interface IApiGetUserEpochPointStatsResponse {
497
+ epoch?: number;
498
+ epoch_point?: string;
499
+ cumulative_point?: string;
500
+ epoch_rank?: number;
501
+ cumulative_rank?: number;
502
+ cumulative_rank_change?: number;
503
+ last_calculated_time?: string;
504
+ }
384
505
  export interface IApiGetUserVaultRewardPointResponse {
385
506
  ecosystem_point?: string;
386
507
  trader_point?: string;
@@ -390,6 +511,18 @@ export interface IApiGetVerifiedEcosystemLeaderboardRequest {
390
511
  calculate_from?: string;
391
512
  completed_kyc_before?: string;
392
513
  }
514
+ export interface IApiInactiveAccountMultiplierRequest {
515
+ ids?: string[];
516
+ }
517
+ export interface IApiInactiveAccountMultiplierResponse {
518
+ ids?: string[];
519
+ }
520
+ export interface IApiInactiveEpochBandParameterRequest {
521
+ ids?: string[];
522
+ }
523
+ export interface IApiInactiveEpochBandParameterResponse {
524
+ ids?: string[];
525
+ }
393
526
  export interface IApiLatestSnapSubAccountsRequest {
394
527
  sub_account_i_ds?: string[];
395
528
  }
@@ -595,6 +728,12 @@ export interface IApiResolveEpochEcosystemMetricResponse {
595
728
  point?: number;
596
729
  last_calculated_time?: string;
597
730
  }
731
+ export interface IApiRewardLeaderboardItem {
732
+ off_chain_account_id?: string;
733
+ twitter_username?: string;
734
+ rank?: number;
735
+ point?: string;
736
+ }
598
737
  export interface IApiSetClientTiersRequest {
599
738
  tiers?: IClientTier[];
600
739
  }
@@ -664,6 +803,7 @@ export interface IApiSubAccountTradeAggregationRequest {
664
803
  cursor?: string;
665
804
  group_by_signer?: boolean;
666
805
  sources?: ESource[];
806
+ is_liquidation?: boolean;
667
807
  }
668
808
  export interface IApiSubAccountTradeAggregationResponse {
669
809
  result?: ISubAccountTradeAggregation[];
@@ -716,6 +856,7 @@ export interface IApiTradingPerformanceTrend {
716
856
  trading_volume?: string;
717
857
  realized_pnl?: string;
718
858
  pnl?: string;
859
+ cumulative_pnl?: string;
719
860
  }
720
861
  export interface IApiTransferAck {
721
862
  ack?: boolean;
@@ -775,6 +916,10 @@ export interface IApiVaultDetail {
775
916
  total_equity?: string;
776
917
  valuation_cap?: string;
777
918
  unrealized_pnl?: string;
919
+ total_supply_lp_tokens?: string;
920
+ last_cross_exchange_equity_attest_timestamp?: string;
921
+ is_vault_locked?: boolean;
922
+ is_cross_exchange?: boolean;
778
923
  }
779
924
  export interface IApiVaultDetailRequest {
780
925
  vault_id?: string;
@@ -786,6 +931,10 @@ export interface IApiVaultDetailResponse {
786
931
  unrealized_pnl?: string;
787
932
  initial_margin?: string;
788
933
  maintenance_margin?: string;
934
+ total_supply_lp_tokens?: string;
935
+ last_cross_exchange_equity_attest_timestamp?: string;
936
+ is_vault_locked?: boolean;
937
+ is_cross_exchange?: boolean;
789
938
  }
790
939
  export interface IApiVaultInvestRequest {
791
940
  main_account_id?: string;
@@ -817,6 +966,7 @@ export interface IApiVaultPerformance {
817
966
  apr?: number;
818
967
  realized_pnl?: string;
819
968
  pnl?: string;
969
+ cumulative_pnl?: string;
820
970
  }
821
971
  export interface IApiVaultPerformanceTrend {
822
972
  start_interval?: string;
@@ -909,6 +1059,19 @@ export interface IAssetSpecificPriceProtectionBand {
909
1059
  asset?: string;
910
1060
  band?: IPriceProtectionBand;
911
1061
  }
1062
+ export interface ICEVAllocStatsAccOverview {
1063
+ total_allocation?: string;
1064
+ total_invested?: string;
1065
+ allowance?: string;
1066
+ lifetime_trading_volume?: string;
1067
+ allocation_percent_centi_beeps?: string;
1068
+ allocation_max_cap?: string;
1069
+ }
1070
+ export interface ICEVAllocStatsVaultLevel {
1071
+ vault_id?: string;
1072
+ invested_size?: string;
1073
+ pending_invest_size?: string;
1074
+ }
912
1075
  export interface ICancelStatusFeed {
913
1076
  sub_account_id?: string;
914
1077
  client_order_id?: string;
@@ -944,6 +1107,12 @@ export interface IClientTier {
944
1107
  options_taker_fee?: number;
945
1108
  options_maker_fee?: number;
946
1109
  }
1110
+ export interface ICrossExchVaultPendingInvestment {
1111
+ request_time?: string;
1112
+ currency?: string;
1113
+ num_tokens?: string;
1114
+ is_manager?: boolean;
1115
+ }
947
1116
  export interface ICurrencyDetail {
948
1117
  id?: number;
949
1118
  symbol?: string;
@@ -1025,6 +1194,7 @@ export interface IEpoch {
1025
1194
  epoch?: number;
1026
1195
  start_time?: string;
1027
1196
  end_time?: string;
1197
+ session?: ERewardSession;
1028
1198
  }
1029
1199
  export interface IEpochBadge {
1030
1200
  account_id?: string;
@@ -1058,6 +1228,33 @@ export interface IEpochLPPoint {
1058
1228
  liquidity_score?: string;
1059
1229
  vault_liquidity_score?: string;
1060
1230
  }
1231
+ export interface IEpochMetricPoint {
1232
+ metric?: EMetricType;
1233
+ epoch?: number;
1234
+ off_chain_account_id?: string;
1235
+ raw_point?: string;
1236
+ adjusted_point?: string;
1237
+ point?: string;
1238
+ metadata?: IRewardMetricPointMetadata;
1239
+ }
1240
+ export interface IEpochMetricPointCalculatorMetadata {
1241
+ metric?: EMetricType;
1242
+ epoch?: number;
1243
+ allocated_point?: string;
1244
+ total_adjusted_point?: string;
1245
+ band_range?: string[];
1246
+ band_steepness?: number[];
1247
+ calculated_at?: string;
1248
+ }
1249
+ export interface IEpochPoint {
1250
+ epoch?: number;
1251
+ off_chain_account_id?: string;
1252
+ point?: string;
1253
+ }
1254
+ export interface IEpochPointStats {
1255
+ epoch?: number;
1256
+ point?: string;
1257
+ }
1061
1258
  export interface IEpochUserVaultRewardPoint {
1062
1259
  epoch?: number;
1063
1260
  ecosystem_point?: string;
@@ -1316,6 +1513,8 @@ export interface IPositions {
1316
1513
  quote_index_price?: string;
1317
1514
  est_liquidation_price?: string;
1318
1515
  leverage?: string;
1516
+ cumulative_fee?: string;
1517
+ cumulative_realized_funding_payment?: string;
1319
1518
  }
1320
1519
  export interface IPreMinRedemptions {
1321
1520
  requests?: IVaultRedemptionRequest[];
@@ -1355,6 +1554,12 @@ export interface IQueryEpochBadgeResponse {
1355
1554
  result?: IEpochBadge[];
1356
1555
  next?: string;
1357
1556
  }
1557
+ export interface IQueryEpochPointStatsRequest {
1558
+ epoch?: number;
1559
+ }
1560
+ export interface IQueryEpochPointStatsResponse {
1561
+ stats?: IEpochPointStats;
1562
+ }
1358
1563
  export interface IQueryFindEpochRequest {
1359
1564
  time?: string;
1360
1565
  epoch?: number;
@@ -1388,6 +1593,15 @@ export interface IQueryMainAccountLeaderboardResponse {
1388
1593
  result?: IMainAccountLeaderboardEntry[];
1389
1594
  cursor?: string;
1390
1595
  }
1596
+ export interface IQueryRewardReferralPointRequest {
1597
+ epoch?: number;
1598
+ limit?: number;
1599
+ cursor?: string;
1600
+ }
1601
+ export interface IQueryRewardReferralPointResponse {
1602
+ result?: IRewardReferralPoint[];
1603
+ next?: string;
1604
+ }
1391
1605
  export interface IQueryTradingPerformanceTrendRequest {
1392
1606
  sub_account_i_ds?: string[];
1393
1607
  time_interval?: ETimeInterval;
@@ -1416,12 +1630,46 @@ export interface IQueryVaultSummaryHistoryRequest {
1416
1630
  export interface IQueryVaultSummaryHistoryResponse {
1417
1631
  result?: ISnapVaultSummary[];
1418
1632
  }
1633
+ export interface IRewardAccountMultiplier {
1634
+ id?: string;
1635
+ metric?: EMetricType;
1636
+ off_chain_account_id?: string;
1637
+ account_type?: EAccountType;
1638
+ multiplier?: number;
1639
+ effective_epoch_start?: number;
1640
+ effective_epoch_end?: number;
1641
+ status?: EAccountMultiplierStatus;
1642
+ created_by_id?: string;
1643
+ create_time?: string;
1644
+ update_time?: string;
1645
+ }
1646
+ export interface IRewardEpochBandParameter {
1647
+ id?: string;
1648
+ effective_epoch_start?: number;
1649
+ effective_epoch_end?: number;
1650
+ metric?: EMetricType;
1651
+ band_range?: string[];
1652
+ band_steepness?: number[];
1653
+ status?: EEpochBandStatus;
1654
+ created_by_id?: string;
1655
+ create_time?: string;
1656
+ update_time?: string;
1657
+ }
1419
1658
  export interface IRewardEpochInfo {
1420
1659
  epoch?: number;
1421
1660
  epoch_start_time?: string;
1422
1661
  epoch_end_time?: string;
1423
1662
  status?: ERewardEpochStatus;
1424
1663
  }
1664
+ export interface IRewardMetricPointMetadata {
1665
+ band_index?: number;
1666
+ account_multiplier?: string;
1667
+ }
1668
+ export interface IRewardReferralPoint {
1669
+ off_chain_account_id?: string;
1670
+ epoch?: number;
1671
+ point?: string;
1672
+ }
1425
1673
  export interface ISessionInformation {
1426
1674
  country_code?: string;
1427
1675
  client_session_id?: string;
@@ -1509,6 +1757,18 @@ export interface ISubAccountTradeAggregation {
1509
1757
  realized_pnl?: string;
1510
1758
  source?: ESource;
1511
1759
  }
1760
+ export interface ISubAccountTradingPerformance {
1761
+ start_interval?: string;
1762
+ sub_account_id?: string;
1763
+ total_trade_volume?: string;
1764
+ total_fee?: string;
1765
+ positive_fee?: string;
1766
+ num_traded?: string;
1767
+ realized_pnl?: string;
1768
+ unrealized_pnl?: string;
1769
+ is_unrealized_pnl_snapshotted?: boolean;
1770
+ funding_payment_amount?: string;
1771
+ }
1512
1772
  export interface ITPSLOrderMetadata {
1513
1773
  trigger_by?: ETriggerBy;
1514
1774
  trigger_price?: string;
@@ -1582,12 +1842,6 @@ export interface ITradingPerformance {
1582
1842
  last_start_interval?: string;
1583
1843
  funding_payment_amount?: string;
1584
1844
  }
1585
- export interface ITradingPerformancePoint {
1586
- start_interval?: string;
1587
- trading_volume?: string;
1588
- realized_pnl?: string;
1589
- unrealized_pnl?: string;
1590
- }
1591
1845
  export interface ITradingPerformanceTrendPoint {
1592
1846
  start_interval?: string;
1593
1847
  total_fee?: string;
@@ -1956,4 +2210,6 @@ export interface IWithdrawalHistory {
1956
2210
  num_tokens?: string;
1957
2211
  signature?: ISignature;
1958
2212
  event_time?: string;
2213
+ l_1_hash?: string;
2214
+ l_2_hash?: string;
1959
2215
  }
@@ -0,0 +1,5 @@
1
+ export declare enum EAccountMultiplierStatus {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE"
4
+ }
5
+ export declare const EAccountMultiplierStatusInt: Record<EAccountMultiplierStatus, number>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EAccountMultiplierStatusInt = exports.EAccountMultiplierStatus = void 0;
4
+ var EAccountMultiplierStatus;
5
+ (function (EAccountMultiplierStatus) {
6
+ // Active status
7
+ EAccountMultiplierStatus["ACTIVE"] = "ACTIVE";
8
+ // Inactive status
9
+ EAccountMultiplierStatus["INACTIVE"] = "INACTIVE";
10
+ })(EAccountMultiplierStatus || (exports.EAccountMultiplierStatus = EAccountMultiplierStatus = {}));
11
+ exports.EAccountMultiplierStatusInt = Object.freeze({
12
+ [EAccountMultiplierStatus.ACTIVE]: 1,
13
+ [EAccountMultiplierStatus.INACTIVE]: 2
14
+ });
@@ -0,0 +1,6 @@
1
+ export declare enum EAccountType {
2
+ ALL = "ALL",
3
+ RETAIL = "RETAIL",
4
+ INSTITUTIONAL = "INSTITUTIONAL"
5
+ }
6
+ export declare const EAccountTypeInt: Record<EAccountType, number>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EAccountTypeInt = exports.EAccountType = void 0;
4
+ var EAccountType;
5
+ (function (EAccountType) {
6
+ // All account types
7
+ EAccountType["ALL"] = "ALL";
8
+ // Retail account type
9
+ EAccountType["RETAIL"] = "RETAIL";
10
+ // Institutional account type
11
+ EAccountType["INSTITUTIONAL"] = "INSTITUTIONAL";
12
+ })(EAccountType || (exports.EAccountType = EAccountType = {}));
13
+ exports.EAccountTypeInt = Object.freeze({
14
+ [EAccountType.ALL]: 1,
15
+ [EAccountType.RETAIL]: 2,
16
+ [EAccountType.INSTITUTIONAL]: 3
17
+ });
@@ -29,6 +29,13 @@ export declare enum EClusterConfigType {
29
29
  FLAG_ENABLE_BULK_ORDER = "FLAG_ENABLE_BULK_ORDER",
30
30
  FLAG_ALLOW_DECREASE_FEE_IMMEDIATELY = "FLAG_ALLOW_DECREASE_FEE_IMMEDIATELY",
31
31
  FLAG_REJECT_AHEAD_OF_SEQUENCE_ECN_FROM_BROKER = "FLAG_REJECT_AHEAD_OF_SEQUENCE_ECN_FROM_BROKER",
32
- FLAG_ALLOW_TOTAL_EQUITY_AFTER_TRADE_LOSS_BELOW_IM = "FLAG_ALLOW_TOTAL_EQUITY_AFTER_TRADE_LOSS_BELOW_IM"
32
+ FLAG_ALLOW_TOTAL_EQUITY_AFTER_TRADE_LOSS_BELOW_IM = "FLAG_ALLOW_TOTAL_EQUITY_AFTER_TRADE_LOSS_BELOW_IM",
33
+ FLAG_ENABLE_POSITION_CUMULATIVE_DATA = "FLAG_ENABLE_POSITION_CUMULATIVE_DATA",
34
+ FLAG_DISABLE_VAULT_CREATE = "FLAG_DISABLE_VAULT_CREATE",
35
+ FLAG_ENABLE_INVESTMENT_QUEUE = "FLAG_ENABLE_INVESTMENT_QUEUE",
36
+ FLAG_CALCULATE_TAKER_TRADE_LEVEL_REALIZED_PNL = "FLAG_CALCULATE_TAKER_TRADE_LEVEL_REALIZED_PNL",
37
+ CONFIGURE_CEV_ACCESS_TIERS = "CONFIGURE_CEV_ACCESS_TIERS",
38
+ FLAG_ENABLE_VAULT_LOCK = "FLAG_ENABLE_VAULT_LOCK",
39
+ FLAG_ENABLE_MSG_TIMER = "FLAG_ENABLE_MSG_TIMER"
33
40
  }
34
41
  export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
@@ -65,6 +65,20 @@ var EClusterConfigType;
65
65
  EClusterConfigType["FLAG_REJECT_AHEAD_OF_SEQUENCE_ECN_FROM_BROKER"] = "FLAG_REJECT_AHEAD_OF_SEQUENCE_ECN_FROM_BROKER";
66
66
  // Flag to allow total equity after trade loss to be below IM
67
67
  EClusterConfigType["FLAG_ALLOW_TOTAL_EQUITY_AFTER_TRADE_LOSS_BELOW_IM"] = "FLAG_ALLOW_TOTAL_EQUITY_AFTER_TRADE_LOSS_BELOW_IM";
68
+ // Flag to enable position cumulative data
69
+ EClusterConfigType["FLAG_ENABLE_POSITION_CUMULATIVE_DATA"] = "FLAG_ENABLE_POSITION_CUMULATIVE_DATA";
70
+ // Flag to disable vault creation
71
+ EClusterConfigType["FLAG_DISABLE_VAULT_CREATE"] = "FLAG_DISABLE_VAULT_CREATE";
72
+ // Flag to enable investment queue
73
+ EClusterConfigType["FLAG_ENABLE_INVESTMENT_QUEUE"] = "FLAG_ENABLE_INVESTMENT_QUEUE";
74
+ // Flag to enable calculating taker trade level realized PnL
75
+ EClusterConfigType["FLAG_CALCULATE_TAKER_TRADE_LEVEL_REALIZED_PNL"] = "FLAG_CALCULATE_TAKER_TRADE_LEVEL_REALIZED_PNL";
76
+ // Payload to configure cross-exchange vault access tiers by lifetime trading volume.
77
+ EClusterConfigType["CONFIGURE_CEV_ACCESS_TIERS"] = "CONFIGURE_CEV_ACCESS_TIERS";
78
+ // Flag to enable vault lock
79
+ EClusterConfigType["FLAG_ENABLE_VAULT_LOCK"] = "FLAG_ENABLE_VAULT_LOCK";
80
+ // Flag to enable MsgTimer in all services
81
+ EClusterConfigType["FLAG_ENABLE_MSG_TIMER"] = "FLAG_ENABLE_MSG_TIMER";
68
82
  })(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
69
83
  exports.EClusterConfigTypeInt = Object.freeze({
70
84
  [EClusterConfigType.CLIENT_TIER]: 1,
@@ -97,5 +111,12 @@ exports.EClusterConfigTypeInt = Object.freeze({
97
111
  [EClusterConfigType.FLAG_ENABLE_BULK_ORDER]: 28,
98
112
  [EClusterConfigType.FLAG_ALLOW_DECREASE_FEE_IMMEDIATELY]: 29,
99
113
  [EClusterConfigType.FLAG_REJECT_AHEAD_OF_SEQUENCE_ECN_FROM_BROKER]: 30,
100
- [EClusterConfigType.FLAG_ALLOW_TOTAL_EQUITY_AFTER_TRADE_LOSS_BELOW_IM]: 31
114
+ [EClusterConfigType.FLAG_ALLOW_TOTAL_EQUITY_AFTER_TRADE_LOSS_BELOW_IM]: 31,
115
+ [EClusterConfigType.FLAG_ENABLE_POSITION_CUMULATIVE_DATA]: 32,
116
+ [EClusterConfigType.FLAG_DISABLE_VAULT_CREATE]: 33,
117
+ [EClusterConfigType.FLAG_ENABLE_INVESTMENT_QUEUE]: 34,
118
+ [EClusterConfigType.FLAG_CALCULATE_TAKER_TRADE_LEVEL_REALIZED_PNL]: 35,
119
+ [EClusterConfigType.CONFIGURE_CEV_ACCESS_TIERS]: 36,
120
+ [EClusterConfigType.FLAG_ENABLE_VAULT_LOCK]: 37,
121
+ [EClusterConfigType.FLAG_ENABLE_MSG_TIMER]: 38
101
122
  });
@@ -0,0 +1,5 @@
1
+ export declare enum EEpochBandStatus {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE"
4
+ }
5
+ export declare const EEpochBandStatusInt: Record<EEpochBandStatus, number>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EEpochBandStatusInt = exports.EEpochBandStatus = void 0;
4
+ var EEpochBandStatus;
5
+ (function (EEpochBandStatus) {
6
+ // Active status
7
+ EEpochBandStatus["ACTIVE"] = "ACTIVE";
8
+ // Inactive status
9
+ EEpochBandStatus["INACTIVE"] = "INACTIVE";
10
+ })(EEpochBandStatus || (exports.EEpochBandStatus = EEpochBandStatus = {}));
11
+ exports.EEpochBandStatusInt = Object.freeze({
12
+ [EEpochBandStatus.ACTIVE]: 1,
13
+ [EEpochBandStatus.INACTIVE]: 2
14
+ });