@grvt/client 1.6.4 → 1.6.5
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.
- package/interfaces/codegen/data.interface.d.ts +21 -0
- package/interfaces/codegen/enums/cluster-config-type.d.ts +2 -1
- package/interfaces/codegen/enums/cluster-config-type.js +4 -1
- package/interfaces/codegen/enums/transfer-type.d.ts +4 -1
- package/interfaces/codegen/enums/transfer-type.js +10 -1
- package/interfaces/codegen/schema-maps/aggregated_account_summary.js +4 -2
- package/interfaces/codegen/schema-maps/api_get_cev_access_tiers_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_cev_access_tiers_response.js +15 -0
- package/interfaces/codegen/schema-maps/api_set_cev_access_tiers_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_set_cev_access_tiers_request.js +15 -0
- package/interfaces/codegen/schema-maps/api_transfer_history_request.js +4 -2
- package/interfaces/codegen/schema-maps/cev_access_tier.d.ts +2 -0
- package/interfaces/codegen/schema-maps/cev_access_tier.js +20 -0
- package/interfaces/codegen/schema-maps/epoch_point.js +4 -2
- package/interfaces/codegen/schema-maps/sub_account_trading_performance.js +4 -2
- package/interfaces/codegen/schema-maps/trading_performance.js +4 -2
- package/interfaces/codegen/schema-maps/trading_performance_trend_point.js +4 -2
- package/package.json +1 -1
|
@@ -47,6 +47,7 @@ export interface IAggregatedAccountSummary {
|
|
|
47
47
|
total_equity?: string;
|
|
48
48
|
spot_balances?: ISpotBalance[];
|
|
49
49
|
vault_investments?: IVaultInvestment[];
|
|
50
|
+
total_sub_account_balance?: string;
|
|
50
51
|
}
|
|
51
52
|
export interface IApiAggregatedAccountSummaryResponse {
|
|
52
53
|
result?: IAggregatedAccountSummary;
|
|
@@ -400,6 +401,10 @@ export interface IApiGetAllInstrumentsRequest {
|
|
|
400
401
|
export interface IApiGetAllInstrumentsResponse {
|
|
401
402
|
result?: IInstrument[];
|
|
402
403
|
}
|
|
404
|
+
export interface IApiGetCEVAccessTiersResponse {
|
|
405
|
+
enabled?: boolean;
|
|
406
|
+
tiers?: ICEVAccessTier[];
|
|
407
|
+
}
|
|
403
408
|
export interface IApiGetClientTiersResponse {
|
|
404
409
|
tiers?: IClientTier[];
|
|
405
410
|
}
|
|
@@ -795,6 +800,10 @@ export interface IApiRewardLeaderboardItem {
|
|
|
795
800
|
rank?: number;
|
|
796
801
|
point?: string;
|
|
797
802
|
}
|
|
803
|
+
export interface IApiSetCEVAccessTiersRequest {
|
|
804
|
+
enabled?: boolean;
|
|
805
|
+
tiers?: ICEVAccessTier[];
|
|
806
|
+
}
|
|
798
807
|
export interface IApiSetClientTiersRequest {
|
|
799
808
|
tiers?: IClientTier[];
|
|
800
809
|
}
|
|
@@ -931,6 +940,7 @@ export interface IApiTransferHistoryRequest {
|
|
|
931
940
|
cursor?: string;
|
|
932
941
|
tx_id?: string;
|
|
933
942
|
main_account_id?: string;
|
|
943
|
+
transfer_types?: ETransferType[];
|
|
934
944
|
}
|
|
935
945
|
export interface IApiTransferHistoryResponse {
|
|
936
946
|
result?: ITransferHistory[];
|
|
@@ -1125,6 +1135,13 @@ export interface IBatchCreateAccountMultiplierElement {
|
|
|
1125
1135
|
account_type?: EAccountType;
|
|
1126
1136
|
multiplier?: number;
|
|
1127
1137
|
}
|
|
1138
|
+
export interface ICEVAccessTier {
|
|
1139
|
+
idx?: number;
|
|
1140
|
+
lifetime_trading_volume_range_start?: string;
|
|
1141
|
+
lifetime_trading_volume_range_end?: string;
|
|
1142
|
+
allocation_total_equity_percentage_centi_beeps?: number;
|
|
1143
|
+
allocation_max_cap?: string;
|
|
1144
|
+
}
|
|
1128
1145
|
export interface ICEVAllocStatsAccOverview {
|
|
1129
1146
|
total_allocation?: string;
|
|
1130
1147
|
total_invested?: string;
|
|
@@ -1319,6 +1336,7 @@ export interface IEpochPoint {
|
|
|
1319
1336
|
epoch?: number;
|
|
1320
1337
|
off_chain_account_id?: string;
|
|
1321
1338
|
point?: string;
|
|
1339
|
+
reserve_point?: string;
|
|
1322
1340
|
}
|
|
1323
1341
|
export interface IEpochPointStats {
|
|
1324
1342
|
epoch?: number;
|
|
@@ -1838,6 +1856,7 @@ export interface ISubAccountTradingPerformance {
|
|
|
1838
1856
|
unrealized_pnl?: string;
|
|
1839
1857
|
is_unrealized_pnl_snapshotted?: boolean;
|
|
1840
1858
|
funding_payment_amount?: string;
|
|
1859
|
+
filled_order_count?: string;
|
|
1841
1860
|
}
|
|
1842
1861
|
export interface ITPSLOrderMetadata {
|
|
1843
1862
|
trigger_by?: ETriggerBy;
|
|
@@ -1911,6 +1930,7 @@ export interface ITradingPerformance {
|
|
|
1911
1930
|
is_unrealized_pnl_snapshotted?: boolean;
|
|
1912
1931
|
last_start_interval?: string;
|
|
1913
1932
|
funding_payment_amount?: string;
|
|
1933
|
+
filled_order_count?: string;
|
|
1914
1934
|
}
|
|
1915
1935
|
export interface ITradingPerformanceTrendPoint {
|
|
1916
1936
|
start_interval?: string;
|
|
@@ -1922,6 +1942,7 @@ export interface ITradingPerformanceTrendPoint {
|
|
|
1922
1942
|
unrealized_pnl?: string;
|
|
1923
1943
|
is_unrealized_pnl_snapshotted?: boolean;
|
|
1924
1944
|
funding_payment_amount?: string;
|
|
1945
|
+
filled_order_count?: string;
|
|
1925
1946
|
}
|
|
1926
1947
|
export interface ITransferHistory {
|
|
1927
1948
|
tx_id?: string;
|
|
@@ -39,6 +39,7 @@ export declare enum EClusterConfigType {
|
|
|
39
39
|
FLAG_ENABLE_MSG_TIMER = "FLAG_ENABLE_MSG_TIMER",
|
|
40
40
|
FLAG_ENABLE_POSITION_TRANSFER = "FLAG_ENABLE_POSITION_TRANSFER",
|
|
41
41
|
FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT = "FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT",
|
|
42
|
-
FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE = "FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE"
|
|
42
|
+
FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE = "FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE",
|
|
43
|
+
FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES = "FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES"
|
|
43
44
|
}
|
|
44
45
|
export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
|
|
@@ -85,6 +85,8 @@ var EClusterConfigType;
|
|
|
85
85
|
EClusterConfigType["FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT"] = "FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT";
|
|
86
86
|
// Flag to let scribe write to local file storage
|
|
87
87
|
EClusterConfigType["FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE"] = "FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE";
|
|
88
|
+
// Flag to exclude liquidation from public trades
|
|
89
|
+
EClusterConfigType["FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES"] = "FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES";
|
|
88
90
|
})(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
|
|
89
91
|
exports.EClusterConfigTypeInt = Object.freeze({
|
|
90
92
|
[EClusterConfigType.CLIENT_TIER]: 1,
|
|
@@ -127,5 +129,6 @@ exports.EClusterConfigTypeInt = Object.freeze({
|
|
|
127
129
|
[EClusterConfigType.FLAG_ENABLE_MSG_TIMER]: 38,
|
|
128
130
|
[EClusterConfigType.FLAG_ENABLE_POSITION_TRANSFER]: 39,
|
|
129
131
|
[EClusterConfigType.FLAG_ENABLE_TOTAL_EQUITY_WITH_UNREALIZED_FUNDING_PAYMENT_ON_SNAP_SUB_ACCOUNT]: 40,
|
|
130
|
-
[EClusterConfigType.FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE]: 41
|
|
132
|
+
[EClusterConfigType.FLAG_ENABLE_SCRIBE_LOCAL_FILE_STORAGE]: 41,
|
|
133
|
+
[EClusterConfigType.FLAG_EXCLUDE_LIQUIDATION_FROM_PUBLIC_TRADES]: 42
|
|
131
134
|
});
|
|
@@ -4,6 +4,9 @@ export declare enum ETransferType {
|
|
|
4
4
|
FAST_ARB_DEPOSIT = "FAST_ARB_DEPOSIT",
|
|
5
5
|
FAST_ARB_WITHDRAWAL = "FAST_ARB_WITHDRAWAL",
|
|
6
6
|
NON_NATIVE_BRIDGE_DEPOSIT = "NON_NATIVE_BRIDGE_DEPOSIT",
|
|
7
|
-
NON_NATIVE_BRIDGE_WITHDRAWAL = "NON_NATIVE_BRIDGE_WITHDRAWAL"
|
|
7
|
+
NON_NATIVE_BRIDGE_WITHDRAWAL = "NON_NATIVE_BRIDGE_WITHDRAWAL",
|
|
8
|
+
ADHOC_INCENTIVE = "ADHOC_INCENTIVE",
|
|
9
|
+
REFERRAL_INCENTIVE = "REFERRAL_INCENTIVE",
|
|
10
|
+
TRADING_DEPOSIT_YIELD_INCENTIVE = "TRADING_DEPOSIT_YIELD_INCENTIVE"
|
|
8
11
|
}
|
|
9
12
|
export declare const ETransferTypeInt: Record<ETransferType, number>;
|
|
@@ -15,6 +15,12 @@ var ETransferType;
|
|
|
15
15
|
ETransferType["NON_NATIVE_BRIDGE_DEPOSIT"] = "NON_NATIVE_BRIDGE_DEPOSIT";
|
|
16
16
|
// Transfer type for non native bridging withdrawal
|
|
17
17
|
ETransferType["NON_NATIVE_BRIDGE_WITHDRAWAL"] = "NON_NATIVE_BRIDGE_WITHDRAWAL";
|
|
18
|
+
// Transfer type for adhoc incentive
|
|
19
|
+
ETransferType["ADHOC_INCENTIVE"] = "ADHOC_INCENTIVE";
|
|
20
|
+
// Transfer type for referral incentive
|
|
21
|
+
ETransferType["REFERRAL_INCENTIVE"] = "REFERRAL_INCENTIVE";
|
|
22
|
+
// Transfer type for trading deposit yield incentive
|
|
23
|
+
ETransferType["TRADING_DEPOSIT_YIELD_INCENTIVE"] = "TRADING_DEPOSIT_YIELD_INCENTIVE";
|
|
18
24
|
})(ETransferType || (exports.ETransferType = ETransferType = {}));
|
|
19
25
|
exports.ETransferTypeInt = Object.freeze({
|
|
20
26
|
[ETransferType.UNSPECIFIED]: 0,
|
|
@@ -22,5 +28,8 @@ exports.ETransferTypeInt = Object.freeze({
|
|
|
22
28
|
[ETransferType.FAST_ARB_DEPOSIT]: 2,
|
|
23
29
|
[ETransferType.FAST_ARB_WITHDRAWAL]: 3,
|
|
24
30
|
[ETransferType.NON_NATIVE_BRIDGE_DEPOSIT]: 4,
|
|
25
|
-
[ETransferType.NON_NATIVE_BRIDGE_WITHDRAWAL]: 5
|
|
31
|
+
[ETransferType.NON_NATIVE_BRIDGE_WITHDRAWAL]: 5,
|
|
32
|
+
[ETransferType.ADHOC_INCENTIVE]: 6,
|
|
33
|
+
[ETransferType.REFERRAL_INCENTIVE]: 7,
|
|
34
|
+
[ETransferType.TRADING_DEPOSIT_YIELD_INCENTIVE]: 8
|
|
26
35
|
});
|
|
@@ -9,12 +9,14 @@ exports.AGGREGATED_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_sub_account_balance: 'ts'
|
|
13
14
|
},
|
|
14
15
|
LITE_TO_FULL: {
|
|
15
16
|
ma: 'main_account_id',
|
|
16
17
|
te: 'total_equity',
|
|
17
18
|
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]]
|
|
19
|
+
vi: ['vault_investments', [vault_investment_1.VAULT_INVESTMENT_MAP.LITE_TO_FULL]],
|
|
20
|
+
ts: 'total_sub_account_balance'
|
|
19
21
|
}
|
|
20
22
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_CEV_ACCESS_TIERS_RESPONSE_MAP = void 0;
|
|
4
|
+
const cev_access_tier_1 = require("./cev_access_tier");
|
|
5
|
+
// Schema map for the 'API_GET_CEV_ACCESS_TIERS_RESPONSE' struct.
|
|
6
|
+
exports.API_GET_CEV_ACCESS_TIERS_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
enabled: 'e',
|
|
9
|
+
tiers: ['t', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.FULL_TO_LITE]]
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
e: 'enabled',
|
|
13
|
+
t: ['tiers', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.LITE_TO_FULL]]
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_SET_CEV_ACCESS_TIERS_REQUEST_MAP = void 0;
|
|
4
|
+
const cev_access_tier_1 = require("./cev_access_tier");
|
|
5
|
+
// Schema map for the 'API_SET_CEV_ACCESS_TIERS_REQUEST' struct.
|
|
6
|
+
exports.API_SET_CEV_ACCESS_TIERS_REQUEST_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
enabled: 'e',
|
|
9
|
+
tiers: ['t', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.FULL_TO_LITE]]
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
e: 'enabled',
|
|
13
|
+
t: ['tiers', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.LITE_TO_FULL]]
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -10,7 +10,8 @@ exports.API_TRANSFER_HISTORY_REQUEST_MAP = Object.freeze({
|
|
|
10
10
|
limit: 'l',
|
|
11
11
|
cursor: 'c1',
|
|
12
12
|
tx_id: 'ti',
|
|
13
|
-
main_account_id: 'ma'
|
|
13
|
+
main_account_id: 'ma',
|
|
14
|
+
transfer_types: 'tt'
|
|
14
15
|
},
|
|
15
16
|
LITE_TO_FULL: {
|
|
16
17
|
c: 'currency',
|
|
@@ -19,6 +20,7 @@ exports.API_TRANSFER_HISTORY_REQUEST_MAP = Object.freeze({
|
|
|
19
20
|
l: 'limit',
|
|
20
21
|
c1: 'cursor',
|
|
21
22
|
ti: 'tx_id',
|
|
22
|
-
ma: 'main_account_id'
|
|
23
|
+
ma: 'main_account_id',
|
|
24
|
+
tt: 'transfer_types'
|
|
23
25
|
}
|
|
24
26
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CEV_ACCESS_TIER_MAP = void 0;
|
|
4
|
+
// Schema map for the 'CEV_ACCESS_TIER' struct.
|
|
5
|
+
exports.CEV_ACCESS_TIER_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
idx: 'i',
|
|
8
|
+
lifetime_trading_volume_range_start: 'lt',
|
|
9
|
+
lifetime_trading_volume_range_end: 'lt1',
|
|
10
|
+
allocation_total_equity_percentage_centi_beeps: 'at',
|
|
11
|
+
allocation_max_cap: 'am'
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
i: 'idx',
|
|
15
|
+
lt: 'lifetime_trading_volume_range_start',
|
|
16
|
+
lt1: 'lifetime_trading_volume_range_end',
|
|
17
|
+
at: 'allocation_total_equity_percentage_centi_beeps',
|
|
18
|
+
am: 'allocation_max_cap'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -6,11 +6,13 @@ exports.EPOCH_POINT_MAP = Object.freeze({
|
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
epoch: 'e',
|
|
8
8
|
off_chain_account_id: 'oc',
|
|
9
|
-
point: 'p'
|
|
9
|
+
point: 'p',
|
|
10
|
+
reserve_point: 'rp'
|
|
10
11
|
},
|
|
11
12
|
LITE_TO_FULL: {
|
|
12
13
|
e: 'epoch',
|
|
13
14
|
oc: 'off_chain_account_id',
|
|
14
|
-
p: 'point'
|
|
15
|
+
p: 'point',
|
|
16
|
+
rp: 'reserve_point'
|
|
15
17
|
}
|
|
16
18
|
});
|
|
@@ -13,7 +13,8 @@ exports.SUB_ACCOUNT_TRADING_PERFORMANCE_MAP = Object.freeze({
|
|
|
13
13
|
realized_pnl: 'rp',
|
|
14
14
|
unrealized_pnl: 'up',
|
|
15
15
|
is_unrealized_pnl_snapshotted: 'iu',
|
|
16
|
-
funding_payment_amount: 'fp'
|
|
16
|
+
funding_payment_amount: 'fp',
|
|
17
|
+
filled_order_count: 'fo'
|
|
17
18
|
},
|
|
18
19
|
LITE_TO_FULL: {
|
|
19
20
|
si: 'start_interval',
|
|
@@ -25,6 +26,7 @@ exports.SUB_ACCOUNT_TRADING_PERFORMANCE_MAP = Object.freeze({
|
|
|
25
26
|
rp: 'realized_pnl',
|
|
26
27
|
up: 'unrealized_pnl',
|
|
27
28
|
iu: 'is_unrealized_pnl_snapshotted',
|
|
28
|
-
fp: 'funding_payment_amount'
|
|
29
|
+
fp: 'funding_payment_amount',
|
|
30
|
+
fo: 'filled_order_count'
|
|
29
31
|
}
|
|
30
32
|
});
|
|
@@ -13,7 +13,8 @@ exports.TRADING_PERFORMANCE_MAP = Object.freeze({
|
|
|
13
13
|
unrealized_pnl: 'up',
|
|
14
14
|
is_unrealized_pnl_snapshotted: 'iu',
|
|
15
15
|
last_start_interval: 'ls',
|
|
16
|
-
funding_payment_amount: 'fp'
|
|
16
|
+
funding_payment_amount: 'fp',
|
|
17
|
+
filled_order_count: 'fo'
|
|
17
18
|
},
|
|
18
19
|
LITE_TO_FULL: {
|
|
19
20
|
sa: 'sub_account_id',
|
|
@@ -25,6 +26,7 @@ exports.TRADING_PERFORMANCE_MAP = Object.freeze({
|
|
|
25
26
|
up: 'unrealized_pnl',
|
|
26
27
|
iu: 'is_unrealized_pnl_snapshotted',
|
|
27
28
|
ls: 'last_start_interval',
|
|
28
|
-
fp: 'funding_payment_amount'
|
|
29
|
+
fp: 'funding_payment_amount',
|
|
30
|
+
fo: 'filled_order_count'
|
|
29
31
|
}
|
|
30
32
|
});
|
|
@@ -12,7 +12,8 @@ exports.TRADING_PERFORMANCE_TREND_POINT_MAP = Object.freeze({
|
|
|
12
12
|
realized_pnl: 'rp',
|
|
13
13
|
unrealized_pnl: 'up',
|
|
14
14
|
is_unrealized_pnl_snapshotted: 'iu',
|
|
15
|
-
funding_payment_amount: 'fp'
|
|
15
|
+
funding_payment_amount: 'fp',
|
|
16
|
+
filled_order_count: 'fo'
|
|
16
17
|
},
|
|
17
18
|
LITE_TO_FULL: {
|
|
18
19
|
si: 'start_interval',
|
|
@@ -23,6 +24,7 @@ exports.TRADING_PERFORMANCE_TREND_POINT_MAP = Object.freeze({
|
|
|
23
24
|
rp: 'realized_pnl',
|
|
24
25
|
up: 'unrealized_pnl',
|
|
25
26
|
iu: 'is_unrealized_pnl_snapshotted',
|
|
26
|
-
fp: 'funding_payment_amount'
|
|
27
|
+
fp: 'funding_payment_amount',
|
|
28
|
+
fo: 'filled_order_count'
|
|
27
29
|
}
|
|
28
30
|
});
|