@grvt/client 1.6.7 → 1.6.8

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 (110) hide show
  1. package/MDG/index.d.ts +9 -1
  2. package/MDG/index.js +20 -0
  3. package/interfaces/codegen/data.interface.d.ts +212 -8
  4. package/interfaces/codegen/enums/account-multiplier-metadata-type.d.ts +5 -0
  5. package/interfaces/codegen/enums/account-multiplier-metadata-type.js +14 -0
  6. package/interfaces/codegen/enums/cluster-config-type.d.ts +9 -1
  7. package/interfaces/codegen/enums/cluster-config-type.js +25 -1
  8. package/interfaces/codegen/enums/distribution-type.d.ts +9 -0
  9. package/interfaces/codegen/enums/distribution-type.js +26 -0
  10. package/interfaces/codegen/enums/epoch-point-boost-configuration-status.d.ts +5 -0
  11. package/interfaces/codegen/enums/epoch-point-boost-configuration-status.js +14 -0
  12. package/interfaces/codegen/enums/epoch-point-distribution-configuration-status.d.ts +5 -0
  13. package/interfaces/codegen/enums/epoch-point-distribution-configuration-status.js +14 -0
  14. package/interfaces/codegen/enums/funding-rate-aggregation-type.d.ts +7 -0
  15. package/interfaces/codegen/enums/funding-rate-aggregation-type.js +21 -0
  16. package/interfaces/codegen/enums/point-type.d.ts +6 -0
  17. package/interfaces/codegen/enums/point-type.js +17 -0
  18. package/interfaces/codegen/schema-maps/admin_reward_epoch.d.ts +2 -0
  19. package/interfaces/codegen/schema-maps/admin_reward_epoch.js +27 -0
  20. package/interfaces/codegen/schema-maps/admin_reward_epoch_metadata.d.ts +2 -0
  21. package/interfaces/codegen/schema-maps/admin_reward_epoch_metadata.js +14 -0
  22. package/interfaces/codegen/schema-maps/api_create_epoch_point_boost_configuration_request.d.ts +2 -0
  23. package/interfaces/codegen/schema-maps/api_create_epoch_point_boost_configuration_request.js +15 -0
  24. package/interfaces/codegen/schema-maps/api_create_epoch_point_boost_configuration_response.d.ts +2 -0
  25. package/interfaces/codegen/schema-maps/api_create_epoch_point_boost_configuration_response.js +12 -0
  26. package/interfaces/codegen/schema-maps/api_create_epoch_point_distribution_configuration_request.d.ts +2 -0
  27. package/interfaces/codegen/schema-maps/api_create_epoch_point_distribution_configuration_request.js +15 -0
  28. package/interfaces/codegen/schema-maps/api_create_epoch_point_distribution_configuration_response.d.ts +2 -0
  29. package/interfaces/codegen/schema-maps/api_create_epoch_point_distribution_configuration_response.js +12 -0
  30. package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_boost_configuration_request.d.ts +2 -0
  31. package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_boost_configuration_request.js +12 -0
  32. package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_boost_configuration_response.d.ts +2 -0
  33. package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_boost_configuration_response.js +12 -0
  34. package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_distribution_configuration_request.d.ts +2 -0
  35. package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_distribution_configuration_request.js +12 -0
  36. package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_distribution_configuration_response.d.ts +2 -0
  37. package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_distribution_configuration_response.js +12 -0
  38. package/interfaces/codegen/schema-maps/api_funding_history_comparison_request.d.ts +2 -0
  39. package/interfaces/codegen/schema-maps/api_funding_history_comparison_request.js +16 -0
  40. package/interfaces/codegen/schema-maps/api_funding_history_comparison_response.d.ts +2 -0
  41. package/interfaces/codegen/schema-maps/api_funding_history_comparison_response.js +15 -0
  42. package/interfaces/codegen/schema-maps/api_funding_rate.d.ts +2 -0
  43. package/interfaces/codegen/schema-maps/{funding_rate.js → api_funding_rate.js} +7 -5
  44. package/interfaces/codegen/schema-maps/api_funding_rate_request.js +4 -2
  45. package/interfaces/codegen/schema-maps/api_funding_rate_response.js +3 -3
  46. package/interfaces/codegen/schema-maps/api_get_epoch_point_boost_configuration_request.d.ts +2 -0
  47. package/interfaces/codegen/schema-maps/api_get_epoch_point_boost_configuration_request.js +12 -0
  48. package/interfaces/codegen/schema-maps/api_get_epoch_point_boost_configuration_response.d.ts +2 -0
  49. package/interfaces/codegen/schema-maps/api_get_epoch_point_boost_configuration_response.js +13 -0
  50. package/interfaces/codegen/schema-maps/api_get_epoch_point_distribution_configuration_request.d.ts +2 -0
  51. package/interfaces/codegen/schema-maps/api_get_epoch_point_distribution_configuration_request.js +12 -0
  52. package/interfaces/codegen/schema-maps/api_get_epoch_point_distribution_configuration_response.d.ts +2 -0
  53. package/interfaces/codegen/schema-maps/api_get_epoch_point_distribution_configuration_response.js +13 -0
  54. package/interfaces/codegen/schema-maps/api_inject_points_request.d.ts +2 -0
  55. package/interfaces/codegen/schema-maps/api_inject_points_request.js +15 -0
  56. package/interfaces/codegen/schema-maps/api_inject_points_response.d.ts +2 -0
  57. package/interfaces/codegen/schema-maps/api_inject_points_response.js +12 -0
  58. package/interfaces/codegen/schema-maps/api_list_epoch_point_boost_configuration_request.d.ts +2 -0
  59. package/interfaces/codegen/schema-maps/api_list_epoch_point_boost_configuration_request.js +14 -0
  60. package/interfaces/codegen/schema-maps/api_list_epoch_point_boost_configuration_response.d.ts +2 -0
  61. package/interfaces/codegen/schema-maps/api_list_epoch_point_boost_configuration_response.js +13 -0
  62. package/interfaces/codegen/schema-maps/api_list_epoch_point_distribution_configuration_request.d.ts +2 -0
  63. package/interfaces/codegen/schema-maps/api_list_epoch_point_distribution_configuration_request.js +14 -0
  64. package/interfaces/codegen/schema-maps/api_list_epoch_point_distribution_configuration_response.d.ts +2 -0
  65. package/interfaces/codegen/schema-maps/api_list_epoch_point_distribution_configuration_response.js +13 -0
  66. package/interfaces/codegen/schema-maps/api_live_funding_rate_comparison_request.d.ts +2 -0
  67. package/interfaces/codegen/schema-maps/api_live_funding_rate_comparison_request.js +12 -0
  68. package/interfaces/codegen/schema-maps/api_live_funding_rate_comparison_response.d.ts +2 -0
  69. package/interfaces/codegen/schema-maps/api_live_funding_rate_comparison_response.js +13 -0
  70. package/interfaces/codegen/schema-maps/api_manual_injected_point_history_request.d.ts +2 -0
  71. package/interfaces/codegen/schema-maps/api_manual_injected_point_history_request.js +18 -0
  72. package/interfaces/codegen/schema-maps/api_manual_injected_point_history_response.d.ts +2 -0
  73. package/interfaces/codegen/schema-maps/api_manual_injected_point_history_response.js +13 -0
  74. package/interfaces/codegen/schema-maps/api_vault_detail.js +4 -2
  75. package/interfaces/codegen/schema-maps/batch_create_account_multiplier_element.js +5 -2
  76. package/interfaces/codegen/schema-maps/detail_admin_reward_epoch.d.ts +2 -0
  77. package/interfaces/codegen/schema-maps/detail_admin_reward_epoch.js +22 -0
  78. package/interfaces/codegen/schema-maps/detail_admin_reward_epoch_response.d.ts +2 -0
  79. package/interfaces/codegen/schema-maps/detail_admin_reward_epoch_response.js +13 -0
  80. package/interfaces/codegen/schema-maps/epoch_point_boost_configuration.d.ts +2 -0
  81. package/interfaces/codegen/schema-maps/epoch_point_boost_configuration.js +27 -0
  82. package/interfaces/codegen/schema-maps/epoch_point_distribution_configuration.d.ts +2 -0
  83. package/interfaces/codegen/schema-maps/epoch_point_distribution_configuration.js +27 -0
  84. package/interfaces/codegen/schema-maps/exchange_funding_rate.d.ts +2 -0
  85. package/interfaces/codegen/schema-maps/exchange_funding_rate.js +14 -0
  86. package/interfaces/codegen/schema-maps/funding_history_comparison_entry.d.ts +2 -0
  87. package/interfaces/codegen/schema-maps/funding_history_comparison_entry.js +17 -0
  88. package/interfaces/codegen/schema-maps/injected_point_request_element.d.ts +2 -0
  89. package/interfaces/codegen/schema-maps/injected_point_request_element.js +14 -0
  90. package/interfaces/codegen/schema-maps/list_reward_epoch_response.d.ts +2 -0
  91. package/interfaces/codegen/schema-maps/list_reward_epoch_response.js +13 -0
  92. package/interfaces/codegen/schema-maps/live_funding_rate_comparison_entry.d.ts +2 -0
  93. package/interfaces/codegen/schema-maps/live_funding_rate_comparison_entry.js +21 -0
  94. package/interfaces/codegen/schema-maps/manual_point_distribution.d.ts +2 -0
  95. package/interfaces/codegen/schema-maps/manual_point_distribution.js +31 -0
  96. package/interfaces/codegen/schema-maps/manual_point_distribution_metadata.d.ts +2 -0
  97. package/interfaces/codegen/schema-maps/manual_point_distribution_metadata.js +16 -0
  98. package/interfaces/codegen/schema-maps/point_distribution_ratio.d.ts +2 -0
  99. package/interfaces/codegen/schema-maps/point_distribution_ratio.js +24 -0
  100. package/interfaces/codegen/schema-maps/reserve_point_information.d.ts +2 -0
  101. package/interfaces/codegen/schema-maps/reserve_point_information.js +14 -0
  102. package/interfaces/codegen/schema-maps/reward_account_multiplier.js +5 -2
  103. package/interfaces/codegen/schema-maps/reward_account_multiplier_metadata.d.ts +2 -0
  104. package/interfaces/codegen/schema-maps/reward_account_multiplier_metadata.js +18 -0
  105. package/interfaces/codegen/schema-maps/update_reward_epoch_request.d.ts +2 -0
  106. package/interfaces/codegen/schema-maps/update_reward_epoch_request.js +14 -0
  107. package/interfaces/codegen/schema-maps/update_reward_epoch_response.d.ts +2 -0
  108. package/interfaces/codegen/schema-maps/update_reward_epoch_response.js +13 -0
  109. package/package.json +1 -1
  110. package/interfaces/codegen/schema-maps/funding_rate.d.ts +0 -2
package/MDG/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
- import type { IApiBatchQueryVaultDetailRequest, IApiBatchQueryVaultDetailResponse, IApiBatchQueryVaultPerformanceRequest, IApiBatchQueryVaultPerformanceResponse, IApiBatchQueryVaultRiskMetricRequest, IApiBatchQueryVaultRiskMetricResponse, IApiCandlestickRequest, IApiCandlestickResponse, IApiFundingRateRequest, IApiFundingRateResponse, IApiGetAllInstrumentsRequest, IApiGetAllInstrumentsResponse, IApiGetFilteredInstrumentsRequest, IApiGetFilteredInstrumentsResponse, IApiGetInstrumentRequest, IApiGetInstrumentResponse, IApiMiniTickerRequest, IApiMiniTickerResponse, IApiOrderbookLevelsRequest, IApiOrderbookLevelsResponse, IApiQueryListVaultSubAccountSummaryRequest, IApiQueryListVaultSubAccountSummaryResponse, IApiQuerySnapVaultPositionRequest, IApiQuerySnapVaultPositionResponse, IApiQueryVaultPerformanceTrendRequest, IApiQueryVaultPerformanceTrendResponse, IApiQueryVaultSummaryHistoryRequest, IApiQueryVaultSummaryHistoryResponse, IApiSettlementPriceRequest, IApiSettlementPriceResponse, IApiTickerRequest, IApiTickerResponse, IApiTimedAssetExposureResponse, IApiTimedVaultAssetExposureRequest, IApiTradeHistoryRequest, IApiTradeHistoryResponse, IApiTradeRequest, IApiTradeResponse, IConfig } from '../interfaces';
2
+ import type { IApiBatchQueryVaultDetailRequest, IApiBatchQueryVaultDetailResponse, IApiBatchQueryVaultPerformanceRequest, IApiBatchQueryVaultPerformanceResponse, IApiBatchQueryVaultRiskMetricRequest, IApiBatchQueryVaultRiskMetricResponse, IApiCandlestickRequest, IApiCandlestickResponse, IApiFundingHistoryComparisonRequest, IApiFundingHistoryComparisonResponse, IApiFundingRateRequest, IApiFundingRateResponse, IApiGetAllInstrumentsRequest, IApiGetAllInstrumentsResponse, IApiGetFilteredInstrumentsRequest, IApiGetFilteredInstrumentsResponse, IApiGetInstrumentRequest, IApiGetInstrumentResponse, IApiLiveFundingRateComparisonRequest, IApiLiveFundingRateComparisonResponse, IApiMiniTickerRequest, IApiMiniTickerResponse, IApiOrderbookLevelsRequest, IApiOrderbookLevelsResponse, IApiQueryListVaultSubAccountSummaryRequest, IApiQueryListVaultSubAccountSummaryResponse, IApiQuerySnapVaultPositionRequest, IApiQuerySnapVaultPositionResponse, IApiQueryVaultPerformanceTrendRequest, IApiQueryVaultPerformanceTrendResponse, IApiQueryVaultSummaryHistoryRequest, IApiQueryVaultSummaryHistoryResponse, IApiSettlementPriceRequest, IApiSettlementPriceResponse, IApiTickerRequest, IApiTickerResponse, IApiTimedAssetExposureResponse, IApiTimedVaultAssetExposureRequest, IApiTradeHistoryRequest, IApiTradeHistoryResponse, IApiTradeRequest, IApiTradeResponse, IConfig } from '../interfaces';
3
3
  export declare class MDG {
4
4
  private readonly _axios;
5
5
  private readonly _fullUrl;
@@ -61,4 +61,12 @@ export declare class MDG {
61
61
  vaultRiskMetric(payload: IApiBatchQueryVaultRiskMetricRequest, config?: AxiosRequestConfig): Promise<IApiBatchQueryVaultRiskMetricResponse>;
62
62
  vaultSummaryHistory(payload: IApiQueryVaultSummaryHistoryRequest, config?: AxiosRequestConfig): Promise<IApiQueryVaultSummaryHistoryResponse>;
63
63
  vaultSubAccountSummaryHistory(payload: IApiQueryListVaultSubAccountSummaryRequest, config?: AxiosRequestConfig): Promise<IApiQueryListVaultSubAccountSummaryResponse>;
64
+ /**
65
+ * END: Vault
66
+ */
67
+ /**
68
+ * SECTION: Funding V2
69
+ */
70
+ liveFundingRateComparison(payload: IApiLiveFundingRateComparisonRequest, config?: AxiosRequestConfig): Promise<IApiLiveFundingRateComparisonResponse>;
71
+ fundingHistoryComparison(payload: IApiFundingHistoryComparisonRequest, config?: AxiosRequestConfig): Promise<IApiFundingHistoryComparisonResponse>;
64
72
  }
package/MDG/index.js CHANGED
@@ -10,6 +10,8 @@ const api_batch_query_vault_risk_metric_request_1 = require("../interfaces/codeg
10
10
  const api_batch_query_vault_risk_metric_response_1 = require("../interfaces/codegen/schema-maps/api_batch_query_vault_risk_metric_response");
11
11
  const api_candlestick_request_1 = require("../interfaces/codegen/schema-maps/api_candlestick_request");
12
12
  const api_candlestick_response_1 = require("../interfaces/codegen/schema-maps/api_candlestick_response");
13
+ const api_funding_history_comparison_request_1 = require("../interfaces/codegen/schema-maps/api_funding_history_comparison_request");
14
+ const api_funding_history_comparison_response_1 = require("../interfaces/codegen/schema-maps/api_funding_history_comparison_response");
13
15
  const api_funding_rate_request_1 = require("../interfaces/codegen/schema-maps/api_funding_rate_request");
14
16
  const api_funding_rate_response_1 = require("../interfaces/codegen/schema-maps/api_funding_rate_response");
15
17
  const api_get_all_instruments_request_1 = require("../interfaces/codegen/schema-maps/api_get_all_instruments_request");
@@ -18,6 +20,8 @@ const api_get_filtered_instruments_request_1 = require("../interfaces/codegen/sc
18
20
  const api_get_filtered_instruments_response_1 = require("../interfaces/codegen/schema-maps/api_get_filtered_instruments_response");
19
21
  const api_get_instrument_request_1 = require("../interfaces/codegen/schema-maps/api_get_instrument_request");
20
22
  const api_get_instrument_response_1 = require("../interfaces/codegen/schema-maps/api_get_instrument_response");
23
+ const api_live_funding_rate_comparison_request_1 = require("../interfaces/codegen/schema-maps/api_live_funding_rate_comparison_request");
24
+ const api_live_funding_rate_comparison_response_1 = require("../interfaces/codegen/schema-maps/api_live_funding_rate_comparison_response");
21
25
  const api_mini_ticker_request_1 = require("../interfaces/codegen/schema-maps/api_mini_ticker_request");
22
26
  const api_mini_ticker_response_1 = require("../interfaces/codegen/schema-maps/api_mini_ticker_response");
23
27
  const api_orderbook_levels_request_1 = require("../interfaces/codegen/schema-maps/api_orderbook_levels_request");
@@ -183,5 +187,21 @@ class MDG {
183
187
  return utils_1.Utils.schemaMap(response.data, api_query_list_vault_sub_account_summary_response_1.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP.LITE_TO_FULL);
184
188
  }).catch(utils_1.Utils.coverApiError);
185
189
  }
190
+ /**
191
+ * END: Vault
192
+ */
193
+ /**
194
+ * SECTION: Funding V2
195
+ */
196
+ liveFundingRateComparison(payload, config) {
197
+ return this._axios.post(this._liteUrl + '/live_funding_rate_comparison', utils_1.Utils.schemaMap(payload, api_live_funding_rate_comparison_request_1.API_LIVE_FUNDING_RATE_COMPARISON_REQUEST_MAP.FULL_TO_LITE, true), Object.assign(Object.assign({}, config), { withCredentials: false })).then((response) => {
198
+ return utils_1.Utils.schemaMap(response.data, api_live_funding_rate_comparison_response_1.API_LIVE_FUNDING_RATE_COMPARISON_RESPONSE_MAP.LITE_TO_FULL);
199
+ }).catch(utils_1.Utils.coverApiError);
200
+ }
201
+ fundingHistoryComparison(payload, config) {
202
+ return this._axios.post(this._liteUrl + '/funding_history_comparison', utils_1.Utils.schemaMap(payload, api_funding_history_comparison_request_1.API_FUNDING_HISTORY_COMPARISON_REQUEST_MAP.FULL_TO_LITE, true), Object.assign(Object.assign({}, config), { withCredentials: false })).then((response) => {
203
+ return utils_1.Utils.schemaMap(response.data, api_funding_history_comparison_response_1.API_FUNDING_HISTORY_COMPARISON_RESPONSE_MAP.LITE_TO_FULL);
204
+ }).catch(utils_1.Utils.coverApiError);
205
+ }
186
206
  }
187
207
  exports.MDG = MDG;
@@ -1,3 +1,4 @@
1
+ import type { EAccountMultiplierMetadataType } from './enums/account-multiplier-metadata-type.ts';
1
2
  import type { EAccountMultiplierStatus } from './enums/account-multiplier-status.ts';
2
3
  import type { EAccountType } from './enums/account-type.ts';
3
4
  import type { EBridgeType } from './enums/bridge-type.ts';
@@ -6,14 +7,19 @@ import type { ECancelStatus } from './enums/cancel-status.ts';
6
7
  import type { ECandlestickInterval } from './enums/candlestick-interval.ts';
7
8
  import type { ECandlestickType } from './enums/candlestick-type.ts';
8
9
  import type { EClusterConfigType } from './enums/cluster-config-type.ts';
10
+ import type { EDistributionType } from './enums/distribution-type.ts';
9
11
  import type { EEpochBadgeType } from './enums/epoch-badge-type.ts';
10
12
  import type { EEpochBandStatus } from './enums/epoch-band-status.ts';
13
+ import type { EEpochPointBoostConfigurationStatus } from './enums/epoch-point-boost-configuration-status.ts';
14
+ import type { EEpochPointDistributionConfigurationStatus } from './enums/epoch-point-distribution-configuration-status.ts';
15
+ import type { EFundingRateAggregationType } from './enums/funding-rate-aggregation-type.ts';
11
16
  import type { EInstrumentSettlementPeriod } from './enums/instrument-settlement-period.ts';
12
17
  import type { EKind } from './enums/kind.ts';
13
18
  import type { EMarginType } from './enums/margin-type.ts';
14
19
  import type { EMetricType } from './enums/metric-type.ts';
15
20
  import type { EOrderRejectReason } from './enums/order-reject-reason.ts';
16
21
  import type { EOrderStatus } from './enums/order-status.ts';
22
+ import type { EPointType } from './enums/point-type.ts';
17
23
  import type { EQueryMainAccountLeaderboardOrderBy } from './enums/query-main-account-leaderboard-order-by.ts';
18
24
  import type { ERewardEpochStatus } from './enums/reward-epoch-status.ts';
19
25
  import type { ERewardProgramType } from './enums/reward-program-type.ts';
@@ -42,6 +48,20 @@ export interface IAck {
42
48
  export interface IAckResponse {
43
49
  result?: IAck;
44
50
  }
51
+ export interface IAdminRewardEpoch {
52
+ id?: string;
53
+ epoch?: number;
54
+ start_time?: string;
55
+ end_time?: string;
56
+ emitted_points?: string;
57
+ is_released?: boolean;
58
+ metadata?: IAdminRewardEpochMetadata;
59
+ reserve_points?: string;
60
+ }
61
+ export interface IAdminRewardEpochMetadata {
62
+ total_trading_volume?: string;
63
+ visible_emitted_points?: string;
64
+ }
45
65
  export interface IAggregatedAccountSummary {
46
66
  main_account_id?: string;
47
67
  total_equity?: string;
@@ -159,6 +179,20 @@ export interface IApiCreateEpochBandParameterRequest {
159
179
  export interface IApiCreateEpochBandParameterResponse {
160
180
  id?: string;
161
181
  }
182
+ export interface IApiCreateEpochPointBoostConfigurationRequest {
183
+ epoch?: number;
184
+ boost_percentage?: IPointDistributionRatio;
185
+ }
186
+ export interface IApiCreateEpochPointBoostConfigurationResponse {
187
+ id?: string;
188
+ }
189
+ export interface IApiCreateEpochPointDistributionConfigurationRequest {
190
+ start_epoch?: number;
191
+ point_distribution_percentage?: IPointDistributionRatio;
192
+ }
193
+ export interface IApiCreateEpochPointDistributionConfigurationResponse {
194
+ id?: string;
195
+ }
162
196
  export interface IApiCreateOrderRequest {
163
197
  order?: IOrder;
164
198
  }
@@ -225,6 +259,18 @@ export interface IApiCrossExchVaultViewPendingInvestmentResponse {
225
259
  vault_id?: string;
226
260
  pending_investment?: ICrossExchVaultPendingInvestment;
227
261
  }
262
+ export interface IApiDeactivateEpochPointBoostConfigurationRequest {
263
+ id?: string;
264
+ }
265
+ export interface IApiDeactivateEpochPointBoostConfigurationResponse {
266
+ id?: string;
267
+ }
268
+ export interface IApiDeactivateEpochPointDistributionConfigurationRequest {
269
+ id?: string;
270
+ }
271
+ export interface IApiDeactivateEpochPointDistributionConfigurationResponse {
272
+ id?: string;
273
+ }
228
274
  export interface IApiDedustPositionRequest {
229
275
  order?: IOrder;
230
276
  }
@@ -349,6 +395,15 @@ export interface IApiFundingAccountSummaryResponse {
349
395
  result?: IFundingAccountSummary;
350
396
  tier?: IClientTier;
351
397
  }
398
+ export interface IApiFundingHistoryComparisonRequest {
399
+ instrument?: string;
400
+ agg_type?: EFundingRateAggregationType;
401
+ num_intervals?: number;
402
+ }
403
+ export interface IApiFundingHistoryComparisonResponse {
404
+ instrument?: string;
405
+ entries?: IFundingHistoryComparisonEntry[];
406
+ }
352
407
  export interface IApiFundingPaymentHistoryRequest {
353
408
  sub_account_id?: string;
354
409
  instrument?: string;
@@ -361,15 +416,24 @@ export interface IApiFundingPaymentHistoryResponse {
361
416
  result?: IFundingPayment[];
362
417
  next?: string;
363
418
  }
419
+ export interface IApiFundingRate {
420
+ instrument?: string;
421
+ funding_rate?: string;
422
+ funding_time?: string;
423
+ mark_price?: string;
424
+ funding_rate_8_h_avg?: string;
425
+ funding_interval_hours?: number;
426
+ }
364
427
  export interface IApiFundingRateRequest {
365
428
  instrument?: string;
366
429
  start_time?: string;
367
430
  end_time?: string;
368
431
  limit?: number;
369
432
  cursor?: string;
433
+ agg_type?: EFundingRateAggregationType;
370
434
  }
371
435
  export interface IApiFundingRateResponse {
372
- result?: IFundingRate[];
436
+ result?: IApiFundingRate[];
373
437
  next?: string;
374
438
  }
375
439
  export interface IApiGetActiveAccountMultiplierValueRequest {
@@ -429,6 +493,18 @@ export interface IApiGetEcosystemReferralStatResponse {
429
493
  direct_invite_trading_volume?: string;
430
494
  indirect_invite_trading_volume?: string;
431
495
  }
496
+ export interface IApiGetEpochPointBoostConfigurationRequest {
497
+ epoch?: number;
498
+ }
499
+ export interface IApiGetEpochPointBoostConfigurationResponse {
500
+ result?: IEpochPointBoostConfiguration;
501
+ }
502
+ export interface IApiGetEpochPointDistributionConfigurationRequest {
503
+ epoch?: number;
504
+ }
505
+ export interface IApiGetEpochPointDistributionConfigurationResponse {
506
+ result?: IEpochPointDistributionConfiguration;
507
+ }
432
508
  export interface IApiGetEpochPointStatsResponse {
433
509
  epoch?: number;
434
510
  epoch_start_time?: string;
@@ -572,6 +648,13 @@ export interface IApiInactiveEpochBandParameterRequest {
572
648
  export interface IApiInactiveEpochBandParameterResponse {
573
649
  ids?: string[];
574
650
  }
651
+ export interface IApiInjectPointsRequest {
652
+ injections?: IInjectedPointRequestElement[];
653
+ reason?: string;
654
+ }
655
+ export interface IApiInjectPointsResponse {
656
+ success?: boolean;
657
+ }
575
658
  export interface IApiInternalBatchCreateAccountMultiplierRequest {
576
659
  metric?: EMetricType;
577
660
  multiplers?: IBatchCreateAccountMultiplierElement[];
@@ -593,9 +676,38 @@ export interface IApiListAggregatedAccountSummaryRequest {
593
676
  export interface IApiListAggregatedAccountSummaryResponse {
594
677
  account_summaries?: IApiDetailedAggregatedAccountSummaryResponse[];
595
678
  }
679
+ export interface IApiListEpochPointBoostConfigurationRequest {
680
+ epoch?: number;
681
+ status?: EEpochPointBoostConfigurationStatus;
682
+ }
683
+ export interface IApiListEpochPointBoostConfigurationResponse {
684
+ result?: IEpochPointBoostConfiguration[];
685
+ }
686
+ export interface IApiListEpochPointDistributionConfigurationRequest {
687
+ start_epoch?: number;
688
+ status?: EEpochPointDistributionConfigurationStatus;
689
+ }
690
+ export interface IApiListEpochPointDistributionConfigurationResponse {
691
+ result?: IEpochPointDistributionConfiguration[];
692
+ }
596
693
  export interface IApiListEpochUserVaultRewardPointResponse {
597
694
  result?: IEpochUserVaultRewardPoint[];
598
695
  }
696
+ export interface IApiLiveFundingRateComparisonRequest {
697
+ agg_type?: EFundingRateAggregationType;
698
+ }
699
+ export interface IApiLiveFundingRateComparisonResponse {
700
+ entries?: ILiveFundingRateComparisonEntry[];
701
+ }
702
+ export interface IApiManualInjectedPointHistoryRequest {
703
+ epoch?: number;
704
+ off_chain_account_id?: string;
705
+ page?: number;
706
+ limit?: number;
707
+ }
708
+ export interface IApiManualInjectedPointHistoryResponse {
709
+ result?: IManualPointDistribution[];
710
+ }
599
711
  export interface IApiMiniTickerRequest {
600
712
  instrument?: string;
601
713
  }
@@ -992,6 +1104,7 @@ export interface IApiVaultDetail {
992
1104
  last_cross_exchange_equity_attest_timestamp?: string;
993
1105
  is_vault_locked?: boolean;
994
1106
  is_cross_exchange?: boolean;
1107
+ is_ungated?: boolean;
995
1108
  }
996
1109
  export interface IApiVaultDetailRequest {
997
1110
  vault_id?: string;
@@ -1135,6 +1248,7 @@ export interface IBatchCreateAccountMultiplierElement {
1135
1248
  off_chain_account_id?: string;
1136
1249
  account_type?: EAccountType;
1137
1250
  multiplier?: number;
1251
+ metadata?: IRewardAccountMultiplierMetadata;
1138
1252
  }
1139
1253
  export interface ICEVAccessTier {
1140
1254
  idx?: number;
@@ -1227,6 +1341,16 @@ export interface IDepositHistory {
1227
1341
  confirmed_time?: string;
1228
1342
  from_address?: string;
1229
1343
  }
1344
+ export interface IDetailAdminRewardEpoch {
1345
+ epoch_info?: IAdminRewardEpoch;
1346
+ distribution_percentage?: IPointDistributionRatio;
1347
+ raw_distribution_percentage?: IPointDistributionRatio;
1348
+ boost_percentage?: IPointDistributionRatio;
1349
+ visibility_percentage?: number;
1350
+ }
1351
+ export interface IDetailAdminRewardEpochResponse {
1352
+ result?: IDetailAdminRewardEpoch;
1353
+ }
1230
1354
  export interface IDetailedAggregatedAccountSummary {
1231
1355
  main_account_id?: string;
1232
1356
  total_equity?: string;
@@ -1344,6 +1468,26 @@ export interface IEpochPoint {
1344
1468
  point?: string;
1345
1469
  reserve_point?: string;
1346
1470
  }
1471
+ export interface IEpochPointBoostConfiguration {
1472
+ id?: string;
1473
+ epoch?: number;
1474
+ boost_percentage?: IPointDistributionRatio;
1475
+ status?: EEpochPointBoostConfigurationStatus;
1476
+ created_by_id?: string;
1477
+ update_by_id?: string;
1478
+ create_time?: string;
1479
+ update_time?: string;
1480
+ }
1481
+ export interface IEpochPointDistributionConfiguration {
1482
+ id?: string;
1483
+ start_epoch?: number;
1484
+ point_distribution_percentage?: IPointDistributionRatio;
1485
+ status?: EEpochPointDistributionConfigurationStatus;
1486
+ created_by_id?: string;
1487
+ update_by_id?: string;
1488
+ create_time?: string;
1489
+ update_time?: string;
1490
+ }
1347
1491
  export interface IEpochPointStats {
1348
1492
  epoch?: number;
1349
1493
  point?: string;
@@ -1358,6 +1502,10 @@ export interface IError {
1358
1502
  code?: number;
1359
1503
  message?: string;
1360
1504
  }
1505
+ export interface IExchangeFundingRate {
1506
+ exchange?: string;
1507
+ funding_rate?: number;
1508
+ }
1361
1509
  export interface IFill {
1362
1510
  event_time?: string;
1363
1511
  sub_account_id?: string;
@@ -1410,6 +1558,11 @@ export interface IFundingAccountSummary {
1410
1558
  spot_balances?: ISpotBalance[];
1411
1559
  vault_investments?: IVaultInvestment[];
1412
1560
  }
1561
+ export interface IFundingHistoryComparisonEntry {
1562
+ funding_time?: string;
1563
+ mark_price?: string;
1564
+ funding_rates?: IExchangeFundingRate[];
1565
+ }
1413
1566
  export interface IFundingInfo {
1414
1567
  interval_hours?: number;
1415
1568
  funding_rate_high_pct?: string;
@@ -1424,13 +1577,6 @@ export interface IFundingPayment {
1424
1577
  amount?: string;
1425
1578
  tx_id?: string;
1426
1579
  }
1427
- export interface IFundingRate {
1428
- instrument?: string;
1429
- funding_rate?: string;
1430
- funding_time?: string;
1431
- mark_price?: string;
1432
- funding_rate_8_h_avg?: string;
1433
- }
1434
1580
  export interface IGetClaimableEcosystemBadgeResponse {
1435
1581
  badge?: IEpochBadge;
1436
1582
  is_claimable?: boolean;
@@ -1442,6 +1588,10 @@ export interface IInitialLeverageResult {
1442
1588
  min_leverage?: string;
1443
1589
  max_leverage?: string;
1444
1590
  }
1591
+ export interface IInjectedPointRequestElement {
1592
+ off_chain_account_id?: string;
1593
+ points?: number;
1594
+ }
1445
1595
  export interface IInstrumentDisplay {
1446
1596
  instrument?: string;
1447
1597
  instrument_hash?: string;
@@ -1512,6 +1662,16 @@ export interface ILPSubAccountSnapshot {
1512
1662
  liquidity_score?: string;
1513
1663
  calculate_at?: string;
1514
1664
  }
1665
+ export interface IListRewardEpochResponse {
1666
+ result?: IAdminRewardEpoch[];
1667
+ }
1668
+ export interface ILiveFundingRateComparisonEntry {
1669
+ instrument?: string;
1670
+ next_funding_time?: string;
1671
+ funding_interval_hours?: number;
1672
+ funding_rates?: IExchangeFundingRate[];
1673
+ open_interest?: string;
1674
+ }
1515
1675
  export interface ILpInfoEntry {
1516
1676
  lp_address?: string;
1517
1677
  info?: IVaultLpInfo;
@@ -1527,6 +1687,23 @@ export interface IMainAccountLeaderboardEntry {
1527
1687
  positive_fee?: string;
1528
1688
  realized_pnl?: string;
1529
1689
  }
1690
+ export interface IManualPointDistribution {
1691
+ id?: string;
1692
+ off_chain_account_id?: string;
1693
+ points?: number;
1694
+ epoch?: number;
1695
+ metadata?: IManualPointDistributionMetadata;
1696
+ distribution_type?: EDistributionType;
1697
+ point_type?: EPointType;
1698
+ created_by_id?: string;
1699
+ create_time?: string;
1700
+ update_time?: string;
1701
+ }
1702
+ export interface IManualPointDistributionMetadata {
1703
+ reason?: string;
1704
+ raffle_task_id?: string;
1705
+ task_account_create_time?: string;
1706
+ }
1530
1707
  export interface IMarginTierResponse {
1531
1708
  lower_bound?: string;
1532
1709
  rate?: string;
@@ -1598,6 +1775,15 @@ export interface IOrderbookLevels {
1598
1775
  bids?: IOrderbookLevel[];
1599
1776
  asks?: IOrderbookLevel[];
1600
1777
  }
1778
+ export interface IPointDistributionRatio {
1779
+ trading_volume?: number;
1780
+ trading_lp_point?: number;
1781
+ trading_open_interest?: number;
1782
+ trading_liquidation?: number;
1783
+ tvl?: number;
1784
+ community_referral?: number;
1785
+ reserve_pool?: number;
1786
+ }
1601
1787
  export interface IPositionSummary {
1602
1788
  instrument?: string;
1603
1789
  size?: string;
@@ -1748,6 +1934,10 @@ export interface IQueryVaultSummaryHistoryRequest {
1748
1934
  export interface IQueryVaultSummaryHistoryResponse {
1749
1935
  result?: ISnapVaultSummary[];
1750
1936
  }
1937
+ export interface IReservePointInformation {
1938
+ cumulative_reserved_points?: string;
1939
+ available_reserve_points?: string;
1940
+ }
1751
1941
  export interface IRewardAccountMultiplier {
1752
1942
  id?: string;
1753
1943
  metric?: EMetricType;
@@ -1760,6 +1950,13 @@ export interface IRewardAccountMultiplier {
1760
1950
  created_by_id?: string;
1761
1951
  create_time?: string;
1762
1952
  update_time?: string;
1953
+ metadata?: IRewardAccountMultiplierMetadata;
1954
+ }
1955
+ export interface IRewardAccountMultiplierMetadata {
1956
+ ambassador_tier?: number;
1957
+ referrer_account_id?: string;
1958
+ note?: string;
1959
+ metadata_type?: EAccountMultiplierMetadataType;
1763
1960
  }
1764
1961
  export interface IRewardEpochBandParameter {
1765
1962
  id?: string;
@@ -1996,6 +2193,13 @@ export interface ITriggerOrderMetadata {
1996
2193
  trigger_type?: ETriggerType;
1997
2194
  tpsl?: ITPSLOrderMetadata;
1998
2195
  }
2196
+ export interface IUpdateRewardEpochRequest {
2197
+ epoch?: number;
2198
+ is_released?: boolean;
2199
+ }
2200
+ export interface IUpdateRewardEpochResponse {
2201
+ result?: IAdminRewardEpoch;
2202
+ }
1999
2203
  export interface IUserCategoryAffinityScore {
2000
2204
  account_id?: string;
2001
2205
  category_id?: string;
@@ -0,0 +1,5 @@
1
+ export declare enum EAccountMultiplierMetadataType {
2
+ AMBASSADOR = "AMBASSADOR",
3
+ REFERRED_BY_AMBASSADOR = "REFERRED_BY_AMBASSADOR"
4
+ }
5
+ export declare const EAccountMultiplierMetadataTypeInt: Record<EAccountMultiplierMetadataType, number>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EAccountMultiplierMetadataTypeInt = exports.EAccountMultiplierMetadataType = void 0;
4
+ var EAccountMultiplierMetadataType;
5
+ (function (EAccountMultiplierMetadataType) {
6
+ // ambassador type
7
+ EAccountMultiplierMetadataType["AMBASSADOR"] = "AMBASSADOR";
8
+ // referred by ambassador type
9
+ EAccountMultiplierMetadataType["REFERRED_BY_AMBASSADOR"] = "REFERRED_BY_AMBASSADOR";
10
+ })(EAccountMultiplierMetadataType || (exports.EAccountMultiplierMetadataType = EAccountMultiplierMetadataType = {}));
11
+ exports.EAccountMultiplierMetadataTypeInt = Object.freeze({
12
+ [EAccountMultiplierMetadataType.AMBASSADOR]: 1,
13
+ [EAccountMultiplierMetadataType.REFERRED_BY_AMBASSADOR]: 2
14
+ });
@@ -47,6 +47,14 @@ export declare enum EClusterConfigType {
47
47
  FLAG_ENABLE_UPDATE_FUNDING_INFO_FIX = "FLAG_ENABLE_UPDATE_FUNDING_INFO_FIX",
48
48
  FLAG_DISABLE_MARKET_DATA_FUNDING_TICK_PUBS = "FLAG_DISABLE_MARKET_DATA_FUNDING_TICK_PUBS",
49
49
  FLAG_FIX_V_2_REPORTED_FUNDING_PAYMENT = "FLAG_FIX_V_2_REPORTED_FUNDING_PAYMENT",
50
- FLAG_FIX_TOTAL_VOLUME_CALCULATION = "FLAG_FIX_TOTAL_VOLUME_CALCULATION"
50
+ FLAG_FIX_TOTAL_VOLUME_CALCULATION = "FLAG_FIX_TOTAL_VOLUME_CALCULATION",
51
+ FLAG_SKIP_PRE_TRADE_CHECK = "FLAG_SKIP_PRE_TRADE_CHECK",
52
+ RISK_SNAPSHOT_VERSION = "RISK_SNAPSHOT_VERSION",
53
+ FLAG_IM_CHECK_MULTIPLIER = "FLAG_IM_CHECK_MULTIPLIER",
54
+ CONFIGURE_NON_LIQUIDATABLE_SUB_ACCOUNTS = "CONFIGURE_NON_LIQUIDATABLE_SUB_ACCOUNTS",
55
+ FLAG_ALLOW_RISK_REDUCING_TRADES_WHEN_NEGATIVE_TE = "FLAG_ALLOW_RISK_REDUCING_TRADES_WHEN_NEGATIVE_TE",
56
+ CONFIGURE_UNGATED_CROSS_EXCH_VAULTS = "CONFIGURE_UNGATED_CROSS_EXCH_VAULTS",
57
+ FLAG_ADJUST_WCPS_FOR_FLIPPING_POSITION = "FLAG_ADJUST_WCPS_FOR_FLIPPING_POSITION",
58
+ FLAG_CEV_RISK_PUBS_ATTEST_THEN_UNLOCK = "FLAG_CEV_RISK_PUBS_ATTEST_THEN_UNLOCK"
51
59
  }
52
60
  export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
@@ -101,6 +101,22 @@ var EClusterConfigType;
101
101
  EClusterConfigType["FLAG_FIX_V_2_REPORTED_FUNDING_PAYMENT"] = "FLAG_FIX_V_2_REPORTED_FUNDING_PAYMENT";
102
102
  // Flag to fix the total volume calculation
103
103
  EClusterConfigType["FLAG_FIX_TOTAL_VOLUME_CALCULATION"] = "FLAG_FIX_TOTAL_VOLUME_CALCULATION";
104
+ // Flag to skip pre-trade check
105
+ EClusterConfigType["FLAG_SKIP_PRE_TRADE_CHECK"] = "FLAG_SKIP_PRE_TRADE_CHECK";
106
+ // Version of the risk snapshot
107
+ EClusterConfigType["RISK_SNAPSHOT_VERSION"] = "RISK_SNAPSHOT_VERSION";
108
+ // Flag to check IM multiplier
109
+ EClusterConfigType["FLAG_IM_CHECK_MULTIPLIER"] = "FLAG_IM_CHECK_MULTIPLIER";
110
+ // Payload to configure non-liquidatable sub-accounts list.
111
+ EClusterConfigType["CONFIGURE_NON_LIQUIDATABLE_SUB_ACCOUNTS"] = "CONFIGURE_NON_LIQUIDATABLE_SUB_ACCOUNTS";
112
+ // Flag to enable risk-reducing trades when negative TE.
113
+ EClusterConfigType["FLAG_ALLOW_RISK_REDUCING_TRADES_WHEN_NEGATIVE_TE"] = "FLAG_ALLOW_RISK_REDUCING_TRADES_WHEN_NEGATIVE_TE";
114
+ // Config payload for setting ungated CEVs.
115
+ EClusterConfigType["CONFIGURE_UNGATED_CROSS_EXCH_VAULTS"] = "CONFIGURE_UNGATED_CROSS_EXCH_VAULTS";
116
+ // Flag to adjust WCPS for flipping position
117
+ EClusterConfigType["FLAG_ADJUST_WCPS_FOR_FLIPPING_POSITION"] = "FLAG_ADJUST_WCPS_FOR_FLIPPING_POSITION";
118
+ // Flag to swap risk attest and unlock pub order
119
+ EClusterConfigType["FLAG_CEV_RISK_PUBS_ATTEST_THEN_UNLOCK"] = "FLAG_CEV_RISK_PUBS_ATTEST_THEN_UNLOCK";
104
120
  })(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
105
121
  exports.EClusterConfigTypeInt = Object.freeze({
106
122
  [EClusterConfigType.CLIENT_TIER]: 1,
@@ -151,5 +167,13 @@ exports.EClusterConfigTypeInt = Object.freeze({
151
167
  [EClusterConfigType.FLAG_ENABLE_UPDATE_FUNDING_INFO_FIX]: 46,
152
168
  [EClusterConfigType.FLAG_DISABLE_MARKET_DATA_FUNDING_TICK_PUBS]: 47,
153
169
  [EClusterConfigType.FLAG_FIX_V_2_REPORTED_FUNDING_PAYMENT]: 48,
154
- [EClusterConfigType.FLAG_FIX_TOTAL_VOLUME_CALCULATION]: 49
170
+ [EClusterConfigType.FLAG_FIX_TOTAL_VOLUME_CALCULATION]: 49,
171
+ [EClusterConfigType.FLAG_SKIP_PRE_TRADE_CHECK]: 50,
172
+ [EClusterConfigType.RISK_SNAPSHOT_VERSION]: 51,
173
+ [EClusterConfigType.FLAG_IM_CHECK_MULTIPLIER]: 52,
174
+ [EClusterConfigType.CONFIGURE_NON_LIQUIDATABLE_SUB_ACCOUNTS]: 53,
175
+ [EClusterConfigType.FLAG_ALLOW_RISK_REDUCING_TRADES_WHEN_NEGATIVE_TE]: 54,
176
+ [EClusterConfigType.CONFIGURE_UNGATED_CROSS_EXCH_VAULTS]: 55,
177
+ [EClusterConfigType.FLAG_ADJUST_WCPS_FOR_FLIPPING_POSITION]: 56,
178
+ [EClusterConfigType.FLAG_CEV_RISK_PUBS_ATTEST_THEN_UNLOCK]: 57
155
179
  });
@@ -0,0 +1,9 @@
1
+ export declare enum EDistributionType {
2
+ ADHOC = "ADHOC",
3
+ RAFFLE_TASK = "RAFFLE_TASK",
4
+ KYC_VERIFICATION = "KYC_VERIFICATION",
5
+ SECURE_KEY_SETUP = "SECURE_KEY_SETUP",
6
+ FIRST_DEPOSIT = "FIRST_DEPOSIT",
7
+ FIRST_TRADE = "FIRST_TRADE"
8
+ }
9
+ export declare const EDistributionTypeInt: Record<EDistributionType, number>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EDistributionTypeInt = exports.EDistributionType = void 0;
4
+ var EDistributionType;
5
+ (function (EDistributionType) {
6
+ // Adhoc distribution
7
+ EDistributionType["ADHOC"] = "ADHOC";
8
+ // Raffle task distribution
9
+ EDistributionType["RAFFLE_TASK"] = "RAFFLE_TASK";
10
+ // KYC verification distribution
11
+ EDistributionType["KYC_VERIFICATION"] = "KYC_VERIFICATION";
12
+ // Secure key setup distribution
13
+ EDistributionType["SECURE_KEY_SETUP"] = "SECURE_KEY_SETUP";
14
+ // First deposit distribution
15
+ EDistributionType["FIRST_DEPOSIT"] = "FIRST_DEPOSIT";
16
+ // First trade distribution
17
+ EDistributionType["FIRST_TRADE"] = "FIRST_TRADE";
18
+ })(EDistributionType || (exports.EDistributionType = EDistributionType = {}));
19
+ exports.EDistributionTypeInt = Object.freeze({
20
+ [EDistributionType.ADHOC]: 1,
21
+ [EDistributionType.RAFFLE_TASK]: 2,
22
+ [EDistributionType.KYC_VERIFICATION]: 3,
23
+ [EDistributionType.SECURE_KEY_SETUP]: 4,
24
+ [EDistributionType.FIRST_DEPOSIT]: 5,
25
+ [EDistributionType.FIRST_TRADE]: 6
26
+ });
@@ -0,0 +1,5 @@
1
+ export declare enum EEpochPointBoostConfigurationStatus {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE"
4
+ }
5
+ export declare const EEpochPointBoostConfigurationStatusInt: Record<EEpochPointBoostConfigurationStatus, number>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EEpochPointBoostConfigurationStatusInt = exports.EEpochPointBoostConfigurationStatus = void 0;
4
+ var EEpochPointBoostConfigurationStatus;
5
+ (function (EEpochPointBoostConfigurationStatus) {
6
+ // Active status
7
+ EEpochPointBoostConfigurationStatus["ACTIVE"] = "ACTIVE";
8
+ // Inactive status
9
+ EEpochPointBoostConfigurationStatus["INACTIVE"] = "INACTIVE";
10
+ })(EEpochPointBoostConfigurationStatus || (exports.EEpochPointBoostConfigurationStatus = EEpochPointBoostConfigurationStatus = {}));
11
+ exports.EEpochPointBoostConfigurationStatusInt = Object.freeze({
12
+ [EEpochPointBoostConfigurationStatus.ACTIVE]: 1,
13
+ [EEpochPointBoostConfigurationStatus.INACTIVE]: 2
14
+ });
@@ -0,0 +1,5 @@
1
+ export declare enum EEpochPointDistributionConfigurationStatus {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE"
4
+ }
5
+ export declare const EEpochPointDistributionConfigurationStatusInt: Record<EEpochPointDistributionConfigurationStatus, number>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EEpochPointDistributionConfigurationStatusInt = exports.EEpochPointDistributionConfigurationStatus = void 0;
4
+ var EEpochPointDistributionConfigurationStatus;
5
+ (function (EEpochPointDistributionConfigurationStatus) {
6
+ // Active status
7
+ EEpochPointDistributionConfigurationStatus["ACTIVE"] = "ACTIVE";
8
+ // Inactive status
9
+ EEpochPointDistributionConfigurationStatus["INACTIVE"] = "INACTIVE";
10
+ })(EEpochPointDistributionConfigurationStatus || (exports.EEpochPointDistributionConfigurationStatus = EEpochPointDistributionConfigurationStatus = {}));
11
+ exports.EEpochPointDistributionConfigurationStatusInt = Object.freeze({
12
+ [EEpochPointDistributionConfigurationStatus.ACTIVE]: 1,
13
+ [EEpochPointDistributionConfigurationStatus.INACTIVE]: 2
14
+ });
@@ -0,0 +1,7 @@
1
+ export declare enum EFundingRateAggregationType {
2
+ FUNDING_INTERVAL = "FUNDING_INTERVAL",
3
+ ONE_HOURLY = "ONE_HOURLY",
4
+ FOUR_HOURLY = "FOUR_HOURLY",
5
+ EIGHT_HOURLY = "EIGHT_HOURLY"
6
+ }
7
+ export declare const EFundingRateAggregationTypeInt: Record<EFundingRateAggregationType, number>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EFundingRateAggregationTypeInt = exports.EFundingRateAggregationType = void 0;
4
+ // Specifies different methods of aggregating historical funding rates
5
+ var EFundingRateAggregationType;
6
+ (function (EFundingRateAggregationType) {
7
+ // Default value -- one record returned per funding interval. Query instruments endpoint to learn funding interval of each instrument.
8
+ EFundingRateAggregationType["FUNDING_INTERVAL"] = "FUNDING_INTERVAL";
9
+ // Returns one record per hour -- normalizes all funding rates to 1h durations, so `fundingRate` value is cumulative and can exceed a funding interval's configured cap / floor.
10
+ EFundingRateAggregationType["ONE_HOURLY"] = "ONE_HOURLY";
11
+ // Returns one record per 4 hours -- normalizes all funding rates to 4h durations, so `fundingRate` value is cumulative and can exceed a funding interval's configured cap / floor.
12
+ EFundingRateAggregationType["FOUR_HOURLY"] = "FOUR_HOURLY";
13
+ // Returns one record for eight hours -- normalizes all funding rates to 8h durations, so `fundingRate` value is cumulative and can exceed a funding interval's configured cap / floor.
14
+ EFundingRateAggregationType["EIGHT_HOURLY"] = "EIGHT_HOURLY";
15
+ })(EFundingRateAggregationType || (exports.EFundingRateAggregationType = EFundingRateAggregationType = {}));
16
+ exports.EFundingRateAggregationTypeInt = Object.freeze({
17
+ [EFundingRateAggregationType.FUNDING_INTERVAL]: 1,
18
+ [EFundingRateAggregationType.ONE_HOURLY]: 2,
19
+ [EFundingRateAggregationType.FOUR_HOURLY]: 3,
20
+ [EFundingRateAggregationType.EIGHT_HOURLY]: 4
21
+ });
@@ -0,0 +1,6 @@
1
+ export declare enum EPointType {
2
+ ECOSYSTEM = "ECOSYSTEM",
3
+ TRADER = "TRADER",
4
+ SECOND_SESSION = "SECOND_SESSION"
5
+ }
6
+ export declare const EPointTypeInt: Record<EPointType, number>;