zklighter-perps 1.0.84 → 1.0.85
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/AccountMarketStats.ts +27 -0
- package/models/AccountTradeStats.ts +70 -0
- package/models/index.ts +1 -0
- package/openapi.json +39 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -43,6 +43,24 @@ export interface AccountMarketStats {
|
|
|
43
43
|
* @memberof AccountMarketStats
|
|
44
44
|
*/
|
|
45
45
|
daily_quote_token_volume: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AccountMarketStats
|
|
50
|
+
*/
|
|
51
|
+
total_trades_count: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof AccountMarketStats
|
|
56
|
+
*/
|
|
57
|
+
total_base_token_volume: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof AccountMarketStats
|
|
62
|
+
*/
|
|
63
|
+
total_quote_token_volume: number;
|
|
46
64
|
}
|
|
47
65
|
|
|
48
66
|
/**
|
|
@@ -53,6 +71,9 @@ export function instanceOfAccountMarketStats(value: object): value is AccountMar
|
|
|
53
71
|
if (!('daily_trades_count' in value) || value['daily_trades_count'] === undefined) return false;
|
|
54
72
|
if (!('daily_base_token_volume' in value) || value['daily_base_token_volume'] === undefined) return false;
|
|
55
73
|
if (!('daily_quote_token_volume' in value) || value['daily_quote_token_volume'] === undefined) return false;
|
|
74
|
+
if (!('total_trades_count' in value) || value['total_trades_count'] === undefined) return false;
|
|
75
|
+
if (!('total_base_token_volume' in value) || value['total_base_token_volume'] === undefined) return false;
|
|
76
|
+
if (!('total_quote_token_volume' in value) || value['total_quote_token_volume'] === undefined) return false;
|
|
56
77
|
return true;
|
|
57
78
|
}
|
|
58
79
|
|
|
@@ -70,6 +91,9 @@ export function AccountMarketStatsFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
70
91
|
'daily_trades_count': json['daily_trades_count'],
|
|
71
92
|
'daily_base_token_volume': json['daily_base_token_volume'],
|
|
72
93
|
'daily_quote_token_volume': json['daily_quote_token_volume'],
|
|
94
|
+
'total_trades_count': json['total_trades_count'],
|
|
95
|
+
'total_base_token_volume': json['total_base_token_volume'],
|
|
96
|
+
'total_quote_token_volume': json['total_quote_token_volume'],
|
|
73
97
|
};
|
|
74
98
|
}
|
|
75
99
|
|
|
@@ -83,6 +107,9 @@ export function AccountMarketStatsToJSON(value?: AccountMarketStats | null): any
|
|
|
83
107
|
'daily_trades_count': value['daily_trades_count'],
|
|
84
108
|
'daily_base_token_volume': value['daily_base_token_volume'],
|
|
85
109
|
'daily_quote_token_volume': value['daily_quote_token_volume'],
|
|
110
|
+
'total_trades_count': value['total_trades_count'],
|
|
111
|
+
'total_base_token_volume': value['total_base_token_volume'],
|
|
112
|
+
'total_quote_token_volume': value['total_quote_token_volume'],
|
|
86
113
|
};
|
|
87
114
|
}
|
|
88
115
|
|
|
@@ -0,0 +1,70 @@
|
|
|
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 AccountTradeStats
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountTradeStats {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AccountTradeStats
|
|
26
|
+
*/
|
|
27
|
+
total_trades_count: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof AccountTradeStats
|
|
32
|
+
*/
|
|
33
|
+
total_volume: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AccountTradeStats interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAccountTradeStats(value: object): value is AccountTradeStats {
|
|
40
|
+
if (!('total_trades_count' in value) || value['total_trades_count'] === undefined) return false;
|
|
41
|
+
if (!('total_volume' in value) || value['total_volume'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AccountTradeStatsFromJSON(json: any): AccountTradeStats {
|
|
46
|
+
return AccountTradeStatsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AccountTradeStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountTradeStats {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'total_trades_count': json['total_trades_count'],
|
|
56
|
+
'total_volume': json['total_volume'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AccountTradeStatsToJSON(value?: AccountTradeStats | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'total_trades_count': value['total_trades_count'],
|
|
67
|
+
'total_volume': value['total_volume'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
package/models/index.ts
CHANGED
package/openapi.json
CHANGED
|
@@ -2276,6 +2276,21 @@
|
|
|
2276
2276
|
"type": "number",
|
|
2277
2277
|
"format": "double",
|
|
2278
2278
|
"example": "93566.25"
|
|
2279
|
+
},
|
|
2280
|
+
"total_trades_count": {
|
|
2281
|
+
"type": "integer",
|
|
2282
|
+
"format": "int64",
|
|
2283
|
+
"example": "68"
|
|
2284
|
+
},
|
|
2285
|
+
"total_base_token_volume": {
|
|
2286
|
+
"type": "number",
|
|
2287
|
+
"format": "double",
|
|
2288
|
+
"example": "235.25"
|
|
2289
|
+
},
|
|
2290
|
+
"total_quote_token_volume": {
|
|
2291
|
+
"type": "number",
|
|
2292
|
+
"format": "double",
|
|
2293
|
+
"example": "93566.25"
|
|
2279
2294
|
}
|
|
2280
2295
|
},
|
|
2281
2296
|
"title": "AccountMarketStats",
|
|
@@ -2283,7 +2298,10 @@
|
|
|
2283
2298
|
"market_id",
|
|
2284
2299
|
"daily_trades_count",
|
|
2285
2300
|
"daily_base_token_volume",
|
|
2286
|
-
"daily_quote_token_volume"
|
|
2301
|
+
"daily_quote_token_volume",
|
|
2302
|
+
"total_trades_count",
|
|
2303
|
+
"total_base_token_volume",
|
|
2304
|
+
"total_quote_token_volume"
|
|
2287
2305
|
]
|
|
2288
2306
|
},
|
|
2289
2307
|
"AccountMetadata": {
|
|
@@ -2436,6 +2454,26 @@
|
|
|
2436
2454
|
"buying_power"
|
|
2437
2455
|
]
|
|
2438
2456
|
},
|
|
2457
|
+
"AccountTradeStats": {
|
|
2458
|
+
"type": "object",
|
|
2459
|
+
"properties": {
|
|
2460
|
+
"total_trades_count": {
|
|
2461
|
+
"type": "integer",
|
|
2462
|
+
"format": "int64",
|
|
2463
|
+
"example": "68"
|
|
2464
|
+
},
|
|
2465
|
+
"total_volume": {
|
|
2466
|
+
"type": "number",
|
|
2467
|
+
"format": "double",
|
|
2468
|
+
"example": "235.25"
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
"title": "AccountTradeStats",
|
|
2472
|
+
"required": [
|
|
2473
|
+
"total_trades_count",
|
|
2474
|
+
"total_volume"
|
|
2475
|
+
]
|
|
2476
|
+
},
|
|
2439
2477
|
"Accounts": {
|
|
2440
2478
|
"type": "object",
|
|
2441
2479
|
"properties": {
|