@grvt/client 1.6.19 → 1.6.20
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 +7 -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/schema-maps/aggregated_account_performance.js +4 -2
- package/interfaces/codegen/schema-maps/api_funding_payment_history_request.js +8 -2
- package/interfaces/codegen/schema-maps/api_get_cev_access_tiers_response.js +5 -2
- package/interfaces/codegen/schema-maps/snap_sub_account_history.js +4 -2
- package/interfaces/codegen/schema-maps/sub_account_performance.js +4 -2
- package/package.json +1 -1
|
@@ -84,6 +84,7 @@ export interface IAggregatedAccountPerformance {
|
|
|
84
84
|
investment_balance_start?: string;
|
|
85
85
|
investment_balance_end?: string;
|
|
86
86
|
net_investment?: string;
|
|
87
|
+
currency?: number;
|
|
87
88
|
}
|
|
88
89
|
export interface IAggregatedAccountSummary {
|
|
89
90
|
main_account_id?: string;
|
|
@@ -482,6 +483,9 @@ export interface IApiFundingPaymentHistoryRequest {
|
|
|
482
483
|
end_time?: string;
|
|
483
484
|
limit?: number;
|
|
484
485
|
cursor?: string;
|
|
486
|
+
kind?: EKind[];
|
|
487
|
+
base?: string[];
|
|
488
|
+
quote?: string[];
|
|
485
489
|
}
|
|
486
490
|
export interface IApiFundingPaymentHistoryResponse {
|
|
487
491
|
result?: IFundingPayment[];
|
|
@@ -542,6 +546,7 @@ export interface IApiGetAuthorizedBuildersResponse {
|
|
|
542
546
|
export interface IApiGetCEVAccessTiersResponse {
|
|
543
547
|
enabled?: boolean;
|
|
544
548
|
tiers?: ICEVAccessTier[];
|
|
549
|
+
overwrites?: ICEVAccessTierOverwrite[];
|
|
545
550
|
}
|
|
546
551
|
export interface IApiGetClientTiersResponse {
|
|
547
552
|
tiers?: IClientTier[];
|
|
@@ -2166,6 +2171,7 @@ export interface ISnapSubAccountHistory {
|
|
|
2166
2171
|
total_equity?: string;
|
|
2167
2172
|
unrealized_pnl?: string;
|
|
2168
2173
|
is_vault?: boolean;
|
|
2174
|
+
event_time?: string;
|
|
2169
2175
|
}
|
|
2170
2176
|
export interface ISnapSubAccountSummary {
|
|
2171
2177
|
event_time?: string;
|
|
@@ -2223,6 +2229,7 @@ export interface ISubAccountPerformance {
|
|
|
2223
2229
|
equity_start?: string;
|
|
2224
2230
|
equity_end?: string;
|
|
2225
2231
|
net_transfer?: string;
|
|
2232
|
+
currency?: number;
|
|
2226
2233
|
}
|
|
2227
2234
|
export interface ISubAccountTradingPerformance {
|
|
2228
2235
|
start_interval?: string;
|
|
@@ -63,6 +63,7 @@ export declare enum EClusterConfigType {
|
|
|
63
63
|
FLAG_ENABLE_ADD_ISOLATED_POSITION_MARGIN = "FLAG_ENABLE_ADD_ISOLATED_POSITION_MARGIN",
|
|
64
64
|
FLAG_BUILDER_CODE = "FLAG_BUILDER_CODE",
|
|
65
65
|
FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION = "FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION",
|
|
66
|
-
FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE = "FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE"
|
|
66
|
+
FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE = "FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE",
|
|
67
|
+
FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS = "FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS"
|
|
67
68
|
}
|
|
68
69
|
export declare const EClusterConfigTypeInt: Record<EClusterConfigType, number>;
|
|
@@ -133,6 +133,8 @@ var EClusterConfigType;
|
|
|
133
133
|
EClusterConfigType["FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION"] = "FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION";
|
|
134
134
|
// Flag to fix cross liquidation post trade
|
|
135
135
|
EClusterConfigType["FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE"] = "FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE";
|
|
136
|
+
// Flag to allow keeping session keys for 180 days
|
|
137
|
+
EClusterConfigType["FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS"] = "FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS";
|
|
136
138
|
})(EClusterConfigType || (exports.EClusterConfigType = EClusterConfigType = {}));
|
|
137
139
|
exports.EClusterConfigTypeInt = Object.freeze({
|
|
138
140
|
[EClusterConfigType.CLIENT_TIER]: 1,
|
|
@@ -199,5 +201,6 @@ exports.EClusterConfigTypeInt = Object.freeze({
|
|
|
199
201
|
[EClusterConfigType.FLAG_ENABLE_ADD_ISOLATED_POSITION_MARGIN]: 62,
|
|
200
202
|
[EClusterConfigType.FLAG_BUILDER_CODE]: 63,
|
|
201
203
|
[EClusterConfigType.FLAG_ENABLE_ADJUST_IS_REDUCING_POSITION]: 64,
|
|
202
|
-
[EClusterConfigType.FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE]: 65
|
|
204
|
+
[EClusterConfigType.FLAG_FIX_CROSS_LIQUIDATION_POST_TRADE]: 65,
|
|
205
|
+
[EClusterConfigType.FLAG_KEEP_EXPIRED_SESSION_KEYS_FOR_180_DAYS]: 66
|
|
203
206
|
});
|
|
@@ -13,7 +13,8 @@ exports.AGGREGATED_ACCOUNT_PERFORMANCE_MAP = Object.freeze({
|
|
|
13
13
|
net_transfer: 'nt',
|
|
14
14
|
investment_balance_start: 'ib',
|
|
15
15
|
investment_balance_end: 'ib1',
|
|
16
|
-
net_investment: 'ni'
|
|
16
|
+
net_investment: 'ni',
|
|
17
|
+
currency: 'c'
|
|
17
18
|
},
|
|
18
19
|
LITE_TO_FULL: {
|
|
19
20
|
si: 'start_interval',
|
|
@@ -25,6 +26,7 @@ exports.AGGREGATED_ACCOUNT_PERFORMANCE_MAP = Object.freeze({
|
|
|
25
26
|
nt: 'net_transfer',
|
|
26
27
|
ib: 'investment_balance_start',
|
|
27
28
|
ib1: 'investment_balance_end',
|
|
28
|
-
ni: 'net_investment'
|
|
29
|
+
ni: 'net_investment',
|
|
30
|
+
c: 'currency'
|
|
29
31
|
}
|
|
30
32
|
});
|
|
@@ -9,7 +9,10 @@ exports.API_FUNDING_PAYMENT_HISTORY_REQUEST_MAP = Object.freeze({
|
|
|
9
9
|
start_time: 'st',
|
|
10
10
|
end_time: 'et',
|
|
11
11
|
limit: 'l',
|
|
12
|
-
cursor: 'c'
|
|
12
|
+
cursor: 'c',
|
|
13
|
+
kind: 'k',
|
|
14
|
+
base: 'b',
|
|
15
|
+
quote: 'q'
|
|
13
16
|
},
|
|
14
17
|
LITE_TO_FULL: {
|
|
15
18
|
sa: 'sub_account_id',
|
|
@@ -17,6 +20,9 @@ exports.API_FUNDING_PAYMENT_HISTORY_REQUEST_MAP = Object.freeze({
|
|
|
17
20
|
st: 'start_time',
|
|
18
21
|
et: 'end_time',
|
|
19
22
|
l: 'limit',
|
|
20
|
-
c: 'cursor'
|
|
23
|
+
c: 'cursor',
|
|
24
|
+
k: 'kind',
|
|
25
|
+
b: 'base',
|
|
26
|
+
q: 'quote'
|
|
21
27
|
}
|
|
22
28
|
});
|
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.API_GET_CEV_ACCESS_TIERS_RESPONSE_MAP = void 0;
|
|
4
4
|
const cev_access_tier_1 = require("./cev_access_tier");
|
|
5
|
+
const cev_access_tier_overwrite_1 = require("./cev_access_tier_overwrite");
|
|
5
6
|
// Schema map for the 'API_GET_CEV_ACCESS_TIERS_RESPONSE' struct.
|
|
6
7
|
exports.API_GET_CEV_ACCESS_TIERS_RESPONSE_MAP = Object.freeze({
|
|
7
8
|
FULL_TO_LITE: {
|
|
8
9
|
enabled: 'e',
|
|
9
|
-
tiers: ['t', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.FULL_TO_LITE]]
|
|
10
|
+
tiers: ['t', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.FULL_TO_LITE]],
|
|
11
|
+
overwrites: ['o', [cev_access_tier_overwrite_1.CEV_ACCESS_TIER_OVERWRITE_MAP.FULL_TO_LITE]]
|
|
10
12
|
},
|
|
11
13
|
LITE_TO_FULL: {
|
|
12
14
|
e: 'enabled',
|
|
13
|
-
t: ['tiers', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.LITE_TO_FULL]]
|
|
15
|
+
t: ['tiers', [cev_access_tier_1.CEV_ACCESS_TIER_MAP.LITE_TO_FULL]],
|
|
16
|
+
o: ['overwrites', [cev_access_tier_overwrite_1.CEV_ACCESS_TIER_OVERWRITE_MAP.LITE_TO_FULL]]
|
|
14
17
|
}
|
|
15
18
|
});
|
|
@@ -8,13 +8,15 @@ exports.SNAP_SUB_ACCOUNT_HISTORY_MAP = Object.freeze({
|
|
|
8
8
|
sub_account_id: 'sa',
|
|
9
9
|
total_equity: 'te',
|
|
10
10
|
unrealized_pnl: 'up',
|
|
11
|
-
is_vault: 'iv'
|
|
11
|
+
is_vault: 'iv',
|
|
12
|
+
event_time: 'et'
|
|
12
13
|
},
|
|
13
14
|
LITE_TO_FULL: {
|
|
14
15
|
si: 'start_interval',
|
|
15
16
|
sa: 'sub_account_id',
|
|
16
17
|
te: 'total_equity',
|
|
17
18
|
up: 'unrealized_pnl',
|
|
18
|
-
iv: 'is_vault'
|
|
19
|
+
iv: 'is_vault',
|
|
20
|
+
et: 'event_time'
|
|
19
21
|
}
|
|
20
22
|
});
|
|
@@ -9,7 +9,8 @@ exports.SUB_ACCOUNT_PERFORMANCE_MAP = Object.freeze({
|
|
|
9
9
|
pnl: 'p',
|
|
10
10
|
equity_start: 'es',
|
|
11
11
|
equity_end: 'ee',
|
|
12
|
-
net_transfer: 'nt'
|
|
12
|
+
net_transfer: 'nt',
|
|
13
|
+
currency: 'c'
|
|
13
14
|
},
|
|
14
15
|
LITE_TO_FULL: {
|
|
15
16
|
si: 'start_interval',
|
|
@@ -17,6 +18,7 @@ exports.SUB_ACCOUNT_PERFORMANCE_MAP = Object.freeze({
|
|
|
17
18
|
p: 'pnl',
|
|
18
19
|
es: 'equity_start',
|
|
19
20
|
ee: 'equity_end',
|
|
20
|
-
nt: 'net_transfer'
|
|
21
|
+
nt: 'net_transfer',
|
|
22
|
+
c: 'currency'
|
|
21
23
|
}
|
|
22
24
|
});
|