@grvt/client 1.6.20 → 1.6.21

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.
@@ -20,6 +20,7 @@ import type { EMetricType } from './enums/metric-type.ts';
20
20
  import type { EOrderRejectReason } from './enums/order-reject-reason.ts';
21
21
  import type { EOrderStatus } from './enums/order-status.ts';
22
22
  import type { EPointType } from './enums/point-type.ts';
23
+ import type { EPortfolioCurrency } from './enums/portfolio-currency.ts';
23
24
  import type { EPositionMarginType } from './enums/position-margin-type.ts';
24
25
  import type { EQueryMainAccountLeaderboardOrderBy } from './enums/query-main-account-leaderboard-order-by.ts';
25
26
  import type { ERewardEpochStatus } from './enums/reward-epoch-status.ts';
@@ -877,6 +878,7 @@ export interface IApiPreOrderCheckResponse {
877
878
  results?: IPreOrderCheckResult[];
878
879
  }
879
880
  export interface IApiQueryAccountDailyPerformanceRequest {
881
+ currency?: EPortfolioCurrency;
880
882
  start_time?: string;
881
883
  end_time?: string;
882
884
  }
@@ -896,6 +898,9 @@ export interface IApiQueryAccountPerformanceTrendResponse {
896
898
  result?: IApiAccountPerformanceTrend[];
897
899
  interval?: ESubAccountTradeInterval;
898
900
  }
901
+ export interface IApiQueryAccountTodayPerformanceRequest {
902
+ currency?: EPortfolioCurrency;
903
+ }
899
904
  export interface IApiQueryAccountTodayPerformanceResponse {
900
905
  aggregated_pnl?: string;
901
906
  investment_pnl?: string;
@@ -919,6 +924,8 @@ export interface IApiQueryListFundingAccountSummaryResponse {
919
924
  export interface IApiQueryListSubAccountSummaryRequest {
920
925
  time_interval?: ETimeInterval;
921
926
  sub_account_id?: string;
927
+ start_time?: string;
928
+ end_time?: string;
922
929
  }
923
930
  export interface IApiQueryListSubAccountSummaryResponse {
924
931
  result?: ISnapSubAccountSummary[];
@@ -927,6 +934,8 @@ export interface IApiQueryListSubAccountSummaryResponse {
927
934
  export interface IApiQueryListVaultSubAccountSummaryRequest {
928
935
  vault_id?: string;
929
936
  time_interval?: ETimeInterval;
937
+ start_time?: string;
938
+ end_time?: string;
930
939
  }
931
940
  export interface IApiQueryListVaultSubAccountSummaryResponse {
932
941
  result?: IApiVaultSubAccountSummary[];
@@ -939,6 +948,7 @@ export interface IApiQuerySnapVaultPositionResponse {
939
948
  positions?: IPositionSummary[];
940
949
  }
941
950
  export interface IApiQuerySubAccountDailyPerformanceRequest {
951
+ currency?: EPortfolioCurrency;
942
952
  sub_account_id?: string;
943
953
  start_time?: string;
944
954
  end_time?: string;
@@ -948,6 +958,7 @@ export interface IApiQuerySubAccountDailyPerformanceResponse {
948
958
  }
949
959
  export interface IApiQuerySubAccountTodayPerformanceRequest {
950
960
  sub_account_id?: string;
961
+ currency?: EPortfolioCurrency;
951
962
  }
952
963
  export interface IApiQuerySubAccountTodayPerformanceResponse {
953
964
  pnl?: string;
@@ -984,6 +995,8 @@ export interface IApiQueryTradingPerformanceSummaryResponse {
984
995
  export interface IApiQueryTradingPerformanceTrendRequest {
985
996
  sub_account_id?: string;
986
997
  time_interval?: ETimeInterval;
998
+ start_time?: string;
999
+ end_time?: string;
987
1000
  }
988
1001
  export interface IApiQueryTradingPerformanceTrendResponse {
989
1002
  result?: IApiTradingPerformanceTrend[];
@@ -1018,6 +1031,8 @@ export interface IApiQueryVaultPerformanceResponse {
1018
1031
  export interface IApiQueryVaultPerformanceTrendRequest {
1019
1032
  vault_id?: string;
1020
1033
  time_interval?: ETimeInterval;
1034
+ start_time?: string;
1035
+ end_time?: string;
1021
1036
  }
1022
1037
  export interface IApiQueryVaultPerformanceTrendResponse {
1023
1038
  result?: IApiVaultPerformanceTrend[];
@@ -1034,6 +1049,8 @@ export interface IApiQueryVaultRiskMetricResponse {
1034
1049
  export interface IApiQueryVaultSummaryHistoryRequest {
1035
1050
  vault_id?: string;
1036
1051
  time_interval?: ETimeInterval;
1052
+ start_time?: string;
1053
+ end_time?: string;
1037
1054
  }
1038
1055
  export interface IApiQueryVaultSummaryHistoryResponse {
1039
1056
  result?: IApiVaultSummary[];
@@ -1157,6 +1174,8 @@ export interface IApiTimedAssetExposureRequest {
1157
1174
  is_gross_exposure?: boolean;
1158
1175
  time_interval?: ETimeInterval;
1159
1176
  sub_account_id?: string;
1177
+ start_time?: string;
1178
+ end_time?: string;
1160
1179
  }
1161
1180
  export interface IApiTimedAssetExposureResponse {
1162
1181
  result?: ITimedAssetExposureSummary[];
@@ -1166,6 +1185,8 @@ export interface IApiTimedVaultAssetExposureRequest {
1166
1185
  vault_id?: string;
1167
1186
  is_gross_exposure?: boolean;
1168
1187
  time_interval?: ETimeInterval;
1188
+ start_time?: string;
1189
+ end_time?: string;
1169
1190
  }
1170
1191
  export interface IApiTradeHistoryRequest {
1171
1192
  instrument?: string;
@@ -1745,6 +1766,7 @@ export interface IInstrumentDisplay {
1745
1766
  funding_interval_hours?: number;
1746
1767
  adjusted_funding_rate_cap?: string;
1747
1768
  adjusted_funding_rate_floor?: string;
1769
+ min_notional?: string;
1748
1770
  }
1749
1771
  export interface IJSONRPCRequest {
1750
1772
  jsonrpc?: string;
@@ -0,0 +1,5 @@
1
+ export declare enum EPortfolioCurrency {
2
+ USD = "USD",
3
+ USDT = "USDT"
4
+ }
5
+ export declare const EPortfolioCurrencyInt: Record<EPortfolioCurrency, number>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPortfolioCurrencyInt = exports.EPortfolioCurrency = void 0;
4
+ var EPortfolioCurrency;
5
+ (function (EPortfolioCurrency) {
6
+ // the USD portfolio currency, defaults to USDT
7
+ EPortfolioCurrency["USD"] = "USD";
8
+ // the USDT portfolio currency
9
+ EPortfolioCurrency["USDT"] = "USDT";
10
+ })(EPortfolioCurrency || (exports.EPortfolioCurrency = EPortfolioCurrency = {}));
11
+ exports.EPortfolioCurrencyInt = Object.freeze({
12
+ [EPortfolioCurrency.USD]: 1,
13
+ [EPortfolioCurrency.USDT]: 2
14
+ });
@@ -4,10 +4,12 @@ exports.API_QUERY_ACCOUNT_DAILY_PERFORMANCE_REQUEST_MAP = void 0;
4
4
  // Schema map for the 'API_QUERY_ACCOUNT_DAILY_PERFORMANCE_REQUEST' struct.
5
5
  exports.API_QUERY_ACCOUNT_DAILY_PERFORMANCE_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
+ currency: 'c',
7
8
  start_time: 'st',
8
9
  end_time: 'et'
9
10
  },
10
11
  LITE_TO_FULL: {
12
+ c: 'currency',
11
13
  st: 'start_time',
12
14
  et: 'end_time'
13
15
  }
@@ -0,0 +1,2 @@
1
+ import { type SchemaPairMap } from './types';
2
+ export declare const API_QUERY_ACCOUNT_TODAY_PERFORMANCE_REQUEST_MAP: SchemaPairMap;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API_QUERY_ACCOUNT_TODAY_PERFORMANCE_REQUEST_MAP = void 0;
4
+ // Schema map for the 'API_QUERY_ACCOUNT_TODAY_PERFORMANCE_REQUEST' struct.
5
+ exports.API_QUERY_ACCOUNT_TODAY_PERFORMANCE_REQUEST_MAP = Object.freeze({
6
+ FULL_TO_LITE: {
7
+ currency: 'c'
8
+ },
9
+ LITE_TO_FULL: {
10
+ c: 'currency'
11
+ }
12
+ });
@@ -5,10 +5,14 @@ exports.API_QUERY_LIST_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = void 0;
5
5
  exports.API_QUERY_LIST_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  time_interval: 'ti',
8
- sub_account_id: 'sa'
8
+ sub_account_id: 'sa',
9
+ start_time: 'st',
10
+ end_time: 'et'
9
11
  },
10
12
  LITE_TO_FULL: {
11
13
  ti: 'time_interval',
12
- sa: 'sub_account_id'
14
+ sa: 'sub_account_id',
15
+ st: 'start_time',
16
+ et: 'end_time'
13
17
  }
14
18
  });
@@ -5,10 +5,14 @@ exports.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = void 0;
5
5
  exports.API_QUERY_LIST_VAULT_SUB_ACCOUNT_SUMMARY_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  vault_id: 'vi',
8
- time_interval: 'ti'
8
+ time_interval: 'ti',
9
+ start_time: 'st',
10
+ end_time: 'et'
9
11
  },
10
12
  LITE_TO_FULL: {
11
13
  vi: 'vault_id',
12
- ti: 'time_interval'
14
+ ti: 'time_interval',
15
+ st: 'start_time',
16
+ et: 'end_time'
13
17
  }
14
18
  });
@@ -4,11 +4,13 @@ exports.API_QUERY_SUB_ACCOUNT_DAILY_PERFORMANCE_REQUEST_MAP = void 0;
4
4
  // Schema map for the 'API_QUERY_SUB_ACCOUNT_DAILY_PERFORMANCE_REQUEST' struct.
5
5
  exports.API_QUERY_SUB_ACCOUNT_DAILY_PERFORMANCE_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
+ currency: 'c',
7
8
  sub_account_id: 'sa',
8
9
  start_time: 'st',
9
10
  end_time: 'et'
10
11
  },
11
12
  LITE_TO_FULL: {
13
+ c: 'currency',
12
14
  sa: 'sub_account_id',
13
15
  st: 'start_time',
14
16
  et: 'end_time'
@@ -4,9 +4,11 @@ exports.API_QUERY_SUB_ACCOUNT_TODAY_PERFORMANCE_REQUEST_MAP = void 0;
4
4
  // Schema map for the 'API_QUERY_SUB_ACCOUNT_TODAY_PERFORMANCE_REQUEST' struct.
5
5
  exports.API_QUERY_SUB_ACCOUNT_TODAY_PERFORMANCE_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
- sub_account_id: 'sa'
7
+ sub_account_id: 'sa',
8
+ currency: 'c'
8
9
  },
9
10
  LITE_TO_FULL: {
10
- sa: 'sub_account_id'
11
+ sa: 'sub_account_id',
12
+ c: 'currency'
11
13
  }
12
14
  });
@@ -5,10 +5,14 @@ exports.API_QUERY_TRADING_PERFORMANCE_TREND_REQUEST_MAP = void 0;
5
5
  exports.API_QUERY_TRADING_PERFORMANCE_TREND_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  sub_account_id: 'sa',
8
- time_interval: 'ti'
8
+ time_interval: 'ti',
9
+ start_time: 'st',
10
+ end_time: 'et'
9
11
  },
10
12
  LITE_TO_FULL: {
11
13
  sa: 'sub_account_id',
12
- ti: 'time_interval'
14
+ ti: 'time_interval',
15
+ st: 'start_time',
16
+ et: 'end_time'
13
17
  }
14
18
  });
@@ -5,10 +5,14 @@ exports.API_QUERY_VAULT_PERFORMANCE_TREND_REQUEST_MAP = void 0;
5
5
  exports.API_QUERY_VAULT_PERFORMANCE_TREND_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  vault_id: 'vi',
8
- time_interval: 'ti'
8
+ time_interval: 'ti',
9
+ start_time: 'st',
10
+ end_time: 'et'
9
11
  },
10
12
  LITE_TO_FULL: {
11
13
  vi: 'vault_id',
12
- ti: 'time_interval'
14
+ ti: 'time_interval',
15
+ st: 'start_time',
16
+ et: 'end_time'
13
17
  }
14
18
  });
@@ -5,10 +5,14 @@ exports.API_QUERY_VAULT_SUMMARY_HISTORY_REQUEST_MAP = void 0;
5
5
  exports.API_QUERY_VAULT_SUMMARY_HISTORY_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  vault_id: 'vi',
8
- time_interval: 'ti'
8
+ time_interval: 'ti',
9
+ start_time: 'st',
10
+ end_time: 'et'
9
11
  },
10
12
  LITE_TO_FULL: {
11
13
  vi: 'vault_id',
12
- ti: 'time_interval'
14
+ ti: 'time_interval',
15
+ st: 'start_time',
16
+ et: 'end_time'
13
17
  }
14
18
  });
@@ -6,11 +6,15 @@ exports.API_TIMED_ASSET_EXPOSURE_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  is_gross_exposure: 'ig',
8
8
  time_interval: 'ti',
9
- sub_account_id: 'sa'
9
+ sub_account_id: 'sa',
10
+ start_time: 'st',
11
+ end_time: 'et'
10
12
  },
11
13
  LITE_TO_FULL: {
12
14
  ig: 'is_gross_exposure',
13
15
  ti: 'time_interval',
14
- sa: 'sub_account_id'
16
+ sa: 'sub_account_id',
17
+ st: 'start_time',
18
+ et: 'end_time'
15
19
  }
16
20
  });
@@ -6,11 +6,15 @@ exports.API_TIMED_VAULT_ASSET_EXPOSURE_REQUEST_MAP = Object.freeze({
6
6
  FULL_TO_LITE: {
7
7
  vault_id: 'vi',
8
8
  is_gross_exposure: 'ig',
9
- time_interval: 'ti'
9
+ time_interval: 'ti',
10
+ start_time: 'st',
11
+ end_time: 'et'
10
12
  },
11
13
  LITE_TO_FULL: {
12
14
  vi: 'vault_id',
13
15
  ig: 'is_gross_exposure',
14
- ti: 'time_interval'
16
+ ti: 'time_interval',
17
+ st: 'start_time',
18
+ et: 'end_time'
15
19
  }
16
20
  });
@@ -23,7 +23,8 @@ exports.INSTRUMENT_DISPLAY_MAP = Object.freeze({
23
23
  funding_methodology_version: 'fm',
24
24
  funding_interval_hours: 'fi',
25
25
  adjusted_funding_rate_cap: 'af',
26
- adjusted_funding_rate_floor: 'af1'
26
+ adjusted_funding_rate_floor: 'af1',
27
+ min_notional: 'mn'
27
28
  },
28
29
  LITE_TO_FULL: {
29
30
  i: 'instrument',
@@ -45,6 +46,7 @@ exports.INSTRUMENT_DISPLAY_MAP = Object.freeze({
45
46
  fm: 'funding_methodology_version',
46
47
  fi: 'funding_interval_hours',
47
48
  af: 'adjusted_funding_rate_cap',
48
- af1: 'adjusted_funding_rate_floor'
49
+ af1: 'adjusted_funding_rate_floor',
50
+ mn: 'min_notional'
49
51
  }
50
52
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.6.20",
3
+ "version": "1.6.21",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",