zklighter-perps 1.0.309 → 1.0.310

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 CHANGED
@@ -36,7 +36,7 @@ export interface Account {
36
36
  * @type {number}
37
37
  * @memberof Account
38
38
  */
39
- account_type: number;
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?: number;
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: number;
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
  */
@@ -67,7 +67,7 @@ export interface AccountStats {
67
67
  * @type {number}
68
68
  * @memberof AccountStats
69
69
  */
70
- account_trading_mode?: number;
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
  */
@@ -30,7 +30,7 @@ export interface AtomicOrderLeg {
30
30
  * @type {number}
31
31
  * @memberof AtomicOrderLeg
32
32
  */
33
- is_ask: number;
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
- * 0 unresolved, 1 NO, 2 YES
113
+ *
114
114
  * @type {number}
115
115
  * @memberof BinaryOptionMarketStats
116
116
  */
117
- outcome: number;
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.
@@ -36,7 +36,7 @@ export interface BoOutcomePnL {
36
36
  * @type {number}
37
37
  * @memberof BoOutcomePnL
38
38
  */
39
- outcome: number;
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
- NUMBER_1: 1,
120
- NUMBER_2: 2
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: number;
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?: number;
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: number;
172
+ outcome: EventOrderBookEntryOutcomeEnum;
173
173
  /**
174
174
  *
175
175
  * @type {number}
@@ -234,6 +234,16 @@ 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
+
237
247
 
238
248
  /**
239
249
  * Check if a given object implements the EventOrderBookEntry interface.
@@ -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'],
@@ -24,7 +24,7 @@ export interface MarketConfig {
24
24
  * @type {number}
25
25
  * @memberof MarketConfig
26
26
  */
27
- market_margin_mode: number;
27
+ market_margin_mode: MarketConfigMarketMarginModeEnum;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -69,6 +69,17 @@ 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
+
72
83
  /**
73
84
  * Check if a given object implements the MarketConfig interface.
74
85
  */
@@ -162,7 +162,7 @@ export interface OrderBook {
162
162
  * @type {number}
163
163
  * @memberof OrderBook
164
164
  */
165
- outcome: number;
165
+ outcome: OrderBookOutcomeEnum;
166
166
  /**
167
167
  *
168
168
  * @type {number}
@@ -221,6 +221,16 @@ 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
+
224
234
 
225
235
  /**
226
236
  * 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: number;
172
+ outcome: PerpsOrderBookDetailOutcomeEnum;
173
173
  /**
174
174
  *
175
175
  * @type {number}
@@ -372,6 +372,16 @@ 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
+
375
385
 
376
386
  /**
377
387
  * Check if a given object implements the PerpsOrderBookDetail interface.
@@ -43,7 +43,7 @@ export interface PublicPoolInfo {
43
43
  * @type {number}
44
44
  * @memberof PublicPoolInfo
45
45
  */
46
- status: number;
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: number;
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: number;
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
  */
@@ -55,7 +55,7 @@ export interface RFQEntry {
55
55
  * @type {number}
56
56
  * @memberof RFQEntry
57
57
  */
58
- direction: number;
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
  */
@@ -67,7 +67,7 @@ export interface RespCreateRFQ {
67
67
  * @type {number}
68
68
  * @memberof RespCreateRFQ
69
69
  */
70
- direction: number;
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
  */
@@ -67,7 +67,7 @@ export interface RespGetRFQ {
67
67
  * @type {number}
68
68
  * @memberof RespGetRFQ
69
69
  */
70
- direction: number;
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
  */
@@ -67,7 +67,7 @@ export interface RespRespondToRFQ {
67
67
  * @type {number}
68
68
  * @memberof RespRespondToRFQ
69
69
  */
70
- direction: number;
70
+ direction: RespRespondToRFQDirectionEnum;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -113,6 +113,16 @@ export interface RespRespondToRFQ {
113
113
  }
114
114
 
115
115
 
116
+ /**
117
+ * @export
118
+ */
119
+ export const RespRespondToRFQDirectionEnum = {
120
+ Hidden: -1,
121
+ Sell: 0,
122
+ Buy: 1
123
+ } as const;
124
+ export type RespRespondToRFQDirectionEnum = typeof RespRespondToRFQDirectionEnum[keyof typeof RespRespondToRFQDirectionEnum];
125
+
116
126
  /**
117
127
  * @export
118
128
  */
@@ -67,7 +67,7 @@ export interface RespUpdateRFQ {
67
67
  * @type {number}
68
68
  * @memberof RespUpdateRFQ
69
69
  */
70
- direction: number;
70
+ direction: RespUpdateRFQDirectionEnum;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -113,6 +113,16 @@ export interface RespUpdateRFQ {
113
113
  }
114
114
 
115
115
 
116
+ /**
117
+ * @export
118
+ */
119
+ export const RespUpdateRFQDirectionEnum = {
120
+ Hidden: -1,
121
+ Sell: 0,
122
+ Buy: 1
123
+ } as const;
124
+ export type RespUpdateRFQDirectionEnum = typeof RespUpdateRFQDirectionEnum[keyof typeof RespUpdateRFQDirectionEnum];
125
+
116
126
  /**
117
127
  * @export
118
128
  */
@@ -162,7 +162,7 @@ export interface SpotOrderBookDetail {
162
162
  * @type {number}
163
163
  * @memberof SpotOrderBookDetail
164
164
  */
165
- outcome: number;
165
+ outcome: SpotOrderBookDetailOutcomeEnum;
166
166
  /**
167
167
  *
168
168
  * @type {number}
@@ -281,6 +281,16 @@ export const SpotOrderBookDetailStatusEnum = {
281
281
  } as const;
282
282
  export type SpotOrderBookDetailStatusEnum = typeof SpotOrderBookDetailStatusEnum[keyof typeof SpotOrderBookDetailStatusEnum];
283
283
 
284
+ /**
285
+ * @export
286
+ */
287
+ export const SpotOrderBookDetailOutcomeEnum = {
288
+ None: 0,
289
+ No: 1,
290
+ Yes: 2
291
+ } as const;
292
+ export type SpotOrderBookDetailOutcomeEnum = typeof SpotOrderBookDetailOutcomeEnum[keyof typeof SpotOrderBookDetailOutcomeEnum];
293
+
284
294
 
285
295
  /**
286
296
  * Check if a given object implements the SpotOrderBookDetail interface.
package/openapi.json CHANGED
@@ -7175,8 +7175,23 @@
7175
7175
  },
7176
7176
  "account_type": {
7177
7177
  "type": "integer",
7178
- "format": "uint8",
7179
- "example": "1"
7178
+ "format": "int32",
7179
+ "enum": [
7180
+ 0,
7181
+ 1,
7182
+ 2,
7183
+ 3,
7184
+ 4,
7185
+ 5
7186
+ ],
7187
+ "x-enum-varnames": [
7188
+ "Master",
7189
+ "Sub",
7190
+ "PublicPool",
7191
+ "InsuranceFund",
7192
+ "LighterStakingPool",
7193
+ "TreasurySub"
7194
+ ]
7180
7195
  },
7181
7196
  "index": {
7182
7197
  "type": "integer",
@@ -7227,8 +7242,15 @@
7227
7242
  },
7228
7243
  "account_trading_mode": {
7229
7244
  "type": "integer",
7230
- "format": "uint8",
7231
- "example": "1"
7245
+ "format": "int32",
7246
+ "enum": [
7247
+ 0,
7248
+ 1
7249
+ ],
7250
+ "x-enum-varnames": [
7251
+ "Simple",
7252
+ "Unified"
7253
+ ]
7232
7254
  }
7233
7255
  },
7234
7256
  "title": "Account",
@@ -7293,7 +7315,6 @@
7293
7315
  },
7294
7316
  "margin_mode": {
7295
7317
  "type": "string",
7296
- "example": "enabled",
7297
7318
  "enum": [
7298
7319
  "enabled",
7299
7320
  "disabled"
@@ -7771,7 +7792,14 @@
7771
7792
  "margin_mode": {
7772
7793
  "type": "integer",
7773
7794
  "format": "int32",
7774
- "example": "1"
7795
+ "enum": [
7796
+ 0,
7797
+ 1
7798
+ ],
7799
+ "x-enum-varnames": [
7800
+ "Cross",
7801
+ "Isolated"
7802
+ ]
7775
7803
  },
7776
7804
  "margin_set_flag": {
7777
7805
  "type": "integer",
@@ -7837,8 +7865,15 @@
7837
7865
  },
7838
7866
  "account_trading_mode": {
7839
7867
  "type": "integer",
7840
- "format": "uint8",
7841
- "example": "1"
7868
+ "format": "int32",
7869
+ "enum": [
7870
+ 0,
7871
+ 1
7872
+ ],
7873
+ "x-enum-varnames": [
7874
+ "Simple",
7875
+ "Unified"
7876
+ ]
7842
7877
  },
7843
7878
  "cross_stats": {
7844
7879
  "$ref": "#/definitions/AccountMarginStats"
@@ -8183,7 +8218,6 @@
8183
8218
  },
8184
8219
  "margin_mode": {
8185
8220
  "type": "string",
8186
- "example": "enabled",
8187
8221
  "enum": [
8188
8222
  "enabled",
8189
8223
  "disabled",
@@ -8348,11 +8382,14 @@
8348
8382
  },
8349
8383
  "is_ask": {
8350
8384
  "type": "integer",
8351
- "format": "int8",
8352
- "example": "1",
8385
+ "format": "int32",
8353
8386
  "enum": [
8354
- "0",
8355
- "1"
8387
+ 0,
8388
+ 1
8389
+ ],
8390
+ "x-enum-varnames": [
8391
+ "Bid",
8392
+ "Ask"
8356
8393
  ]
8357
8394
  },
8358
8395
  "base_amount": {
@@ -8457,7 +8494,6 @@
8457
8494
  },
8458
8495
  "status": {
8459
8496
  "type": "string",
8460
- "example": "active",
8461
8497
  "enum": [
8462
8498
  "inactive",
8463
8499
  "active",
@@ -8468,9 +8504,17 @@
8468
8504
  },
8469
8505
  "outcome": {
8470
8506
  "type": "integer",
8471
- "format": "uint8",
8472
- "example": "1",
8473
- "description": " 0 unresolved, 1 NO, 2 YES"
8507
+ "format": "int32",
8508
+ "enum": [
8509
+ 0,
8510
+ 1,
8511
+ 2
8512
+ ],
8513
+ "x-enum-varnames": [
8514
+ "None",
8515
+ "No",
8516
+ "Yes"
8517
+ ]
8474
8518
  }
8475
8519
  },
8476
8520
  "title": "BinaryOptionMarketStats",
@@ -8636,7 +8680,17 @@
8636
8680
  },
8637
8681
  "outcome": {
8638
8682
  "type": "integer",
8639
- "format": "int16"
8683
+ "format": "int32",
8684
+ "enum": [
8685
+ 0,
8686
+ 1,
8687
+ 2
8688
+ ],
8689
+ "x-enum-varnames": [
8690
+ "None",
8691
+ "No",
8692
+ "Yes"
8693
+ ]
8640
8694
  },
8641
8695
  "end_timestamp": {
8642
8696
  "type": "integer",
@@ -8675,8 +8729,12 @@
8675
8729
  "type": "integer",
8676
8730
  "format": "int32",
8677
8731
  "enum": [
8678
- "1",
8679
- "2"
8732
+ 1,
8733
+ 2
8734
+ ],
8735
+ "x-enum-varnames": [
8736
+ "V1",
8737
+ "V2"
8680
8738
  ]
8681
8739
  },
8682
8740
  "source": {
@@ -9367,8 +9425,23 @@
9367
9425
  },
9368
9426
  "account_type": {
9369
9427
  "type": "integer",
9370
- "format": "uint8",
9371
- "example": "1"
9428
+ "format": "int32",
9429
+ "enum": [
9430
+ 0,
9431
+ 1,
9432
+ 2,
9433
+ 3,
9434
+ 4,
9435
+ 5
9436
+ ],
9437
+ "x-enum-varnames": [
9438
+ "Master",
9439
+ "Sub",
9440
+ "PublicPool",
9441
+ "InsuranceFund",
9442
+ "LighterStakingPool",
9443
+ "TreasurySub"
9444
+ ]
9372
9445
  },
9373
9446
  "index": {
9374
9447
  "type": "integer",
@@ -9419,8 +9492,15 @@
9419
9492
  },
9420
9493
  "account_trading_mode": {
9421
9494
  "type": "integer",
9422
- "format": "uint8",
9423
- "example": "1"
9495
+ "format": "int32",
9496
+ "enum": [
9497
+ 0,
9498
+ 1
9499
+ ],
9500
+ "x-enum-varnames": [
9501
+ "Simple",
9502
+ "Unified"
9503
+ ]
9424
9504
  },
9425
9505
  "account_index": {
9426
9506
  "type": "integer",
@@ -9816,7 +9896,6 @@
9816
9896
  },
9817
9897
  "market_type": {
9818
9898
  "type": "string",
9819
- "example": "perp",
9820
9899
  "enum": [
9821
9900
  "perp",
9822
9901
  "spot",
@@ -9835,7 +9914,6 @@
9835
9914
  },
9836
9915
  "status": {
9837
9916
  "type": "string",
9838
- "example": "active",
9839
9917
  "enum": [
9840
9918
  "inactive",
9841
9919
  "active"
@@ -9914,8 +9992,17 @@
9914
9992
  },
9915
9993
  "outcome": {
9916
9994
  "type": "integer",
9917
- "format": "uint8",
9918
- "example": "1"
9995
+ "format": "int32",
9996
+ "enum": [
9997
+ 0,
9998
+ 1,
9999
+ 2
10000
+ ],
10001
+ "x-enum-varnames": [
10002
+ "None",
10003
+ "No",
10004
+ "Yes"
10005
+ ]
9919
10006
  },
9920
10007
  "operator_account_index": {
9921
10008
  "type": "integer",
@@ -10256,6 +10343,22 @@
10256
10343
  "type": "number",
10257
10344
  "format": "double"
10258
10345
  },
10346
+ "long_open_interest": {
10347
+ "type": "number",
10348
+ "format": "double"
10349
+ },
10350
+ "long_open_interest_usd": {
10351
+ "type": "number",
10352
+ "format": "double"
10353
+ },
10354
+ "short_open_interest": {
10355
+ "type": "number",
10356
+ "format": "double"
10357
+ },
10358
+ "short_open_interest_usd": {
10359
+ "type": "number",
10360
+ "format": "double"
10361
+ },
10259
10362
  "index_price": {
10260
10363
  "type": "number",
10261
10364
  "format": "double"
@@ -10278,6 +10381,10 @@
10278
10381
  "type": "number",
10279
10382
  "format": "double"
10280
10383
  },
10384
+ "funding_interval_minutes": {
10385
+ "type": "integer",
10386
+ "format": "int64"
10387
+ },
10281
10388
  "next_funding_rate": {
10282
10389
  "type": "number",
10283
10390
  "format": "double"
@@ -10312,12 +10419,17 @@
10312
10419
  "product_type",
10313
10420
  "open_interest",
10314
10421
  "open_interest_usd",
10422
+ "long_open_interest",
10423
+ "long_open_interest_usd",
10424
+ "short_open_interest",
10425
+ "short_open_interest_usd",
10315
10426
  "index_price",
10316
10427
  "index_name",
10317
10428
  "index_currency",
10318
10429
  "start_timestamp",
10319
10430
  "end_timestamp",
10320
10431
  "funding_rate",
10432
+ "funding_interval_minutes",
10321
10433
  "next_funding_rate",
10322
10434
  "next_funding_rate_timestamp",
10323
10435
  "contract_type",
@@ -11367,7 +11479,15 @@
11367
11479
  "properties": {
11368
11480
  "market_margin_mode": {
11369
11481
  "type": "integer",
11370
- "format": "int32"
11482
+ "format": "int32",
11483
+ "enum": [
11484
+ 0,
11485
+ 1
11486
+ ],
11487
+ "x-enum-varnames": [
11488
+ "All",
11489
+ "IsolatedForNonPools"
11490
+ ]
11371
11491
  },
11372
11492
  "insurance_fund_account_index": {
11373
11493
  "type": "integer",
@@ -11595,7 +11715,6 @@
11595
11715
  },
11596
11716
  "market_kind": {
11597
11717
  "type": "string",
11598
- "example": "perps",
11599
11718
  "enum": [
11600
11719
  "spot",
11601
11720
  "bo",
@@ -11655,7 +11774,6 @@
11655
11774
  },
11656
11775
  "type": {
11657
11776
  "type": "string",
11658
- "example": "limit",
11659
11777
  "enum": [
11660
11778
  "limit",
11661
11779
  "market",
@@ -11694,7 +11812,6 @@
11694
11812
  },
11695
11813
  "status": {
11696
11814
  "type": "string",
11697
- "example": "open",
11698
11815
  "enum": [
11699
11816
  "in-progress",
11700
11817
  "pending",
@@ -11717,7 +11834,6 @@
11717
11834
  },
11718
11835
  "trigger_status": {
11719
11836
  "type": "string",
11720
- "example": "twap",
11721
11837
  "enum": [
11722
11838
  "na",
11723
11839
  "ready",
@@ -11863,7 +11979,6 @@
11863
11979
  },
11864
11980
  "market_type": {
11865
11981
  "type": "string",
11866
- "example": "perp",
11867
11982
  "enum": [
11868
11983
  "perp",
11869
11984
  "spot",
@@ -11882,7 +11997,6 @@
11882
11997
  },
11883
11998
  "status": {
11884
11999
  "type": "string",
11885
- "example": "active",
11886
12000
  "enum": [
11887
12001
  "inactive",
11888
12002
  "active"
@@ -11961,8 +12075,17 @@
11961
12075
  },
11962
12076
  "outcome": {
11963
12077
  "type": "integer",
11964
- "format": "uint8",
11965
- "example": "1"
12078
+ "format": "int32",
12079
+ "enum": [
12080
+ 0,
12081
+ 1,
12082
+ 2
12083
+ ],
12084
+ "x-enum-varnames": [
12085
+ "None",
12086
+ "No",
12087
+ "Yes"
12088
+ ]
11966
12089
  },
11967
12090
  "operator_account_index": {
11968
12091
  "type": "integer",
@@ -12529,7 +12652,6 @@
12529
12652
  },
12530
12653
  "market_type": {
12531
12654
  "type": "string",
12532
- "example": "perp",
12533
12655
  "enum": [
12534
12656
  "perp",
12535
12657
  "spot",
@@ -12548,7 +12670,6 @@
12548
12670
  },
12549
12671
  "status": {
12550
12672
  "type": "string",
12551
- "example": "active",
12552
12673
  "enum": [
12553
12674
  "inactive",
12554
12675
  "active"
@@ -12628,8 +12749,17 @@
12628
12749
  },
12629
12750
  "outcome": {
12630
12751
  "type": "integer",
12631
- "format": "uint8",
12632
- "example": "1"
12752
+ "format": "int32",
12753
+ "enum": [
12754
+ 0,
12755
+ 1,
12756
+ 2
12757
+ ],
12758
+ "x-enum-varnames": [
12759
+ "None",
12760
+ "No",
12761
+ "Yes"
12762
+ ]
12633
12763
  },
12634
12764
  "operator_account_index": {
12635
12765
  "type": "integer",
@@ -13199,7 +13329,6 @@
13199
13329
  },
13200
13330
  "position_side": {
13201
13331
  "type": "string",
13202
- "example": "long",
13203
13332
  "enum": [
13204
13333
  "long",
13205
13334
  "short"
@@ -13355,8 +13484,15 @@
13355
13484
  "properties": {
13356
13485
  "status": {
13357
13486
  "type": "integer",
13358
- "format": "uint8",
13359
- "example": "0"
13487
+ "format": "int32",
13488
+ "enum": [
13489
+ 0,
13490
+ 1
13491
+ ],
13492
+ "x-enum-varnames": [
13493
+ "Active",
13494
+ "Frozen"
13495
+ ]
13360
13496
  },
13361
13497
  "operator_fee": {
13362
13498
  "type": "string",
@@ -13446,8 +13582,23 @@
13446
13582
  },
13447
13583
  "account_type": {
13448
13584
  "type": "integer",
13449
- "format": "uint8",
13450
- "example": "1"
13585
+ "format": "int32",
13586
+ "enum": [
13587
+ 0,
13588
+ 1,
13589
+ 2,
13590
+ 3,
13591
+ 4,
13592
+ 5
13593
+ ],
13594
+ "x-enum-varnames": [
13595
+ "Master",
13596
+ "Sub",
13597
+ "PublicPool",
13598
+ "InsuranceFund",
13599
+ "LighterStakingPool",
13600
+ "TreasurySub"
13601
+ ]
13451
13602
  },
13452
13603
  "name": {
13453
13604
  "type": "string"
@@ -13468,8 +13619,15 @@
13468
13619
  },
13469
13620
  "status": {
13470
13621
  "type": "integer",
13471
- "format": "uint8",
13472
- "example": "0"
13622
+ "format": "int32",
13623
+ "enum": [
13624
+ 0,
13625
+ 1
13626
+ ],
13627
+ "x-enum-varnames": [
13628
+ "Active",
13629
+ "Frozen"
13630
+ ]
13473
13631
  },
13474
13632
  "operator_fee": {
13475
13633
  "type": "string",
@@ -13596,7 +13754,17 @@
13596
13754
  },
13597
13755
  "direction": {
13598
13756
  "type": "integer",
13599
- "format": "int16"
13757
+ "format": "int32",
13758
+ "enum": [
13759
+ -1,
13760
+ 0,
13761
+ 1
13762
+ ],
13763
+ "x-enum-varnames": [
13764
+ "Hidden",
13765
+ "Sell",
13766
+ "Buy"
13767
+ ]
13600
13768
  },
13601
13769
  "base_amount": {
13602
13770
  "type": "string"
@@ -14233,11 +14401,7 @@
14233
14401
  },
14234
14402
  "direction": {
14235
14403
  "type": "integer",
14236
- "format": "int16",
14237
- "enum": [
14238
- "0",
14239
- "1"
14240
- ]
14404
+ "format": "int16"
14241
14405
  },
14242
14406
  "metadata": {
14243
14407
  "type": "string"
@@ -17207,7 +17371,17 @@
17207
17371
  },
17208
17372
  "direction": {
17209
17373
  "type": "integer",
17210
- "format": "int16"
17374
+ "format": "int32",
17375
+ "enum": [
17376
+ -1,
17377
+ 0,
17378
+ 1
17379
+ ],
17380
+ "x-enum-varnames": [
17381
+ "Hidden",
17382
+ "Sell",
17383
+ "Buy"
17384
+ ]
17211
17385
  },
17212
17386
  "base_amount": {
17213
17387
  "type": "string"
@@ -17803,7 +17977,17 @@
17803
17977
  },
17804
17978
  "direction": {
17805
17979
  "type": "integer",
17806
- "format": "int16"
17980
+ "format": "int32",
17981
+ "enum": [
17982
+ -1,
17983
+ 0,
17984
+ 1
17985
+ ],
17986
+ "x-enum-varnames": [
17987
+ "Hidden",
17988
+ "Sell",
17989
+ "Buy"
17990
+ ]
17807
17991
  },
17808
17992
  "base_amount": {
17809
17993
  "type": "string"
@@ -18221,7 +18405,17 @@
18221
18405
  },
18222
18406
  "direction": {
18223
18407
  "type": "integer",
18224
- "format": "int16"
18408
+ "format": "int32",
18409
+ "enum": [
18410
+ -1,
18411
+ 0,
18412
+ 1
18413
+ ],
18414
+ "x-enum-varnames": [
18415
+ "Hidden",
18416
+ "Sell",
18417
+ "Buy"
18418
+ ]
18225
18419
  },
18226
18420
  "base_amount": {
18227
18421
  "type": "string"
@@ -18553,7 +18747,17 @@
18553
18747
  },
18554
18748
  "direction": {
18555
18749
  "type": "integer",
18556
- "format": "int16"
18750
+ "format": "int32",
18751
+ "enum": [
18752
+ -1,
18753
+ 0,
18754
+ 1
18755
+ ],
18756
+ "x-enum-varnames": [
18757
+ "Hidden",
18758
+ "Sell",
18759
+ "Buy"
18760
+ ]
18557
18761
  },
18558
18762
  "base_amount": {
18559
18763
  "type": "string"
@@ -18979,7 +19183,6 @@
18979
19183
  },
18980
19184
  "market_type": {
18981
19185
  "type": "string",
18982
- "example": "perp",
18983
19186
  "enum": [
18984
19187
  "perp",
18985
19188
  "spot",
@@ -18998,7 +19201,6 @@
18998
19201
  },
18999
19202
  "status": {
19000
19203
  "type": "string",
19001
- "example": "active",
19002
19204
  "enum": [
19003
19205
  "inactive",
19004
19206
  "active"
@@ -19077,8 +19279,17 @@
19077
19279
  },
19078
19280
  "outcome": {
19079
19281
  "type": "integer",
19080
- "format": "uint8",
19081
- "example": "1"
19282
+ "format": "int32",
19283
+ "enum": [
19284
+ 0,
19285
+ 1,
19286
+ 2
19287
+ ],
19288
+ "x-enum-varnames": [
19289
+ "None",
19290
+ "No",
19291
+ "Yes"
19292
+ ]
19082
19293
  },
19083
19294
  "operator_account_index": {
19084
19295
  "type": "integer",
@@ -19803,7 +20014,6 @@
19803
20014
  },
19804
20015
  "logo_extension": {
19805
20016
  "type": "string",
19806
- "example": "svg",
19807
20017
  "enum": [
19808
20018
  "svg",
19809
20019
  "png"
@@ -19914,7 +20124,6 @@
19914
20124
  },
19915
20125
  "type": {
19916
20126
  "type": "string",
19917
- "example": "trade",
19918
20127
  "enum": [
19919
20128
  "trade",
19920
20129
  "liquidation",
@@ -19929,7 +20138,6 @@
19929
20138
  },
19930
20139
  "market_kind": {
19931
20140
  "type": "string",
19932
- "example": "perps",
19933
20141
  "enum": [
19934
20142
  "spot",
19935
20143
  "bo",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.309",
3
+ "version": "1.0.310",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {