@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.
Files changed (83) hide show
  1. package/interfaces/codegen/data.interface.d.ts +87 -249
  2. package/interfaces/codegen/data.interface.js +0 -439
  3. package/interfaces/codegen/enums/bridge-type.d.ts +5 -0
  4. package/interfaces/codegen/enums/bridge-type.js +14 -0
  5. package/interfaces/codegen/enums/broker-tag.d.ts +7 -0
  6. package/interfaces/codegen/enums/broker-tag.js +20 -0
  7. package/interfaces/codegen/enums/cancel-status.d.ts +5 -0
  8. package/interfaces/codegen/enums/cancel-status.js +14 -0
  9. package/interfaces/codegen/enums/candlestick-interval.d.ts +21 -0
  10. package/interfaces/codegen/enums/candlestick-interval.js +62 -0
  11. package/interfaces/codegen/enums/candlestick-type.d.ts +7 -0
  12. package/interfaces/codegen/enums/candlestick-type.js +20 -0
  13. package/interfaces/codegen/enums/cluster-config-type.d.ts +34 -0
  14. package/interfaces/codegen/enums/cluster-config-type.js +101 -0
  15. package/interfaces/codegen/enums/epoch-badge-type.d.ts +15 -0
  16. package/interfaces/codegen/enums/epoch-badge-type.js +44 -0
  17. package/interfaces/codegen/enums/instrument-settlement-period.d.ts +8 -0
  18. package/interfaces/codegen/enums/instrument-settlement-period.js +23 -0
  19. package/interfaces/codegen/enums/kind.d.ts +7 -0
  20. package/interfaces/codegen/enums/kind.js +21 -0
  21. package/interfaces/codegen/enums/margin-type.d.ts +5 -0
  22. package/interfaces/codegen/enums/margin-type.js +14 -0
  23. package/interfaces/codegen/enums/order-reject-reason.d.ts +41 -0
  24. package/interfaces/codegen/enums/order-reject-reason.js +122 -0
  25. package/interfaces/codegen/enums/order-status.d.ts +8 -0
  26. package/interfaces/codegen/enums/order-status.js +23 -0
  27. package/interfaces/codegen/enums/query-main-account-leaderboard-order-by.d.ts +5 -0
  28. package/interfaces/codegen/enums/query-main-account-leaderboard-order-by.js +14 -0
  29. package/interfaces/codegen/enums/reward-epoch-status.d.ts +6 -0
  30. package/interfaces/codegen/enums/reward-epoch-status.js +17 -0
  31. package/interfaces/codegen/enums/reward-program-type.d.ts +6 -0
  32. package/interfaces/codegen/enums/reward-program-type.js +14 -0
  33. package/interfaces/codegen/enums/source.d.ts +7 -0
  34. package/interfaces/codegen/enums/source.js +22 -0
  35. package/interfaces/codegen/enums/sub-account-trade-interval.d.ts +7 -0
  36. package/interfaces/codegen/enums/sub-account-trade-interval.js +20 -0
  37. package/interfaces/codegen/enums/time-in-force.d.ts +8 -0
  38. package/interfaces/codegen/enums/time-in-force.js +28 -0
  39. package/interfaces/codegen/enums/time-interval.d.ts +8 -0
  40. package/interfaces/codegen/enums/time-interval.js +24 -0
  41. package/interfaces/codegen/enums/transaction-type.d.ts +51 -0
  42. package/interfaces/codegen/enums/transaction-type.js +104 -0
  43. package/interfaces/codegen/enums/transfer-type.d.ts +9 -0
  44. package/interfaces/codegen/enums/transfer-type.js +26 -0
  45. package/interfaces/codegen/enums/trigger-by.d.ts +8 -0
  46. package/interfaces/codegen/enums/trigger-by.js +28 -0
  47. package/interfaces/codegen/enums/trigger-type.d.ts +6 -0
  48. package/interfaces/codegen/enums/trigger-type.js +22 -0
  49. package/interfaces/codegen/enums/vault-investor-action.d.ts +7 -0
  50. package/interfaces/codegen/enums/vault-investor-action.js +16 -0
  51. package/interfaces/codegen/enums/vault-redemption-req-age-category.d.ts +7 -0
  52. package/interfaces/codegen/enums/vault-redemption-req-age-category.js +23 -0
  53. package/interfaces/codegen/enums/vault-type.d.ts +5 -0
  54. package/interfaces/codegen/enums/vault-type.js +14 -0
  55. package/interfaces/codegen/enums/venue.d.ts +5 -0
  56. package/interfaces/codegen/enums/venue.js +15 -0
  57. package/interfaces/codegen/index.d.ts +0 -1
  58. package/interfaces/codegen/index.js +0 -1
  59. package/interfaces/codegen/schema-maps/api_cluster_config.d.ts +2 -0
  60. package/interfaces/codegen/schema-maps/api_cluster_config.js +16 -0
  61. package/interfaces/codegen/schema-maps/api_get_cluster_configs_response.d.ts +2 -0
  62. package/interfaces/codegen/schema-maps/api_get_cluster_configs_response.js +13 -0
  63. package/interfaces/codegen/schema-maps/api_get_price_protection_bands_response.d.ts +2 -0
  64. package/interfaces/codegen/schema-maps/api_get_price_protection_bands_response.js +18 -0
  65. package/interfaces/codegen/schema-maps/api_query_vault_investor_history_request.js +6 -2
  66. package/interfaces/codegen/schema-maps/api_query_vault_manager_investor_history_request.js +6 -2
  67. package/interfaces/codegen/schema-maps/api_set_price_protection_bands_request.d.ts +2 -0
  68. package/interfaces/codegen/schema-maps/api_set_price_protection_bands_request.js +18 -0
  69. package/interfaces/codegen/schema-maps/asset_specific_price_protection_band.d.ts +2 -0
  70. package/interfaces/codegen/schema-maps/asset_specific_price_protection_band.js +15 -0
  71. package/interfaces/codegen/schema-maps/detailed_aggregated_account_summary.js +6 -2
  72. package/interfaces/codegen/schema-maps/price_protection_band.d.ts +2 -0
  73. package/interfaces/codegen/schema-maps/price_protection_band.js +14 -0
  74. package/interfaces/codegen/schema-maps/query_trading_performance_trend_response.js +3 -3
  75. package/interfaces/codegen/schema-maps/snap_funding_account_summary.js +11 -2
  76. package/interfaces/codegen/schema-maps/trading_performance.d.ts +2 -0
  77. package/interfaces/codegen/schema-maps/trading_performance.js +30 -0
  78. package/interfaces/codegen/schema-maps/trading_performance_trend_point.d.ts +2 -0
  79. package/interfaces/codegen/schema-maps/trading_performance_trend_point.js +28 -0
  80. package/package.json +1 -1
  81. package/ws/interfaces.d.ts +3 -1
  82. package/interfaces/codegen/enum-int.d.ts +0 -27
  83. package/interfaces/codegen/enum-int.js +0 -252
@@ -1,441 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EVenue = exports.EVaultType = exports.EVaultRedemptionReqAgeCategory = exports.EVaultInvestorAction = exports.ETriggerType = exports.ETriggerBy = exports.ETransferType = exports.ETransactionType = exports.ETimeInterval = exports.ETimeInForce = exports.ESubAccountTradeInterval = exports.ESource = exports.ERewardProgramType = exports.ERewardEpochStatus = exports.EQueryMainAccountLeaderboardOrderBy = exports.EOrderStatus = exports.EOrderRejectReason = exports.EMarginType = exports.EKind = exports.EInstrumentSettlementPeriod = exports.EEpochBadgeType = exports.ECandlestickType = exports.ECandlestickInterval = exports.ECancelStatus = exports.EBrokerTag = exports.EBridgeType = void 0;
4
- var EBridgeType;
5
- (function (EBridgeType) {
6
- // XY Bridge type
7
- EBridgeType["XY"] = "XY";
8
- // Rhino Bridge type
9
- EBridgeType["RHINO"] = "RHINO";
10
- })(EBridgeType || (exports.EBridgeType = EBridgeType = {}));
11
- // BrokerTag is a tag for the broker that the order is sent from.
12
- var EBrokerTag;
13
- (function (EBrokerTag) {
14
- EBrokerTag["UNSPECIFIED"] = "UNSPECIFIED";
15
- // CoinRoutes
16
- EBrokerTag["COIN_ROUTES"] = "COIN_ROUTES";
17
- // Alertatron
18
- EBrokerTag["ALERTATRON"] = "ALERTATRON";
19
- // Origami
20
- EBrokerTag["ORIGAMI"] = "ORIGAMI";
21
- })(EBrokerTag || (exports.EBrokerTag = EBrokerTag = {}));
22
- var ECancelStatus;
23
- (function (ECancelStatus) {
24
- // Cancellation has expired because corresponding order had not arrived within the defined time-to-live window.
25
- ECancelStatus["EXPIRED"] = "EXPIRED";
26
- // This cancellation request was dropped because its TTL window overlaps with another cancellation request for the same order.
27
- ECancelStatus["DROPPED_DUPLICATE"] = "DROPPED_DUPLICATE";
28
- })(ECancelStatus || (exports.ECancelStatus = ECancelStatus = {}));
29
- var ECandlestickInterval;
30
- (function (ECandlestickInterval) {
31
- // 1 minute
32
- ECandlestickInterval["CI_1_M"] = "CI_1_M";
33
- // 3 minutes
34
- ECandlestickInterval["CI_3_M"] = "CI_3_M";
35
- // 5 minutes
36
- ECandlestickInterval["CI_5_M"] = "CI_5_M";
37
- // 15 minutes
38
- ECandlestickInterval["CI_15_M"] = "CI_15_M";
39
- // 30 minutes
40
- ECandlestickInterval["CI_30_M"] = "CI_30_M";
41
- // 1 hour
42
- ECandlestickInterval["CI_1_H"] = "CI_1_H";
43
- // 2 hour
44
- ECandlestickInterval["CI_2_H"] = "CI_2_H";
45
- // 4 hour
46
- ECandlestickInterval["CI_4_H"] = "CI_4_H";
47
- // 6 hour
48
- ECandlestickInterval["CI_6_H"] = "CI_6_H";
49
- // 8 hour
50
- ECandlestickInterval["CI_8_H"] = "CI_8_H";
51
- // 12 hour
52
- ECandlestickInterval["CI_12_H"] = "CI_12_H";
53
- // 1 day
54
- ECandlestickInterval["CI_1_D"] = "CI_1_D";
55
- // 3 days
56
- ECandlestickInterval["CI_3_D"] = "CI_3_D";
57
- // 5 days
58
- ECandlestickInterval["CI_5_D"] = "CI_5_D";
59
- // 1 week
60
- ECandlestickInterval["CI_1_W"] = "CI_1_W";
61
- // 2 weeks
62
- ECandlestickInterval["CI_2_W"] = "CI_2_W";
63
- // 3 weeks
64
- ECandlestickInterval["CI_3_W"] = "CI_3_W";
65
- // 4 weeks
66
- ECandlestickInterval["CI_4_W"] = "CI_4_W";
67
- })(ECandlestickInterval || (exports.ECandlestickInterval = ECandlestickInterval = {}));
68
- var ECandlestickType;
69
- (function (ECandlestickType) {
70
- // Tracks traded prices
71
- ECandlestickType["TRADE"] = "TRADE";
72
- // Tracks mark prices
73
- ECandlestickType["MARK"] = "MARK";
74
- // Tracks index prices
75
- ECandlestickType["INDEX"] = "INDEX";
76
- // Tracks book mid prices
77
- ECandlestickType["MID"] = "MID";
78
- })(ECandlestickType || (exports.ECandlestickType = ECandlestickType = {}));
79
- var EEpochBadgeType;
80
- (function (EEpochBadgeType) {
81
- // Champion
82
- EEpochBadgeType["CHAMPION"] = "CHAMPION";
83
- // Legend
84
- EEpochBadgeType["LEGEND"] = "LEGEND";
85
- // Veteran
86
- EEpochBadgeType["VETERAN"] = "VETERAN";
87
- // Elite
88
- EEpochBadgeType["ELITE"] = "ELITE";
89
- // Master
90
- EEpochBadgeType["MASTER"] = "MASTER";
91
- // Expert
92
- EEpochBadgeType["EXPERT"] = "EXPERT";
93
- // Warrior
94
- EEpochBadgeType["WARRIOR"] = "WARRIOR";
95
- // Sergeant
96
- EEpochBadgeType["SERGEANT"] = "SERGEANT";
97
- // Ranger
98
- EEpochBadgeType["RANGER"] = "RANGER";
99
- // Challenger
100
- EEpochBadgeType["CHALLENGER"] = "CHALLENGER";
101
- // Apprentice
102
- EEpochBadgeType["APPRENTICE"] = "APPRENTICE";
103
- // Rookie
104
- EEpochBadgeType["ROOKIE"] = "ROOKIE";
105
- })(EEpochBadgeType || (exports.EEpochBadgeType = EEpochBadgeType = {}));
106
- var EInstrumentSettlementPeriod;
107
- (function (EInstrumentSettlementPeriod) {
108
- // Instrument settles through perpetual funding cycles
109
- EInstrumentSettlementPeriod["PERPETUAL"] = "PERPETUAL";
110
- // Instrument settles at an expiry date, marked as a daily instrument
111
- EInstrumentSettlementPeriod["DAILY"] = "DAILY";
112
- // Instrument settles at an expiry date, marked as a weekly instrument
113
- EInstrumentSettlementPeriod["WEEKLY"] = "WEEKLY";
114
- // Instrument settles at an expiry date, marked as a monthly instrument
115
- EInstrumentSettlementPeriod["MONTHLY"] = "MONTHLY";
116
- // Instrument settles at an expiry date, marked as a quarterly instrument
117
- EInstrumentSettlementPeriod["QUARTERLY"] = "QUARTERLY";
118
- })(EInstrumentSettlementPeriod || (exports.EInstrumentSettlementPeriod = EInstrumentSettlementPeriod = {}));
119
- // The list of asset kinds that are supported on the GRVT exchange
120
- var EKind;
121
- (function (EKind) {
122
- // the perpetual asset kind
123
- EKind["PERPETUAL"] = "PERPETUAL";
124
- // the future asset kind
125
- EKind["FUTURE"] = "FUTURE";
126
- // the call option asset kind
127
- EKind["CALL"] = "CALL";
128
- // the put option asset kind
129
- EKind["PUT"] = "PUT";
130
- })(EKind || (exports.EKind = EKind = {}));
131
- var EMarginType;
132
- (function (EMarginType) {
133
- // Simple Cross Margin Mode: all assets have a predictable margin impact, the whole subaccount shares a single margin
134
- EMarginType["SIMPLE_CROSS_MARGIN"] = "SIMPLE_CROSS_MARGIN";
135
- // Portfolio Cross Margin Mode: asset margin impact is analysed on portfolio level, the whole subaccount shares a single margin
136
- EMarginType["PORTFOLIO_CROSS_MARGIN"] = "PORTFOLIO_CROSS_MARGIN";
137
- })(EMarginType || (exports.EMarginType = EMarginType = {}));
138
- var EOrderRejectReason;
139
- (function (EOrderRejectReason) {
140
- // order is not cancelled or rejected
141
- EOrderRejectReason["UNSPECIFIED"] = "UNSPECIFIED";
142
- // client called a Cancel API
143
- EOrderRejectReason["CLIENT_CANCEL"] = "CLIENT_CANCEL";
144
- // client called a Bulk Cancel API
145
- EOrderRejectReason["CLIENT_BULK_CANCEL"] = "CLIENT_BULK_CANCEL";
146
- // client called a Session Cancel API, or set the WebSocket connection to 'cancelOrdersOnTerminate'
147
- EOrderRejectReason["CLIENT_SESSION_END"] = "CLIENT_SESSION_END";
148
- // the market order was cancelled after no/partial fill. Lower precedence than other TimeInForce cancel reasons
149
- EOrderRejectReason["MARKET_CANCEL"] = "MARKET_CANCEL";
150
- // the IOC order was cancelled after no/partial fill
151
- EOrderRejectReason["IOC_CANCEL"] = "IOC_CANCEL";
152
- // the AON order was cancelled as it could not be fully matched
153
- EOrderRejectReason["AON_CANCEL"] = "AON_CANCEL";
154
- // the FOK order was cancelled as it could not be fully matched
155
- EOrderRejectReason["FOK_CANCEL"] = "FOK_CANCEL";
156
- // the order was cancelled as it has expired
157
- EOrderRejectReason["EXPIRED"] = "EXPIRED";
158
- // the post-only order could not be posted into the orderbook
159
- EOrderRejectReason["FAIL_POST_ONLY"] = "FAIL_POST_ONLY";
160
- // the reduce-only order would have caused position size to increase
161
- EOrderRejectReason["FAIL_REDUCE_ONLY"] = "FAIL_REDUCE_ONLY";
162
- // the order was cancelled due to market maker protection trigger
163
- EOrderRejectReason["MM_PROTECTION"] = "MM_PROTECTION";
164
- // the order was cancelled due to self-trade protection trigger
165
- EOrderRejectReason["SELF_TRADE_PROTECTION"] = "SELF_TRADE_PROTECTION";
166
- // the order matched with another order from the same sub account
167
- EOrderRejectReason["SELF_MATCHED_SUBACCOUNT"] = "SELF_MATCHED_SUBACCOUNT";
168
- // an active order on your sub account shares the same clientOrderId
169
- EOrderRejectReason["OVERLAPPING_CLIENT_ORDER_ID"] = "OVERLAPPING_CLIENT_ORDER_ID";
170
- // the order will bring the sub account below initial margin requirement
171
- EOrderRejectReason["BELOW_MARGIN"] = "BELOW_MARGIN";
172
- // the sub account is liquidated (and all open orders are cancelled by Gravity)
173
- EOrderRejectReason["LIQUIDATION"] = "LIQUIDATION";
174
- // instrument is invalid or not found on Gravity
175
- EOrderRejectReason["INSTRUMENT_INVALID"] = "INSTRUMENT_INVALID";
176
- // instrument is no longer tradable on Gravity. (typically due to a market halt, or instrument expiry)
177
- EOrderRejectReason["INSTRUMENT_DEACTIVATED"] = "INSTRUMENT_DEACTIVATED";
178
- // system failover resulting in loss of order state
179
- EOrderRejectReason["SYSTEM_FAILOVER"] = "SYSTEM_FAILOVER";
180
- // the credentials used (userSession/apiKeySession/walletSignature) is not authorised to perform the action
181
- EOrderRejectReason["UNAUTHORISED"] = "UNAUTHORISED";
182
- // the session key used to sign the order expired
183
- EOrderRejectReason["SESSION_KEY_EXPIRED"] = "SESSION_KEY_EXPIRED";
184
- // the subaccount does not exist
185
- EOrderRejectReason["SUB_ACCOUNT_NOT_FOUND"] = "SUB_ACCOUNT_NOT_FOUND";
186
- // the signature used to sign the order has no trade permission
187
- EOrderRejectReason["NO_TRADE_PERMISSION"] = "NO_TRADE_PERMISSION";
188
- // the order payload does not contain a supported TimeInForce value
189
- EOrderRejectReason["UNSUPPORTED_TIME_IN_FORCE"] = "UNSUPPORTED_TIME_IN_FORCE";
190
- // the order has multiple legs, but multiple legs are not supported by this venue
191
- EOrderRejectReason["MULTI_LEGGED_ORDER"] = "MULTI_LEGGED_ORDER";
192
- // the order would have caused the subaccount to exceed the max position size
193
- EOrderRejectReason["EXCEED_MAX_POSITION_SIZE"] = "EXCEED_MAX_POSITION_SIZE";
194
- // the signature supplied is more than 30 days in the future
195
- EOrderRejectReason["EXCEED_MAX_SIGNATURE_EXPIRATION"] = "EXCEED_MAX_SIGNATURE_EXPIRATION";
196
- // the market order has a limit price set
197
- EOrderRejectReason["MARKET_ORDER_WITH_LIMIT_PRICE"] = "MARKET_ORDER_WITH_LIMIT_PRICE";
198
- // client cancel on disconnect triggered
199
- EOrderRejectReason["CLIENT_CANCEL_ON_DISCONNECT_TRIGGERED"] = "CLIENT_CANCEL_ON_DISCONNECT_TRIGGERED";
200
- // the OCO counter part order was triggered
201
- EOrderRejectReason["OCO_COUNTER_PART_TRIGGERED"] = "OCO_COUNTER_PART_TRIGGERED";
202
- // the remaining order size was cancelled because it exceeded current position size
203
- EOrderRejectReason["REDUCE_ONLY_LIMIT"] = "REDUCE_ONLY_LIMIT";
204
- // the order was replaced by a client replace request
205
- EOrderRejectReason["CLIENT_REPLACE"] = "CLIENT_REPLACE";
206
- // the derisk order must be an IOC order
207
- EOrderRejectReason["DERISK_MUST_BE_IOC"] = "DERISK_MUST_BE_IOC";
208
- // the derisk order must be a reduce-only order
209
- EOrderRejectReason["DERISK_MUST_BE_REDUCE_ONLY"] = "DERISK_MUST_BE_REDUCE_ONLY";
210
- // derisk is not supported
211
- EOrderRejectReason["DERISK_NOT_SUPPORTED"] = "DERISK_NOT_SUPPORTED";
212
- // the order type is invalid
213
- EOrderRejectReason["INVALID_ORDER_TYPE"] = "INVALID_ORDER_TYPE";
214
- // the currency is not defined
215
- EOrderRejectReason["CURRENCY_NOT_DEFINED"] = "CURRENCY_NOT_DEFINED";
216
- })(EOrderRejectReason || (exports.EOrderRejectReason = EOrderRejectReason = {}));
217
- var EOrderStatus;
218
- (function (EOrderStatus) {
219
- // Order has been sent to the matching engine and is pending a transition to open/filled/rejected.
220
- EOrderStatus["PENDING"] = "PENDING";
221
- // Order is actively matching on the matching engine, could be unfilled or partially filled.
222
- EOrderStatus["OPEN"] = "OPEN";
223
- // Order is fully filled and hence closed. Taker Orders can transition directly from pending to filled, without going through open.
224
- EOrderStatus["FILLED"] = "FILLED";
225
- // Order is rejected by matching engine since if fails a particular check (See OrderRejectReason). Once an order is open, it cannot be rejected.
226
- EOrderStatus["REJECTED"] = "REJECTED";
227
- // Order is cancelled by the user using one of the supported APIs (See OrderRejectReason). Before an order is open, it cannot be cancelled.
228
- EOrderStatus["CANCELLED"] = "CANCELLED";
229
- })(EOrderStatus || (exports.EOrderStatus = EOrderStatus = {}));
230
- var EQueryMainAccountLeaderboardOrderBy;
231
- (function (EQueryMainAccountLeaderboardOrderBy) {
232
- // Sort by realized PnL
233
- EQueryMainAccountLeaderboardOrderBy["PNL"] = "PNL";
234
- // Sort by trading volume
235
- EQueryMainAccountLeaderboardOrderBy["TRADING_VOLUME"] = "TRADING_VOLUME";
236
- })(EQueryMainAccountLeaderboardOrderBy || (exports.EQueryMainAccountLeaderboardOrderBy = EQueryMainAccountLeaderboardOrderBy = {}));
237
- var ERewardEpochStatus;
238
- (function (ERewardEpochStatus) {
239
- // Past
240
- ERewardEpochStatus["PAST"] = "PAST";
241
- // Current
242
- ERewardEpochStatus["CURRENT"] = "CURRENT";
243
- // Future
244
- ERewardEpochStatus["FUTURE"] = "FUTURE";
245
- })(ERewardEpochStatus || (exports.ERewardEpochStatus = ERewardEpochStatus = {}));
246
- var ERewardProgramType;
247
- (function (ERewardProgramType) {
248
- ERewardProgramType["ECOSYSTEM"] = "ECOSYSTEM";
249
- ERewardProgramType["TRADER"] = "TRADER";
250
- ERewardProgramType["LP"] = "LP";
251
- })(ERewardProgramType || (exports.ERewardProgramType = ERewardProgramType = {}));
252
- // Defines the source of the order or trade, such as a UI, API, or a bot.
253
- // This is used to track the source of the order, and is not signed by the client
254
- var ESource;
255
- (function (ESource) {
256
- // The order/trade was created by a web client
257
- ESource["WEB"] = "WEB";
258
- // The order/trade was created by a mobile client
259
- ESource["MOBILE"] = "MOBILE";
260
- // The order/trade was created by an API client
261
- ESource["API"] = "API";
262
- // The order/trade was created by the liquidator service
263
- ESource["LIQUIDATOR"] = "LIQUIDATOR";
264
- })(ESource || (exports.ESource = ESource = {}));
265
- var ESubAccountTradeInterval;
266
- (function (ESubAccountTradeInterval) {
267
- // 1 month
268
- ESubAccountTradeInterval["SAT_1_MO"] = "SAT_1_MO";
269
- // 1 day
270
- ESubAccountTradeInterval["SAT_1_D"] = "SAT_1_D";
271
- // 1 hour
272
- ESubAccountTradeInterval["SAT_1_H"] = "SAT_1_H";
273
- // 4 hour
274
- ESubAccountTradeInterval["SAT_4_H"] = "SAT_4_H";
275
- })(ESubAccountTradeInterval || (exports.ESubAccountTradeInterval = ESubAccountTradeInterval = {}));
276
- // | | Must Fill All | Can Fill Partial |
277
- // | - | - | - |
278
- // | Must Fill Immediately | FOK | IOC |
279
- // | Can Fill Till Time | AON | GTC |
280
- //
281
- var ETimeInForce;
282
- (function (ETimeInForce) {
283
- // GTT - Remains open until it is cancelled, or expired
284
- ETimeInForce["GOOD_TILL_TIME"] = "GOOD_TILL_TIME";
285
- // AON - Either fill the whole order or none of it (Block Trades Only)
286
- ETimeInForce["ALL_OR_NONE"] = "ALL_OR_NONE";
287
- // IOC - Fill the order as much as possible, when hitting the orderbook. Then cancel it
288
- ETimeInForce["IMMEDIATE_OR_CANCEL"] = "IMMEDIATE_OR_CANCEL";
289
- // FOK - Both AoN and IoC. Either fill the full order when hitting the orderbook, or cancel it
290
- ETimeInForce["FILL_OR_KILL"] = "FILL_OR_KILL";
291
- // RPI - A GTT + PostOnly maker order, that can only be taken by non-algorithmic UI users.
292
- ETimeInForce["RETAIL_PRICE_IMPROVEMENT"] = "RETAIL_PRICE_IMPROVEMENT";
293
- })(ETimeInForce || (exports.ETimeInForce = ETimeInForce = {}));
294
- // Time interval can be used as a filter in metric/portfolio management APIs
295
- var ETimeInterval;
296
- (function (ETimeInterval) {
297
- // 1 day
298
- ETimeInterval["INTERVAL_1_D"] = "INTERVAL_1_D";
299
- // 7 days
300
- ETimeInterval["INTERVAL_7_D"] = "INTERVAL_7_D";
301
- // 30 days
302
- ETimeInterval["INTERVAL_30_D"] = "INTERVAL_30_D";
303
- // 90 days
304
- ETimeInterval["INTERVAL_90_D"] = "INTERVAL_90_D";
305
- // Lifetime
306
- ETimeInterval["INTERVAL_LIFETIME"] = "INTERVAL_LIFETIME";
307
- })(ETimeInterval || (exports.ETimeInterval = ETimeInterval = {}));
308
- var ETransactionType;
309
- (function (ETransactionType) {
310
- ETransactionType["UNSPECIFIED_1"] = "UNSPECIFIED_1";
311
- ETransactionType["UNSPECIFIED_2"] = "UNSPECIFIED_2";
312
- ETransactionType["UNSPECIFIED_3"] = "UNSPECIFIED_3";
313
- ETransactionType["CREATE_ACCOUNT"] = "CREATE_ACCOUNT";
314
- ETransactionType["CREATE_SUB_ACCOUNT"] = "CREATE_SUB_ACCOUNT";
315
- ETransactionType["SET_ACCOUNT_MULTI_SIG_THRESHOLD"] = "SET_ACCOUNT_MULTI_SIG_THRESHOLD";
316
- ETransactionType["ADD_ACCOUNT_SIGNER"] = "ADD_ACCOUNT_SIGNER";
317
- ETransactionType["REMOVE_ACCOUNT_SIGNER"] = "REMOVE_ACCOUNT_SIGNER";
318
- ETransactionType["ADD_WITHDRAWAL_ADDRESS"] = "ADD_WITHDRAWAL_ADDRESS";
319
- ETransactionType["REMOVE_WITHDRAWAL_ADDRESS"] = "REMOVE_WITHDRAWAL_ADDRESS";
320
- ETransactionType["ADD_TRANSFER_ACCOUNT"] = "ADD_TRANSFER_ACCOUNT";
321
- ETransactionType["REMOVE_TRANSFER_ACCOUNT"] = "REMOVE_TRANSFER_ACCOUNT";
322
- ETransactionType["SET_SUB_ACCOUNT_MARGIN_TYPE"] = "SET_SUB_ACCOUNT_MARGIN_TYPE";
323
- ETransactionType["ADD_SUB_ACCOUNT_SIGNER"] = "ADD_SUB_ACCOUNT_SIGNER";
324
- ETransactionType["REMOVE_SUB_ACCOUNT_SIGNER"] = "REMOVE_SUB_ACCOUNT_SIGNER";
325
- ETransactionType["ADD_SESSION_KEY"] = "ADD_SESSION_KEY";
326
- ETransactionType["REMOVE_SESSION_KEY"] = "REMOVE_SESSION_KEY";
327
- ETransactionType["DEPOSIT"] = "DEPOSIT";
328
- ETransactionType["WITHDRAWAL"] = "WITHDRAWAL";
329
- ETransactionType["TRANSFER"] = "TRANSFER";
330
- ETransactionType["MARK_PRICE_TICK"] = "MARK_PRICE_TICK";
331
- ETransactionType["SETTLEMENT_PRICE_TICK"] = "SETTLEMENT_PRICE_TICK";
332
- ETransactionType["FUNDING_TICK"] = "FUNDING_TICK";
333
- ETransactionType["INTEREST_RATE_TICK"] = "INTEREST_RATE_TICK";
334
- ETransactionType["SCHEDULE_CONFIG"] = "SCHEDULE_CONFIG";
335
- ETransactionType["SET_CONFIG"] = "SET_CONFIG";
336
- ETransactionType["TRADE"] = "TRADE";
337
- ETransactionType["ADD_RECOVERY_ADDRESS"] = "ADD_RECOVERY_ADDRESS";
338
- ETransactionType["REMOVE_RECOVERY_ADDRESS"] = "REMOVE_RECOVERY_ADDRESS";
339
- ETransactionType["RECOVER_ADDRESS"] = "RECOVER_ADDRESS";
340
- ETransactionType["SETTLE_START"] = "SETTLE_START";
341
- ETransactionType["SETTLE_INSTRUMENTS"] = "SETTLE_INSTRUMENTS";
342
- ETransactionType["SETTLE_SOCIALISED_LOSS"] = "SETTLE_SOCIALISED_LOSS";
343
- ETransactionType["SETTLE_END"] = "SETTLE_END";
344
- ETransactionType["SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS"] = "SCHEDULE_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS";
345
- ETransactionType["SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS"] = "SET_SIMPLE_CROSS_MAINTENANCE_MARGIN_TIERS";
346
- ETransactionType["INITIALIZE_CONFIG"] = "INITIALIZE_CONFIG";
347
- ETransactionType["CREATE_ACCOUNT_WITH_SUB_ACCOUNT"] = "CREATE_ACCOUNT_WITH_SUB_ACCOUNT";
348
- ETransactionType["VAULT_CREATE"] = "VAULT_CREATE";
349
- ETransactionType["VAULT_UPDATE"] = "VAULT_UPDATE";
350
- ETransactionType["VAULT_DELIST"] = "VAULT_DELIST";
351
- ETransactionType["VAULT_CLOSE"] = "VAULT_CLOSE";
352
- ETransactionType["VAULT_INVEST"] = "VAULT_INVEST";
353
- ETransactionType["VAULT_BURN_LP_TOKEN"] = "VAULT_BURN_LP_TOKEN";
354
- ETransactionType["VAULT_REDEEM"] = "VAULT_REDEEM";
355
- ETransactionType["VAULT_MANAGEMENT_FEE_TICK"] = "VAULT_MANAGEMENT_FEE_TICK";
356
- ETransactionType["ADD_CURRENCY"] = "ADD_CURRENCY";
357
- ETransactionType["SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO"] = "SET_DERISK_TO_MAINTENANCE_MARGIN_RATIO";
358
- })(ETransactionType || (exports.ETransactionType = ETransactionType = {}));
359
- var ETransferType;
360
- (function (ETransferType) {
361
- // Default transfer that has nothing to do with bridging
362
- ETransferType["UNSPECIFIED"] = "UNSPECIFIED";
363
- // Standard transfer that has nothing to do with bridging
364
- ETransferType["STANDARD"] = "STANDARD";
365
- // Fast Arb Deposit Metadata type
366
- ETransferType["FAST_ARB_DEPOSIT"] = "FAST_ARB_DEPOSIT";
367
- // Fast Arb Withdrawal Metadata type
368
- ETransferType["FAST_ARB_WITHDRAWAL"] = "FAST_ARB_WITHDRAWAL";
369
- // Transfer type for non native bridging deposit
370
- ETransferType["NON_NATIVE_BRIDGE_DEPOSIT"] = "NON_NATIVE_BRIDGE_DEPOSIT";
371
- // Transfer type for non native bridging withdrawal
372
- ETransferType["NON_NATIVE_BRIDGE_WITHDRAWAL"] = "NON_NATIVE_BRIDGE_WITHDRAWAL";
373
- })(ETransferType || (exports.ETransferType = ETransferType = {}));
374
- // Defines the price type that activates a Take Profit (TP) or Stop Loss (SL) order.
375
- //
376
- // 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.
377
- //
378
- //
379
- var ETriggerBy;
380
- (function (ETriggerBy) {
381
- // no trigger condition
382
- ETriggerBy["UNSPECIFIED"] = "UNSPECIFIED";
383
- // INDEX - Order is activated when the index price reaches the trigger price
384
- ETriggerBy["INDEX"] = "INDEX";
385
- // LAST - Order is activated when the last trade price reaches the trigger price
386
- ETriggerBy["LAST"] = "LAST";
387
- // MID - Order is activated when the mid price reaches the trigger price
388
- ETriggerBy["MID"] = "MID";
389
- // MARK - Order is activated when the mark price reaches the trigger price
390
- ETriggerBy["MARK"] = "MARK";
391
- })(ETriggerBy || (exports.ETriggerBy = ETriggerBy = {}));
392
- // Defines the type of trigger order used in trading, such as Take Profit or Stop Loss.
393
- //
394
- // Trigger orders allow execution based on pre-defined price conditions rather than immediate market conditions.
395
- //
396
- //
397
- var ETriggerType;
398
- (function (ETriggerType) {
399
- // Not a trigger order. The order executes normally without any trigger conditions.
400
- ETriggerType["UNSPECIFIED"] = "UNSPECIFIED";
401
- // Take Profit Order - Executes when the price reaches a specified level to secure profits.
402
- ETriggerType["TAKE_PROFIT"] = "TAKE_PROFIT";
403
- // Stop Loss Order - Executes when the price reaches a specified level to limit losses.
404
- ETriggerType["STOP_LOSS"] = "STOP_LOSS";
405
- })(ETriggerType || (exports.ETriggerType = ETriggerType = {}));
406
- var EVaultInvestorAction;
407
- (function (EVaultInvestorAction) {
408
- EVaultInvestorAction["UNSPECIFIED"] = "UNSPECIFIED";
409
- EVaultInvestorAction["VAULT_INVEST"] = "VAULT_INVEST";
410
- EVaultInvestorAction["VAULT_BURN_LP_TOKEN"] = "VAULT_BURN_LP_TOKEN";
411
- EVaultInvestorAction["VAULT_REDEEM"] = "VAULT_REDEEM";
412
- })(EVaultInvestorAction || (exports.EVaultInvestorAction = EVaultInvestorAction = {}));
413
- // Denotes the age category of a given redemption request.
414
- //
415
- //
416
- var EVaultRedemptionReqAgeCategory;
417
- (function (EVaultRedemptionReqAgeCategory) {
418
- // This request is at least as old as the minimum redemption period, and is eligible for automated redemption.
419
- EVaultRedemptionReqAgeCategory["NORMAL"] = "NORMAL";
420
- // This request is nearing the maxmimum redemption period and will be factored into pre-order check margin requirements.
421
- EVaultRedemptionReqAgeCategory["URGENT"] = "URGENT";
422
- // This request has exceeded the maximum redemption period and will be considered for forced redemptions.
423
- EVaultRedemptionReqAgeCategory["OVERDUE"] = "OVERDUE";
424
- // This request has yet to exceed the minimum redemption period, and is not yet eligible for automated redemption.
425
- EVaultRedemptionReqAgeCategory["PRE_MIN"] = "PRE_MIN";
426
- })(EVaultRedemptionReqAgeCategory || (exports.EVaultRedemptionReqAgeCategory = EVaultRedemptionReqAgeCategory = {}));
427
- var EVaultType;
428
- (function (EVaultType) {
429
- // Prime vault
430
- EVaultType["PRIME"] = "PRIME";
431
- // Launchpad vault
432
- EVaultType["LAUNCH_PAD"] = "LAUNCH_PAD";
433
- })(EVaultType || (exports.EVaultType = EVaultType = {}));
434
- // The list of Trading Venues that are supported on the GRVT exchange
435
- var EVenue;
436
- (function (EVenue) {
437
- // the trade is cleared on the orderbook venue
438
- EVenue["ORDERBOOK"] = "ORDERBOOK";
439
- // the trade is cleared on the RFQ venue
440
- EVenue["RFQ"] = "RFQ";
441
- })(EVenue || (exports.EVenue = EVenue = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum EBridgeType {
2
+ XY = "XY",
3
+ RHINO = "RHINO"
4
+ }
5
+ export declare const EBridgeTypeInt: Record<EBridgeType, number>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EBridgeTypeInt = exports.EBridgeType = void 0;
4
+ var EBridgeType;
5
+ (function (EBridgeType) {
6
+ // XY Bridge type
7
+ EBridgeType["XY"] = "XY";
8
+ // Rhino Bridge type
9
+ EBridgeType["RHINO"] = "RHINO";
10
+ })(EBridgeType || (exports.EBridgeType = EBridgeType = {}));
11
+ exports.EBridgeTypeInt = Object.freeze({
12
+ [EBridgeType.XY]: 1,
13
+ [EBridgeType.RHINO]: 2
14
+ });
@@ -0,0 +1,7 @@
1
+ export declare enum EBrokerTag {
2
+ UNSPECIFIED = "UNSPECIFIED",
3
+ COIN_ROUTES = "COIN_ROUTES",
4
+ ALERTATRON = "ALERTATRON",
5
+ ORIGAMI = "ORIGAMI"
6
+ }
7
+ export declare const EBrokerTagInt: Record<EBrokerTag, number>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EBrokerTagInt = exports.EBrokerTag = void 0;
4
+ // BrokerTag is a tag for the broker that the order is sent from.
5
+ var EBrokerTag;
6
+ (function (EBrokerTag) {
7
+ EBrokerTag["UNSPECIFIED"] = "UNSPECIFIED";
8
+ // CoinRoutes
9
+ EBrokerTag["COIN_ROUTES"] = "COIN_ROUTES";
10
+ // Alertatron
11
+ EBrokerTag["ALERTATRON"] = "ALERTATRON";
12
+ // Origami
13
+ EBrokerTag["ORIGAMI"] = "ORIGAMI";
14
+ })(EBrokerTag || (exports.EBrokerTag = EBrokerTag = {}));
15
+ exports.EBrokerTagInt = Object.freeze({
16
+ [EBrokerTag.UNSPECIFIED]: 0,
17
+ [EBrokerTag.COIN_ROUTES]: 1,
18
+ [EBrokerTag.ALERTATRON]: 2,
19
+ [EBrokerTag.ORIGAMI]: 3
20
+ });
@@ -0,0 +1,5 @@
1
+ export declare enum ECancelStatus {
2
+ EXPIRED = "EXPIRED",
3
+ DROPPED_DUPLICATE = "DROPPED_DUPLICATE"
4
+ }
5
+ export declare const ECancelStatusInt: Record<ECancelStatus, number>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ECancelStatusInt = exports.ECancelStatus = void 0;
4
+ var ECancelStatus;
5
+ (function (ECancelStatus) {
6
+ // Cancellation has expired because corresponding order had not arrived within the defined time-to-live window.
7
+ ECancelStatus["EXPIRED"] = "EXPIRED";
8
+ // This cancellation request was dropped because its TTL window overlaps with another cancellation request for the same order.
9
+ ECancelStatus["DROPPED_DUPLICATE"] = "DROPPED_DUPLICATE";
10
+ })(ECancelStatus || (exports.ECancelStatus = ECancelStatus = {}));
11
+ exports.ECancelStatusInt = Object.freeze({
12
+ [ECancelStatus.EXPIRED]: 1,
13
+ [ECancelStatus.DROPPED_DUPLICATE]: 2
14
+ });
@@ -0,0 +1,21 @@
1
+ export declare enum ECandlestickInterval {
2
+ CI_1_M = "CI_1_M",
3
+ CI_3_M = "CI_3_M",
4
+ CI_5_M = "CI_5_M",
5
+ CI_15_M = "CI_15_M",
6
+ CI_30_M = "CI_30_M",
7
+ CI_1_H = "CI_1_H",
8
+ CI_2_H = "CI_2_H",
9
+ CI_4_H = "CI_4_H",
10
+ CI_6_H = "CI_6_H",
11
+ CI_8_H = "CI_8_H",
12
+ CI_12_H = "CI_12_H",
13
+ CI_1_D = "CI_1_D",
14
+ CI_3_D = "CI_3_D",
15
+ CI_5_D = "CI_5_D",
16
+ CI_1_W = "CI_1_W",
17
+ CI_2_W = "CI_2_W",
18
+ CI_3_W = "CI_3_W",
19
+ CI_4_W = "CI_4_W"
20
+ }
21
+ export declare const ECandlestickIntervalInt: Record<ECandlestickInterval, number>;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ECandlestickIntervalInt = exports.ECandlestickInterval = void 0;
4
+ var ECandlestickInterval;
5
+ (function (ECandlestickInterval) {
6
+ // 1 minute
7
+ ECandlestickInterval["CI_1_M"] = "CI_1_M";
8
+ // 3 minutes
9
+ ECandlestickInterval["CI_3_M"] = "CI_3_M";
10
+ // 5 minutes
11
+ ECandlestickInterval["CI_5_M"] = "CI_5_M";
12
+ // 15 minutes
13
+ ECandlestickInterval["CI_15_M"] = "CI_15_M";
14
+ // 30 minutes
15
+ ECandlestickInterval["CI_30_M"] = "CI_30_M";
16
+ // 1 hour
17
+ ECandlestickInterval["CI_1_H"] = "CI_1_H";
18
+ // 2 hour
19
+ ECandlestickInterval["CI_2_H"] = "CI_2_H";
20
+ // 4 hour
21
+ ECandlestickInterval["CI_4_H"] = "CI_4_H";
22
+ // 6 hour
23
+ ECandlestickInterval["CI_6_H"] = "CI_6_H";
24
+ // 8 hour
25
+ ECandlestickInterval["CI_8_H"] = "CI_8_H";
26
+ // 12 hour
27
+ ECandlestickInterval["CI_12_H"] = "CI_12_H";
28
+ // 1 day
29
+ ECandlestickInterval["CI_1_D"] = "CI_1_D";
30
+ // 3 days
31
+ ECandlestickInterval["CI_3_D"] = "CI_3_D";
32
+ // 5 days
33
+ ECandlestickInterval["CI_5_D"] = "CI_5_D";
34
+ // 1 week
35
+ ECandlestickInterval["CI_1_W"] = "CI_1_W";
36
+ // 2 weeks
37
+ ECandlestickInterval["CI_2_W"] = "CI_2_W";
38
+ // 3 weeks
39
+ ECandlestickInterval["CI_3_W"] = "CI_3_W";
40
+ // 4 weeks
41
+ ECandlestickInterval["CI_4_W"] = "CI_4_W";
42
+ })(ECandlestickInterval || (exports.ECandlestickInterval = ECandlestickInterval = {}));
43
+ exports.ECandlestickIntervalInt = Object.freeze({
44
+ [ECandlestickInterval.CI_1_M]: 1,
45
+ [ECandlestickInterval.CI_3_M]: 2,
46
+ [ECandlestickInterval.CI_5_M]: 3,
47
+ [ECandlestickInterval.CI_15_M]: 4,
48
+ [ECandlestickInterval.CI_30_M]: 5,
49
+ [ECandlestickInterval.CI_1_H]: 6,
50
+ [ECandlestickInterval.CI_2_H]: 7,
51
+ [ECandlestickInterval.CI_4_H]: 8,
52
+ [ECandlestickInterval.CI_6_H]: 9,
53
+ [ECandlestickInterval.CI_8_H]: 10,
54
+ [ECandlestickInterval.CI_12_H]: 11,
55
+ [ECandlestickInterval.CI_1_D]: 12,
56
+ [ECandlestickInterval.CI_3_D]: 13,
57
+ [ECandlestickInterval.CI_5_D]: 14,
58
+ [ECandlestickInterval.CI_1_W]: 15,
59
+ [ECandlestickInterval.CI_2_W]: 16,
60
+ [ECandlestickInterval.CI_3_W]: 17,
61
+ [ECandlestickInterval.CI_4_W]: 18
62
+ });
@@ -0,0 +1,7 @@
1
+ export declare enum ECandlestickType {
2
+ TRADE = "TRADE",
3
+ MARK = "MARK",
4
+ INDEX = "INDEX",
5
+ MID = "MID"
6
+ }
7
+ export declare const ECandlestickTypeInt: Record<ECandlestickType, number>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ECandlestickTypeInt = exports.ECandlestickType = void 0;
4
+ var ECandlestickType;
5
+ (function (ECandlestickType) {
6
+ // Tracks traded prices
7
+ ECandlestickType["TRADE"] = "TRADE";
8
+ // Tracks mark prices
9
+ ECandlestickType["MARK"] = "MARK";
10
+ // Tracks index prices
11
+ ECandlestickType["INDEX"] = "INDEX";
12
+ // Tracks book mid prices
13
+ ECandlestickType["MID"] = "MID";
14
+ })(ECandlestickType || (exports.ECandlestickType = ECandlestickType = {}));
15
+ exports.ECandlestickTypeInt = Object.freeze({
16
+ [ECandlestickType.TRADE]: 1,
17
+ [ECandlestickType.MARK]: 2,
18
+ [ECandlestickType.INDEX]: 3,
19
+ [ECandlestickType.MID]: 4
20
+ });