@grvt/client 1.5.5 → 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/interfaces/codegen/enum-int.d.ts +0 -27
- package/interfaces/codegen/enum-int.js +0 -252
|
@@ -1,251 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
CI_3_D = "CI_3_D",
|
|
29
|
-
CI_5_D = "CI_5_D",
|
|
30
|
-
CI_1_W = "CI_1_W",
|
|
31
|
-
CI_2_W = "CI_2_W",
|
|
32
|
-
CI_3_W = "CI_3_W",
|
|
33
|
-
CI_4_W = "CI_4_W"
|
|
34
|
-
}
|
|
35
|
-
export declare enum ECandlestickType {
|
|
36
|
-
TRADE = "TRADE",
|
|
37
|
-
MARK = "MARK",
|
|
38
|
-
INDEX = "INDEX",
|
|
39
|
-
MID = "MID"
|
|
40
|
-
}
|
|
41
|
-
export declare enum EEpochBadgeType {
|
|
42
|
-
CHAMPION = "CHAMPION",
|
|
43
|
-
LEGEND = "LEGEND",
|
|
44
|
-
VETERAN = "VETERAN",
|
|
45
|
-
ELITE = "ELITE",
|
|
46
|
-
MASTER = "MASTER",
|
|
47
|
-
EXPERT = "EXPERT",
|
|
48
|
-
WARRIOR = "WARRIOR",
|
|
49
|
-
SERGEANT = "SERGEANT",
|
|
50
|
-
RANGER = "RANGER",
|
|
51
|
-
CHALLENGER = "CHALLENGER",
|
|
52
|
-
APPRENTICE = "APPRENTICE",
|
|
53
|
-
ROOKIE = "ROOKIE"
|
|
54
|
-
}
|
|
55
|
-
export declare enum EInstrumentSettlementPeriod {
|
|
56
|
-
PERPETUAL = "PERPETUAL",
|
|
57
|
-
DAILY = "DAILY",
|
|
58
|
-
WEEKLY = "WEEKLY",
|
|
59
|
-
MONTHLY = "MONTHLY",
|
|
60
|
-
QUARTERLY = "QUARTERLY"
|
|
61
|
-
}
|
|
62
|
-
export declare enum EKind {
|
|
63
|
-
PERPETUAL = "PERPETUAL",
|
|
64
|
-
FUTURE = "FUTURE",
|
|
65
|
-
CALL = "CALL",
|
|
66
|
-
PUT = "PUT"
|
|
67
|
-
}
|
|
68
|
-
export declare enum EMarginType {
|
|
69
|
-
SIMPLE_CROSS_MARGIN = "SIMPLE_CROSS_MARGIN",
|
|
70
|
-
PORTFOLIO_CROSS_MARGIN = "PORTFOLIO_CROSS_MARGIN"
|
|
71
|
-
}
|
|
72
|
-
export declare enum EOrderRejectReason {
|
|
73
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
74
|
-
CLIENT_CANCEL = "CLIENT_CANCEL",
|
|
75
|
-
CLIENT_BULK_CANCEL = "CLIENT_BULK_CANCEL",
|
|
76
|
-
CLIENT_SESSION_END = "CLIENT_SESSION_END",
|
|
77
|
-
MARKET_CANCEL = "MARKET_CANCEL",
|
|
78
|
-
IOC_CANCEL = "IOC_CANCEL",
|
|
79
|
-
AON_CANCEL = "AON_CANCEL",
|
|
80
|
-
FOK_CANCEL = "FOK_CANCEL",
|
|
81
|
-
EXPIRED = "EXPIRED",
|
|
82
|
-
FAIL_POST_ONLY = "FAIL_POST_ONLY",
|
|
83
|
-
FAIL_REDUCE_ONLY = "FAIL_REDUCE_ONLY",
|
|
84
|
-
MM_PROTECTION = "MM_PROTECTION",
|
|
85
|
-
SELF_TRADE_PROTECTION = "SELF_TRADE_PROTECTION",
|
|
86
|
-
SELF_MATCHED_SUBACCOUNT = "SELF_MATCHED_SUBACCOUNT",
|
|
87
|
-
OVERLAPPING_CLIENT_ORDER_ID = "OVERLAPPING_CLIENT_ORDER_ID",
|
|
88
|
-
BELOW_MARGIN = "BELOW_MARGIN",
|
|
89
|
-
LIQUIDATION = "LIQUIDATION",
|
|
90
|
-
INSTRUMENT_INVALID = "INSTRUMENT_INVALID",
|
|
91
|
-
INSTRUMENT_DEACTIVATED = "INSTRUMENT_DEACTIVATED",
|
|
92
|
-
SYSTEM_FAILOVER = "SYSTEM_FAILOVER",
|
|
93
|
-
UNAUTHORISED = "UNAUTHORISED",
|
|
94
|
-
SESSION_KEY_EXPIRED = "SESSION_KEY_EXPIRED",
|
|
95
|
-
SUB_ACCOUNT_NOT_FOUND = "SUB_ACCOUNT_NOT_FOUND",
|
|
96
|
-
NO_TRADE_PERMISSION = "NO_TRADE_PERMISSION",
|
|
97
|
-
UNSUPPORTED_TIME_IN_FORCE = "UNSUPPORTED_TIME_IN_FORCE",
|
|
98
|
-
MULTI_LEGGED_ORDER = "MULTI_LEGGED_ORDER",
|
|
99
|
-
EXCEED_MAX_POSITION_SIZE = "EXCEED_MAX_POSITION_SIZE",
|
|
100
|
-
EXCEED_MAX_SIGNATURE_EXPIRATION = "EXCEED_MAX_SIGNATURE_EXPIRATION",
|
|
101
|
-
MARKET_ORDER_WITH_LIMIT_PRICE = "MARKET_ORDER_WITH_LIMIT_PRICE",
|
|
102
|
-
CLIENT_CANCEL_ON_DISCONNECT_TRIGGERED = "CLIENT_CANCEL_ON_DISCONNECT_TRIGGERED",
|
|
103
|
-
OCO_COUNTER_PART_TRIGGERED = "OCO_COUNTER_PART_TRIGGERED",
|
|
104
|
-
REDUCE_ONLY_LIMIT = "REDUCE_ONLY_LIMIT",
|
|
105
|
-
CLIENT_REPLACE = "CLIENT_REPLACE",
|
|
106
|
-
DERISK_MUST_BE_IOC = "DERISK_MUST_BE_IOC",
|
|
107
|
-
DERISK_MUST_BE_REDUCE_ONLY = "DERISK_MUST_BE_REDUCE_ONLY",
|
|
108
|
-
DERISK_NOT_SUPPORTED = "DERISK_NOT_SUPPORTED",
|
|
109
|
-
INVALID_ORDER_TYPE = "INVALID_ORDER_TYPE",
|
|
110
|
-
CURRENCY_NOT_DEFINED = "CURRENCY_NOT_DEFINED"
|
|
111
|
-
}
|
|
112
|
-
export declare enum EOrderStatus {
|
|
113
|
-
PENDING = "PENDING",
|
|
114
|
-
OPEN = "OPEN",
|
|
115
|
-
FILLED = "FILLED",
|
|
116
|
-
REJECTED = "REJECTED",
|
|
117
|
-
CANCELLED = "CANCELLED"
|
|
118
|
-
}
|
|
119
|
-
export declare enum EQueryMainAccountLeaderboardOrderBy {
|
|
120
|
-
PNL = "PNL",
|
|
121
|
-
TRADING_VOLUME = "TRADING_VOLUME"
|
|
122
|
-
}
|
|
123
|
-
export declare enum ERewardEpochStatus {
|
|
124
|
-
PAST = "PAST",
|
|
125
|
-
CURRENT = "CURRENT",
|
|
126
|
-
FUTURE = "FUTURE"
|
|
127
|
-
}
|
|
128
|
-
export declare enum ERewardProgramType {
|
|
129
|
-
ECOSYSTEM = "ECOSYSTEM",
|
|
130
|
-
TRADER = "TRADER",
|
|
131
|
-
LP = "LP"
|
|
132
|
-
}
|
|
133
|
-
export declare enum ESource {
|
|
134
|
-
WEB = "WEB",
|
|
135
|
-
MOBILE = "MOBILE",
|
|
136
|
-
API = "API",
|
|
137
|
-
LIQUIDATOR = "LIQUIDATOR"
|
|
138
|
-
}
|
|
139
|
-
export declare enum ESubAccountTradeInterval {
|
|
140
|
-
SAT_1_MO = "SAT_1_MO",
|
|
141
|
-
SAT_1_D = "SAT_1_D",
|
|
142
|
-
SAT_1_H = "SAT_1_H",
|
|
143
|
-
SAT_4_H = "SAT_4_H"
|
|
144
|
-
}
|
|
145
|
-
export declare enum ETimeInForce {
|
|
146
|
-
GOOD_TILL_TIME = "GOOD_TILL_TIME",
|
|
147
|
-
ALL_OR_NONE = "ALL_OR_NONE",
|
|
148
|
-
IMMEDIATE_OR_CANCEL = "IMMEDIATE_OR_CANCEL",
|
|
149
|
-
FILL_OR_KILL = "FILL_OR_KILL",
|
|
150
|
-
RETAIL_PRICE_IMPROVEMENT = "RETAIL_PRICE_IMPROVEMENT"
|
|
151
|
-
}
|
|
152
|
-
export declare enum ETimeInterval {
|
|
153
|
-
INTERVAL_1_D = "INTERVAL_1_D",
|
|
154
|
-
INTERVAL_7_D = "INTERVAL_7_D",
|
|
155
|
-
INTERVAL_30_D = "INTERVAL_30_D",
|
|
156
|
-
INTERVAL_90_D = "INTERVAL_90_D",
|
|
157
|
-
INTERVAL_LIFETIME = "INTERVAL_LIFETIME"
|
|
158
|
-
}
|
|
159
|
-
export declare enum ETransactionType {
|
|
160
|
-
UNSPECIFIED_1 = "UNSPECIFIED_1",
|
|
161
|
-
UNSPECIFIED_2 = "UNSPECIFIED_2",
|
|
162
|
-
UNSPECIFIED_3 = "UNSPECIFIED_3",
|
|
163
|
-
CREATE_ACCOUNT = "CREATE_ACCOUNT",
|
|
164
|
-
CREATE_SUB_ACCOUNT = "CREATE_SUB_ACCOUNT",
|
|
165
|
-
SET_ACCOUNT_MULTI_SIG_THRESHOLD = "SET_ACCOUNT_MULTI_SIG_THRESHOLD",
|
|
166
|
-
ADD_ACCOUNT_SIGNER = "ADD_ACCOUNT_SIGNER",
|
|
167
|
-
REMOVE_ACCOUNT_SIGNER = "REMOVE_ACCOUNT_SIGNER",
|
|
168
|
-
ADD_WITHDRAWAL_ADDRESS = "ADD_WITHDRAWAL_ADDRESS",
|
|
169
|
-
REMOVE_WITHDRAWAL_ADDRESS = "REMOVE_WITHDRAWAL_ADDRESS",
|
|
170
|
-
ADD_TRANSFER_ACCOUNT = "ADD_TRANSFER_ACCOUNT",
|
|
171
|
-
REMOVE_TRANSFER_ACCOUNT = "REMOVE_TRANSFER_ACCOUNT",
|
|
172
|
-
SET_SUB_ACCOUNT_MARGIN_TYPE = "SET_SUB_ACCOUNT_MARGIN_TYPE",
|
|
173
|
-
ADD_SUB_ACCOUNT_SIGNER = "ADD_SUB_ACCOUNT_SIGNER",
|
|
174
|
-
REMOVE_SUB_ACCOUNT_SIGNER = "REMOVE_SUB_ACCOUNT_SIGNER",
|
|
175
|
-
ADD_SESSION_KEY = "ADD_SESSION_KEY",
|
|
176
|
-
REMOVE_SESSION_KEY = "REMOVE_SESSION_KEY",
|
|
177
|
-
DEPOSIT = "DEPOSIT",
|
|
178
|
-
WITHDRAWAL = "WITHDRAWAL",
|
|
179
|
-
TRANSFER = "TRANSFER",
|
|
180
|
-
MARK_PRICE_TICK = "MARK_PRICE_TICK",
|
|
181
|
-
SETTLEMENT_PRICE_TICK = "SETTLEMENT_PRICE_TICK",
|
|
182
|
-
FUNDING_TICK = "FUNDING_TICK",
|
|
183
|
-
INTEREST_RATE_TICK = "INTEREST_RATE_TICK",
|
|
184
|
-
SCHEDULE_CONFIG = "SCHEDULE_CONFIG",
|
|
185
|
-
SET_CONFIG = "SET_CONFIG",
|
|
186
|
-
TRADE = "TRADE",
|
|
187
|
-
ADD_RECOVERY_ADDRESS = "ADD_RECOVERY_ADDRESS",
|
|
188
|
-
REMOVE_RECOVERY_ADDRESS = "REMOVE_RECOVERY_ADDRESS",
|
|
189
|
-
RECOVER_ADDRESS = "RECOVER_ADDRESS",
|
|
190
|
-
SETTLE_START = "SETTLE_START",
|
|
191
|
-
SETTLE_INSTRUMENTS = "SETTLE_INSTRUMENTS",
|
|
192
|
-
SETTLE_SOCIALISED_LOSS = "SETTLE_SOCIALISED_LOSS",
|
|
193
|
-
SETTLE_END = "SETTLE_END",
|
|
194
|
-
SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS = "SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS",
|
|
195
|
-
SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS = "SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS",
|
|
196
|
-
INITIALIZE_CONFIG = "INITIALIZE_CONFIG",
|
|
197
|
-
CREATE_ACCOUNT_WITH_SUB_ACCOUNT = "CREATE_ACCOUNT_WITH_SUB_ACCOUNT",
|
|
198
|
-
VAULT_CREATE = "VAULT_CREATE",
|
|
199
|
-
VAULT_UPDATE = "VAULT_UPDATE",
|
|
200
|
-
VAULT_DELIST = "VAULT_DELIST",
|
|
201
|
-
VAULT_CLOSE = "VAULT_CLOSE",
|
|
202
|
-
VAULT_INVEST = "VAULT_INVEST",
|
|
203
|
-
VAULT_BURN_LP_TOKEN = "VAULT_BURN_LP_TOKEN",
|
|
204
|
-
VAULT_REDEEM = "VAULT_REDEEM",
|
|
205
|
-
VAULT_MANAGEMENT_FEE_TICK = "VAULT_MANAGEMENT_FEE_TICK",
|
|
206
|
-
ADD_CURRENCY = "ADD_CURRENCY",
|
|
207
|
-
SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO = "SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO"
|
|
208
|
-
}
|
|
209
|
-
export declare enum ETransferType {
|
|
210
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
211
|
-
STANDARD = "STANDARD",
|
|
212
|
-
FAST_ARB_DEPOSIT = "FAST_ARB_DEPOSIT",
|
|
213
|
-
FAST_ARB_WITHDRAWAL = "FAST_ARB_WITHDRAWAL",
|
|
214
|
-
NON_NATIVE_BRIDGE_DEPOSIT = "NON_NATIVE_BRIDGE_DEPOSIT",
|
|
215
|
-
NON_NATIVE_BRIDGE_WITHDRAWAL = "NON_NATIVE_BRIDGE_WITHDRAWAL"
|
|
216
|
-
}
|
|
217
|
-
export declare enum ETriggerBy {
|
|
218
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
219
|
-
INDEX = "INDEX",
|
|
220
|
-
LAST = "LAST",
|
|
221
|
-
MID = "MID",
|
|
222
|
-
MARK = "MARK"
|
|
223
|
-
}
|
|
224
|
-
export declare enum ETriggerType {
|
|
225
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
226
|
-
TAKE_PROFIT = "TAKE_PROFIT",
|
|
227
|
-
STOP_LOSS = "STOP_LOSS"
|
|
228
|
-
}
|
|
229
|
-
export declare enum EVaultInvestorAction {
|
|
230
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
231
|
-
VAULT_INVEST = "VAULT_INVEST",
|
|
232
|
-
VAULT_BURN_LP_TOKEN = "VAULT_BURN_LP_TOKEN",
|
|
233
|
-
VAULT_REDEEM = "VAULT_REDEEM"
|
|
234
|
-
}
|
|
235
|
-
export declare enum EVaultRedemptionReqAgeCategory {
|
|
236
|
-
NORMAL = "NORMAL",
|
|
237
|
-
URGENT = "URGENT",
|
|
238
|
-
OVERDUE = "OVERDUE",
|
|
239
|
-
PRE_MIN = "PRE_MIN"
|
|
240
|
-
}
|
|
241
|
-
export declare enum EVaultType {
|
|
242
|
-
PRIME = "PRIME",
|
|
243
|
-
LAUNCH_PAD = "LAUNCH_PAD"
|
|
244
|
-
}
|
|
245
|
-
export declare enum EVenue {
|
|
246
|
-
ORDERBOOK = "ORDERBOOK",
|
|
247
|
-
RFQ = "RFQ"
|
|
248
|
-
}
|
|
1
|
+
import type { EBridgeType } from './enums/bridge-type.ts';
|
|
2
|
+
import type { EBrokerTag } from './enums/broker-tag.ts';
|
|
3
|
+
import type { ECancelStatus } from './enums/cancel-status.ts';
|
|
4
|
+
import type { ECandlestickInterval } from './enums/candlestick-interval.ts';
|
|
5
|
+
import type { ECandlestickType } from './enums/candlestick-type.ts';
|
|
6
|
+
import type { EClusterConfigType } from './enums/cluster-config-type.ts';
|
|
7
|
+
import type { EEpochBadgeType } from './enums/epoch-badge-type.ts';
|
|
8
|
+
import type { EInstrumentSettlementPeriod } from './enums/instrument-settlement-period.ts';
|
|
9
|
+
import type { EKind } from './enums/kind.ts';
|
|
10
|
+
import type { EMarginType } from './enums/margin-type.ts';
|
|
11
|
+
import type { EOrderRejectReason } from './enums/order-reject-reason.ts';
|
|
12
|
+
import type { EOrderStatus } from './enums/order-status.ts';
|
|
13
|
+
import type { EQueryMainAccountLeaderboardOrderBy } from './enums/query-main-account-leaderboard-order-by.ts';
|
|
14
|
+
import type { ERewardEpochStatus } from './enums/reward-epoch-status.ts';
|
|
15
|
+
import type { ERewardProgramType } from './enums/reward-program-type.ts';
|
|
16
|
+
import type { ESource } from './enums/source.ts';
|
|
17
|
+
import type { ESubAccountTradeInterval } from './enums/sub-account-trade-interval.ts';
|
|
18
|
+
import type { ETimeInForce } from './enums/time-in-force.ts';
|
|
19
|
+
import type { ETimeInterval } from './enums/time-interval.ts';
|
|
20
|
+
import type { ETransactionType } from './enums/transaction-type.ts';
|
|
21
|
+
import type { ETransferType } from './enums/transfer-type.ts';
|
|
22
|
+
import type { ETriggerBy } from './enums/trigger-by.ts';
|
|
23
|
+
import type { ETriggerType } from './enums/trigger-type.ts';
|
|
24
|
+
import type { EVaultInvestorAction } from './enums/vault-investor-action.ts';
|
|
25
|
+
import type { EVaultRedemptionReqAgeCategory } from './enums/vault-redemption-req-age-category.ts';
|
|
26
|
+
import type { EVaultType } from './enums/vault-type.ts';
|
|
27
|
+
import type { EVenue } from './enums/venue.ts';
|
|
249
28
|
export interface IAPISettlementPrice {
|
|
250
29
|
base?: string;
|
|
251
30
|
quote?: string;
|
|
@@ -338,6 +117,11 @@ export interface IApiCategoryAffinityScoreRequest {
|
|
|
338
117
|
export interface IApiCategoryAffinityScoreResponse {
|
|
339
118
|
result?: IUserCategoryAffinityScore[];
|
|
340
119
|
}
|
|
120
|
+
export interface IApiClusterConfig {
|
|
121
|
+
config_type?: EClusterConfigType;
|
|
122
|
+
config_name?: string;
|
|
123
|
+
config_json_value?: string;
|
|
124
|
+
}
|
|
341
125
|
export interface IApiCreateBulkOrdersRequest {
|
|
342
126
|
orders?: IOrder[];
|
|
343
127
|
}
|
|
@@ -472,6 +256,9 @@ export interface IApiGetAllInstrumentsResponse {
|
|
|
472
256
|
export interface IApiGetClientTiersResponse {
|
|
473
257
|
tiers?: IClientTier[];
|
|
474
258
|
}
|
|
259
|
+
export interface IApiGetClusterConfigsResponse {
|
|
260
|
+
results?: IApiClusterConfig[];
|
|
261
|
+
}
|
|
475
262
|
export interface IApiGetCurrencyRequest {
|
|
476
263
|
}
|
|
477
264
|
export interface IApiGetCurrencyResponse {
|
|
@@ -578,6 +365,11 @@ export interface IApiGetOrderRequest {
|
|
|
578
365
|
export interface IApiGetOrderResponse {
|
|
579
366
|
result?: IOrder;
|
|
580
367
|
}
|
|
368
|
+
export interface IApiGetPriceProtectionBandsResponse {
|
|
369
|
+
enabled?: boolean;
|
|
370
|
+
default_band?: IPriceProtectionBand;
|
|
371
|
+
asset_specific?: IAssetSpecificPriceProtectionBand[];
|
|
372
|
+
}
|
|
581
373
|
export interface IApiGetTraderStatResponse {
|
|
582
374
|
total_fee?: string;
|
|
583
375
|
}
|
|
@@ -742,6 +534,8 @@ export interface IApiQueryTradingPerformanceTrendResponse {
|
|
|
742
534
|
}
|
|
743
535
|
export interface IApiQueryVaultInvestorHistoryRequest {
|
|
744
536
|
vault_id?: string;
|
|
537
|
+
start_time?: string;
|
|
538
|
+
end_time?: string;
|
|
745
539
|
}
|
|
746
540
|
export interface IApiQueryVaultInvestorHistoryResponse {
|
|
747
541
|
result?: IApiVaultInvestorHistory[];
|
|
@@ -749,6 +543,8 @@ export interface IApiQueryVaultInvestorHistoryResponse {
|
|
|
749
543
|
export interface IApiQueryVaultManagerInvestorHistoryRequest {
|
|
750
544
|
vault_id?: string;
|
|
751
545
|
only_own_investments?: boolean;
|
|
546
|
+
start_time?: string;
|
|
547
|
+
end_time?: string;
|
|
752
548
|
}
|
|
753
549
|
export interface IApiQueryVaultManagerInvestorHistoryResponse {
|
|
754
550
|
result?: IApiVaultInvestorHistory[];
|
|
@@ -818,6 +614,11 @@ export interface IApiSetInitialLeverageRequest {
|
|
|
818
614
|
export interface IApiSetInitialLeverageResponse {
|
|
819
615
|
success?: boolean;
|
|
820
616
|
}
|
|
617
|
+
export interface IApiSetPriceProtectionBandsRequest {
|
|
618
|
+
enabled?: boolean;
|
|
619
|
+
default_band?: IPriceProtectionBand;
|
|
620
|
+
asset_specific?: IAssetSpecificPriceProtectionBand[];
|
|
621
|
+
}
|
|
821
622
|
export interface IApiSettlementPriceRequest {
|
|
822
623
|
base?: string;
|
|
823
624
|
quote?: string;
|
|
@@ -1104,6 +905,10 @@ export interface IAssetMaxQty {
|
|
|
1104
905
|
max_buy_qty?: string;
|
|
1105
906
|
max_sell_qty?: string;
|
|
1106
907
|
}
|
|
908
|
+
export interface IAssetSpecificPriceProtectionBand {
|
|
909
|
+
asset?: string;
|
|
910
|
+
band?: IPriceProtectionBand;
|
|
911
|
+
}
|
|
1107
912
|
export interface ICancelStatusFeed {
|
|
1108
913
|
sub_account_id?: string;
|
|
1109
914
|
client_order_id?: string;
|
|
@@ -1167,6 +972,8 @@ export interface IDetailedAggregatedAccountSummary {
|
|
|
1167
972
|
spot_balances?: ISpotBalance[];
|
|
1168
973
|
vault_investments?: IVaultInvestment[];
|
|
1169
974
|
funding_account_balance?: string;
|
|
975
|
+
total_sub_account_balance?: string;
|
|
976
|
+
total_vault_investments_balance?: string;
|
|
1170
977
|
}
|
|
1171
978
|
export interface IECNToBrokerFeed {
|
|
1172
979
|
order_id?: string;
|
|
@@ -1521,6 +1328,10 @@ export interface IPreOrderCheckResult {
|
|
|
1521
1328
|
reason?: string;
|
|
1522
1329
|
settle_currency?: string;
|
|
1523
1330
|
}
|
|
1331
|
+
export interface IPriceProtectionBand {
|
|
1332
|
+
high_centi_beeps?: string;
|
|
1333
|
+
low_centi_beeps?: string;
|
|
1334
|
+
}
|
|
1524
1335
|
export interface IQueryAccountSummaryRequest {
|
|
1525
1336
|
time_interval?: ETimeInterval;
|
|
1526
1337
|
main_account_id?: string;
|
|
@@ -1582,7 +1393,7 @@ export interface IQueryTradingPerformanceTrendRequest {
|
|
|
1582
1393
|
time_interval?: ETimeInterval;
|
|
1583
1394
|
}
|
|
1584
1395
|
export interface IQueryTradingPerformanceTrendResponse {
|
|
1585
|
-
result?:
|
|
1396
|
+
result?: ITradingPerformanceTrendPoint[];
|
|
1586
1397
|
next?: string;
|
|
1587
1398
|
}
|
|
1588
1399
|
export interface IQueryVaultInvestorHistoryRequest {
|
|
@@ -1636,6 +1447,10 @@ export interface ISnapFundingAccountSummary {
|
|
|
1636
1447
|
main_account_id?: string;
|
|
1637
1448
|
total_equity?: string;
|
|
1638
1449
|
spot_balances?: ISpotBalance[];
|
|
1450
|
+
vault_investments?: IVaultInvestment[];
|
|
1451
|
+
funding_account_balance?: string;
|
|
1452
|
+
total_sub_account_balance?: string;
|
|
1453
|
+
total_vault_investments_balance?: string;
|
|
1639
1454
|
}
|
|
1640
1455
|
export interface ISnapSubAccountSummary {
|
|
1641
1456
|
event_time?: string;
|
|
@@ -1755,12 +1570,35 @@ export interface ITraderMetric {
|
|
|
1755
1570
|
total_fee?: string;
|
|
1756
1571
|
total_point?: number;
|
|
1757
1572
|
}
|
|
1573
|
+
export interface ITradingPerformance {
|
|
1574
|
+
sub_account_id?: string;
|
|
1575
|
+
total_fee?: string;
|
|
1576
|
+
total_trade_volume?: string;
|
|
1577
|
+
num_traded?: string;
|
|
1578
|
+
positive_fee?: string;
|
|
1579
|
+
realized_pnl?: string;
|
|
1580
|
+
unrealized_pnl?: string;
|
|
1581
|
+
is_unrealized_pnl_snapshotted?: boolean;
|
|
1582
|
+
last_start_interval?: string;
|
|
1583
|
+
funding_payment_amount?: string;
|
|
1584
|
+
}
|
|
1758
1585
|
export interface ITradingPerformancePoint {
|
|
1759
1586
|
start_interval?: string;
|
|
1760
1587
|
trading_volume?: string;
|
|
1761
1588
|
realized_pnl?: string;
|
|
1762
1589
|
unrealized_pnl?: string;
|
|
1763
1590
|
}
|
|
1591
|
+
export interface ITradingPerformanceTrendPoint {
|
|
1592
|
+
start_interval?: string;
|
|
1593
|
+
total_fee?: string;
|
|
1594
|
+
total_trade_volume?: string;
|
|
1595
|
+
num_traded?: string;
|
|
1596
|
+
positive_fee?: string;
|
|
1597
|
+
realized_pnl?: string;
|
|
1598
|
+
unrealized_pnl?: string;
|
|
1599
|
+
is_unrealized_pnl_snapshotted?: boolean;
|
|
1600
|
+
funding_payment_amount?: string;
|
|
1601
|
+
}
|
|
1764
1602
|
export interface ITransferHistory {
|
|
1765
1603
|
tx_id?: string;
|
|
1766
1604
|
from_account_id?: string;
|