zklighter-perps 1.0.328 → 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/models/UpDownPrice.ts +24 -24
- package/openapi.json +12 -12
- package/package.json +1 -1
package/models/UpDownPrice.ts
CHANGED
|
@@ -24,49 +24,49 @@ export interface UpDownPrice {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UpDownPrice
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
symbol: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpDownPrice
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
duration: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof UpDownPrice
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
timestamp: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof UpDownPrice
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
price: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof UpDownPrice
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
provider: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof UpDownPrice
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
feed_id: string;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* Check if a given object implements the UpDownPrice interface.
|
|
62
62
|
*/
|
|
63
63
|
export function instanceOfUpDownPrice(value: object): value is UpDownPrice {
|
|
64
|
-
if (!('
|
|
65
|
-
if (!('
|
|
66
|
-
if (!('
|
|
67
|
-
if (!('
|
|
68
|
-
if (!('
|
|
69
|
-
if (!('
|
|
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
70
|
return true;
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -80,12 +80,12 @@ export function UpDownPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
80
80
|
}
|
|
81
81
|
return {
|
|
82
82
|
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
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
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -95,12 +95,12 @@ export function UpDownPriceToJSON(value?: UpDownPrice | null): any {
|
|
|
95
95
|
}
|
|
96
96
|
return {
|
|
97
97
|
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
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
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
package/openapi.json
CHANGED
|
@@ -21868,34 +21868,34 @@
|
|
|
21868
21868
|
"UpDownPrice": {
|
|
21869
21869
|
"type": "object",
|
|
21870
21870
|
"properties": {
|
|
21871
|
-
"
|
|
21871
|
+
"symbol": {
|
|
21872
21872
|
"type": "string"
|
|
21873
21873
|
},
|
|
21874
|
-
"
|
|
21874
|
+
"duration": {
|
|
21875
21875
|
"type": "string"
|
|
21876
21876
|
},
|
|
21877
|
-
"
|
|
21877
|
+
"timestamp": {
|
|
21878
21878
|
"type": "integer",
|
|
21879
21879
|
"format": "int64"
|
|
21880
21880
|
},
|
|
21881
|
-
"
|
|
21881
|
+
"price": {
|
|
21882
21882
|
"type": "string"
|
|
21883
21883
|
},
|
|
21884
|
-
"
|
|
21884
|
+
"provider": {
|
|
21885
21885
|
"type": "string"
|
|
21886
21886
|
},
|
|
21887
|
-
"
|
|
21887
|
+
"feed_id": {
|
|
21888
21888
|
"type": "string"
|
|
21889
21889
|
}
|
|
21890
21890
|
},
|
|
21891
21891
|
"title": "UpDownPrice",
|
|
21892
21892
|
"required": [
|
|
21893
|
-
"
|
|
21894
|
-
"
|
|
21895
|
-
"
|
|
21896
|
-
"
|
|
21897
|
-
"
|
|
21898
|
-
"
|
|
21893
|
+
"symbol",
|
|
21894
|
+
"duration",
|
|
21895
|
+
"timestamp",
|
|
21896
|
+
"price",
|
|
21897
|
+
"provider",
|
|
21898
|
+
"feed_id"
|
|
21899
21899
|
]
|
|
21900
21900
|
},
|
|
21901
21901
|
"UpcomingEarning": {
|