zklighter-perps 1.0.310 → 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/EventOrderBookEntry.ts +10 -1
- package/models/MarketConfig.ts +10 -1
- package/models/OrderBook.ts +10 -1
- package/models/PerpsOrderBookDetail.ts +10 -1
- package/models/SpotOrderBookDetail.ts +10 -1
- package/openapi.json +45 -9
- package/package.json +1 -1
|
@@ -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}
|
|
@@ -244,6 +244,15 @@ export const EventOrderBookEntryOutcomeEnum = {
|
|
|
244
244
|
} as const;
|
|
245
245
|
export type EventOrderBookEntryOutcomeEnum = typeof EventOrderBookEntryOutcomeEnum[keyof typeof EventOrderBookEntryOutcomeEnum];
|
|
246
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
|
+
|
|
247
256
|
|
|
248
257
|
/**
|
|
249
258
|
* Check if a given object implements the EventOrderBookEntry interface.
|
package/models/MarketConfig.ts
CHANGED
|
@@ -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}
|
|
@@ -79,6 +79,15 @@ export const MarketConfigMarketMarginModeEnum = {
|
|
|
79
79
|
} as const;
|
|
80
80
|
export type MarketConfigMarketMarginModeEnum = typeof MarketConfigMarketMarginModeEnum[keyof typeof MarketConfigMarketMarginModeEnum];
|
|
81
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
|
+
|
|
82
91
|
|
|
83
92
|
/**
|
|
84
93
|
* Check if a given object implements the MarketConfig interface.
|
package/models/OrderBook.ts
CHANGED
|
@@ -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}
|
|
@@ -231,6 +231,15 @@ export const OrderBookOutcomeEnum = {
|
|
|
231
231
|
} as const;
|
|
232
232
|
export type OrderBookOutcomeEnum = typeof OrderBookOutcomeEnum[keyof typeof OrderBookOutcomeEnum];
|
|
233
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
|
+
|
|
234
243
|
|
|
235
244
|
/**
|
|
236
245
|
* Check if a given object implements the OrderBook interface.
|
|
@@ -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}
|
|
@@ -382,6 +382,15 @@ export const PerpsOrderBookDetailOutcomeEnum = {
|
|
|
382
382
|
} as const;
|
|
383
383
|
export type PerpsOrderBookDetailOutcomeEnum = typeof PerpsOrderBookDetailOutcomeEnum[keyof typeof PerpsOrderBookDetailOutcomeEnum];
|
|
384
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
|
+
|
|
385
394
|
|
|
386
395
|
/**
|
|
387
396
|
* Check if a given object implements the PerpsOrderBookDetail interface.
|
|
@@ -180,7 +180,7 @@ export interface SpotOrderBookDetail {
|
|
|
180
180
|
* @type {number}
|
|
181
181
|
* @memberof SpotOrderBookDetail
|
|
182
182
|
*/
|
|
183
|
-
settlement_type:
|
|
183
|
+
settlement_type: SpotOrderBookDetailSettlementTypeEnum;
|
|
184
184
|
/**
|
|
185
185
|
*
|
|
186
186
|
* @type {number}
|
|
@@ -291,6 +291,15 @@ export const SpotOrderBookDetailOutcomeEnum = {
|
|
|
291
291
|
} as const;
|
|
292
292
|
export type SpotOrderBookDetailOutcomeEnum = typeof SpotOrderBookDetailOutcomeEnum[keyof typeof SpotOrderBookDetailOutcomeEnum];
|
|
293
293
|
|
|
294
|
+
/**
|
|
295
|
+
* @export
|
|
296
|
+
*/
|
|
297
|
+
export const SpotOrderBookDetailSettlementTypeEnum = {
|
|
298
|
+
Discrete: 0,
|
|
299
|
+
Continuous: 1
|
|
300
|
+
} as const;
|
|
301
|
+
export type SpotOrderBookDetailSettlementTypeEnum = typeof SpotOrderBookDetailSettlementTypeEnum[keyof typeof SpotOrderBookDetailSettlementTypeEnum];
|
|
302
|
+
|
|
294
303
|
|
|
295
304
|
/**
|
|
296
305
|
* Check if a given object implements the SpotOrderBookDetail interface.
|
package/openapi.json
CHANGED
|
@@ -10016,8 +10016,15 @@
|
|
|
10016
10016
|
},
|
|
10017
10017
|
"settlement_type": {
|
|
10018
10018
|
"type": "integer",
|
|
10019
|
-
"format": "
|
|
10020
|
-
"
|
|
10019
|
+
"format": "int32",
|
|
10020
|
+
"enum": [
|
|
10021
|
+
0,
|
|
10022
|
+
1
|
|
10023
|
+
],
|
|
10024
|
+
"x-enum-varnames": [
|
|
10025
|
+
"Discrete",
|
|
10026
|
+
"Continuous"
|
|
10027
|
+
]
|
|
10021
10028
|
},
|
|
10022
10029
|
"settlement_price": {
|
|
10023
10030
|
"type": "integer",
|
|
@@ -11495,7 +11502,15 @@
|
|
|
11495
11502
|
},
|
|
11496
11503
|
"liquidation_mode": {
|
|
11497
11504
|
"type": "integer",
|
|
11498
|
-
"format": "int32"
|
|
11505
|
+
"format": "int32",
|
|
11506
|
+
"enum": [
|
|
11507
|
+
0,
|
|
11508
|
+
1
|
|
11509
|
+
],
|
|
11510
|
+
"x-enum-varnames": [
|
|
11511
|
+
"All",
|
|
11512
|
+
"DisableInsuranceFund"
|
|
11513
|
+
]
|
|
11499
11514
|
},
|
|
11500
11515
|
"force_reduce_only": {
|
|
11501
11516
|
"type": "boolean",
|
|
@@ -12099,8 +12114,15 @@
|
|
|
12099
12114
|
},
|
|
12100
12115
|
"settlement_type": {
|
|
12101
12116
|
"type": "integer",
|
|
12102
|
-
"format": "
|
|
12103
|
-
"
|
|
12117
|
+
"format": "int32",
|
|
12118
|
+
"enum": [
|
|
12119
|
+
0,
|
|
12120
|
+
1
|
|
12121
|
+
],
|
|
12122
|
+
"x-enum-varnames": [
|
|
12123
|
+
"Discrete",
|
|
12124
|
+
"Continuous"
|
|
12125
|
+
]
|
|
12104
12126
|
},
|
|
12105
12127
|
"settlement_price": {
|
|
12106
12128
|
"type": "integer",
|
|
@@ -12773,8 +12795,15 @@
|
|
|
12773
12795
|
},
|
|
12774
12796
|
"settlement_type": {
|
|
12775
12797
|
"type": "integer",
|
|
12776
|
-
"format": "
|
|
12777
|
-
"
|
|
12798
|
+
"format": "int32",
|
|
12799
|
+
"enum": [
|
|
12800
|
+
0,
|
|
12801
|
+
1
|
|
12802
|
+
],
|
|
12803
|
+
"x-enum-varnames": [
|
|
12804
|
+
"Discrete",
|
|
12805
|
+
"Continuous"
|
|
12806
|
+
]
|
|
12778
12807
|
},
|
|
12779
12808
|
"settlement_price": {
|
|
12780
12809
|
"type": "integer",
|
|
@@ -19303,8 +19332,15 @@
|
|
|
19303
19332
|
},
|
|
19304
19333
|
"settlement_type": {
|
|
19305
19334
|
"type": "integer",
|
|
19306
|
-
"format": "
|
|
19307
|
-
"
|
|
19335
|
+
"format": "int32",
|
|
19336
|
+
"enum": [
|
|
19337
|
+
0,
|
|
19338
|
+
1
|
|
19339
|
+
],
|
|
19340
|
+
"x-enum-varnames": [
|
|
19341
|
+
"Discrete",
|
|
19342
|
+
"Continuous"
|
|
19343
|
+
]
|
|
19308
19344
|
},
|
|
19309
19345
|
"settlement_price": {
|
|
19310
19346
|
"type": "integer",
|