@grvt/client 1.6.30 → 1.6.31

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 (27) hide show
  1. package/TDG/index.d.ts +2 -1
  2. package/TDG/index.js +7 -0
  3. package/interfaces/codegen/data.interface.d.ts +45 -1
  4. package/interfaces/codegen/enums/cluster-config-type.d.ts +3 -1
  5. package/interfaces/codegen/enums/cluster-config-type.js +7 -1
  6. package/interfaces/codegen/enums/transfer-type.d.ts +3 -1
  7. package/interfaces/codegen/enums/transfer-type.js +7 -1
  8. package/interfaces/codegen/schema-maps/api_query_list_sub_account_summary_response.js +3 -3
  9. package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_request.d.ts +2 -0
  10. package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_request.js +22 -0
  11. package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_response.d.ts +2 -0
  12. package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_response.js +13 -0
  13. package/interfaces/codegen/schema-maps/api_query_trading_performance_trend_request.js +4 -2
  14. package/interfaces/codegen/schema-maps/api_sub_account_summary.d.ts +2 -0
  15. package/interfaces/codegen/schema-maps/api_sub_account_summary.js +18 -0
  16. package/interfaces/codegen/schema-maps/api_sub_account_trade_aggregation_trend.d.ts +2 -0
  17. package/interfaces/codegen/schema-maps/api_sub_account_trade_aggregation_trend.js +16 -0
  18. package/interfaces/codegen/schema-maps/flat_public_trade.js +4 -2
  19. package/interfaces/codegen/schema-maps/funding_account_summary.js +6 -2
  20. package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_request.d.ts +2 -0
  21. package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_request.js +20 -0
  22. package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_response.d.ts +2 -0
  23. package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_response.js +13 -0
  24. package/interfaces/codegen/schema-maps/snap_sub_account_summary.js +10 -2
  25. package/interfaces/codegen/schema-maps/sub_account_trade_aggregation_by_interval_lite.d.ts +2 -0
  26. package/interfaces/codegen/schema-maps/sub_account_trade_aggregation_by_interval_lite.js +14 -0
  27. package/package.json +1 -1
package/TDG/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
- import type { IAckResponse, IApiAddIsolatedPositionMarginRequest, IApiAddIsolatedPositionMarginResponse, IApiAggregatedAccountSummaryResponse, IApiAuthorizeBuilderRequest, IApiBuilderFillHistoryRequest, IApiBuilderFillHistoryResponse, IApiBulkOrdersRequest, IApiBulkOrdersResponse, IApiCancelAllOrdersRequest, IApiCancelAllOrdersResponse, IApiCancelOrderRequest, IApiCancelOrderResponse, IApiCreateBulkOrdersRequest, IApiCreateBulkOrdersResponse, IApiCreateOrderRequest, IApiCreateOrderResponse, IApiCrossExchVaultAttestEquityRequest, IApiCrossExchVaultGetInvestorAllocationStatsResponse, IApiCrossExchVaultInvestCancelRequest, IApiCrossExchVaultLockRequest, IApiCrossExchVaultPreInternalTransferCheckRequest, IApiCrossExchVaultPreInternalTransferCheckResponse, IApiCrossExchVaultPreWithdrawCheckRequest, IApiCrossExchVaultPreWithdrawCheckResponse, IApiCrossExchVaultTriggerRedemptionRequest, IApiCrossExchVaultUnlockRequest, IApiCrossExchVaultViewInvestmentQueueRequest, IApiCrossExchVaultViewInvestmentQueueResponse, IApiCrossExchVaultViewPendingInvestmentRequest, IApiCrossExchVaultViewPendingInvestmentResponse, IApiDedustPositionRequest, IApiDedustPositionResponse, IApiDepositHistoryRequest, IApiDepositHistoryResponse, IApiFillHistoryRequest, IApiFillHistoryResponse, IApiFundingAccountSummaryResponse, IApiFundingPaymentHistoryRequest, IApiFundingPaymentHistoryResponse, IApiGetAllInitialLeverageRequest, IApiGetAllInitialLeverageResponse, IApiGetAuthorizedBuildersResponse, IApiGetIsolatedPositionMarginLimitsRequest, IApiGetIsolatedPositionMarginLimitsResponse, IApiGetMarginTiersResponse, IApiGetOrderGroupRequest, IApiGetOrderGroupResponse, IApiGetOrderRequest, IApiGetOrderResponse, IApiGetPriceProtectionBandsResponse, IApiOpenOrdersRequest, IApiOpenOrdersResponse, IApiOrderHistoryRequest, IApiOrderHistoryResponse, IApiPositionHistoryRequest, IApiPositionHistoryResponse, IApiPositionsRequest, IApiPositionsResponse, IApiPreDepositCheckRequest, IApiPreDepositCheckResponse, IApiPreOrderCheckRequest, IApiPreOrderCheckResponse, IApiQueryAccountDailyPerformanceRequest, IApiQueryAccountDailyPerformanceResponse, IApiQueryAccountPerformanceRequest, IApiQueryAccountPerformanceResponse, IApiQueryAccountPerformanceTrendRequest, IApiQueryAccountPerformanceTrendResponse, IApiQueryAccountTodayPerformanceRequest, IApiQueryAccountTodayPerformanceResponse, IApiQueryListFundingAccountSummaryRequest, IApiQueryListFundingAccountSummaryResponse, IApiQueryListSubAccountSummaryRequest, IApiQueryListSubAccountSummaryResponse, IApiQuerySubAccountDailyPerformanceRequest, IApiQuerySubAccountDailyPerformanceResponse, IApiQuerySubAccountTodayPerformanceRequest, IApiQuerySubAccountTodayPerformanceResponse, IApiQueryTradingAccountRiskMetricRequest, IApiQueryTradingAccountRiskMetricResponse, IApiQueryTradingPerformanceRequest, IApiQueryTradingPerformanceResponse, IApiQueryTradingPerformanceSummaryRequest, IApiQueryTradingPerformanceSummaryResponse, IApiQueryTradingPerformanceTrendRequest, IApiQueryTradingPerformanceTrendResponse, IApiQueryVaultInvestorHistoryRequest, IApiQueryVaultInvestorHistoryResponse, IApiQueryVaultManagerInvestorHistoryRequest, IApiQueryVaultManagerInvestorHistoryResponse, IApiReplaceOrdersRequest, IApiReplaceOrdersResponse, IApiSetInitialLeverageRequest, IApiSetInitialLeverageResponse, IApiSetSubAccountPositionMarginConfigRequest, IApiSetSubAccountPositionMarginConfigResponse, IApiSocializedLossStatusResponse, IApiSpotSubAccountSummaryRequest, IApiSpotSubAccountSummaryResponse, 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, IApiAddIsolatedPositionMarginRequest, IApiAddIsolatedPositionMarginResponse, IApiAggregatedAccountSummaryResponse, IApiAuthorizeBuilderRequest, IApiBuilderFillHistoryRequest, IApiBuilderFillHistoryResponse, IApiBulkOrdersRequest, IApiBulkOrdersResponse, IApiCancelAllOrdersRequest, IApiCancelAllOrdersResponse, IApiCancelOrderRequest, IApiCancelOrderResponse, IApiCreateBulkOrdersRequest, IApiCreateBulkOrdersResponse, IApiCreateOrderRequest, IApiCreateOrderResponse, IApiCrossExchVaultAttestEquityRequest, IApiCrossExchVaultGetInvestorAllocationStatsResponse, IApiCrossExchVaultInvestCancelRequest, IApiCrossExchVaultLockRequest, IApiCrossExchVaultPreInternalTransferCheckRequest, IApiCrossExchVaultPreInternalTransferCheckResponse, IApiCrossExchVaultPreWithdrawCheckRequest, IApiCrossExchVaultPreWithdrawCheckResponse, IApiCrossExchVaultTriggerRedemptionRequest, IApiCrossExchVaultUnlockRequest, IApiCrossExchVaultViewInvestmentQueueRequest, IApiCrossExchVaultViewInvestmentQueueResponse, IApiCrossExchVaultViewPendingInvestmentRequest, IApiCrossExchVaultViewPendingInvestmentResponse, IApiDedustPositionRequest, IApiDedustPositionResponse, IApiDepositHistoryRequest, IApiDepositHistoryResponse, IApiFillHistoryRequest, IApiFillHistoryResponse, IApiFundingAccountSummaryResponse, IApiFundingPaymentHistoryRequest, IApiFundingPaymentHistoryResponse, IApiGetAllInitialLeverageRequest, IApiGetAllInitialLeverageResponse, IApiGetAuthorizedBuildersResponse, IApiGetIsolatedPositionMarginLimitsRequest, IApiGetIsolatedPositionMarginLimitsResponse, IApiGetMarginTiersResponse, IApiGetOrderGroupRequest, IApiGetOrderGroupResponse, IApiGetOrderRequest, IApiGetOrderResponse, IApiGetPriceProtectionBandsResponse, IApiOpenOrdersRequest, IApiOpenOrdersResponse, IApiOrderHistoryRequest, IApiOrderHistoryResponse, IApiPositionHistoryRequest, IApiPositionHistoryResponse, IApiPositionsRequest, IApiPositionsResponse, IApiPreDepositCheckRequest, IApiPreDepositCheckResponse, IApiPreOrderCheckRequest, IApiPreOrderCheckResponse, IApiQueryAccountDailyPerformanceRequest, IApiQueryAccountDailyPerformanceResponse, IApiQueryAccountPerformanceRequest, IApiQueryAccountPerformanceResponse, IApiQueryAccountPerformanceTrendRequest, IApiQueryAccountPerformanceTrendResponse, IApiQueryAccountTodayPerformanceRequest, IApiQueryAccountTodayPerformanceResponse, IApiQueryListFundingAccountSummaryRequest, IApiQueryListFundingAccountSummaryResponse, IApiQueryListSubAccountSummaryRequest, IApiQueryListSubAccountSummaryResponse, IApiQuerySubAccountDailyPerformanceRequest, IApiQuerySubAccountDailyPerformanceResponse, IApiQuerySubAccountTodayPerformanceRequest, IApiQuerySubAccountTodayPerformanceResponse, IApiQuerySubAccountTradeAggregationTrendRequest, IApiQuerySubAccountTradeAggregationTrendResponse, IApiQueryTradingAccountRiskMetricRequest, IApiQueryTradingAccountRiskMetricResponse, IApiQueryTradingPerformanceRequest, IApiQueryTradingPerformanceResponse, IApiQueryTradingPerformanceSummaryRequest, IApiQueryTradingPerformanceSummaryResponse, IApiQueryTradingPerformanceTrendRequest, IApiQueryTradingPerformanceTrendResponse, IApiQueryVaultInvestorHistoryRequest, IApiQueryVaultInvestorHistoryResponse, IApiQueryVaultManagerInvestorHistoryRequest, IApiQueryVaultManagerInvestorHistoryResponse, IApiReplaceOrdersRequest, IApiReplaceOrdersResponse, IApiSetInitialLeverageRequest, IApiSetInitialLeverageResponse, IApiSetSubAccountPositionMarginConfigRequest, IApiSetSubAccountPositionMarginConfigResponse, IApiSocializedLossStatusResponse, IApiSpotSubAccountSummaryRequest, IApiSpotSubAccountSummaryResponse, 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;
@@ -120,6 +120,7 @@ export declare class TDG {
120
120
  aggregatedAccountSummary(config?: AxiosRequestConfig): Promise<IApiAggregatedAccountSummaryResponse>;
121
121
  tradingPerformance(payload: IApiQueryTradingPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQueryTradingPerformanceResponse>;
122
122
  tradingPerformanceTrend(payload: IApiQueryTradingPerformanceTrendRequest, config?: AxiosRequestConfig): Promise<IApiQueryTradingPerformanceTrendResponse>;
123
+ subAccountTradeAggregationTrend(payload: IApiQuerySubAccountTradeAggregationTrendRequest, config?: AxiosRequestConfig): Promise<IApiQuerySubAccountTradeAggregationTrendResponse>;
123
124
  assetExposure(payload: IApiTimedAssetExposureRequest, config?: AxiosRequestConfig): Promise<IApiTimedAssetExposureResponse>;
124
125
  /**
125
126
  * START: Vault
package/TDG/index.js CHANGED
@@ -81,6 +81,8 @@ const api_query_sub_account_daily_performance_request_1 = require("../interfaces
81
81
  const api_query_sub_account_daily_performance_response_1 = require("../interfaces/codegen/schema-maps/api_query_sub_account_daily_performance_response");
82
82
  const api_query_sub_account_today_performance_request_1 = require("../interfaces/codegen/schema-maps/api_query_sub_account_today_performance_request");
83
83
  const api_query_sub_account_today_performance_response_1 = require("../interfaces/codegen/schema-maps/api_query_sub_account_today_performance_response");
84
+ const api_query_sub_account_trade_aggregation_trend_request_1 = require("../interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_request");
85
+ const api_query_sub_account_trade_aggregation_trend_response_1 = require("../interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_response");
84
86
  const api_query_trading_account_risk_metric_request_1 = require("../interfaces/codegen/schema-maps/api_query_trading_account_risk_metric_request");
85
87
  const api_query_trading_account_risk_metric_response_1 = require("../interfaces/codegen/schema-maps/api_query_trading_account_risk_metric_response");
86
88
  const api_query_trading_performance_request_1 = require("../interfaces/codegen/schema-maps/api_query_trading_performance_request");
@@ -417,6 +419,11 @@ class TDG {
417
419
  return utils_1.Utils.schemaMap(response.data, api_query_trading_performance_trend_response_1.API_QUERY_TRADING_PERFORMANCE_TREND_RESPONSE_MAP.LITE_TO_FULL);
418
420
  }).catch(utils_1.Utils.coverApiError);
419
421
  }
422
+ subAccountTradeAggregationTrend(payload, config) {
423
+ return this._axios.post(this._liteUrl + '/sub_account_trade_aggregation_trend', utils_1.Utils.schemaMap(payload, api_query_sub_account_trade_aggregation_trend_request_1.API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
424
+ return utils_1.Utils.schemaMap(response.data, api_query_sub_account_trade_aggregation_trend_response_1.API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_RESPONSE_MAP.LITE_TO_FULL);
425
+ }).catch(utils_1.Utils.coverApiError);
426
+ }
420
427
  assetExposure(payload, config) {
421
428
  return this._axios.post(this._liteUrl + '/asset_exposure', utils_1.Utils.schemaMap(payload, api_timed_asset_exposure_request_1.API_TIMED_ASSET_EXPOSURE_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
422
429
  return utils_1.Utils.schemaMap(response.data, api_timed_asset_exposure_response_1.API_TIMED_ASSET_EXPOSURE_RESPONSE_MAP.LITE_TO_FULL);
@@ -1049,7 +1049,7 @@ export interface IApiQueryListSubAccountSummaryRequest {
1049
1049
  sub_account_i_ds?: string[];
1050
1050
  }
1051
1051
  export interface IApiQueryListSubAccountSummaryResponse {
1052
- result?: ISnapSubAccountSummary[];
1052
+ result?: IApiSubAccountSummary[];
1053
1053
  next?: string;
1054
1054
  }
1055
1055
  export interface IApiQueryListVaultSubAccountSummaryRequest {
@@ -1084,6 +1084,17 @@ export interface IApiQuerySubAccountTodayPerformanceRequest {
1084
1084
  export interface IApiQuerySubAccountTodayPerformanceResponse {
1085
1085
  pnl?: string;
1086
1086
  }
1087
+ export interface IApiQuerySubAccountTradeAggregationTrendRequest {
1088
+ sub_account_id?: string;
1089
+ time_interval?: ETimeInterval;
1090
+ start_time?: string;
1091
+ end_time?: string;
1092
+ kind?: EKind[];
1093
+ main_account_id?: string;
1094
+ }
1095
+ export interface IApiQuerySubAccountTradeAggregationTrendResponse {
1096
+ result?: IApiSubAccountTradeAggregationTrend[];
1097
+ }
1087
1098
  export interface IApiQueryTradingAccountRiskMetricRequest {
1088
1099
  sub_account_id?: string;
1089
1100
  time_interval?: ETimeInterval;
@@ -1118,6 +1129,7 @@ export interface IApiQueryTradingPerformanceTrendRequest {
1118
1129
  time_interval?: ETimeInterval;
1119
1130
  start_time?: string;
1120
1131
  end_time?: string;
1132
+ main_account_id?: string;
1121
1133
  }
1122
1134
  export interface IApiQueryTradingPerformanceTrendResponse {
1123
1135
  result?: IApiTradingPerformanceTrend[];
@@ -1288,12 +1300,23 @@ export interface IApiSubAccountHistoryResponse {
1288
1300
  result?: ISubAccount[];
1289
1301
  next?: string;
1290
1302
  }
1303
+ export interface IApiSubAccountSummary {
1304
+ event_time?: string;
1305
+ total_equity?: string;
1306
+ total_spot_balance?: string;
1307
+ total_future_equity?: string;
1308
+ }
1291
1309
  export interface IApiSubAccountSummaryRequest {
1292
1310
  sub_account_id?: string;
1293
1311
  }
1294
1312
  export interface IApiSubAccountSummaryResponse {
1295
1313
  result?: ISubAccount;
1296
1314
  }
1315
+ export interface IApiSubAccountTradeAggregationTrend {
1316
+ start_interval?: string;
1317
+ end_interval?: string;
1318
+ trading_volume?: string;
1319
+ }
1297
1320
  export interface IApiTickerFeedDataV1 {
1298
1321
  result?: ITicker;
1299
1322
  }
@@ -1878,6 +1901,8 @@ export interface IFundingAccountSummary {
1878
1901
  total_equity?: string;
1879
1902
  spot_balances?: ISpotBalance[];
1880
1903
  vault_investments?: IVaultInvestment[];
1904
+ total_cash_balance?: string;
1905
+ total_spot_asset_balance?: string;
1881
1906
  }
1882
1907
  export interface IFundingHistoryComparisonEntry {
1883
1908
  funding_time?: string;
@@ -2286,6 +2311,16 @@ export interface IQueryRewardReferralPointResponse {
2286
2311
  result?: IRewardReferralPoint[];
2287
2312
  next?: string;
2288
2313
  }
2314
+ export interface IQuerySubAccountTradeAggregationByIntervalLiteRequest {
2315
+ sub_account_i_ds?: string[];
2316
+ time_interval?: ETimeInterval;
2317
+ start_time?: string;
2318
+ end_time?: string;
2319
+ kind?: EKind[];
2320
+ }
2321
+ export interface IQuerySubAccountTradeAggregationByIntervalLiteResponse {
2322
+ result?: ISubAccountTradeAggregationByIntervalLite[];
2323
+ }
2289
2324
  export interface IQueryTradingPerformanceTrendRequest {
2290
2325
  sub_account_i_ds?: string[];
2291
2326
  time_interval?: ETimeInterval;
@@ -2409,6 +2444,10 @@ export interface ISnapSubAccountSummary {
2409
2444
  is_vault?: boolean;
2410
2445
  vault_im_additions?: string;
2411
2446
  spot_balances?: ISpotBalance[];
2447
+ sub_account_mode?: ESubAccountMode;
2448
+ total_spot_balance?: string;
2449
+ future_spot_balances?: ISpotBalance[];
2450
+ total_future_equity?: string;
2412
2451
  }
2413
2452
  export interface ISnapVaultSummary {
2414
2453
  event_time?: string;
@@ -2473,6 +2512,10 @@ export interface ISubAccountPositionSummaryResult {
2473
2512
  total_unrealized_pnl?: string;
2474
2513
  total_realized_pnl?: string;
2475
2514
  }
2515
+ export interface ISubAccountTradeAggregationByIntervalLite {
2516
+ start_interval?: string;
2517
+ total_trade_volume?: string;
2518
+ }
2476
2519
  export interface ISubAccountTradingPerformance {
2477
2520
  start_interval?: string;
2478
2521
  sub_account_id?: string;
@@ -2545,6 +2588,7 @@ export interface ITrade {
2545
2588
  is_liquidation?: boolean;
2546
2589
  trade_index?: number;
2547
2590
  is_rpi?: boolean;
2591
+ is_spot_dedust?: boolean;
2548
2592
  }
2549
2593
  export interface ITraderLeaderboardUser {
2550
2594
  account_id?: string;
@@ -81,6 +81,8 @@ export declare enum EClusterConfigType {
81
81
  FLAG_SNAPSHOT_CURRENCY_STORE_FIRST = "FLAG_SNAPSHOT_CURRENCY_STORE_FIRST",
82
82
  FLAG_ENABLE_POSITION_HISTORY = "FLAG_ENABLE_POSITION_HISTORY",
83
83
  FLAG_PUBLISH_PRICE_DATA = "FLAG_PUBLISH_PRICE_DATA",
84
- FLAG_DEVIATION_PENALTY = "FLAG_DEVIATION_PENALTY"
84
+ FLAG_DEVIATION_PENALTY = "FLAG_DEVIATION_PENALTY",
85
+ CASH_CURRENCIES = "CASH_CURRENCIES",
86
+ FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY = "FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY"
85
87
  }
86
88
  export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
@@ -169,6 +169,10 @@ var EClusterConfigType;
169
169
  EClusterConfigType["FLAG_PUBLISH_PRICE_DATA"] = "FLAG_PUBLISH_PRICE_DATA";
170
170
  // Flag to control deviation penalty logic on trading checks
171
171
  EClusterConfigType["FLAG_DEVIATION_PENALTY"] = "FLAG_DEVIATION_PENALTY";
172
+ // List of currency IDs considered as cash (stablecoins) for balance aggregation
173
+ EClusterConfigType["CASH_CURRENCIES"] = "CASH_CURRENCIES";
174
+ // Configurable candlestick broadcast frequency (in seconds) for spot swap instruments. 0 means disabled.
175
+ EClusterConfigType["FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY"] = "FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY";
172
176
  })(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
173
177
  exports.EClusterConfigTypeInt = Object.freeze({
174
178
  [EClusterConfigType.CLIENT_TIER]: 1,
@@ -253,5 +257,7 @@ exports.EClusterConfigTypeInt = Object.freeze({
253
257
  [EClusterConfigType.FLAG_SNAPSHOT_CURRENCY_STORE_FIRST]: 80,
254
258
  [EClusterConfigType.FLAG_ENABLE_POSITION_HISTORY]: 81,
255
259
  [EClusterConfigType.FLAG_PUBLISH_PRICE_DATA]: 82,
256
- [EClusterConfigType.FLAG_DEVIATION_PENALTY]: 83
260
+ [EClusterConfigType.FLAG_DEVIATION_PENALTY]: 83,
261
+ [EClusterConfigType.CASH_CURRENCIES]: 84,
262
+ [EClusterConfigType.FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY]: 85
257
263
  });
@@ -7,6 +7,8 @@ export declare enum ETransferType {
7
7
  NON_NATIVE_BRIDGE_WITHDRAWAL = "NON_NATIVE_BRIDGE_WITHDRAWAL",
8
8
  ADHOC_INCENTIVE = "ADHOC_INCENTIVE",
9
9
  REFERRAL_INCENTIVE = "REFERRAL_INCENTIVE",
10
- TRADING_DEPOSIT_YIELD_INCENTIVE = "TRADING_DEPOSIT_YIELD_INCENTIVE"
10
+ TRADING_DEPOSIT_YIELD_INCENTIVE = "TRADING_DEPOSIT_YIELD_INCENTIVE",
11
+ TGE_VESTING = "TGE_VESTING",
12
+ TGE_AIRDROP = "TGE_AIRDROP"
11
13
  }
12
14
  export declare const ETransferTypeInt: Record<ETransferType, number>;
@@ -21,6 +21,10 @@ var ETransferType;
21
21
  ETransferType["REFERRAL_INCENTIVE"] = "REFERRAL_INCENTIVE";
22
22
  // Transfer type for trading deposit yield incentive
23
23
  ETransferType["TRADING_DEPOSIT_YIELD_INCENTIVE"] = "TRADING_DEPOSIT_YIELD_INCENTIVE";
24
+ // Transfer type for TGE vesting distribution
25
+ ETransferType["TGE_VESTING"] = "TGE_VESTING";
26
+ // Transfer type for TGE airdrop distribution
27
+ ETransferType["TGE_AIRDROP"] = "TGE_AIRDROP";
24
28
  })(ETransferType || (exports.ETransferType = ETransferType = {}));
25
29
  exports.ETransferTypeInt = Object.freeze({
26
30
  [ETransferType.UNSPECIFIED]: 0,
@@ -31,5 +35,7 @@ exports.ETransferTypeInt = Object.freeze({
31
35
  [ETransferType.NON_NATIVE_BRIDGE_WITHDRAWAL]: 5,
32
36
  [ETransferType.ADHOC_INCENTIVE]: 6,
33
37
  [ETransferType.REFERRAL_INCENTIVE]: 7,
34
- [ETransferType.TRADING_DEPOSIT_YIELD_INCENTIVE]: 8
38
+ [ETransferType.TRADING_DEPOSIT_YIELD_INCENTIVE]: 8,
39
+ [ETransferType.TGE_VESTING]: 9,
40
+ [ETransferType.TGE_AIRDROP]: 10
35
41
  });
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.API_QUERY_LIST_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP = void 0;
4
- const snap_sub_account_summary_1 = require("./snap_sub_account_summary");
4
+ const api_sub_account_summary_1 = require("./api_sub_account_summary");
5
5
  // Schema map for the 'API_QUERY_LIST_SUB_ACCOUNT_SUMMARY_RESPONSE' struct.
6
6
  exports.API_QUERY_LIST_SUB_ACCOUNT_SUMMARY_RESPONSE_MAP = Object.freeze({
7
7
  FULL_TO_LITE: {
8
- result: ['r', [snap_sub_account_summary_1.SNAP_SUB_ACCOUNT_SUMMARY_MAP.FULL_TO_LITE]],
8
+ result: ['r', [api_sub_account_summary_1.API_SUB_ACCOUNT_SUMMARY_MAP.FULL_TO_LITE]],
9
9
  next: 'n'
10
10
  },
11
11
  LITE_TO_FULL: {
12
- r: ['result', [snap_sub_account_summary_1.SNAP_SUB_ACCOUNT_SUMMARY_MAP.LITE_TO_FULL]],
12
+ r: ['result', [api_sub_account_summary_1.API_SUB_ACCOUNT_SUMMARY_MAP.LITE_TO_FULL]],
13
13
  n: 'next'
14
14
  }
15
15
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_REQUEST_MAP = void 0;
4
+ // Schema map for the 'API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_REQUEST' struct.
5
+ exports.API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_REQUEST_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ sub_account_id: 'sa',
8
+ time_interval: 'ti',
9
+ start_time: 'st',
10
+ end_time: 'et',
11
+ kind: 'k',
12
+ main_account_id: 'ma'
13
+ },
14
+ LITE_TO_FULL: {
15
+ sa: 'sub_account_id',
16
+ ti: 'time_interval',
17
+ st: 'start_time',
18
+ et: 'end_time',
19
+ k: 'kind',
20
+ ma: 'main_account_id'
21
+ }
22
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_RESPONSE_MAP: SchemaPairMap;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_RESPONSE_MAP = void 0;
4
+ const api_sub_account_trade_aggregation_trend_1 = require("./api_sub_account_trade_aggregation_trend");
5
+ // Schema map for the 'API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_RESPONSE' struct.
6
+ exports.API_QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_RESPONSE_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ result: ['r', [api_sub_account_trade_aggregation_trend_1.API_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_MAP.FULL_TO_LITE]]
9
+ },
10
+ LITE_TO_FULL: {
11
+ r: ['result', [api_sub_account_trade_aggregation_trend_1.API_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_MAP.LITE_TO_FULL]]
12
+ }
13
+ });
@@ -7,12 +7,14 @@ exports.API_QUERY_TRADING_PERFORMANCE_TREND_REQUEST_MAP = Object.freeze({
7
7
  sub_account_id: 'sa',
8
8
  time_interval: 'ti',
9
9
  start_time: 'st',
10
- end_time: 'et'
10
+ end_time: 'et',
11
+ main_account_id: 'ma'
11
12
  },
12
13
  LITE_TO_FULL: {
13
14
  sa: 'sub_account_id',
14
15
  ti: 'time_interval',
15
16
  st: 'start_time',
16
- et: 'end_time'
17
+ et: 'end_time',
18
+ ma: 'main_account_id'
17
19
  }
18
20
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_SUB_ACCOUNT_SUMMARY_MAP: SchemaPairMap;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_SUB_ACCOUNT_SUMMARY_MAP = void 0;
4
+ // Schema map for the 'API_SUB_ACCOUNT_SUMMARY' struct.
5
+ exports.API_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ event_time: 'et',
8
+ total_equity: 'te',
9
+ total_spot_balance: 'ts',
10
+ total_future_equity: 'tf'
11
+ },
12
+ LITE_TO_FULL: {
13
+ et: 'event_time',
14
+ te: 'total_equity',
15
+ ts: 'total_spot_balance',
16
+ tf: 'total_future_equity'
17
+ }
18
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_MAP: SchemaPairMap;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_MAP = void 0;
4
+ // Schema map for the 'API_SUB_ACCOUNT_TRADE_AGGREGATION_TREND' struct.
5
+ exports.API_SUB_ACCOUNT_TRADE_AGGREGATION_TREND_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ start_interval: 'si',
8
+ end_interval: 'ei',
9
+ trading_volume: 'tv'
10
+ },
11
+ LITE_TO_FULL: {
12
+ si: 'start_interval',
13
+ ei: 'end_interval',
14
+ tv: 'trading_volume'
15
+ }
16
+ });
@@ -17,7 +17,8 @@ exports.TRADE_MAP = Object.freeze({
17
17
  venue: 'v',
18
18
  is_liquidation: 'il',
19
19
  trade_index: 'ti1',
20
- is_rpi: 'ir1'
20
+ is_rpi: 'ir1',
21
+ is_spot_dedust: 'is'
21
22
  },
22
23
  LITE_TO_FULL: {
23
24
  et: 'event_time',
@@ -33,6 +34,7 @@ exports.TRADE_MAP = Object.freeze({
33
34
  v: 'venue',
34
35
  il: 'is_liquidation',
35
36
  ti1: 'trade_index',
36
- ir1: 'is_rpi'
37
+ ir1: 'is_rpi',
38
+ is: 'is_spot_dedust'
37
39
  }
38
40
  });
@@ -9,12 +9,16 @@ exports.FUNDING_ACCOUNT_SUMMARY_MAP = Object.freeze({
9
9
  main_account_id: 'ma',
10
10
  total_equity: 'te',
11
11
  spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]],
12
- vault_investments: ['vi', [vault_investment_1.VAULT_INVESTMENT_MAP.FULL_TO_LITE]]
12
+ vault_investments: ['vi', [vault_investment_1.VAULT_INVESTMENT_MAP.FULL_TO_LITE]],
13
+ total_cash_balance: 'tc',
14
+ total_spot_asset_balance: 'ts'
13
15
  },
14
16
  LITE_TO_FULL: {
15
17
  ma: 'main_account_id',
16
18
  te: 'total_equity',
17
19
  sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]],
18
- vi: ['vault_investments', [vault_investment_1.VAULT_INVESTMENT_MAP.LITE_TO_FULL]]
20
+ vi: ['vault_investments', [vault_investment_1.VAULT_INVESTMENT_MAP.LITE_TO_FULL]],
21
+ tc: 'total_cash_balance',
22
+ ts: 'total_spot_asset_balance'
19
23
  }
20
24
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_REQUEST_MAP = void 0;
4
+ // Schema map for the 'QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_REQUEST' struct.
5
+ exports.QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_REQUEST_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ sub_account_i_ds: 'sa',
8
+ time_interval: 'ti',
9
+ start_time: 'st',
10
+ end_time: 'et',
11
+ kind: 'k'
12
+ },
13
+ LITE_TO_FULL: {
14
+ sa: 'sub_account_i_ds',
15
+ ti: 'time_interval',
16
+ st: 'start_time',
17
+ et: 'end_time',
18
+ k: 'kind'
19
+ }
20
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_RESPONSE_MAP: SchemaPairMap;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_RESPONSE_MAP = void 0;
4
+ const sub_account_trade_aggregation_by_interval_lite_1 = require("./sub_account_trade_aggregation_by_interval_lite");
5
+ // Schema map for the 'QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_RESPONSE' struct.
6
+ exports.QUERY_SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_RESPONSE_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ result: ['r', [sub_account_trade_aggregation_by_interval_lite_1.SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_MAP.FULL_TO_LITE]]
9
+ },
10
+ LITE_TO_FULL: {
11
+ r: ['result', [sub_account_trade_aggregation_by_interval_lite_1.SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_MAP.LITE_TO_FULL]]
12
+ }
13
+ });
@@ -14,7 +14,11 @@ exports.SNAP_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
14
14
  positions: ['p', [position_summary_1.POSITION_SUMMARY_MAP.FULL_TO_LITE]],
15
15
  is_vault: 'iv',
16
16
  vault_im_additions: 'vi',
17
- spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]]
17
+ spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]],
18
+ sub_account_mode: 'sa1',
19
+ total_spot_balance: 'ts',
20
+ future_spot_balances: ['fs', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]],
21
+ total_future_equity: 'tf'
18
22
  },
19
23
  LITE_TO_FULL: {
20
24
  et: 'event_time',
@@ -25,6 +29,10 @@ exports.SNAP_SUB_ACCOUNT_SUMMARY_MAP = Object.freeze({
25
29
  p: ['positions', [position_summary_1.POSITION_SUMMARY_MAP.LITE_TO_FULL]],
26
30
  iv: 'is_vault',
27
31
  vi: 'vault_im_additions',
28
- sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]]
32
+ sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]],
33
+ sa1: 'sub_account_mode',
34
+ ts: 'total_spot_balance',
35
+ fs: ['future_spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]],
36
+ tf: 'total_future_equity'
29
37
  }
30
38
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_MAP: SchemaPairMap;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_MAP = void 0;
4
+ // Schema map for the 'SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE' struct.
5
+ exports.SUB_ACCOUNT_TRADE_AGGREGATION_BY_INTERVAL_LITE_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ start_interval: 'si',
8
+ total_trade_volume: 'tt'
9
+ },
10
+ LITE_TO_FULL: {
11
+ si: 'start_interval',
12
+ tt: 'total_trade_volume'
13
+ }
14
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.6.30",
3
+ "version": "1.6.31",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",