zklighter-perps 1.0.327 → 1.0.329
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/.openapi-generator/FILES +1 -0
- package/models/BinaryOptionMarketStats.ts +4 -2
- package/models/EventOrderBookEntry.ts +5 -2
- package/models/OrderBook.ts +5 -2
- package/models/PerpsOrderBookDetail.ts +5 -2
- package/models/SpotOrderBookDetail.ts +5 -2
- package/models/UpDownPrice.ts +106 -0
- package/models/index.ts +1 -0
- package/openapi.json +61 -10
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -104,7 +104,7 @@ export interface BinaryOptionMarketStats {
|
|
|
104
104
|
*/
|
|
105
105
|
open_interest: string;
|
|
106
106
|
/**
|
|
107
|
-
* inactive
|
|
107
|
+
* inactive before the trading window opens, waiting-for-settlement once it closes
|
|
108
108
|
* @type {string}
|
|
109
109
|
* @memberof BinaryOptionMarketStats
|
|
110
110
|
*/
|
|
@@ -124,7 +124,9 @@ export interface BinaryOptionMarketStats {
|
|
|
124
124
|
export const BinaryOptionMarketStatsStatusEnum = {
|
|
125
125
|
Inactive: 'inactive',
|
|
126
126
|
Active: 'active',
|
|
127
|
-
|
|
127
|
+
WaitingForSettlement: 'waiting-for-settlement',
|
|
128
|
+
InSettlement: 'in-settlement',
|
|
129
|
+
Settled: 'settled'
|
|
128
130
|
} as const;
|
|
129
131
|
export type BinaryOptionMarketStatsStatusEnum = typeof BinaryOptionMarketStatsStatusEnum[keyof typeof BinaryOptionMarketStatsStatusEnum];
|
|
130
132
|
|
|
@@ -63,7 +63,7 @@ export interface EventOrderBookEntry {
|
|
|
63
63
|
*/
|
|
64
64
|
quote_asset_id: number;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* waiting-for-settlement and settled are binary options only
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof EventOrderBookEntry
|
|
69
69
|
*/
|
|
@@ -242,7 +242,10 @@ export type EventOrderBookEntryMarketTypeEnum = typeof EventOrderBookEntryMarket
|
|
|
242
242
|
*/
|
|
243
243
|
export const EventOrderBookEntryStatusEnum = {
|
|
244
244
|
Inactive: 'inactive',
|
|
245
|
-
Active: 'active'
|
|
245
|
+
Active: 'active',
|
|
246
|
+
InSettlement: 'in-settlement',
|
|
247
|
+
WaitingForSettlement: 'waiting-for-settlement',
|
|
248
|
+
Settled: 'settled'
|
|
246
249
|
} as const;
|
|
247
250
|
export type EventOrderBookEntryStatusEnum = typeof EventOrderBookEntryStatusEnum[keyof typeof EventOrderBookEntryStatusEnum];
|
|
248
251
|
|
package/models/OrderBook.ts
CHANGED
|
@@ -56,7 +56,7 @@ export interface OrderBook {
|
|
|
56
56
|
*/
|
|
57
57
|
quote_asset_id: number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* waiting-for-settlement and settled are binary options only
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof OrderBook
|
|
62
62
|
*/
|
|
@@ -217,7 +217,10 @@ export type OrderBookMarketTypeEnum = typeof OrderBookMarketTypeEnum[keyof typeo
|
|
|
217
217
|
*/
|
|
218
218
|
export const OrderBookStatusEnum = {
|
|
219
219
|
Inactive: 'inactive',
|
|
220
|
-
Active: 'active'
|
|
220
|
+
Active: 'active',
|
|
221
|
+
InSettlement: 'in-settlement',
|
|
222
|
+
WaitingForSettlement: 'waiting-for-settlement',
|
|
223
|
+
Settled: 'settled'
|
|
221
224
|
} as const;
|
|
222
225
|
export type OrderBookStatusEnum = typeof OrderBookStatusEnum[keyof typeof OrderBookStatusEnum];
|
|
223
226
|
|
|
@@ -63,7 +63,7 @@ export interface PerpsOrderBookDetail {
|
|
|
63
63
|
*/
|
|
64
64
|
quote_asset_id: number;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* waiting-for-settlement and settled are binary options only
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof PerpsOrderBookDetail
|
|
69
69
|
*/
|
|
@@ -368,7 +368,10 @@ export type PerpsOrderBookDetailMarketTypeEnum = typeof PerpsOrderBookDetailMark
|
|
|
368
368
|
*/
|
|
369
369
|
export const PerpsOrderBookDetailStatusEnum = {
|
|
370
370
|
Inactive: 'inactive',
|
|
371
|
-
Active: 'active'
|
|
371
|
+
Active: 'active',
|
|
372
|
+
InSettlement: 'in-settlement',
|
|
373
|
+
WaitingForSettlement: 'waiting-for-settlement',
|
|
374
|
+
Settled: 'settled'
|
|
372
375
|
} as const;
|
|
373
376
|
export type PerpsOrderBookDetailStatusEnum = typeof PerpsOrderBookDetailStatusEnum[keyof typeof PerpsOrderBookDetailStatusEnum];
|
|
374
377
|
|
|
@@ -56,7 +56,7 @@ export interface SpotOrderBookDetail {
|
|
|
56
56
|
*/
|
|
57
57
|
quote_asset_id: number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* waiting-for-settlement and settled are binary options only
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof SpotOrderBookDetail
|
|
62
62
|
*/
|
|
@@ -277,7 +277,10 @@ export type SpotOrderBookDetailMarketTypeEnum = typeof SpotOrderBookDetailMarket
|
|
|
277
277
|
*/
|
|
278
278
|
export const SpotOrderBookDetailStatusEnum = {
|
|
279
279
|
Inactive: 'inactive',
|
|
280
|
-
Active: 'active'
|
|
280
|
+
Active: 'active',
|
|
281
|
+
InSettlement: 'in-settlement',
|
|
282
|
+
WaitingForSettlement: 'waiting-for-settlement',
|
|
283
|
+
Settled: 'settled'
|
|
281
284
|
} as const;
|
|
282
285
|
export type SpotOrderBookDetailStatusEnum = typeof SpotOrderBookDetailStatusEnum[keyof typeof SpotOrderBookDetailStatusEnum];
|
|
283
286
|
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpDownPrice
|
|
20
|
+
*/
|
|
21
|
+
export interface UpDownPrice {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpDownPrice
|
|
26
|
+
*/
|
|
27
|
+
symbol: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpDownPrice
|
|
32
|
+
*/
|
|
33
|
+
duration: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof UpDownPrice
|
|
38
|
+
*/
|
|
39
|
+
timestamp: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UpDownPrice
|
|
44
|
+
*/
|
|
45
|
+
price: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UpDownPrice
|
|
50
|
+
*/
|
|
51
|
+
provider: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof UpDownPrice
|
|
56
|
+
*/
|
|
57
|
+
feed_id: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the UpDownPrice interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfUpDownPrice(value: object): value is UpDownPrice {
|
|
64
|
+
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
65
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
66
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
67
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
68
|
+
if (!('provider' in value) || value['provider'] === undefined) return false;
|
|
69
|
+
if (!('feed_id' in value) || value['feed_id'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function UpDownPriceFromJSON(json: any): UpDownPrice {
|
|
74
|
+
return UpDownPriceFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function UpDownPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpDownPrice {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'symbol': json['symbol'],
|
|
84
|
+
'duration': json['duration'],
|
|
85
|
+
'timestamp': json['timestamp'],
|
|
86
|
+
'price': json['price'],
|
|
87
|
+
'provider': json['provider'],
|
|
88
|
+
'feed_id': json['feed_id'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function UpDownPriceToJSON(value?: UpDownPrice | null): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'symbol': value['symbol'],
|
|
99
|
+
'duration': value['duration'],
|
|
100
|
+
'timestamp': value['timestamp'],
|
|
101
|
+
'price': value['price'],
|
|
102
|
+
'provider': value['provider'],
|
|
103
|
+
'feed_id': value['feed_id'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
package/models/index.ts
CHANGED
|
@@ -321,6 +321,7 @@ export * from './TxHash';
|
|
|
321
321
|
export * from './TxHashes';
|
|
322
322
|
export * from './Txs';
|
|
323
323
|
export * from './UpDownCandle';
|
|
324
|
+
export * from './UpDownPrice';
|
|
324
325
|
export * from './UpcomingEarning';
|
|
325
326
|
export * from './UpcomingEarnings';
|
|
326
327
|
export * from './UserReferrals';
|
package/openapi.json
CHANGED
|
@@ -8690,9 +8690,11 @@
|
|
|
8690
8690
|
"enum": [
|
|
8691
8691
|
"inactive",
|
|
8692
8692
|
"active",
|
|
8693
|
-
"
|
|
8693
|
+
"waiting-for-settlement",
|
|
8694
|
+
"in-settlement",
|
|
8695
|
+
"settled"
|
|
8694
8696
|
],
|
|
8695
|
-
"description": " inactive
|
|
8697
|
+
"description": " inactive before the trading window opens, waiting-for-settlement once it closes"
|
|
8696
8698
|
},
|
|
8697
8699
|
"outcome": {
|
|
8698
8700
|
"type": "integer",
|
|
@@ -10108,8 +10110,12 @@
|
|
|
10108
10110
|
"type": "string",
|
|
10109
10111
|
"enum": [
|
|
10110
10112
|
"inactive",
|
|
10111
|
-
"active"
|
|
10112
|
-
|
|
10113
|
+
"active",
|
|
10114
|
+
"in-settlement",
|
|
10115
|
+
"waiting-for-settlement",
|
|
10116
|
+
"settled"
|
|
10117
|
+
],
|
|
10118
|
+
"description": " waiting-for-settlement and settled are binary options only"
|
|
10113
10119
|
},
|
|
10114
10120
|
"taker_fee": {
|
|
10115
10121
|
"type": "string",
|
|
@@ -12243,8 +12249,12 @@
|
|
|
12243
12249
|
"type": "string",
|
|
12244
12250
|
"enum": [
|
|
12245
12251
|
"inactive",
|
|
12246
|
-
"active"
|
|
12247
|
-
|
|
12252
|
+
"active",
|
|
12253
|
+
"in-settlement",
|
|
12254
|
+
"waiting-for-settlement",
|
|
12255
|
+
"settled"
|
|
12256
|
+
],
|
|
12257
|
+
"description": " waiting-for-settlement and settled are binary options only"
|
|
12248
12258
|
},
|
|
12249
12259
|
"taker_fee": {
|
|
12250
12260
|
"type": "string",
|
|
@@ -12923,8 +12933,12 @@
|
|
|
12923
12933
|
"type": "string",
|
|
12924
12934
|
"enum": [
|
|
12925
12935
|
"inactive",
|
|
12926
|
-
"active"
|
|
12927
|
-
|
|
12936
|
+
"active",
|
|
12937
|
+
"in-settlement",
|
|
12938
|
+
"waiting-for-settlement",
|
|
12939
|
+
"settled"
|
|
12940
|
+
],
|
|
12941
|
+
"description": " waiting-for-settlement and settled are binary options only"
|
|
12928
12942
|
},
|
|
12929
12943
|
"taker_fee": {
|
|
12930
12944
|
"type": "string",
|
|
@@ -19805,8 +19819,12 @@
|
|
|
19805
19819
|
"type": "string",
|
|
19806
19820
|
"enum": [
|
|
19807
19821
|
"inactive",
|
|
19808
|
-
"active"
|
|
19809
|
-
|
|
19822
|
+
"active",
|
|
19823
|
+
"in-settlement",
|
|
19824
|
+
"waiting-for-settlement",
|
|
19825
|
+
"settled"
|
|
19826
|
+
],
|
|
19827
|
+
"description": " waiting-for-settlement and settled are binary options only"
|
|
19810
19828
|
},
|
|
19811
19829
|
"taker_fee": {
|
|
19812
19830
|
"type": "string",
|
|
@@ -21847,6 +21865,39 @@
|
|
|
21847
21865
|
"feed_id"
|
|
21848
21866
|
]
|
|
21849
21867
|
},
|
|
21868
|
+
"UpDownPrice": {
|
|
21869
|
+
"type": "object",
|
|
21870
|
+
"properties": {
|
|
21871
|
+
"symbol": {
|
|
21872
|
+
"type": "string"
|
|
21873
|
+
},
|
|
21874
|
+
"duration": {
|
|
21875
|
+
"type": "string"
|
|
21876
|
+
},
|
|
21877
|
+
"timestamp": {
|
|
21878
|
+
"type": "integer",
|
|
21879
|
+
"format": "int64"
|
|
21880
|
+
},
|
|
21881
|
+
"price": {
|
|
21882
|
+
"type": "string"
|
|
21883
|
+
},
|
|
21884
|
+
"provider": {
|
|
21885
|
+
"type": "string"
|
|
21886
|
+
},
|
|
21887
|
+
"feed_id": {
|
|
21888
|
+
"type": "string"
|
|
21889
|
+
}
|
|
21890
|
+
},
|
|
21891
|
+
"title": "UpDownPrice",
|
|
21892
|
+
"required": [
|
|
21893
|
+
"symbol",
|
|
21894
|
+
"duration",
|
|
21895
|
+
"timestamp",
|
|
21896
|
+
"price",
|
|
21897
|
+
"provider",
|
|
21898
|
+
"feed_id"
|
|
21899
|
+
]
|
|
21900
|
+
},
|
|
21850
21901
|
"UpcomingEarning": {
|
|
21851
21902
|
"type": "object",
|
|
21852
21903
|
"properties": {
|