@grvt/client 1.5.4 → 1.6.0
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 +87 -249
- package/interfaces/codegen/data.interface.js +0 -439
- package/interfaces/codegen/enums/bridge-type.d.ts +5 -0
- package/interfaces/codegen/enums/bridge-type.js +14 -0
- package/interfaces/codegen/enums/broker-tag.d.ts +7 -0
- package/interfaces/codegen/enums/broker-tag.js +20 -0
- package/interfaces/codegen/enums/cancel-status.d.ts +5 -0
- package/interfaces/codegen/enums/cancel-status.js +14 -0
- package/interfaces/codegen/enums/candlestick-interval.d.ts +21 -0
- package/interfaces/codegen/enums/candlestick-interval.js +62 -0
- package/interfaces/codegen/enums/candlestick-type.d.ts +7 -0
- package/interfaces/codegen/enums/candlestick-type.js +20 -0
- package/interfaces/codegen/enums/cluster-config-type.d.ts +34 -0
- package/interfaces/codegen/enums/cluster-config-type.js +101 -0
- package/interfaces/codegen/enums/epoch-badge-type.d.ts +15 -0
- package/interfaces/codegen/enums/epoch-badge-type.js +44 -0
- package/interfaces/codegen/enums/instrument-settlement-period.d.ts +8 -0
- package/interfaces/codegen/enums/instrument-settlement-period.js +23 -0
- package/interfaces/codegen/enums/kind.d.ts +7 -0
- package/interfaces/codegen/enums/kind.js +21 -0
- package/interfaces/codegen/enums/margin-type.d.ts +5 -0
- package/interfaces/codegen/enums/margin-type.js +14 -0
- package/interfaces/codegen/enums/order-reject-reason.d.ts +41 -0
- package/interfaces/codegen/enums/order-reject-reason.js +122 -0
- package/interfaces/codegen/enums/order-status.d.ts +8 -0
- package/interfaces/codegen/enums/order-status.js +23 -0
- package/interfaces/codegen/enums/query-main-account-leaderboard-order-by.d.ts +5 -0
- package/interfaces/codegen/enums/query-main-account-leaderboard-order-by.js +14 -0
- package/interfaces/codegen/enums/reward-epoch-status.d.ts +6 -0
- package/interfaces/codegen/enums/reward-epoch-status.js +17 -0
- package/interfaces/codegen/enums/reward-program-type.d.ts +6 -0
- package/interfaces/codegen/enums/reward-program-type.js +14 -0
- package/interfaces/codegen/enums/source.d.ts +7 -0
- package/interfaces/codegen/enums/source.js +22 -0
- package/interfaces/codegen/enums/sub-account-trade-interval.d.ts +7 -0
- package/interfaces/codegen/enums/sub-account-trade-interval.js +20 -0
- package/interfaces/codegen/enums/time-in-force.d.ts +8 -0
- package/interfaces/codegen/enums/time-in-force.js +28 -0
- package/interfaces/codegen/enums/time-interval.d.ts +8 -0
- package/interfaces/codegen/enums/time-interval.js +24 -0
- package/interfaces/codegen/enums/transaction-type.d.ts +51 -0
- package/interfaces/codegen/enums/transaction-type.js +104 -0
- package/interfaces/codegen/enums/transfer-type.d.ts +9 -0
- package/interfaces/codegen/enums/transfer-type.js +26 -0
- package/interfaces/codegen/enums/trigger-by.d.ts +8 -0
- package/interfaces/codegen/enums/trigger-by.js +28 -0
- package/interfaces/codegen/enums/trigger-type.d.ts +6 -0
- package/interfaces/codegen/enums/trigger-type.js +22 -0
- package/interfaces/codegen/enums/vault-investor-action.d.ts +7 -0
- package/interfaces/codegen/enums/vault-investor-action.js +16 -0
- package/interfaces/codegen/enums/vault-redemption-req-age-category.d.ts +7 -0
- package/interfaces/codegen/enums/vault-redemption-req-age-category.js +23 -0
- package/interfaces/codegen/enums/vault-type.d.ts +5 -0
- package/interfaces/codegen/enums/vault-type.js +14 -0
- package/interfaces/codegen/enums/venue.d.ts +5 -0
- package/interfaces/codegen/enums/venue.js +15 -0
- package/interfaces/codegen/index.d.ts +0 -1
- package/interfaces/codegen/index.js +0 -1
- package/interfaces/codegen/schema-maps/api_cluster_config.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_cluster_config.js +16 -0
- package/interfaces/codegen/schema-maps/api_get_cluster_configs_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_cluster_configs_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_get_price_protection_bands_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_price_protection_bands_response.js +18 -0
- package/interfaces/codegen/schema-maps/api_query_vault_investor_history_request.js +6 -2
- package/interfaces/codegen/schema-maps/api_query_vault_manager_investor_history_request.js +6 -2
- package/interfaces/codegen/schema-maps/api_set_price_protection_bands_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_set_price_protection_bands_request.js +18 -0
- package/interfaces/codegen/schema-maps/asset_specific_price_protection_band.d.ts +2 -0
- package/interfaces/codegen/schema-maps/asset_specific_price_protection_band.js +15 -0
- package/interfaces/codegen/schema-maps/detailed_aggregated_account_summary.js +6 -2
- package/interfaces/codegen/schema-maps/price_protection_band.d.ts +2 -0
- package/interfaces/codegen/schema-maps/price_protection_band.js +14 -0
- package/interfaces/codegen/schema-maps/query_trading_performance_trend_response.js +3 -3
- package/interfaces/codegen/schema-maps/snap_funding_account_summary.js +11 -2
- package/interfaces/codegen/schema-maps/trading_performance.d.ts +2 -0
- package/interfaces/codegen/schema-maps/trading_performance.js +30 -0
- package/interfaces/codegen/schema-maps/trading_performance_trend_point.d.ts +2 -0
- package/interfaces/codegen/schema-maps/trading_performance_trend_point.js +28 -0
- package/package.json +1 -1
- package/ws/interfaces.d.ts +3 -1
- package/ws/ws.d.ts +5 -1
- package/ws/ws.js +53 -8
- package/interfaces/codegen/enum-int.d.ts +0 -27
- package/interfaces/codegen/enum-int.js +0 -252
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ETimeInForceInt = exports.ETimeInForce = void 0;
|
|
4
|
+
// | | Must Fill All | Can Fill Partial |
|
|
5
|
+
// | - | - | - |
|
|
6
|
+
// | Must Fill Immediately | FOK | IOC |
|
|
7
|
+
// | Can Fill Till Time | AON | GTC |
|
|
8
|
+
//
|
|
9
|
+
var ETimeInForce;
|
|
10
|
+
(function (ETimeInForce) {
|
|
11
|
+
// GTT - Remains open until it is cancelled, or expired
|
|
12
|
+
ETimeInForce["GOOD_TILL_TIME"] = "GOOD_TILL_TIME";
|
|
13
|
+
// AON - Either fill the whole order or none of it (Block Trades Only)
|
|
14
|
+
ETimeInForce["ALL_OR_NONE"] = "ALL_OR_NONE";
|
|
15
|
+
// IOC - Fill the order as much as possible, when hitting the orderbook. Then cancel it
|
|
16
|
+
ETimeInForce["IMMEDIATE_OR_CANCEL"] = "IMMEDIATE_OR_CANCEL";
|
|
17
|
+
// FOK - Both AoN and IoC. Either fill the full order when hitting the orderbook, or cancel it
|
|
18
|
+
ETimeInForce["FILL_OR_KILL"] = "FILL_OR_KILL";
|
|
19
|
+
// RPI - A GTT + PostOnly maker order, that can only be taken by non-algorithmic UI users.
|
|
20
|
+
ETimeInForce["RETAIL_PRICE_IMPROVEMENT"] = "RETAIL_PRICE_IMPROVEMENT";
|
|
21
|
+
})(ETimeInForce || (exports.ETimeInForce = ETimeInForce = {}));
|
|
22
|
+
exports.ETimeInForceInt = Object.freeze({
|
|
23
|
+
[ETimeInForce.GOOD_TILL_TIME]: 1,
|
|
24
|
+
[ETimeInForce.ALL_OR_NONE]: 2,
|
|
25
|
+
[ETimeInForce.IMMEDIATE_OR_CANCEL]: 3,
|
|
26
|
+
[ETimeInForce.FILL_OR_KILL]: 4,
|
|
27
|
+
[ETimeInForce.RETAIL_PRICE_IMPROVEMENT]: 5
|
|
28
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum ETimeInterval {
|
|
2
|
+
INTERVAL_1_D = "INTERVAL_1_D",
|
|
3
|
+
INTERVAL_7_D = "INTERVAL_7_D",
|
|
4
|
+
INTERVAL_30_D = "INTERVAL_30_D",
|
|
5
|
+
INTERVAL_90_D = "INTERVAL_90_D",
|
|
6
|
+
INTERVAL_LIFETIME = "INTERVAL_LIFETIME"
|
|
7
|
+
}
|
|
8
|
+
export declare const ETimeIntervalInt: Record<ETimeInterval, number>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ETimeIntervalInt = exports.ETimeInterval = void 0;
|
|
4
|
+
// Time interval can be used as a filter in metric/portfolio management APIs
|
|
5
|
+
var ETimeInterval;
|
|
6
|
+
(function (ETimeInterval) {
|
|
7
|
+
// 1 day
|
|
8
|
+
ETimeInterval["INTERVAL_1_D"] = "INTERVAL_1_D";
|
|
9
|
+
// 7 days
|
|
10
|
+
ETimeInterval["INTERVAL_7_D"] = "INTERVAL_7_D";
|
|
11
|
+
// 30 days
|
|
12
|
+
ETimeInterval["INTERVAL_30_D"] = "INTERVAL_30_D";
|
|
13
|
+
// 90 days
|
|
14
|
+
ETimeInterval["INTERVAL_90_D"] = "INTERVAL_90_D";
|
|
15
|
+
// Lifetime
|
|
16
|
+
ETimeInterval["INTERVAL_LIFETIME"] = "INTERVAL_LIFETIME";
|
|
17
|
+
})(ETimeInterval || (exports.ETimeInterval = ETimeInterval = {}));
|
|
18
|
+
exports.ETimeIntervalInt = Object.freeze({
|
|
19
|
+
[ETimeInterval.INTERVAL_1_D]: 1,
|
|
20
|
+
[ETimeInterval.INTERVAL_7_D]: 2,
|
|
21
|
+
[ETimeInterval.INTERVAL_30_D]: 3,
|
|
22
|
+
[ETimeInterval.INTERVAL_90_D]: 4,
|
|
23
|
+
[ETimeInterval.INTERVAL_LIFETIME]: 5
|
|
24
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare enum ETransactionType {
|
|
2
|
+
UNSPECIFIED_1 = "UNSPECIFIED_1",
|
|
3
|
+
UNSPECIFIED_2 = "UNSPECIFIED_2",
|
|
4
|
+
UNSPECIFIED_3 = "UNSPECIFIED_3",
|
|
5
|
+
CREATE_ACCOUNT = "CREATE_ACCOUNT",
|
|
6
|
+
CREATE_SUB_ACCOUNT = "CREATE_SUB_ACCOUNT",
|
|
7
|
+
SET_ACCOUNT_MULTI_SIG_THRESHOLD = "SET_ACCOUNT_MULTI_SIG_THRESHOLD",
|
|
8
|
+
ADD_ACCOUNT_SIGNER = "ADD_ACCOUNT_SIGNER",
|
|
9
|
+
REMOVE_ACCOUNT_SIGNER = "REMOVE_ACCOUNT_SIGNER",
|
|
10
|
+
ADD_WITHDRAWAL_ADDRESS = "ADD_WITHDRAWAL_ADDRESS",
|
|
11
|
+
REMOVE_WITHDRAWAL_ADDRESS = "REMOVE_WITHDRAWAL_ADDRESS",
|
|
12
|
+
ADD_TRANSFER_ACCOUNT = "ADD_TRANSFER_ACCOUNT",
|
|
13
|
+
REMOVE_TRANSFER_ACCOUNT = "REMOVE_TRANSFER_ACCOUNT",
|
|
14
|
+
SET_SUB_ACCOUNT_MARGIN_TYPE = "SET_SUB_ACCOUNT_MARGIN_TYPE",
|
|
15
|
+
ADD_SUB_ACCOUNT_SIGNER = "ADD_SUB_ACCOUNT_SIGNER",
|
|
16
|
+
REMOVE_SUB_ACCOUNT_SIGNER = "REMOVE_SUB_ACCOUNT_SIGNER",
|
|
17
|
+
ADD_SESSION_KEY = "ADD_SESSION_KEY",
|
|
18
|
+
REMOVE_SESSION_KEY = "REMOVE_SESSION_KEY",
|
|
19
|
+
DEPOSIT = "DEPOSIT",
|
|
20
|
+
WITHDRAWAL = "WITHDRAWAL",
|
|
21
|
+
TRANSFER = "TRANSFER",
|
|
22
|
+
MARK_PRICE_TICK = "MARK_PRICE_TICK",
|
|
23
|
+
SETTLEMENT_PRICE_TICK = "SETTLEMENT_PRICE_TICK",
|
|
24
|
+
FUNDING_TICK = "FUNDING_TICK",
|
|
25
|
+
INTEREST_RATE_TICK = "INTEREST_RATE_TICK",
|
|
26
|
+
SCHEDULE_CONFIG = "SCHEDULE_CONFIG",
|
|
27
|
+
SET_CONFIG = "SET_CONFIG",
|
|
28
|
+
TRADE = "TRADE",
|
|
29
|
+
ADD_RECOVERY_ADDRESS = "ADD_RECOVERY_ADDRESS",
|
|
30
|
+
REMOVE_RECOVERY_ADDRESS = "REMOVE_RECOVERY_ADDRESS",
|
|
31
|
+
RECOVER_ADDRESS = "RECOVER_ADDRESS",
|
|
32
|
+
SETTLE_START = "SETTLE_START",
|
|
33
|
+
SETTLE_INSTRUMENTS = "SETTLE_INSTRUMENTS",
|
|
34
|
+
SETTLE_SOCIALISED_LOSS = "SETTLE_SOCIALISED_LOSS",
|
|
35
|
+
SETTLE_END = "SETTLE_END",
|
|
36
|
+
SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS = "SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS",
|
|
37
|
+
SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS = "SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS",
|
|
38
|
+
INITIALIZE_CONFIG = "INITIALIZE_CONFIG",
|
|
39
|
+
CREATE_ACCOUNT_WITH_SUB_ACCOUNT = "CREATE_ACCOUNT_WITH_SUB_ACCOUNT",
|
|
40
|
+
VAULT_CREATE = "VAULT_CREATE",
|
|
41
|
+
VAULT_UPDATE = "VAULT_UPDATE",
|
|
42
|
+
VAULT_DELIST = "VAULT_DELIST",
|
|
43
|
+
VAULT_CLOSE = "VAULT_CLOSE",
|
|
44
|
+
VAULT_INVEST = "VAULT_INVEST",
|
|
45
|
+
VAULT_BURN_LP_TOKEN = "VAULT_BURN_LP_TOKEN",
|
|
46
|
+
VAULT_REDEEM = "VAULT_REDEEM",
|
|
47
|
+
VAULT_MANAGEMENT_FEE_TICK = "VAULT_MANAGEMENT_FEE_TICK",
|
|
48
|
+
ADD_CURRENCY = "ADD_CURRENCY",
|
|
49
|
+
SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO = "SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO"
|
|
50
|
+
}
|
|
51
|
+
export declare const ETransactionTypeInt: Record<ETransactionType, number>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ETransactionTypeInt = exports.ETransactionType = void 0;
|
|
4
|
+
var ETransactionType;
|
|
5
|
+
(function (ETransactionType) {
|
|
6
|
+
ETransactionType["UNSPECIFIED_1"] = "UNSPECIFIED_1";
|
|
7
|
+
ETransactionType["UNSPECIFIED_2"] = "UNSPECIFIED_2";
|
|
8
|
+
ETransactionType["UNSPECIFIED_3"] = "UNSPECIFIED_3";
|
|
9
|
+
ETransactionType["CREATE_ACCOUNT"] = "CREATE_ACCOUNT";
|
|
10
|
+
ETransactionType["CREATE_SUB_ACCOUNT"] = "CREATE_SUB_ACCOUNT";
|
|
11
|
+
ETransactionType["SET_ACCOUNT_MULTI_SIG_THRESHOLD"] = "SET_ACCOUNT_MULTI_SIG_THRESHOLD";
|
|
12
|
+
ETransactionType["ADD_ACCOUNT_SIGNER"] = "ADD_ACCOUNT_SIGNER";
|
|
13
|
+
ETransactionType["REMOVE_ACCOUNT_SIGNER"] = "REMOVE_ACCOUNT_SIGNER";
|
|
14
|
+
ETransactionType["ADD_WITHDRAWAL_ADDRESS"] = "ADD_WITHDRAWAL_ADDRESS";
|
|
15
|
+
ETransactionType["REMOVE_WITHDRAWAL_ADDRESS"] = "REMOVE_WITHDRAWAL_ADDRESS";
|
|
16
|
+
ETransactionType["ADD_TRANSFER_ACCOUNT"] = "ADD_TRANSFER_ACCOUNT";
|
|
17
|
+
ETransactionType["REMOVE_TRANSFER_ACCOUNT"] = "REMOVE_TRANSFER_ACCOUNT";
|
|
18
|
+
ETransactionType["SET_SUB_ACCOUNT_MARGIN_TYPE"] = "SET_SUB_ACCOUNT_MARGIN_TYPE";
|
|
19
|
+
ETransactionType["ADD_SUB_ACCOUNT_SIGNER"] = "ADD_SUB_ACCOUNT_SIGNER";
|
|
20
|
+
ETransactionType["REMOVE_SUB_ACCOUNT_SIGNER"] = "REMOVE_SUB_ACCOUNT_SIGNER";
|
|
21
|
+
ETransactionType["ADD_SESSION_KEY"] = "ADD_SESSION_KEY";
|
|
22
|
+
ETransactionType["REMOVE_SESSION_KEY"] = "REMOVE_SESSION_KEY";
|
|
23
|
+
ETransactionType["DEPOSIT"] = "DEPOSIT";
|
|
24
|
+
ETransactionType["WITHDRAWAL"] = "WITHDRAWAL";
|
|
25
|
+
ETransactionType["TRANSFER"] = "TRANSFER";
|
|
26
|
+
ETransactionType["MARK_PRICE_TICK"] = "MARK_PRICE_TICK";
|
|
27
|
+
ETransactionType["SETTLEMENT_PRICE_TICK"] = "SETTLEMENT_PRICE_TICK";
|
|
28
|
+
ETransactionType["FUNDING_TICK"] = "FUNDING_TICK";
|
|
29
|
+
ETransactionType["INTEREST_RATE_TICK"] = "INTEREST_RATE_TICK";
|
|
30
|
+
ETransactionType["SCHEDULE_CONFIG"] = "SCHEDULE_CONFIG";
|
|
31
|
+
ETransactionType["SET_CONFIG"] = "SET_CONFIG";
|
|
32
|
+
ETransactionType["TRADE"] = "TRADE";
|
|
33
|
+
ETransactionType["ADD_RECOVERY_ADDRESS"] = "ADD_RECOVERY_ADDRESS";
|
|
34
|
+
ETransactionType["REMOVE_RECOVERY_ADDRESS"] = "REMOVE_RECOVERY_ADDRESS";
|
|
35
|
+
ETransactionType["RECOVER_ADDRESS"] = "RECOVER_ADDRESS";
|
|
36
|
+
ETransactionType["SETTLE_START"] = "SETTLE_START";
|
|
37
|
+
ETransactionType["SETTLE_INSTRUMENTS"] = "SETTLE_INSTRUMENTS";
|
|
38
|
+
ETransactionType["SETTLE_SOCIALISED_LOSS"] = "SETTLE_SOCIALISED_LOSS";
|
|
39
|
+
ETransactionType["SETTLE_END"] = "SETTLE_END";
|
|
40
|
+
ETransactionType["SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS"] = "SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS";
|
|
41
|
+
ETransactionType["SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS"] = "SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS";
|
|
42
|
+
ETransactionType["INITIALIZE_CONFIG"] = "INITIALIZE_CONFIG";
|
|
43
|
+
ETransactionType["CREATE_ACCOUNT_WITH_SUB_ACCOUNT"] = "CREATE_ACCOUNT_WITH_SUB_ACCOUNT";
|
|
44
|
+
ETransactionType["VAULT_CREATE"] = "VAULT_CREATE";
|
|
45
|
+
ETransactionType["VAULT_UPDATE"] = "VAULT_UPDATE";
|
|
46
|
+
ETransactionType["VAULT_DELIST"] = "VAULT_DELIST";
|
|
47
|
+
ETransactionType["VAULT_CLOSE"] = "VAULT_CLOSE";
|
|
48
|
+
ETransactionType["VAULT_INVEST"] = "VAULT_INVEST";
|
|
49
|
+
ETransactionType["VAULT_BURN_LP_TOKEN"] = "VAULT_BURN_LP_TOKEN";
|
|
50
|
+
ETransactionType["VAULT_REDEEM"] = "VAULT_REDEEM";
|
|
51
|
+
ETransactionType["VAULT_MANAGEMENT_FEE_TICK"] = "VAULT_MANAGEMENT_FEE_TICK";
|
|
52
|
+
ETransactionType["ADD_CURRENCY"] = "ADD_CURRENCY";
|
|
53
|
+
ETransactionType["SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO"] = "SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO";
|
|
54
|
+
})(ETransactionType || (exports.ETransactionType = ETransactionType = {}));
|
|
55
|
+
exports.ETransactionTypeInt = Object.freeze({
|
|
56
|
+
[ETransactionType.UNSPECIFIED_1]: 1,
|
|
57
|
+
[ETransactionType.UNSPECIFIED_2]: 2,
|
|
58
|
+
[ETransactionType.UNSPECIFIED_3]: 3,
|
|
59
|
+
[ETransactionType.CREATE_ACCOUNT]: 4,
|
|
60
|
+
[ETransactionType.CREATE_SUB_ACCOUNT]: 5,
|
|
61
|
+
[ETransactionType.SET_ACCOUNT_MULTI_SIG_THRESHOLD]: 6,
|
|
62
|
+
[ETransactionType.ADD_ACCOUNT_SIGNER]: 7,
|
|
63
|
+
[ETransactionType.REMOVE_ACCOUNT_SIGNER]: 8,
|
|
64
|
+
[ETransactionType.ADD_WITHDRAWAL_ADDRESS]: 9,
|
|
65
|
+
[ETransactionType.REMOVE_WITHDRAWAL_ADDRESS]: 10,
|
|
66
|
+
[ETransactionType.ADD_TRANSFER_ACCOUNT]: 11,
|
|
67
|
+
[ETransactionType.REMOVE_TRANSFER_ACCOUNT]: 12,
|
|
68
|
+
[ETransactionType.SET_SUB_ACCOUNT_MARGIN_TYPE]: 13,
|
|
69
|
+
[ETransactionType.ADD_SUB_ACCOUNT_SIGNER]: 14,
|
|
70
|
+
[ETransactionType.REMOVE_SUB_ACCOUNT_SIGNER]: 15,
|
|
71
|
+
[ETransactionType.ADD_SESSION_KEY]: 16,
|
|
72
|
+
[ETransactionType.REMOVE_SESSION_KEY]: 17,
|
|
73
|
+
[ETransactionType.DEPOSIT]: 18,
|
|
74
|
+
[ETransactionType.WITHDRAWAL]: 19,
|
|
75
|
+
[ETransactionType.TRANSFER]: 20,
|
|
76
|
+
[ETransactionType.MARK_PRICE_TICK]: 21,
|
|
77
|
+
[ETransactionType.SETTLEMENT_PRICE_TICK]: 22,
|
|
78
|
+
[ETransactionType.FUNDING_TICK]: 23,
|
|
79
|
+
[ETransactionType.INTEREST_RATE_TICK]: 24,
|
|
80
|
+
[ETransactionType.SCHEDULE_CONFIG]: 25,
|
|
81
|
+
[ETransactionType.SET_CONFIG]: 26,
|
|
82
|
+
[ETransactionType.TRADE]: 27,
|
|
83
|
+
[ETransactionType.ADD_RECOVERY_ADDRESS]: 28,
|
|
84
|
+
[ETransactionType.REMOVE_RECOVERY_ADDRESS]: 29,
|
|
85
|
+
[ETransactionType.RECOVER_ADDRESS]: 30,
|
|
86
|
+
[ETransactionType.SETTLE_START]: 31,
|
|
87
|
+
[ETransactionType.SETTLE_INSTRUMENTS]: 32,
|
|
88
|
+
[ETransactionType.SETTLE_SOCIALISED_LOSS]: 33,
|
|
89
|
+
[ETransactionType.SETTLE_END]: 34,
|
|
90
|
+
[ETransactionType.SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS]: 35,
|
|
91
|
+
[ETransactionType.SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS]: 36,
|
|
92
|
+
[ETransactionType.INITIALIZE_CONFIG]: 37,
|
|
93
|
+
[ETransactionType.CREATE_ACCOUNT_WITH_SUB_ACCOUNT]: 38,
|
|
94
|
+
[ETransactionType.VAULT_CREATE]: 39,
|
|
95
|
+
[ETransactionType.VAULT_UPDATE]: 40,
|
|
96
|
+
[ETransactionType.VAULT_DELIST]: 41,
|
|
97
|
+
[ETransactionType.VAULT_CLOSE]: 42,
|
|
98
|
+
[ETransactionType.VAULT_INVEST]: 43,
|
|
99
|
+
[ETransactionType.VAULT_BURN_LP_TOKEN]: 44,
|
|
100
|
+
[ETransactionType.VAULT_REDEEM]: 45,
|
|
101
|
+
[ETransactionType.VAULT_MANAGEMENT_FEE_TICK]: 46,
|
|
102
|
+
[ETransactionType.ADD_CURRENCY]: 47,
|
|
103
|
+
[ETransactionType.SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO]: 48
|
|
104
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum ETransferType {
|
|
2
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
3
|
+
STANDARD = "STANDARD",
|
|
4
|
+
FAST_ARB_DEPOSIT = "FAST_ARB_DEPOSIT",
|
|
5
|
+
FAST_ARB_WITHDRAWAL = "FAST_ARB_WITHDRAWAL",
|
|
6
|
+
NON_NATIVE_BRIDGE_DEPOSIT = "NON_NATIVE_BRIDGE_DEPOSIT",
|
|
7
|
+
NON_NATIVE_BRIDGE_WITHDRAWAL = "NON_NATIVE_BRIDGE_WITHDRAWAL"
|
|
8
|
+
}
|
|
9
|
+
export declare const ETransferTypeInt: Record<ETransferType, number>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ETransferTypeInt = exports.ETransferType = void 0;
|
|
4
|
+
var ETransferType;
|
|
5
|
+
(function (ETransferType) {
|
|
6
|
+
// Default transfer that has nothing to do with bridging
|
|
7
|
+
ETransferType["UNSPECIFIED"] = "UNSPECIFIED";
|
|
8
|
+
// Standard transfer that has nothing to do with bridging
|
|
9
|
+
ETransferType["STANDARD"] = "STANDARD";
|
|
10
|
+
// Fast Arb Deposit Metadata type
|
|
11
|
+
ETransferType["FAST_ARB_DEPOSIT"] = "FAST_ARB_DEPOSIT";
|
|
12
|
+
// Fast Arb Withdrawal Metadata type
|
|
13
|
+
ETransferType["FAST_ARB_WITHDRAWAL"] = "FAST_ARB_WITHDRAWAL";
|
|
14
|
+
// Transfer type for non native bridging deposit
|
|
15
|
+
ETransferType["NON_NATIVE_BRIDGE_DEPOSIT"] = "NON_NATIVE_BRIDGE_DEPOSIT";
|
|
16
|
+
// Transfer type for non native bridging withdrawal
|
|
17
|
+
ETransferType["NON_NATIVE_BRIDGE_WITHDRAWAL"] = "NON_NATIVE_BRIDGE_WITHDRAWAL";
|
|
18
|
+
})(ETransferType || (exports.ETransferType = ETransferType = {}));
|
|
19
|
+
exports.ETransferTypeInt = Object.freeze({
|
|
20
|
+
[ETransferType.UNSPECIFIED]: 0,
|
|
21
|
+
[ETransferType.STANDARD]: 1,
|
|
22
|
+
[ETransferType.FAST_ARB_DEPOSIT]: 2,
|
|
23
|
+
[ETransferType.FAST_ARB_WITHDRAWAL]: 3,
|
|
24
|
+
[ETransferType.NON_NATIVE_BRIDGE_DEPOSIT]: 4,
|
|
25
|
+
[ETransferType.NON_NATIVE_BRIDGE_WITHDRAWAL]: 5
|
|
26
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ETriggerByInt = exports.ETriggerBy = void 0;
|
|
4
|
+
// Defines the price type that activates a Take Profit (TP) or Stop Loss (SL) order.
|
|
5
|
+
//
|
|
6
|
+
// Trigger orders are executed when the selected price type reaches the specified trigger price.Different price types ensure flexibility in executing strategies based on market conditions.
|
|
7
|
+
//
|
|
8
|
+
//
|
|
9
|
+
var ETriggerBy;
|
|
10
|
+
(function (ETriggerBy) {
|
|
11
|
+
// no trigger condition
|
|
12
|
+
ETriggerBy["UNSPECIFIED"] = "UNSPECIFIED";
|
|
13
|
+
// INDEX - Order is activated when the index price reaches the trigger price
|
|
14
|
+
ETriggerBy["INDEX"] = "INDEX";
|
|
15
|
+
// LAST - Order is activated when the last trade price reaches the trigger price
|
|
16
|
+
ETriggerBy["LAST"] = "LAST";
|
|
17
|
+
// MID - Order is activated when the mid price reaches the trigger price
|
|
18
|
+
ETriggerBy["MID"] = "MID";
|
|
19
|
+
// MARK - Order is activated when the mark price reaches the trigger price
|
|
20
|
+
ETriggerBy["MARK"] = "MARK";
|
|
21
|
+
})(ETriggerBy || (exports.ETriggerBy = ETriggerBy = {}));
|
|
22
|
+
exports.ETriggerByInt = Object.freeze({
|
|
23
|
+
[ETriggerBy.UNSPECIFIED]: 0,
|
|
24
|
+
[ETriggerBy.INDEX]: 1,
|
|
25
|
+
[ETriggerBy.LAST]: 2,
|
|
26
|
+
[ETriggerBy.MID]: 3,
|
|
27
|
+
[ETriggerBy.MARK]: 4
|
|
28
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ETriggerTypeInt = exports.ETriggerType = void 0;
|
|
4
|
+
// Defines the type of trigger order used in trading, such as Take Profit or Stop Loss.
|
|
5
|
+
//
|
|
6
|
+
// Trigger orders allow execution based on pre-defined price conditions rather than immediate market conditions.
|
|
7
|
+
//
|
|
8
|
+
//
|
|
9
|
+
var ETriggerType;
|
|
10
|
+
(function (ETriggerType) {
|
|
11
|
+
// Not a trigger order. The order executes normally without any trigger conditions.
|
|
12
|
+
ETriggerType["UNSPECIFIED"] = "UNSPECIFIED";
|
|
13
|
+
// Take Profit Order - Executes when the price reaches a specified level to secure profits.
|
|
14
|
+
ETriggerType["TAKE_PROFIT"] = "TAKE_PROFIT";
|
|
15
|
+
// Stop Loss Order - Executes when the price reaches a specified level to limit losses.
|
|
16
|
+
ETriggerType["STOP_LOSS"] = "STOP_LOSS";
|
|
17
|
+
})(ETriggerType || (exports.ETriggerType = ETriggerType = {}));
|
|
18
|
+
exports.ETriggerTypeInt = Object.freeze({
|
|
19
|
+
[ETriggerType.UNSPECIFIED]: 0,
|
|
20
|
+
[ETriggerType.TAKE_PROFIT]: 1,
|
|
21
|
+
[ETriggerType.STOP_LOSS]: 2
|
|
22
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum EVaultInvestorAction {
|
|
2
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
3
|
+
VAULT_INVEST = "VAULT_INVEST",
|
|
4
|
+
VAULT_BURN_LP_TOKEN = "VAULT_BURN_LP_TOKEN",
|
|
5
|
+
VAULT_REDEEM = "VAULT_REDEEM"
|
|
6
|
+
}
|
|
7
|
+
export declare const EVaultInvestorActionInt: Record<EVaultInvestorAction, number>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EVaultInvestorActionInt = exports.EVaultInvestorAction = void 0;
|
|
4
|
+
var EVaultInvestorAction;
|
|
5
|
+
(function (EVaultInvestorAction) {
|
|
6
|
+
EVaultInvestorAction["UNSPECIFIED"] = "UNSPECIFIED";
|
|
7
|
+
EVaultInvestorAction["VAULT_INVEST"] = "VAULT_INVEST";
|
|
8
|
+
EVaultInvestorAction["VAULT_BURN_LP_TOKEN"] = "VAULT_BURN_LP_TOKEN";
|
|
9
|
+
EVaultInvestorAction["VAULT_REDEEM"] = "VAULT_REDEEM";
|
|
10
|
+
})(EVaultInvestorAction || (exports.EVaultInvestorAction = EVaultInvestorAction = {}));
|
|
11
|
+
exports.EVaultInvestorActionInt = Object.freeze({
|
|
12
|
+
[EVaultInvestorAction.UNSPECIFIED]: 0,
|
|
13
|
+
[EVaultInvestorAction.VAULT_INVEST]: 1,
|
|
14
|
+
[EVaultInvestorAction.VAULT_BURN_LP_TOKEN]: 2,
|
|
15
|
+
[EVaultInvestorAction.VAULT_REDEEM]: 3
|
|
16
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EVaultRedemptionReqAgeCategoryInt = exports.EVaultRedemptionReqAgeCategory = void 0;
|
|
4
|
+
// Denotes the age category of a given redemption request.
|
|
5
|
+
//
|
|
6
|
+
//
|
|
7
|
+
var EVaultRedemptionReqAgeCategory;
|
|
8
|
+
(function (EVaultRedemptionReqAgeCategory) {
|
|
9
|
+
// This request is at least as old as the minimum redemption period, and is eligible for automated redemption.
|
|
10
|
+
EVaultRedemptionReqAgeCategory["NORMAL"] = "NORMAL";
|
|
11
|
+
// This request is nearing the maxmimum redemption period and will be factored into pre-order check margin requirements.
|
|
12
|
+
EVaultRedemptionReqAgeCategory["URGENT"] = "URGENT";
|
|
13
|
+
// This request has exceeded the maximum redemption period and will be considered for forced redemptions.
|
|
14
|
+
EVaultRedemptionReqAgeCategory["OVERDUE"] = "OVERDUE";
|
|
15
|
+
// This request has yet to exceed the minimum redemption period, and is not yet eligible for automated redemption.
|
|
16
|
+
EVaultRedemptionReqAgeCategory["PRE_MIN"] = "PRE_MIN";
|
|
17
|
+
})(EVaultRedemptionReqAgeCategory || (exports.EVaultRedemptionReqAgeCategory = EVaultRedemptionReqAgeCategory = {}));
|
|
18
|
+
exports.EVaultRedemptionReqAgeCategoryInt = Object.freeze({
|
|
19
|
+
[EVaultRedemptionReqAgeCategory.NORMAL]: 1,
|
|
20
|
+
[EVaultRedemptionReqAgeCategory.URGENT]: 2,
|
|
21
|
+
[EVaultRedemptionReqAgeCategory.OVERDUE]: 3,
|
|
22
|
+
[EVaultRedemptionReqAgeCategory.PRE_MIN]: 4
|
|
23
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EVaultTypeInt = exports.EVaultType = void 0;
|
|
4
|
+
var EVaultType;
|
|
5
|
+
(function (EVaultType) {
|
|
6
|
+
// Prime vault
|
|
7
|
+
EVaultType["PRIME"] = "PRIME";
|
|
8
|
+
// Launchpad vault
|
|
9
|
+
EVaultType["LAUNCH_PAD"] = "LAUNCH_PAD";
|
|
10
|
+
})(EVaultType || (exports.EVaultType = EVaultType = {}));
|
|
11
|
+
exports.EVaultTypeInt = Object.freeze({
|
|
12
|
+
[EVaultType.PRIME]: 1,
|
|
13
|
+
[EVaultType.LAUNCH_PAD]: 2
|
|
14
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EVenueInt = exports.EVenue = void 0;
|
|
4
|
+
// The list of Trading Venues that are supported on the GRVT exchange
|
|
5
|
+
var EVenue;
|
|
6
|
+
(function (EVenue) {
|
|
7
|
+
// the trade is cleared on the orderbook venue
|
|
8
|
+
EVenue["ORDERBOOK"] = "ORDERBOOK";
|
|
9
|
+
// the trade is cleared on the RFQ venue
|
|
10
|
+
EVenue["RFQ"] = "RFQ";
|
|
11
|
+
})(EVenue || (exports.EVenue = EVenue = {}));
|
|
12
|
+
exports.EVenueInt = Object.freeze({
|
|
13
|
+
[EVenue.ORDERBOOK]: 1,
|
|
14
|
+
[EVenue.RFQ]: 2
|
|
15
|
+
});
|
|
@@ -15,6 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./data.interface"), exports);
|
|
18
|
-
__exportStar(require("./enum-int"), exports);
|
|
19
18
|
__exportStar(require("./hex-string-map"), exports);
|
|
20
19
|
__exportStar(require("./schema-maps/types"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_CLUSTER_CONFIG_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_CLUSTER_CONFIG' struct.
|
|
5
|
+
exports.API_CLUSTER_CONFIG_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
config_type: 'ct',
|
|
8
|
+
config_name: 'cn',
|
|
9
|
+
config_json_value: 'cj'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
ct: 'config_type',
|
|
13
|
+
cn: 'config_name',
|
|
14
|
+
cj: 'config_json_value'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_CLUSTER_CONFIGS_RESPONSE_MAP = void 0;
|
|
4
|
+
const api_cluster_config_1 = require("./api_cluster_config");
|
|
5
|
+
// Schema map for the 'API_GET_CLUSTER_CONFIGS_RESPONSE' struct.
|
|
6
|
+
exports.API_GET_CLUSTER_CONFIGS_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
results: ['r', [api_cluster_config_1.API_CLUSTER_CONFIG_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['results', [api_cluster_config_1.API_CLUSTER_CONFIG_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_PRICE_PROTECTION_BANDS_RESPONSE_MAP = void 0;
|
|
4
|
+
const price_protection_band_1 = require("./price_protection_band");
|
|
5
|
+
const asset_specific_price_protection_band_1 = require("./asset_specific_price_protection_band");
|
|
6
|
+
// Schema map for the 'API_GET_PRICE_PROTECTION_BANDS_RESPONSE' struct.
|
|
7
|
+
exports.API_GET_PRICE_PROTECTION_BANDS_RESPONSE_MAP = Object.freeze({
|
|
8
|
+
FULL_TO_LITE: {
|
|
9
|
+
enabled: 'e',
|
|
10
|
+
default_band: ['db', price_protection_band_1.PRICE_PROTECTION_BAND_MAP.FULL_TO_LITE],
|
|
11
|
+
asset_specific: ['as', [asset_specific_price_protection_band_1.ASSET_SPECIFIC_PRICE_PROTECTION_BAND_MAP.FULL_TO_LITE]]
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
e: 'enabled',
|
|
15
|
+
db: ['default_band', price_protection_band_1.PRICE_PROTECTION_BAND_MAP.LITE_TO_FULL],
|
|
16
|
+
as: ['asset_specific', [asset_specific_price_protection_band_1.ASSET_SPECIFIC_PRICE_PROTECTION_BAND_MAP.LITE_TO_FULL]]
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -4,9 +4,13 @@ exports.API_QUERY_VAULT_INVESTOR_HISTORY_REQUEST_MAP = void 0;
|
|
|
4
4
|
// Schema map for the 'API_QUERY_VAULT_INVESTOR_HISTORY_REQUEST' struct.
|
|
5
5
|
exports.API_QUERY_VAULT_INVESTOR_HISTORY_REQUEST_MAP = Object.freeze({
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
|
-
vault_id: 'vi'
|
|
7
|
+
vault_id: 'vi',
|
|
8
|
+
start_time: 'st',
|
|
9
|
+
end_time: 'et'
|
|
8
10
|
},
|
|
9
11
|
LITE_TO_FULL: {
|
|
10
|
-
vi: 'vault_id'
|
|
12
|
+
vi: 'vault_id',
|
|
13
|
+
st: 'start_time',
|
|
14
|
+
et: 'end_time'
|
|
11
15
|
}
|
|
12
16
|
});
|
|
@@ -5,10 +5,14 @@ exports.API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_REQUEST_MAP = void 0;
|
|
|
5
5
|
exports.API_QUERY_VAULT_MANAGER_INVESTOR_HISTORY_REQUEST_MAP = Object.freeze({
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
vault_id: 'vi',
|
|
8
|
-
only_own_investments: 'oo'
|
|
8
|
+
only_own_investments: 'oo',
|
|
9
|
+
start_time: 'st',
|
|
10
|
+
end_time: 'et'
|
|
9
11
|
},
|
|
10
12
|
LITE_TO_FULL: {
|
|
11
13
|
vi: 'vault_id',
|
|
12
|
-
oo: 'only_own_investments'
|
|
14
|
+
oo: 'only_own_investments',
|
|
15
|
+
st: 'start_time',
|
|
16
|
+
et: 'end_time'
|
|
13
17
|
}
|
|
14
18
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_SET_PRICE_PROTECTION_BANDS_REQUEST_MAP = void 0;
|
|
4
|
+
const price_protection_band_1 = require("./price_protection_band");
|
|
5
|
+
const asset_specific_price_protection_band_1 = require("./asset_specific_price_protection_band");
|
|
6
|
+
// Schema map for the 'API_SET_PRICE_PROTECTION_BANDS_REQUEST' struct.
|
|
7
|
+
exports.API_SET_PRICE_PROTECTION_BANDS_REQUEST_MAP = Object.freeze({
|
|
8
|
+
FULL_TO_LITE: {
|
|
9
|
+
enabled: 'e',
|
|
10
|
+
default_band: ['db', price_protection_band_1.PRICE_PROTECTION_BAND_MAP.FULL_TO_LITE],
|
|
11
|
+
asset_specific: ['as', [asset_specific_price_protection_band_1.ASSET_SPECIFIC_PRICE_PROTECTION_BAND_MAP.FULL_TO_LITE]]
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
e: 'enabled',
|
|
15
|
+
db: ['default_band', price_protection_band_1.PRICE_PROTECTION_BAND_MAP.LITE_TO_FULL],
|
|
16
|
+
as: ['asset_specific', [asset_specific_price_protection_band_1.ASSET_SPECIFIC_PRICE_PROTECTION_BAND_MAP.LITE_TO_FULL]]
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ASSET_SPECIFIC_PRICE_PROTECTION_BAND_MAP = void 0;
|
|
4
|
+
const price_protection_band_1 = require("./price_protection_band");
|
|
5
|
+
// Schema map for the 'ASSET_SPECIFIC_PRICE_PROTECTION_BAND' struct.
|
|
6
|
+
exports.ASSET_SPECIFIC_PRICE_PROTECTION_BAND_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
asset: 'a',
|
|
9
|
+
band: ['b', price_protection_band_1.PRICE_PROTECTION_BAND_MAP.FULL_TO_LITE]
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
a: 'asset',
|
|
13
|
+
b: ['band', price_protection_band_1.PRICE_PROTECTION_BAND_MAP.LITE_TO_FULL]
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -10,13 +10,17 @@ exports.DETAILED_AGGREGATED_ACCOUNT_SUMMARY_MAP = Object.freeze({
|
|
|
10
10
|
total_equity: 'te',
|
|
11
11
|
spot_balances: ['sb', [api_spot_balance_1.SPOT_BALANCE_MAP.FULL_TO_LITE]],
|
|
12
12
|
vault_investments: ['vi', [vault_investment_1.VAULT_INVESTMENT_MAP.FULL_TO_LITE]],
|
|
13
|
-
funding_account_balance: 'fa'
|
|
13
|
+
funding_account_balance: 'fa',
|
|
14
|
+
total_sub_account_balance: 'ts',
|
|
15
|
+
total_vault_investments_balance: 'tv'
|
|
14
16
|
},
|
|
15
17
|
LITE_TO_FULL: {
|
|
16
18
|
ma: 'main_account_id',
|
|
17
19
|
te: 'total_equity',
|
|
18
20
|
sb: ['spot_balances', [api_spot_balance_1.SPOT_BALANCE_MAP.LITE_TO_FULL]],
|
|
19
21
|
vi: ['vault_investments', [vault_investment_1.VAULT_INVESTMENT_MAP.LITE_TO_FULL]],
|
|
20
|
-
fa: 'funding_account_balance'
|
|
22
|
+
fa: 'funding_account_balance',
|
|
23
|
+
ts: 'total_sub_account_balance',
|
|
24
|
+
tv: 'total_vault_investments_balance'
|
|
21
25
|
}
|
|
22
26
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRICE_PROTECTION_BAND_MAP = void 0;
|
|
4
|
+
// Schema map for the 'PRICE_PROTECTION_BAND' struct.
|
|
5
|
+
exports.PRICE_PROTECTION_BAND_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
high_centi_beeps: 'hc',
|
|
8
|
+
low_centi_beeps: 'lc'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
hc: 'high_centi_beeps',
|
|
12
|
+
lc: 'low_centi_beeps'
|
|
13
|
+
}
|
|
14
|
+
});
|