@grvt/client 1.6.29 → 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 (35) hide show
  1. package/TDG/index.d.ts +3 -1
  2. package/TDG/index.js +16 -2
  3. package/interfaces/codegen/data.interface.d.ts +53 -1
  4. package/interfaces/codegen/enums/cluster-config-type.d.ts +5 -1
  5. package/interfaces/codegen/enums/cluster-config-type.js +13 -1
  6. package/interfaces/codegen/enums/order-reject-reason.d.ts +2 -1
  7. package/interfaces/codegen/enums/order-reject-reason.js +4 -1
  8. package/interfaces/codegen/enums/transfer-type.d.ts +3 -1
  9. package/interfaces/codegen/enums/transfer-type.js +7 -1
  10. package/interfaces/codegen/schema-maps/api_dedust_spot_balances_request.d.ts +2 -0
  11. package/interfaces/codegen/schema-maps/api_dedust_spot_balances_request.js +13 -0
  12. package/interfaces/codegen/schema-maps/api_dedust_spot_balances_response.d.ts +2 -0
  13. package/interfaces/codegen/schema-maps/api_dedust_spot_balances_response.js +13 -0
  14. package/interfaces/codegen/schema-maps/api_query_list_sub_account_summary_response.js +3 -3
  15. package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_request.d.ts +2 -0
  16. package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_request.js +22 -0
  17. package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_response.d.ts +2 -0
  18. package/interfaces/codegen/schema-maps/api_query_sub_account_trade_aggregation_trend_response.js +13 -0
  19. package/interfaces/codegen/schema-maps/api_query_trading_performance_trend_request.js +4 -2
  20. package/interfaces/codegen/schema-maps/api_snap_aggregated_account_summary.js +4 -2
  21. package/interfaces/codegen/schema-maps/api_sub_account_summary.d.ts +2 -0
  22. package/interfaces/codegen/schema-maps/api_sub_account_summary.js +18 -0
  23. package/interfaces/codegen/schema-maps/api_sub_account_trade_aggregation_trend.d.ts +2 -0
  24. package/interfaces/codegen/schema-maps/api_sub_account_trade_aggregation_trend.js +16 -0
  25. package/interfaces/codegen/schema-maps/flat_public_trade.js +4 -2
  26. package/interfaces/codegen/schema-maps/funding_account_summary.js +6 -2
  27. package/interfaces/codegen/schema-maps/order.js +4 -2
  28. package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_request.d.ts +2 -0
  29. package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_request.js +20 -0
  30. package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_response.d.ts +2 -0
  31. package/interfaces/codegen/schema-maps/query_sub_account_trade_aggregation_by_interval_lite_response.js +13 -0
  32. package/interfaces/codegen/schema-maps/snap_sub_account_summary.js +10 -2
  33. package/interfaces/codegen/schema-maps/sub_account_trade_aggregation_by_interval_lite.d.ts +2 -0
  34. package/interfaces/codegen/schema-maps/sub_account_trade_aggregation_by_interval_lite.js +14 -0
  35. 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, 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;
@@ -40,6 +40,7 @@ export declare class TDG {
40
40
  setPositionConfig(payload: IApiSetSubAccountPositionMarginConfigRequest, config?: AxiosRequestConfig): Promise<IApiSetSubAccountPositionMarginConfigResponse>;
41
41
  addPositionMargin(payload: IApiAddIsolatedPositionMarginRequest, config?: AxiosRequestConfig): Promise<IApiAddIsolatedPositionMarginResponse>;
42
42
  getPositionMarginLimits(payload: IApiGetIsolatedPositionMarginLimitsRequest, config?: AxiosRequestConfig): Promise<IApiGetIsolatedPositionMarginLimitsResponse>;
43
+ positionHistory(payload: IApiPositionHistoryRequest, config?: AxiosRequestConfig): Promise<IApiPositionHistoryResponse>;
43
44
  /**
44
45
  * APIs for Builder
45
46
  */
@@ -119,6 +120,7 @@ export declare class TDG {
119
120
  aggregatedAccountSummary(config?: AxiosRequestConfig): Promise<IApiAggregatedAccountSummaryResponse>;
120
121
  tradingPerformance(payload: IApiQueryTradingPerformanceRequest, config?: AxiosRequestConfig): Promise<IApiQueryTradingPerformanceResponse>;
121
122
  tradingPerformanceTrend(payload: IApiQueryTradingPerformanceTrendRequest, config?: AxiosRequestConfig): Promise<IApiQueryTradingPerformanceTrendResponse>;
123
+ subAccountTradeAggregationTrend(payload: IApiQuerySubAccountTradeAggregationTrendRequest, config?: AxiosRequestConfig): Promise<IApiQuerySubAccountTradeAggregationTrendResponse>;
122
124
  assetExposure(payload: IApiTimedAssetExposureRequest, config?: AxiosRequestConfig): Promise<IApiTimedAssetExposureResponse>;
123
125
  /**
124
126
  * START: Vault
package/TDG/index.js CHANGED
@@ -57,6 +57,8 @@ const api_open_orders_request_1 = require("../interfaces/codegen/schema-maps/api
57
57
  const api_open_orders_response_1 = require("../interfaces/codegen/schema-maps/api_open_orders_response");
58
58
  const api_order_history_request_1 = require("../interfaces/codegen/schema-maps/api_order_history_request");
59
59
  const api_order_history_response_1 = require("../interfaces/codegen/schema-maps/api_order_history_response");
60
+ const api_position_history_request_1 = require("../interfaces/codegen/schema-maps/api_position_history_request");
61
+ const api_position_history_response_1 = require("../interfaces/codegen/schema-maps/api_position_history_response");
60
62
  const api_positions_request_1 = require("../interfaces/codegen/schema-maps/api_positions_request");
61
63
  const api_positions_response_1 = require("../interfaces/codegen/schema-maps/api_positions_response");
62
64
  const api_pre_deposit_check_request_1 = require("../interfaces/codegen/schema-maps/api_pre_deposit_check_request");
@@ -79,6 +81,8 @@ const api_query_sub_account_daily_performance_request_1 = require("../interfaces
79
81
  const api_query_sub_account_daily_performance_response_1 = require("../interfaces/codegen/schema-maps/api_query_sub_account_daily_performance_response");
80
82
  const api_query_sub_account_today_performance_request_1 = require("../interfaces/codegen/schema-maps/api_query_sub_account_today_performance_request");
81
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");
82
86
  const api_query_trading_account_risk_metric_request_1 = require("../interfaces/codegen/schema-maps/api_query_trading_account_risk_metric_request");
83
87
  const api_query_trading_account_risk_metric_response_1 = require("../interfaces/codegen/schema-maps/api_query_trading_account_risk_metric_response");
84
88
  const api_query_trading_performance_request_1 = require("../interfaces/codegen/schema-maps/api_query_trading_performance_request");
@@ -94,12 +98,12 @@ const api_query_vault_manager_investor_history_response_1 = require("../interfac
94
98
  const api_replace_orders_request_1 = require("../interfaces/codegen/schema-maps/api_replace_orders_request");
95
99
  const api_replace_orders_response_1 = require("../interfaces/codegen/schema-maps/api_replace_orders_response");
96
100
  const api_set_initial_leverage_request_1 = require("../interfaces/codegen/schema-maps/api_set_initial_leverage_request");
97
- const api_spot_sub_account_summary_request_1 = require("../interfaces/codegen/schema-maps/api_spot_sub_account_summary_request");
98
- const api_spot_sub_account_summary_response_1 = require("../interfaces/codegen/schema-maps/api_spot_sub_account_summary_response");
99
101
  const api_set_initial_leverage_response_1 = require("../interfaces/codegen/schema-maps/api_set_initial_leverage_response");
100
102
  const api_set_sub_account_position_margin_config_request_1 = require("../interfaces/codegen/schema-maps/api_set_sub_account_position_margin_config_request");
101
103
  const api_set_sub_account_position_margin_config_response_1 = require("../interfaces/codegen/schema-maps/api_set_sub_account_position_margin_config_response");
102
104
  const api_socialized_loss_status_response_1 = require("../interfaces/codegen/schema-maps/api_socialized_loss_status_response");
105
+ const api_spot_sub_account_summary_request_1 = require("../interfaces/codegen/schema-maps/api_spot_sub_account_summary_request");
106
+ const api_spot_sub_account_summary_response_1 = require("../interfaces/codegen/schema-maps/api_spot_sub_account_summary_response");
103
107
  const api_sub_account_history_request_1 = require("../interfaces/codegen/schema-maps/api_sub_account_history_request");
104
108
  const api_sub_account_history_response_1 = require("../interfaces/codegen/schema-maps/api_sub_account_history_response");
105
109
  const api_sub_account_summary_request_1 = require("../interfaces/codegen/schema-maps/api_sub_account_summary_request");
@@ -211,6 +215,11 @@ class TDG {
211
215
  return utils_1.Utils.schemaMap(response.data, api_get_isolated_position_margin_limits_response_1.API_GET_ISOLATED_POSITION_MARGIN_LIMITS_RESPONSE_MAP.LITE_TO_FULL);
212
216
  }).catch(utils_1.Utils.coverApiError);
213
217
  }
218
+ positionHistory(payload, config) {
219
+ return this._axios.post(this._liteUrl + '/position_history', utils_1.Utils.schemaMap(payload, api_position_history_request_1.API_POSITION_HISTORY_REQUEST_MAP.FULL_TO_LITE, true), config).then((response) => {
220
+ return utils_1.Utils.schemaMap(response.data, api_position_history_response_1.API_POSITION_HISTORY_RESPONSE_MAP.LITE_TO_FULL);
221
+ }).catch(utils_1.Utils.coverApiError);
222
+ }
214
223
  /**
215
224
  * APIs for Builder
216
225
  */
@@ -410,6 +419,11 @@ class TDG {
410
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);
411
420
  }).catch(utils_1.Utils.coverApiError);
412
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
+ }
413
427
  assetExposure(payload, config) {
414
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) => {
415
429
  return utils_1.Utils.schemaMap(response.data, api_timed_asset_exposure_response_1.API_TIMED_ASSET_EXPOSURE_RESPONSE_MAP.LITE_TO_FULL);
@@ -371,6 +371,12 @@ export interface IApiDedustPositionRequest {
371
371
  export interface IApiDedustPositionResponse {
372
372
  result?: IOrder;
373
373
  }
374
+ export interface IApiDedustSpotBalancesRequest {
375
+ order?: IOrder;
376
+ }
377
+ export interface IApiDedustSpotBalancesResponse {
378
+ result?: IOrder;
379
+ }
374
380
  export interface IApiDepositHistoryRequest {
375
381
  currency?: string[];
376
382
  start_time?: string;
@@ -1043,7 +1049,7 @@ export interface IApiQueryListSubAccountSummaryRequest {
1043
1049
  sub_account_i_ds?: string[];
1044
1050
  }
1045
1051
  export interface IApiQueryListSubAccountSummaryResponse {
1046
- result?: ISnapSubAccountSummary[];
1052
+ result?: IApiSubAccountSummary[];
1047
1053
  next?: string;
1048
1054
  }
1049
1055
  export interface IApiQueryListVaultSubAccountSummaryRequest {
@@ -1078,6 +1084,17 @@ export interface IApiQuerySubAccountTodayPerformanceRequest {
1078
1084
  export interface IApiQuerySubAccountTodayPerformanceResponse {
1079
1085
  pnl?: string;
1080
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
+ }
1081
1098
  export interface IApiQueryTradingAccountRiskMetricRequest {
1082
1099
  sub_account_id?: string;
1083
1100
  time_interval?: ETimeInterval;
@@ -1112,6 +1129,7 @@ export interface IApiQueryTradingPerformanceTrendRequest {
1112
1129
  time_interval?: ETimeInterval;
1113
1130
  start_time?: string;
1114
1131
  end_time?: string;
1132
+ main_account_id?: string;
1115
1133
  }
1116
1134
  export interface IApiQueryTradingPerformanceTrendResponse {
1117
1135
  result?: IApiTradingPerformanceTrend[];
@@ -1255,6 +1273,7 @@ export interface IApiSnapAggregatedAccountSummary {
1255
1273
  event_time?: string;
1256
1274
  start_interval?: string;
1257
1275
  total_equity?: string;
1276
+ total_vault_investments_balance?: string;
1258
1277
  }
1259
1278
  export interface IApiSocializedLossStatusResponse {
1260
1279
  is_active?: boolean;
@@ -1281,12 +1300,23 @@ export interface IApiSubAccountHistoryResponse {
1281
1300
  result?: ISubAccount[];
1282
1301
  next?: string;
1283
1302
  }
1303
+ export interface IApiSubAccountSummary {
1304
+ event_time?: string;
1305
+ total_equity?: string;
1306
+ total_spot_balance?: string;
1307
+ total_future_equity?: string;
1308
+ }
1284
1309
  export interface IApiSubAccountSummaryRequest {
1285
1310
  sub_account_id?: string;
1286
1311
  }
1287
1312
  export interface IApiSubAccountSummaryResponse {
1288
1313
  result?: ISubAccount;
1289
1314
  }
1315
+ export interface IApiSubAccountTradeAggregationTrend {
1316
+ start_interval?: string;
1317
+ end_interval?: string;
1318
+ trading_volume?: string;
1319
+ }
1290
1320
  export interface IApiTickerFeedDataV1 {
1291
1321
  result?: ITicker;
1292
1322
  }
@@ -1871,6 +1901,8 @@ export interface IFundingAccountSummary {
1871
1901
  total_equity?: string;
1872
1902
  spot_balances?: ISpotBalance[];
1873
1903
  vault_investments?: IVaultInvestment[];
1904
+ total_cash_balance?: string;
1905
+ total_spot_asset_balance?: string;
1874
1906
  }
1875
1907
  export interface IFundingHistoryComparisonEntry {
1876
1908
  funding_time?: string;
@@ -2073,6 +2105,7 @@ export interface IOrder {
2073
2105
  is_derisk?: boolean;
2074
2106
  builder?: string;
2075
2107
  builder_fee?: string;
2108
+ is_spot_dedust?: boolean;
2076
2109
  }
2077
2110
  export interface IOrderLeg {
2078
2111
  instrument?: string;
@@ -2278,6 +2311,16 @@ export interface IQueryRewardReferralPointResponse {
2278
2311
  result?: IRewardReferralPoint[];
2279
2312
  next?: string;
2280
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
+ }
2281
2324
  export interface IQueryTradingPerformanceTrendRequest {
2282
2325
  sub_account_i_ds?: string[];
2283
2326
  time_interval?: ETimeInterval;
@@ -2401,6 +2444,10 @@ export interface ISnapSubAccountSummary {
2401
2444
  is_vault?: boolean;
2402
2445
  vault_im_additions?: string;
2403
2446
  spot_balances?: ISpotBalance[];
2447
+ sub_account_mode?: ESubAccountMode;
2448
+ total_spot_balance?: string;
2449
+ future_spot_balances?: ISpotBalance[];
2450
+ total_future_equity?: string;
2404
2451
  }
2405
2452
  export interface ISnapVaultSummary {
2406
2453
  event_time?: string;
@@ -2465,6 +2512,10 @@ export interface ISubAccountPositionSummaryResult {
2465
2512
  total_unrealized_pnl?: string;
2466
2513
  total_realized_pnl?: string;
2467
2514
  }
2515
+ export interface ISubAccountTradeAggregationByIntervalLite {
2516
+ start_interval?: string;
2517
+ total_trade_volume?: string;
2518
+ }
2468
2519
  export interface ISubAccountTradingPerformance {
2469
2520
  start_interval?: string;
2470
2521
  sub_account_id?: string;
@@ -2537,6 +2588,7 @@ export interface ITrade {
2537
2588
  is_liquidation?: boolean;
2538
2589
  trade_index?: number;
2539
2590
  is_rpi?: boolean;
2591
+ is_spot_dedust?: boolean;
2540
2592
  }
2541
2593
  export interface ITraderLeaderboardUser {
2542
2594
  account_id?: string;
@@ -79,6 +79,10 @@ export declare enum EClusterConfigType {
79
79
  FLAG_SPLIT_TPSL = "FLAG_SPLIT_TPSL",
80
80
  FLAG_SPOT_TRADING = "FLAG_SPOT_TRADING",
81
81
  FLAG_SNAPSHOT_CURRENCY_STORE_FIRST = "FLAG_SNAPSHOT_CURRENCY_STORE_FIRST",
82
- FLAG_ENABLE_POSITION_HISTORY = "FLAG_ENABLE_POSITION_HISTORY"
82
+ FLAG_ENABLE_POSITION_HISTORY = "FLAG_ENABLE_POSITION_HISTORY",
83
+ FLAG_PUBLISH_PRICE_DATA = "FLAG_PUBLISH_PRICE_DATA",
84
+ FLAG_DEVIATION_PENALTY = "FLAG_DEVIATION_PENALTY",
85
+ CASH_CURRENCIES = "CASH_CURRENCIES",
86
+ FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY = "FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY"
83
87
  }
84
88
  export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
@@ -165,6 +165,14 @@ var EClusterConfigType;
165
165
  EClusterConfigType["FLAG_SNAPSHOT_CURRENCY_STORE_FIRST"] = "FLAG_SNAPSHOT_CURRENCY_STORE_FIRST";
166
166
  // Gates position history lifecycle accumulation and close publication
167
167
  EClusterConfigType["FLAG_ENABLE_POSITION_HISTORY"] = "FLAG_ENABLE_POSITION_HISTORY";
168
+ // Flag to enable price data publishing from marketdata to cluster
169
+ EClusterConfigType["FLAG_PUBLISH_PRICE_DATA"] = "FLAG_PUBLISH_PRICE_DATA";
170
+ // Flag to control deviation penalty logic on trading checks
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";
168
176
  })(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
169
177
  exports.EClusterConfigTypeInt = Object.freeze({
170
178
  [EClusterConfigType.CLIENT_TIER]: 1,
@@ -247,5 +255,9 @@ exports.EClusterConfigTypeInt = Object.freeze({
247
255
  [EClusterConfigType.FLAG_SPLIT_TPSL]: 78,
248
256
  [EClusterConfigType.FLAG_SPOT_TRADING]: 79,
249
257
  [EClusterConfigType.FLAG_SNAPSHOT_CURRENCY_STORE_FIRST]: 80,
250
- [EClusterConfigType.FLAG_ENABLE_POSITION_HISTORY]: 81
258
+ [EClusterConfigType.FLAG_ENABLE_POSITION_HISTORY]: 81,
259
+ [EClusterConfigType.FLAG_PUBLISH_PRICE_DATA]: 82,
260
+ [EClusterConfigType.FLAG_DEVIATION_PENALTY]: 83,
261
+ [EClusterConfigType.CASH_CURRENCIES]: 84,
262
+ [EClusterConfigType.FLAG_SPOT_CANDLESTICK_PUB_FREQUENCY]: 85
251
263
  });
@@ -48,6 +48,7 @@ export declare enum EOrderRejectReason {
48
48
  TPSL_NOT_SUPPORTED_FOR_SPOT_ORDER = "TPSL_NOT_SUPPORTED_FOR_SPOT_ORDER",
49
49
  SPOT_ORDER_NOT_SUPPORTED = "SPOT_ORDER_NOT_SUPPORTED",
50
50
  INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE",
51
- SPOT_TRADING_BLOCKED_DURING_SOCIALIZED_LOSS = "SPOT_TRADING_BLOCKED_DURING_SOCIALIZED_LOSS"
51
+ SPOT_TRADING_BLOCKED_DURING_SOCIALIZED_LOSS = "SPOT_TRADING_BLOCKED_DURING_SOCIALIZED_LOSS",
52
+ BELOW_MARGIN_WITH_PENALTY_DEVIATION = "BELOW_MARGIN_WITH_PENALTY_DEVIATION"
52
53
  }
53
54
  export declare const EOrderRejectReasonInt: Record<EOrderRejectReason, number>;
@@ -103,6 +103,8 @@ var EOrderRejectReason;
103
103
  EOrderRejectReason["INSUFFICIENT_BALANCE"] = "INSUFFICIENT_BALANCE";
104
104
  // spot trading is blocked during socialized loss (SLOW)
105
105
  EOrderRejectReason["SPOT_TRADING_BLOCKED_DURING_SOCIALIZED_LOSS"] = "SPOT_TRADING_BLOCKED_DURING_SOCIALIZED_LOSS";
106
+ // the order will bring the sub account below initial margin requirement considering wide price deviation
107
+ EOrderRejectReason["BELOW_MARGIN_WITH_PENALTY_DEVIATION"] = "BELOW_MARGIN_WITH_PENALTY_DEVIATION";
106
108
  })(EOrderRejectReason || (exports.EOrderRejectReason = EOrderRejectReason = {}));
107
109
  exports.EOrderRejectReasonInt = Object.freeze({
108
110
  [EOrderRejectReason.UNSPECIFIED]: 0,
@@ -154,5 +156,6 @@ exports.EOrderRejectReasonInt = Object.freeze({
154
156
  [EOrderRejectReason.TPSL_NOT_SUPPORTED_FOR_SPOT_ORDER]: 47,
155
157
  [EOrderRejectReason.SPOT_ORDER_NOT_SUPPORTED]: 48,
156
158
  [EOrderRejectReason.INSUFFICIENT_BALANCE]: 49,
157
- [EOrderRejectReason.SPOT_TRADING_BLOCKED_DURING_SOCIALIZED_LOSS]: 50
159
+ [EOrderRejectReason.SPOT_TRADING_BLOCKED_DURING_SOCIALIZED_LOSS]: 50,
160
+ [EOrderRejectReason.BELOW_MARGIN_WITH_PENALTY_DEVIATION]: 51
158
161
  });
@@ -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
  });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_DEDUST_SPOT_BALANCES_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_DEDUST_SPOT_BALANCES_REQUEST_MAP = void 0;
4
+ const order_1 = require("./order");
5
+ // Schema map for the 'API_DEDUST_SPOT_BALANCES_REQUEST' struct.
6
+ exports.API_DEDUST_SPOT_BALANCES_REQUEST_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ order: ['o', order_1.ORDER_MAP.FULL_TO_LITE]
9
+ },
10
+ LITE_TO_FULL: {
11
+ o: ['order', order_1.ORDER_MAP.LITE_TO_FULL]
12
+ }
13
+ });
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_DEDUST_SPOT_BALANCES_RESPONSE_MAP: SchemaPairMap;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_DEDUST_SPOT_BALANCES_RESPONSE_MAP = void 0;
4
+ const order_1 = require("./order");
5
+ // Schema map for the 'API_DEDUST_SPOT_BALANCES_RESPONSE' struct.
6
+ exports.API_DEDUST_SPOT_BALANCES_RESPONSE_MAP = Object.freeze({
7
+ FULL_TO_LITE: {
8
+ result: ['r', order_1.ORDER_MAP.FULL_TO_LITE]
9
+ },
10
+ LITE_TO_FULL: {
11
+ r: ['result', order_1.ORDER_MAP.LITE_TO_FULL]
12
+ }
13
+ });
@@ -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
  });
@@ -6,11 +6,13 @@ exports.API_SNAP_AGGREGATED_ACCOUNT_SUMMARY_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  event_time: 'et',
8
8
  start_interval: 'si',
9
- total_equity: 'te'
9
+ total_equity: 'te',
10
+ total_vault_investments_balance: 'tv'
10
11
  },
11
12
  LITE_TO_FULL: {
12
13
  et: 'event_time',
13
14
  si: 'start_interval',
14
- te: 'total_equity'
15
+ te: 'total_equity',
16
+ tv: 'total_vault_investments_balance'
15
17
  }
16
18
  });
@@ -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
  });
@@ -21,7 +21,8 @@ exports.ORDER_MAP = Object.freeze({
21
21
  is_liquidation: 'il',
22
22
  is_derisk: 'id',
23
23
  builder: 'b',
24
- builder_fee: 'bf'
24
+ builder_fee: 'bf',
25
+ is_spot_dedust: 'is'
25
26
  },
26
27
  LITE_TO_FULL: {
27
28
  oi: 'order_id',
@@ -37,6 +38,7 @@ exports.ORDER_MAP = Object.freeze({
37
38
  il: 'is_liquidation',
38
39
  id: 'is_derisk',
39
40
  b: 'builder',
40
- bf: 'builder_fee'
41
+ bf: 'builder_fee',
42
+ is: 'is_spot_dedust'
41
43
  }
42
44
  });
@@ -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.29",
3
+ "version": "1.6.31",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",