zklighter-perps 1.0.309 → 1.0.311
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/models/Account.ts +26 -2
- package/models/AccountPosition.ts +12 -1
- package/models/AccountStats.ts +12 -1
- package/models/AtomicOrderLeg.ts +12 -1
- package/models/BinaryOptionMarketStats.ts +12 -2
- package/models/BoOutcomePnL.ts +13 -1
- package/models/Bridge.ts +2 -2
- package/models/DetailedAccount.ts +26 -2
- package/models/EventOrderBookEntry.ts +21 -2
- package/models/GeckoContract.ts +45 -0
- package/models/MarketConfig.ts +22 -2
- package/models/OrderBook.ts +21 -2
- package/models/PerpsOrderBookDetail.ts +21 -2
- package/models/PublicPoolInfo.ts +12 -1
- package/models/PublicPoolMetadata.ts +26 -2
- package/models/RFQEntry.ts +11 -1
- package/models/RespCreateRFQ.ts +11 -1
- package/models/RespGetRFQ.ts +11 -1
- package/models/RespRespondToRFQ.ts +11 -1
- package/models/RespUpdateRFQ.ts +11 -1
- package/models/SpotOrderBookDetail.ts +21 -2
- package/openapi.json +318 -74
- package/package.json +1 -1
package/models/Account.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface Account {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof Account
|
|
38
38
|
*/
|
|
39
|
-
account_type:
|
|
39
|
+
account_type: AccountAccountTypeEnum;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -102,9 +102,33 @@ export interface Account {
|
|
|
102
102
|
* @type {number}
|
|
103
103
|
* @memberof Account
|
|
104
104
|
*/
|
|
105
|
-
account_trading_mode?:
|
|
105
|
+
account_trading_mode?: AccountAccountTradingModeEnum;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export const AccountAccountTypeEnum = {
|
|
113
|
+
Master: 0,
|
|
114
|
+
Sub: 1,
|
|
115
|
+
PublicPool: 2,
|
|
116
|
+
InsuranceFund: 3,
|
|
117
|
+
LighterStakingPool: 4,
|
|
118
|
+
TreasurySub: 5
|
|
119
|
+
} as const;
|
|
120
|
+
export type AccountAccountTypeEnum = typeof AccountAccountTypeEnum[keyof typeof AccountAccountTypeEnum];
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @export
|
|
124
|
+
*/
|
|
125
|
+
export const AccountAccountTradingModeEnum = {
|
|
126
|
+
Simple: 0,
|
|
127
|
+
Unified: 1
|
|
128
|
+
} as const;
|
|
129
|
+
export type AccountAccountTradingModeEnum = typeof AccountAccountTradingModeEnum[keyof typeof AccountAccountTradingModeEnum];
|
|
130
|
+
|
|
131
|
+
|
|
108
132
|
/**
|
|
109
133
|
* Check if a given object implements the Account interface.
|
|
110
134
|
*/
|
|
@@ -108,7 +108,7 @@ export interface AccountPosition {
|
|
|
108
108
|
* @type {number}
|
|
109
109
|
* @memberof AccountPosition
|
|
110
110
|
*/
|
|
111
|
-
margin_mode:
|
|
111
|
+
margin_mode: AccountPositionMarginModeEnum;
|
|
112
112
|
/**
|
|
113
113
|
*
|
|
114
114
|
* @type {number}
|
|
@@ -129,6 +129,17 @@ export interface AccountPosition {
|
|
|
129
129
|
total_discount: string;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @export
|
|
135
|
+
*/
|
|
136
|
+
export const AccountPositionMarginModeEnum = {
|
|
137
|
+
Cross: 0,
|
|
138
|
+
Isolated: 1
|
|
139
|
+
} as const;
|
|
140
|
+
export type AccountPositionMarginModeEnum = typeof AccountPositionMarginModeEnum[keyof typeof AccountPositionMarginModeEnum];
|
|
141
|
+
|
|
142
|
+
|
|
132
143
|
/**
|
|
133
144
|
* Check if a given object implements the AccountPosition interface.
|
|
134
145
|
*/
|
package/models/AccountStats.ts
CHANGED
|
@@ -67,7 +67,7 @@ export interface AccountStats {
|
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof AccountStats
|
|
69
69
|
*/
|
|
70
|
-
account_trading_mode?:
|
|
70
|
+
account_trading_mode?: AccountStatsAccountTradingModeEnum;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {AccountMarginStats}
|
|
@@ -82,6 +82,17 @@ export interface AccountStats {
|
|
|
82
82
|
total_stats: AccountMarginStats;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export const AccountStatsAccountTradingModeEnum = {
|
|
90
|
+
Simple: 0,
|
|
91
|
+
Unified: 1
|
|
92
|
+
} as const;
|
|
93
|
+
export type AccountStatsAccountTradingModeEnum = typeof AccountStatsAccountTradingModeEnum[keyof typeof AccountStatsAccountTradingModeEnum];
|
|
94
|
+
|
|
95
|
+
|
|
85
96
|
/**
|
|
86
97
|
* Check if a given object implements the AccountStats interface.
|
|
87
98
|
*/
|
package/models/AtomicOrderLeg.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface AtomicOrderLeg {
|
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof AtomicOrderLeg
|
|
32
32
|
*/
|
|
33
|
-
is_ask:
|
|
33
|
+
is_ask: AtomicOrderLegIsAskEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
@@ -45,6 +45,17 @@ export interface AtomicOrderLeg {
|
|
|
45
45
|
percentage: number;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const AtomicOrderLegIsAskEnum = {
|
|
53
|
+
Bid: 0,
|
|
54
|
+
Ask: 1
|
|
55
|
+
} as const;
|
|
56
|
+
export type AtomicOrderLegIsAskEnum = typeof AtomicOrderLegIsAskEnum[keyof typeof AtomicOrderLegIsAskEnum];
|
|
57
|
+
|
|
58
|
+
|
|
48
59
|
/**
|
|
49
60
|
* Check if a given object implements the AtomicOrderLeg interface.
|
|
50
61
|
*/
|
|
@@ -110,11 +110,11 @@ export interface BinaryOptionMarketStats {
|
|
|
110
110
|
*/
|
|
111
111
|
status: BinaryOptionMarketStatsStatusEnum;
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
*
|
|
114
114
|
* @type {number}
|
|
115
115
|
* @memberof BinaryOptionMarketStats
|
|
116
116
|
*/
|
|
117
|
-
outcome:
|
|
117
|
+
outcome: BinaryOptionMarketStatsOutcomeEnum;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
|
|
@@ -129,6 +129,16 @@ export const BinaryOptionMarketStatsStatusEnum = {
|
|
|
129
129
|
} as const;
|
|
130
130
|
export type BinaryOptionMarketStatsStatusEnum = typeof BinaryOptionMarketStatsStatusEnum[keyof typeof BinaryOptionMarketStatsStatusEnum];
|
|
131
131
|
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export const BinaryOptionMarketStatsOutcomeEnum = {
|
|
136
|
+
None: 0,
|
|
137
|
+
No: 1,
|
|
138
|
+
Yes: 2
|
|
139
|
+
} as const;
|
|
140
|
+
export type BinaryOptionMarketStatsOutcomeEnum = typeof BinaryOptionMarketStatsOutcomeEnum[keyof typeof BinaryOptionMarketStatsOutcomeEnum];
|
|
141
|
+
|
|
132
142
|
|
|
133
143
|
/**
|
|
134
144
|
* Check if a given object implements the BinaryOptionMarketStats interface.
|
package/models/BoOutcomePnL.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface BoOutcomePnL {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof BoOutcomePnL
|
|
38
38
|
*/
|
|
39
|
-
outcome:
|
|
39
|
+
outcome: BoOutcomePnLOutcomeEnum;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -63,6 +63,18 @@ export interface BoOutcomePnL {
|
|
|
63
63
|
total_pnl: string;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const BoOutcomePnLOutcomeEnum = {
|
|
71
|
+
None: 0,
|
|
72
|
+
No: 1,
|
|
73
|
+
Yes: 2
|
|
74
|
+
} as const;
|
|
75
|
+
export type BoOutcomePnLOutcomeEnum = typeof BoOutcomePnLOutcomeEnum[keyof typeof BoOutcomePnLOutcomeEnum];
|
|
76
|
+
|
|
77
|
+
|
|
66
78
|
/**
|
|
67
79
|
* Check if a given object implements the BoOutcomePnL interface.
|
|
68
80
|
*/
|
package/models/Bridge.ts
CHANGED
|
@@ -116,8 +116,8 @@ export interface Bridge {
|
|
|
116
116
|
* @export
|
|
117
117
|
*/
|
|
118
118
|
export const BridgeVersionEnum = {
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
V1: 1,
|
|
120
|
+
V2: 2
|
|
121
121
|
} as const;
|
|
122
122
|
export type BridgeVersionEnum = typeof BridgeVersionEnum[keyof typeof BridgeVersionEnum];
|
|
123
123
|
|
|
@@ -85,7 +85,7 @@ export interface DetailedAccount {
|
|
|
85
85
|
* @type {number}
|
|
86
86
|
* @memberof DetailedAccount
|
|
87
87
|
*/
|
|
88
|
-
account_type:
|
|
88
|
+
account_type: DetailedAccountAccountTypeEnum;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
91
|
* @type {number}
|
|
@@ -151,7 +151,7 @@ export interface DetailedAccount {
|
|
|
151
151
|
* @type {number}
|
|
152
152
|
* @memberof DetailedAccount
|
|
153
153
|
*/
|
|
154
|
-
account_trading_mode?:
|
|
154
|
+
account_trading_mode?: DetailedAccountAccountTradingModeEnum;
|
|
155
155
|
/**
|
|
156
156
|
*
|
|
157
157
|
* @type {number}
|
|
@@ -286,6 +286,30 @@ export interface DetailedAccount {
|
|
|
286
286
|
approved_integrators?: Array<ApprovedIntegrator>;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @export
|
|
292
|
+
*/
|
|
293
|
+
export const DetailedAccountAccountTypeEnum = {
|
|
294
|
+
Master: 0,
|
|
295
|
+
Sub: 1,
|
|
296
|
+
PublicPool: 2,
|
|
297
|
+
InsuranceFund: 3,
|
|
298
|
+
LighterStakingPool: 4,
|
|
299
|
+
TreasurySub: 5
|
|
300
|
+
} as const;
|
|
301
|
+
export type DetailedAccountAccountTypeEnum = typeof DetailedAccountAccountTypeEnum[keyof typeof DetailedAccountAccountTypeEnum];
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* @export
|
|
305
|
+
*/
|
|
306
|
+
export const DetailedAccountAccountTradingModeEnum = {
|
|
307
|
+
Simple: 0,
|
|
308
|
+
Unified: 1
|
|
309
|
+
} as const;
|
|
310
|
+
export type DetailedAccountAccountTradingModeEnum = typeof DetailedAccountAccountTradingModeEnum[keyof typeof DetailedAccountAccountTradingModeEnum];
|
|
311
|
+
|
|
312
|
+
|
|
289
313
|
/**
|
|
290
314
|
* Check if a given object implements the DetailedAccount interface.
|
|
291
315
|
*/
|
|
@@ -169,7 +169,7 @@ export interface EventOrderBookEntry {
|
|
|
169
169
|
* @type {number}
|
|
170
170
|
* @memberof EventOrderBookEntry
|
|
171
171
|
*/
|
|
172
|
-
outcome:
|
|
172
|
+
outcome: EventOrderBookEntryOutcomeEnum;
|
|
173
173
|
/**
|
|
174
174
|
*
|
|
175
175
|
* @type {number}
|
|
@@ -187,7 +187,7 @@ export interface EventOrderBookEntry {
|
|
|
187
187
|
* @type {number}
|
|
188
188
|
* @memberof EventOrderBookEntry
|
|
189
189
|
*/
|
|
190
|
-
settlement_type:
|
|
190
|
+
settlement_type: EventOrderBookEntrySettlementTypeEnum;
|
|
191
191
|
/**
|
|
192
192
|
*
|
|
193
193
|
* @type {number}
|
|
@@ -234,6 +234,25 @@ export const EventOrderBookEntryStatusEnum = {
|
|
|
234
234
|
} as const;
|
|
235
235
|
export type EventOrderBookEntryStatusEnum = typeof EventOrderBookEntryStatusEnum[keyof typeof EventOrderBookEntryStatusEnum];
|
|
236
236
|
|
|
237
|
+
/**
|
|
238
|
+
* @export
|
|
239
|
+
*/
|
|
240
|
+
export const EventOrderBookEntryOutcomeEnum = {
|
|
241
|
+
None: 0,
|
|
242
|
+
No: 1,
|
|
243
|
+
Yes: 2
|
|
244
|
+
} as const;
|
|
245
|
+
export type EventOrderBookEntryOutcomeEnum = typeof EventOrderBookEntryOutcomeEnum[keyof typeof EventOrderBookEntryOutcomeEnum];
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @export
|
|
249
|
+
*/
|
|
250
|
+
export const EventOrderBookEntrySettlementTypeEnum = {
|
|
251
|
+
Discrete: 0,
|
|
252
|
+
Continuous: 1
|
|
253
|
+
} as const;
|
|
254
|
+
export type EventOrderBookEntrySettlementTypeEnum = typeof EventOrderBookEntrySettlementTypeEnum[keyof typeof EventOrderBookEntrySettlementTypeEnum];
|
|
255
|
+
|
|
237
256
|
|
|
238
257
|
/**
|
|
239
258
|
* Check if a given object implements the EventOrderBookEntry interface.
|
package/models/GeckoContract.ts
CHANGED
|
@@ -97,6 +97,30 @@ export interface GeckoContract {
|
|
|
97
97
|
* @memberof GeckoContract
|
|
98
98
|
*/
|
|
99
99
|
open_interest_usd: number;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof GeckoContract
|
|
104
|
+
*/
|
|
105
|
+
long_open_interest: number;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof GeckoContract
|
|
110
|
+
*/
|
|
111
|
+
long_open_interest_usd: number;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof GeckoContract
|
|
116
|
+
*/
|
|
117
|
+
short_open_interest: number;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {number}
|
|
121
|
+
* @memberof GeckoContract
|
|
122
|
+
*/
|
|
123
|
+
short_open_interest_usd: number;
|
|
100
124
|
/**
|
|
101
125
|
*
|
|
102
126
|
* @type {number}
|
|
@@ -133,6 +157,12 @@ export interface GeckoContract {
|
|
|
133
157
|
* @memberof GeckoContract
|
|
134
158
|
*/
|
|
135
159
|
funding_rate: number;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {number}
|
|
163
|
+
* @memberof GeckoContract
|
|
164
|
+
*/
|
|
165
|
+
funding_interval_minutes: number;
|
|
136
166
|
/**
|
|
137
167
|
*
|
|
138
168
|
* @type {number}
|
|
@@ -182,12 +212,17 @@ export function instanceOfGeckoContract(value: object): value is GeckoContract {
|
|
|
182
212
|
if (!('product_type' in value) || value['product_type'] === undefined) return false;
|
|
183
213
|
if (!('open_interest' in value) || value['open_interest'] === undefined) return false;
|
|
184
214
|
if (!('open_interest_usd' in value) || value['open_interest_usd'] === undefined) return false;
|
|
215
|
+
if (!('long_open_interest' in value) || value['long_open_interest'] === undefined) return false;
|
|
216
|
+
if (!('long_open_interest_usd' in value) || value['long_open_interest_usd'] === undefined) return false;
|
|
217
|
+
if (!('short_open_interest' in value) || value['short_open_interest'] === undefined) return false;
|
|
218
|
+
if (!('short_open_interest_usd' in value) || value['short_open_interest_usd'] === undefined) return false;
|
|
185
219
|
if (!('index_price' in value) || value['index_price'] === undefined) return false;
|
|
186
220
|
if (!('index_name' in value) || value['index_name'] === undefined) return false;
|
|
187
221
|
if (!('index_currency' in value) || value['index_currency'] === undefined) return false;
|
|
188
222
|
if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
|
|
189
223
|
if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
|
|
190
224
|
if (!('funding_rate' in value) || value['funding_rate'] === undefined) return false;
|
|
225
|
+
if (!('funding_interval_minutes' in value) || value['funding_interval_minutes'] === undefined) return false;
|
|
191
226
|
if (!('next_funding_rate' in value) || value['next_funding_rate'] === undefined) return false;
|
|
192
227
|
if (!('next_funding_rate_timestamp' in value) || value['next_funding_rate_timestamp'] === undefined) return false;
|
|
193
228
|
if (!('contract_type' in value) || value['contract_type'] === undefined) return false;
|
|
@@ -219,12 +254,17 @@ export function GeckoContractFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
219
254
|
'product_type': json['product_type'],
|
|
220
255
|
'open_interest': json['open_interest'],
|
|
221
256
|
'open_interest_usd': json['open_interest_usd'],
|
|
257
|
+
'long_open_interest': json['long_open_interest'],
|
|
258
|
+
'long_open_interest_usd': json['long_open_interest_usd'],
|
|
259
|
+
'short_open_interest': json['short_open_interest'],
|
|
260
|
+
'short_open_interest_usd': json['short_open_interest_usd'],
|
|
222
261
|
'index_price': json['index_price'],
|
|
223
262
|
'index_name': json['index_name'],
|
|
224
263
|
'index_currency': json['index_currency'],
|
|
225
264
|
'start_timestamp': json['start_timestamp'],
|
|
226
265
|
'end_timestamp': json['end_timestamp'],
|
|
227
266
|
'funding_rate': json['funding_rate'],
|
|
267
|
+
'funding_interval_minutes': json['funding_interval_minutes'],
|
|
228
268
|
'next_funding_rate': json['next_funding_rate'],
|
|
229
269
|
'next_funding_rate_timestamp': json['next_funding_rate_timestamp'],
|
|
230
270
|
'contract_type': json['contract_type'],
|
|
@@ -252,12 +292,17 @@ export function GeckoContractToJSON(value?: GeckoContract | null): any {
|
|
|
252
292
|
'product_type': value['product_type'],
|
|
253
293
|
'open_interest': value['open_interest'],
|
|
254
294
|
'open_interest_usd': value['open_interest_usd'],
|
|
295
|
+
'long_open_interest': value['long_open_interest'],
|
|
296
|
+
'long_open_interest_usd': value['long_open_interest_usd'],
|
|
297
|
+
'short_open_interest': value['short_open_interest'],
|
|
298
|
+
'short_open_interest_usd': value['short_open_interest_usd'],
|
|
255
299
|
'index_price': value['index_price'],
|
|
256
300
|
'index_name': value['index_name'],
|
|
257
301
|
'index_currency': value['index_currency'],
|
|
258
302
|
'start_timestamp': value['start_timestamp'],
|
|
259
303
|
'end_timestamp': value['end_timestamp'],
|
|
260
304
|
'funding_rate': value['funding_rate'],
|
|
305
|
+
'funding_interval_minutes': value['funding_interval_minutes'],
|
|
261
306
|
'next_funding_rate': value['next_funding_rate'],
|
|
262
307
|
'next_funding_rate_timestamp': value['next_funding_rate_timestamp'],
|
|
263
308
|
'contract_type': value['contract_type'],
|
package/models/MarketConfig.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface MarketConfig {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof MarketConfig
|
|
26
26
|
*/
|
|
27
|
-
market_margin_mode:
|
|
27
|
+
market_margin_mode: MarketConfigMarketMarginModeEnum;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
@@ -36,7 +36,7 @@ export interface MarketConfig {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof MarketConfig
|
|
38
38
|
*/
|
|
39
|
-
liquidation_mode:
|
|
39
|
+
liquidation_mode: MarketConfigLiquidationModeEnum;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {boolean}
|
|
@@ -69,6 +69,26 @@ export interface MarketConfig {
|
|
|
69
69
|
rfq_enabled: boolean;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const MarketConfigMarketMarginModeEnum = {
|
|
77
|
+
All: 0,
|
|
78
|
+
IsolatedForNonPools: 1
|
|
79
|
+
} as const;
|
|
80
|
+
export type MarketConfigMarketMarginModeEnum = typeof MarketConfigMarketMarginModeEnum[keyof typeof MarketConfigMarketMarginModeEnum];
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export const MarketConfigLiquidationModeEnum = {
|
|
86
|
+
All: 0,
|
|
87
|
+
DisableInsuranceFund: 1
|
|
88
|
+
} as const;
|
|
89
|
+
export type MarketConfigLiquidationModeEnum = typeof MarketConfigLiquidationModeEnum[keyof typeof MarketConfigLiquidationModeEnum];
|
|
90
|
+
|
|
91
|
+
|
|
72
92
|
/**
|
|
73
93
|
* Check if a given object implements the MarketConfig interface.
|
|
74
94
|
*/
|
package/models/OrderBook.ts
CHANGED
|
@@ -162,7 +162,7 @@ export interface OrderBook {
|
|
|
162
162
|
* @type {number}
|
|
163
163
|
* @memberof OrderBook
|
|
164
164
|
*/
|
|
165
|
-
outcome:
|
|
165
|
+
outcome: OrderBookOutcomeEnum;
|
|
166
166
|
/**
|
|
167
167
|
*
|
|
168
168
|
* @type {number}
|
|
@@ -180,7 +180,7 @@ export interface OrderBook {
|
|
|
180
180
|
* @type {number}
|
|
181
181
|
* @memberof OrderBook
|
|
182
182
|
*/
|
|
183
|
-
settlement_type:
|
|
183
|
+
settlement_type: OrderBookSettlementTypeEnum;
|
|
184
184
|
/**
|
|
185
185
|
*
|
|
186
186
|
* @type {number}
|
|
@@ -221,6 +221,25 @@ export const OrderBookStatusEnum = {
|
|
|
221
221
|
} as const;
|
|
222
222
|
export type OrderBookStatusEnum = typeof OrderBookStatusEnum[keyof typeof OrderBookStatusEnum];
|
|
223
223
|
|
|
224
|
+
/**
|
|
225
|
+
* @export
|
|
226
|
+
*/
|
|
227
|
+
export const OrderBookOutcomeEnum = {
|
|
228
|
+
None: 0,
|
|
229
|
+
No: 1,
|
|
230
|
+
Yes: 2
|
|
231
|
+
} as const;
|
|
232
|
+
export type OrderBookOutcomeEnum = typeof OrderBookOutcomeEnum[keyof typeof OrderBookOutcomeEnum];
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @export
|
|
236
|
+
*/
|
|
237
|
+
export const OrderBookSettlementTypeEnum = {
|
|
238
|
+
Discrete: 0,
|
|
239
|
+
Continuous: 1
|
|
240
|
+
} as const;
|
|
241
|
+
export type OrderBookSettlementTypeEnum = typeof OrderBookSettlementTypeEnum[keyof typeof OrderBookSettlementTypeEnum];
|
|
242
|
+
|
|
224
243
|
|
|
225
244
|
/**
|
|
226
245
|
* Check if a given object implements the OrderBook interface.
|
|
@@ -169,7 +169,7 @@ export interface PerpsOrderBookDetail {
|
|
|
169
169
|
* @type {number}
|
|
170
170
|
* @memberof PerpsOrderBookDetail
|
|
171
171
|
*/
|
|
172
|
-
outcome:
|
|
172
|
+
outcome: PerpsOrderBookDetailOutcomeEnum;
|
|
173
173
|
/**
|
|
174
174
|
*
|
|
175
175
|
* @type {number}
|
|
@@ -187,7 +187,7 @@ export interface PerpsOrderBookDetail {
|
|
|
187
187
|
* @type {number}
|
|
188
188
|
* @memberof PerpsOrderBookDetail
|
|
189
189
|
*/
|
|
190
|
-
settlement_type:
|
|
190
|
+
settlement_type: PerpsOrderBookDetailSettlementTypeEnum;
|
|
191
191
|
/**
|
|
192
192
|
*
|
|
193
193
|
* @type {number}
|
|
@@ -372,6 +372,25 @@ export const PerpsOrderBookDetailStatusEnum = {
|
|
|
372
372
|
} as const;
|
|
373
373
|
export type PerpsOrderBookDetailStatusEnum = typeof PerpsOrderBookDetailStatusEnum[keyof typeof PerpsOrderBookDetailStatusEnum];
|
|
374
374
|
|
|
375
|
+
/**
|
|
376
|
+
* @export
|
|
377
|
+
*/
|
|
378
|
+
export const PerpsOrderBookDetailOutcomeEnum = {
|
|
379
|
+
None: 0,
|
|
380
|
+
No: 1,
|
|
381
|
+
Yes: 2
|
|
382
|
+
} as const;
|
|
383
|
+
export type PerpsOrderBookDetailOutcomeEnum = typeof PerpsOrderBookDetailOutcomeEnum[keyof typeof PerpsOrderBookDetailOutcomeEnum];
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @export
|
|
387
|
+
*/
|
|
388
|
+
export const PerpsOrderBookDetailSettlementTypeEnum = {
|
|
389
|
+
Discrete: 0,
|
|
390
|
+
Continuous: 1
|
|
391
|
+
} as const;
|
|
392
|
+
export type PerpsOrderBookDetailSettlementTypeEnum = typeof PerpsOrderBookDetailSettlementTypeEnum[keyof typeof PerpsOrderBookDetailSettlementTypeEnum];
|
|
393
|
+
|
|
375
394
|
|
|
376
395
|
/**
|
|
377
396
|
* Check if a given object implements the PerpsOrderBookDetail interface.
|
package/models/PublicPoolInfo.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface PublicPoolInfo {
|
|
|
43
43
|
* @type {number}
|
|
44
44
|
* @memberof PublicPoolInfo
|
|
45
45
|
*/
|
|
46
|
-
status:
|
|
46
|
+
status: PublicPoolInfoStatusEnum;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {string}
|
|
@@ -100,6 +100,17 @@ export interface PublicPoolInfo {
|
|
|
100
100
|
strategies: Array<Strategy>;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export const PublicPoolInfoStatusEnum = {
|
|
108
|
+
Active: 0,
|
|
109
|
+
Frozen: 1
|
|
110
|
+
} as const;
|
|
111
|
+
export type PublicPoolInfoStatusEnum = typeof PublicPoolInfoStatusEnum[keyof typeof PublicPoolInfoStatusEnum];
|
|
112
|
+
|
|
113
|
+
|
|
103
114
|
/**
|
|
104
115
|
* Check if a given object implements the PublicPoolInfo interface.
|
|
105
116
|
*/
|
|
@@ -67,7 +67,7 @@ export interface PublicPoolMetadata {
|
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof PublicPoolMetadata
|
|
69
69
|
*/
|
|
70
|
-
account_type:
|
|
70
|
+
account_type: PublicPoolMetadataAccountTypeEnum;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {string}
|
|
@@ -97,7 +97,7 @@ export interface PublicPoolMetadata {
|
|
|
97
97
|
* @type {number}
|
|
98
98
|
* @memberof PublicPoolMetadata
|
|
99
99
|
*/
|
|
100
|
-
status:
|
|
100
|
+
status: PublicPoolMetadataStatusEnum;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {string}
|
|
@@ -142,6 +142,30 @@ export interface PublicPoolMetadata {
|
|
|
142
142
|
assets: Array<AccountAsset>;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @export
|
|
148
|
+
*/
|
|
149
|
+
export const PublicPoolMetadataAccountTypeEnum = {
|
|
150
|
+
Master: 0,
|
|
151
|
+
Sub: 1,
|
|
152
|
+
PublicPool: 2,
|
|
153
|
+
InsuranceFund: 3,
|
|
154
|
+
LighterStakingPool: 4,
|
|
155
|
+
TreasurySub: 5
|
|
156
|
+
} as const;
|
|
157
|
+
export type PublicPoolMetadataAccountTypeEnum = typeof PublicPoolMetadataAccountTypeEnum[keyof typeof PublicPoolMetadataAccountTypeEnum];
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @export
|
|
161
|
+
*/
|
|
162
|
+
export const PublicPoolMetadataStatusEnum = {
|
|
163
|
+
Active: 0,
|
|
164
|
+
Frozen: 1
|
|
165
|
+
} as const;
|
|
166
|
+
export type PublicPoolMetadataStatusEnum = typeof PublicPoolMetadataStatusEnum[keyof typeof PublicPoolMetadataStatusEnum];
|
|
167
|
+
|
|
168
|
+
|
|
145
169
|
/**
|
|
146
170
|
* Check if a given object implements the PublicPoolMetadata interface.
|
|
147
171
|
*/
|
package/models/RFQEntry.ts
CHANGED
|
@@ -55,7 +55,7 @@ export interface RFQEntry {
|
|
|
55
55
|
* @type {number}
|
|
56
56
|
* @memberof RFQEntry
|
|
57
57
|
*/
|
|
58
|
-
direction:
|
|
58
|
+
direction: RFQEntryDirectionEnum;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {string}
|
|
@@ -101,6 +101,16 @@ export interface RFQEntry {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
|
|
104
|
+
/**
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export const RFQEntryDirectionEnum = {
|
|
108
|
+
Hidden: -1,
|
|
109
|
+
Sell: 0,
|
|
110
|
+
Buy: 1
|
|
111
|
+
} as const;
|
|
112
|
+
export type RFQEntryDirectionEnum = typeof RFQEntryDirectionEnum[keyof typeof RFQEntryDirectionEnum];
|
|
113
|
+
|
|
104
114
|
/**
|
|
105
115
|
* @export
|
|
106
116
|
*/
|
package/models/RespCreateRFQ.ts
CHANGED
|
@@ -67,7 +67,7 @@ export interface RespCreateRFQ {
|
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof RespCreateRFQ
|
|
69
69
|
*/
|
|
70
|
-
direction:
|
|
70
|
+
direction: RespCreateRFQDirectionEnum;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {string}
|
|
@@ -113,6 +113,16 @@ export interface RespCreateRFQ {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* @export
|
|
118
|
+
*/
|
|
119
|
+
export const RespCreateRFQDirectionEnum = {
|
|
120
|
+
Hidden: -1,
|
|
121
|
+
Sell: 0,
|
|
122
|
+
Buy: 1
|
|
123
|
+
} as const;
|
|
124
|
+
export type RespCreateRFQDirectionEnum = typeof RespCreateRFQDirectionEnum[keyof typeof RespCreateRFQDirectionEnum];
|
|
125
|
+
|
|
116
126
|
/**
|
|
117
127
|
* @export
|
|
118
128
|
*/
|
package/models/RespGetRFQ.ts
CHANGED
|
@@ -67,7 +67,7 @@ export interface RespGetRFQ {
|
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof RespGetRFQ
|
|
69
69
|
*/
|
|
70
|
-
direction:
|
|
70
|
+
direction: RespGetRFQDirectionEnum;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {string}
|
|
@@ -113,6 +113,16 @@ export interface RespGetRFQ {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* @export
|
|
118
|
+
*/
|
|
119
|
+
export const RespGetRFQDirectionEnum = {
|
|
120
|
+
Hidden: -1,
|
|
121
|
+
Sell: 0,
|
|
122
|
+
Buy: 1
|
|
123
|
+
} as const;
|
|
124
|
+
export type RespGetRFQDirectionEnum = typeof RespGetRFQDirectionEnum[keyof typeof RespGetRFQDirectionEnum];
|
|
125
|
+
|
|
116
126
|
/**
|
|
117
127
|
* @export
|
|
118
128
|
*/
|