zklighter-perps 1.0.52 → 1.0.53
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/Ticker.ts +86 -0
- package/models/index.ts +1 -0
- package/openapi.json +21 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/models/Ticker.ts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
import type { PriceLevel } from './PriceLevel';
|
|
17
|
+
import {
|
|
18
|
+
PriceLevelFromJSON,
|
|
19
|
+
PriceLevelFromJSONTyped,
|
|
20
|
+
PriceLevelToJSON,
|
|
21
|
+
} from './PriceLevel';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Ticker
|
|
27
|
+
*/
|
|
28
|
+
export interface Ticker {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Ticker
|
|
33
|
+
*/
|
|
34
|
+
s: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {PriceLevel}
|
|
38
|
+
* @memberof Ticker
|
|
39
|
+
*/
|
|
40
|
+
a: PriceLevel;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {PriceLevel}
|
|
44
|
+
* @memberof Ticker
|
|
45
|
+
*/
|
|
46
|
+
b: PriceLevel;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the Ticker interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfTicker(value: object): value is Ticker {
|
|
53
|
+
if (!('s' in value) || value['s'] === undefined) return false;
|
|
54
|
+
if (!('a' in value) || value['a'] === undefined) return false;
|
|
55
|
+
if (!('b' in value) || value['b'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function TickerFromJSON(json: any): Ticker {
|
|
60
|
+
return TickerFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function TickerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ticker {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
's': json['s'],
|
|
70
|
+
'a': PriceLevelFromJSON(json['a']),
|
|
71
|
+
'b': PriceLevelFromJSON(json['b']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function TickerToJSON(value?: Ticker | null): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
's': value['s'],
|
|
82
|
+
'a': PriceLevelToJSON(value['a']),
|
|
83
|
+
'b': PriceLevelToJSON(value['b']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
package/models/index.ts
CHANGED
package/openapi.json
CHANGED
|
@@ -4659,6 +4659,27 @@
|
|
|
4659
4659
|
"sub_accounts"
|
|
4660
4660
|
]
|
|
4661
4661
|
},
|
|
4662
|
+
"Ticker": {
|
|
4663
|
+
"type": "object",
|
|
4664
|
+
"properties": {
|
|
4665
|
+
"s": {
|
|
4666
|
+
"type": "string",
|
|
4667
|
+
"example": "ETH"
|
|
4668
|
+
},
|
|
4669
|
+
"a": {
|
|
4670
|
+
"$ref": "#/definitions/PriceLevel"
|
|
4671
|
+
},
|
|
4672
|
+
"b": {
|
|
4673
|
+
"$ref": "#/definitions/PriceLevel"
|
|
4674
|
+
}
|
|
4675
|
+
},
|
|
4676
|
+
"title": "Ticker",
|
|
4677
|
+
"required": [
|
|
4678
|
+
"s",
|
|
4679
|
+
"a",
|
|
4680
|
+
"b"
|
|
4681
|
+
]
|
|
4682
|
+
},
|
|
4662
4683
|
"Trade": {
|
|
4663
4684
|
"type": "object",
|
|
4664
4685
|
"properties": {
|