zklighter-perps 1.0.92 → 1.0.94

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.
@@ -1,4 +1,5 @@
1
1
  apis/AccountApi.ts
2
+ apis/AnnouncementApi.ts
2
3
  apis/BlockApi.ts
3
4
  apis/BridgeApi.ts
4
5
  apis/CandlestickApi.ts
@@ -19,6 +20,8 @@ models/AccountPosition.ts
19
20
  models/AccountStats.ts
20
21
  models/AccountTradeStats.ts
21
22
  models/Accounts.ts
23
+ models/Announcement.ts
24
+ models/Announcements.ts
22
25
  models/ApiKey.ts
23
26
  models/Block.ts
24
27
  models/Blocks.ts
@@ -0,0 +1,61 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ Announcements,
19
+ ResultCode,
20
+ } from '../models/index';
21
+ import {
22
+ AnnouncementsFromJSON,
23
+ AnnouncementsToJSON,
24
+ ResultCodeFromJSON,
25
+ ResultCodeToJSON,
26
+ } from '../models/index';
27
+
28
+ /**
29
+ *
30
+ */
31
+ export class AnnouncementApi extends runtime.BaseAPI {
32
+
33
+ /**
34
+ * Get announcement
35
+ * announcement
36
+ */
37
+ async announcementRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Announcements>> {
38
+ const queryParameters: any = {};
39
+
40
+ const headerParameters: runtime.HTTPHeaders = {};
41
+
42
+ const response = await this.request({
43
+ path: `/api/v1/announcement`,
44
+ method: 'GET',
45
+ headers: headerParameters,
46
+ query: queryParameters,
47
+ }, initOverrides);
48
+
49
+ return new runtime.JSONApiResponse(response, (jsonValue) => AnnouncementsFromJSON(jsonValue));
50
+ }
51
+
52
+ /**
53
+ * Get announcement
54
+ * announcement
55
+ */
56
+ async announcement(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Announcements> {
57
+ const response = await this.announcementRaw(initOverrides);
58
+ return await response.value();
59
+ }
60
+
61
+ }
package/apis/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AccountApi';
4
+ export * from './AnnouncementApi';
4
5
  export * from './BlockApi';
5
6
  export * from './BridgeApi';
6
7
  export * from './CandlestickApi';
@@ -43,6 +43,42 @@ 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
+ weekly_trades_count: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof AccountMarketStats
56
+ */
57
+ weekly_base_token_volume: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof AccountMarketStats
62
+ */
63
+ weekly_quote_token_volume: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof AccountMarketStats
68
+ */
69
+ monthly_trades_count: number;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof AccountMarketStats
74
+ */
75
+ monthly_base_token_volume: number;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof AccountMarketStats
80
+ */
81
+ monthly_quote_token_volume: number;
46
82
  /**
47
83
  *
48
84
  * @type {number}
@@ -71,6 +107,12 @@ export function instanceOfAccountMarketStats(value: object): value is AccountMar
71
107
  if (!('daily_trades_count' in value) || value['daily_trades_count'] === undefined) return false;
72
108
  if (!('daily_base_token_volume' in value) || value['daily_base_token_volume'] === undefined) return false;
73
109
  if (!('daily_quote_token_volume' in value) || value['daily_quote_token_volume'] === undefined) return false;
110
+ if (!('weekly_trades_count' in value) || value['weekly_trades_count'] === undefined) return false;
111
+ if (!('weekly_base_token_volume' in value) || value['weekly_base_token_volume'] === undefined) return false;
112
+ if (!('weekly_quote_token_volume' in value) || value['weekly_quote_token_volume'] === undefined) return false;
113
+ if (!('monthly_trades_count' in value) || value['monthly_trades_count'] === undefined) return false;
114
+ if (!('monthly_base_token_volume' in value) || value['monthly_base_token_volume'] === undefined) return false;
115
+ if (!('monthly_quote_token_volume' in value) || value['monthly_quote_token_volume'] === undefined) return false;
74
116
  if (!('total_trades_count' in value) || value['total_trades_count'] === undefined) return false;
75
117
  if (!('total_base_token_volume' in value) || value['total_base_token_volume'] === undefined) return false;
76
118
  if (!('total_quote_token_volume' in value) || value['total_quote_token_volume'] === undefined) return false;
@@ -91,6 +133,12 @@ export function AccountMarketStatsFromJSONTyped(json: any, ignoreDiscriminator:
91
133
  'daily_trades_count': json['daily_trades_count'],
92
134
  'daily_base_token_volume': json['daily_base_token_volume'],
93
135
  'daily_quote_token_volume': json['daily_quote_token_volume'],
136
+ 'weekly_trades_count': json['weekly_trades_count'],
137
+ 'weekly_base_token_volume': json['weekly_base_token_volume'],
138
+ 'weekly_quote_token_volume': json['weekly_quote_token_volume'],
139
+ 'monthly_trades_count': json['monthly_trades_count'],
140
+ 'monthly_base_token_volume': json['monthly_base_token_volume'],
141
+ 'monthly_quote_token_volume': json['monthly_quote_token_volume'],
94
142
  'total_trades_count': json['total_trades_count'],
95
143
  'total_base_token_volume': json['total_base_token_volume'],
96
144
  'total_quote_token_volume': json['total_quote_token_volume'],
@@ -107,6 +155,12 @@ export function AccountMarketStatsToJSON(value?: AccountMarketStats | null): any
107
155
  'daily_trades_count': value['daily_trades_count'],
108
156
  'daily_base_token_volume': value['daily_base_token_volume'],
109
157
  'daily_quote_token_volume': value['daily_quote_token_volume'],
158
+ 'weekly_trades_count': value['weekly_trades_count'],
159
+ 'weekly_base_token_volume': value['weekly_base_token_volume'],
160
+ 'weekly_quote_token_volume': value['weekly_quote_token_volume'],
161
+ 'monthly_trades_count': value['monthly_trades_count'],
162
+ 'monthly_base_token_volume': value['monthly_base_token_volume'],
163
+ 'monthly_quote_token_volume': value['monthly_quote_token_volume'],
110
164
  'total_trades_count': value['total_trades_count'],
111
165
  'total_base_token_volume': value['total_base_token_volume'],
112
166
  'total_quote_token_volume': value['total_quote_token_volume'],
@@ -24,35 +24,63 @@ export interface AccountTradeStats {
24
24
  * @type {number}
25
25
  * @memberof AccountTradeStats
26
26
  */
27
- total_trades_count: number;
27
+ daily_trades_count: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
31
31
  * @memberof AccountTradeStats
32
32
  */
33
- total_volume: number;
33
+ daily_volume: number;
34
34
  /**
35
35
  *
36
36
  * @type {number}
37
37
  * @memberof AccountTradeStats
38
38
  */
39
- daily_trades_count: number;
39
+ weekly_trades_count: number;
40
40
  /**
41
41
  *
42
42
  * @type {number}
43
43
  * @memberof AccountTradeStats
44
44
  */
45
- daily_volume: number;
45
+ weekly_volume: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof AccountTradeStats
50
+ */
51
+ monthly_trades_count: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof AccountTradeStats
56
+ */
57
+ monthly_volume: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof AccountTradeStats
62
+ */
63
+ total_trades_count: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof AccountTradeStats
68
+ */
69
+ total_volume: number;
46
70
  }
47
71
 
48
72
  /**
49
73
  * Check if a given object implements the AccountTradeStats interface.
50
74
  */
51
75
  export function instanceOfAccountTradeStats(value: object): value is AccountTradeStats {
52
- if (!('total_trades_count' in value) || value['total_trades_count'] === undefined) return false;
53
- if (!('total_volume' in value) || value['total_volume'] === undefined) return false;
54
76
  if (!('daily_trades_count' in value) || value['daily_trades_count'] === undefined) return false;
55
77
  if (!('daily_volume' in value) || value['daily_volume'] === undefined) return false;
78
+ if (!('weekly_trades_count' in value) || value['weekly_trades_count'] === undefined) return false;
79
+ if (!('weekly_volume' in value) || value['weekly_volume'] === undefined) return false;
80
+ if (!('monthly_trades_count' in value) || value['monthly_trades_count'] === undefined) return false;
81
+ if (!('monthly_volume' in value) || value['monthly_volume'] === undefined) return false;
82
+ if (!('total_trades_count' in value) || value['total_trades_count'] === undefined) return false;
83
+ if (!('total_volume' in value) || value['total_volume'] === undefined) return false;
56
84
  return true;
57
85
  }
58
86
 
@@ -66,10 +94,14 @@ export function AccountTradeStatsFromJSONTyped(json: any, ignoreDiscriminator: b
66
94
  }
67
95
  return {
68
96
 
69
- 'total_trades_count': json['total_trades_count'],
70
- 'total_volume': json['total_volume'],
71
97
  'daily_trades_count': json['daily_trades_count'],
72
98
  'daily_volume': json['daily_volume'],
99
+ 'weekly_trades_count': json['weekly_trades_count'],
100
+ 'weekly_volume': json['weekly_volume'],
101
+ 'monthly_trades_count': json['monthly_trades_count'],
102
+ 'monthly_volume': json['monthly_volume'],
103
+ 'total_trades_count': json['total_trades_count'],
104
+ 'total_volume': json['total_volume'],
73
105
  };
74
106
  }
75
107
 
@@ -79,10 +111,14 @@ export function AccountTradeStatsToJSON(value?: AccountTradeStats | null): any {
79
111
  }
80
112
  return {
81
113
 
82
- 'total_trades_count': value['total_trades_count'],
83
- 'total_volume': value['total_volume'],
84
114
  'daily_trades_count': value['daily_trades_count'],
85
115
  'daily_volume': value['daily_volume'],
116
+ 'weekly_trades_count': value['weekly_trades_count'],
117
+ 'weekly_volume': value['weekly_volume'],
118
+ 'monthly_trades_count': value['monthly_trades_count'],
119
+ 'monthly_volume': value['monthly_volume'],
120
+ 'total_trades_count': value['total_trades_count'],
121
+ 'total_volume': value['total_volume'],
86
122
  };
87
123
  }
88
124
 
@@ -0,0 +1,79 @@
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 Announcement
20
+ */
21
+ export interface Announcement {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Announcement
26
+ */
27
+ title: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Announcement
32
+ */
33
+ content: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof Announcement
38
+ */
39
+ created_at: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the Announcement interface.
44
+ */
45
+ export function instanceOfAnnouncement(value: object): value is Announcement {
46
+ if (!('title' in value) || value['title'] === undefined) return false;
47
+ if (!('content' in value) || value['content'] === undefined) return false;
48
+ if (!('created_at' in value) || value['created_at'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function AnnouncementFromJSON(json: any): Announcement {
53
+ return AnnouncementFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function AnnouncementFromJSONTyped(json: any, ignoreDiscriminator: boolean): Announcement {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'title': json['title'],
63
+ 'content': json['content'],
64
+ 'created_at': json['created_at'],
65
+ };
66
+ }
67
+
68
+ export function AnnouncementToJSON(value?: Announcement | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'title': value['title'],
75
+ 'content': value['content'],
76
+ 'created_at': value['created_at'],
77
+ };
78
+ }
79
+
@@ -0,0 +1,85 @@
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 { Announcement } from './Announcement';
17
+ import {
18
+ AnnouncementFromJSON,
19
+ AnnouncementFromJSONTyped,
20
+ AnnouncementToJSON,
21
+ } from './Announcement';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface Announcements
27
+ */
28
+ export interface Announcements {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof Announcements
33
+ */
34
+ code: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof Announcements
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {Array<Announcement>}
44
+ * @memberof Announcements
45
+ */
46
+ announcements: Array<Announcement>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the Announcements interface.
51
+ */
52
+ export function instanceOfAnnouncements(value: object): value is Announcements {
53
+ if (!('code' in value) || value['code'] === undefined) return false;
54
+ if (!('announcements' in value) || value['announcements'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function AnnouncementsFromJSON(json: any): Announcements {
59
+ return AnnouncementsFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function AnnouncementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Announcements {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'code': json['code'],
69
+ 'message': json['message'] == null ? undefined : json['message'],
70
+ 'announcements': ((json['announcements'] as Array<any>).map(AnnouncementFromJSON)),
71
+ };
72
+ }
73
+
74
+ export function AnnouncementsToJSON(value?: Announcements | null): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+
80
+ 'code': value['code'],
81
+ 'message': value['message'],
82
+ 'announcements': ((value['announcements'] as Array<any>).map(AnnouncementToJSON)),
83
+ };
84
+ }
85
+
@@ -37,12 +37,6 @@ export interface L1ProviderInfo {
37
37
  * @memberof L1ProviderInfo
38
38
  */
39
39
  latestBlockNumber: number;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof L1ProviderInfo
44
- */
45
- NetworkRpc: string;
46
40
  }
47
41
 
48
42
  /**
@@ -52,7 +46,6 @@ export function instanceOfL1ProviderInfo(value: object): value is L1ProviderInfo
52
46
  if (!('chainId' in value) || value['chainId'] === undefined) return false;
53
47
  if (!('networkId' in value) || value['networkId'] === undefined) return false;
54
48
  if (!('latestBlockNumber' in value) || value['latestBlockNumber'] === undefined) return false;
55
- if (!('NetworkRpc' in value) || value['NetworkRpc'] === undefined) return false;
56
49
  return true;
57
50
  }
58
51
 
@@ -69,7 +62,6 @@ export function L1ProviderInfoFromJSONTyped(json: any, ignoreDiscriminator: bool
69
62
  'chainId': json['chainId'],
70
63
  'networkId': json['networkId'],
71
64
  'latestBlockNumber': json['latestBlockNumber'],
72
- 'NetworkRpc': json['NetworkRpc'],
73
65
  };
74
66
  }
75
67
 
@@ -82,7 +74,6 @@ export function L1ProviderInfoToJSON(value?: L1ProviderInfo | null): any {
82
74
  'chainId': value['chainId'],
83
75
  'networkId': value['networkId'],
84
76
  'latestBlockNumber': value['latestBlockNumber'],
85
- 'NetworkRpc': value['NetworkRpc'],
86
77
  };
87
78
  }
88
79
 
@@ -49,6 +49,24 @@ export interface PublicPoolInfo {
49
49
  * @memberof PublicPoolInfo
50
50
  */
51
51
  operator_shares: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof PublicPoolInfo
56
+ */
57
+ share_price_1d: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof PublicPoolInfo
62
+ */
63
+ share_price_7d: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof PublicPoolInfo
68
+ */
69
+ share_price_30d: number;
52
70
  }
53
71
 
54
72
  /**
@@ -60,6 +78,9 @@ export function instanceOfPublicPoolInfo(value: object): value is PublicPoolInfo
60
78
  if (!('min_operator_share_rate' in value) || value['min_operator_share_rate'] === undefined) return false;
61
79
  if (!('total_shares' in value) || value['total_shares'] === undefined) return false;
62
80
  if (!('operator_shares' in value) || value['operator_shares'] === undefined) return false;
81
+ if (!('share_price_1d' in value) || value['share_price_1d'] === undefined) return false;
82
+ if (!('share_price_7d' in value) || value['share_price_7d'] === undefined) return false;
83
+ if (!('share_price_30d' in value) || value['share_price_30d'] === undefined) return false;
63
84
  return true;
64
85
  }
65
86
 
@@ -78,6 +99,9 @@ export function PublicPoolInfoFromJSONTyped(json: any, ignoreDiscriminator: bool
78
99
  'min_operator_share_rate': json['min_operator_share_rate'],
79
100
  'total_shares': json['total_shares'],
80
101
  'operator_shares': json['operator_shares'],
102
+ 'share_price_1d': json['share_price_1d'],
103
+ 'share_price_7d': json['share_price_7d'],
104
+ 'share_price_30d': json['share_price_30d'],
81
105
  };
82
106
  }
83
107
 
@@ -92,6 +116,9 @@ export function PublicPoolInfoToJSON(value?: PublicPoolInfo | null): any {
92
116
  'min_operator_share_rate': value['min_operator_share_rate'],
93
117
  'total_shares': value['total_shares'],
94
118
  'operator_shares': value['operator_shares'],
119
+ 'share_price_1d': value['share_price_1d'],
120
+ 'share_price_7d': value['share_price_7d'],
121
+ 'share_price_30d': value['share_price_30d'],
95
122
  };
96
123
  }
97
124
 
package/models/index.ts CHANGED
@@ -9,6 +9,8 @@ export * from './AccountPosition';
9
9
  export * from './AccountStats';
10
10
  export * from './AccountTradeStats';
11
11
  export * from './Accounts';
12
+ export * from './Announcement';
13
+ export * from './Announcements';
12
14
  export * from './ApiKey';
13
15
  export * from './Block';
14
16
  export * from './Blocks';
package/openapi.json CHANGED
@@ -479,6 +479,30 @@
479
479
  "description": "Get accounts by l1_address returns all accounts associated with the given L1 address"
480
480
  }
481
481
  },
482
+ "/api/v1/announcement": {
483
+ "get": {
484
+ "summary": "announcement",
485
+ "operationId": "announcement",
486
+ "responses": {
487
+ "200": {
488
+ "description": "A successful response.",
489
+ "schema": {
490
+ "$ref": "#/definitions/Announcements"
491
+ }
492
+ },
493
+ "400": {
494
+ "description": "Bad request",
495
+ "schema": {
496
+ "$ref": "#/definitions/ResultCode"
497
+ }
498
+ }
499
+ },
500
+ "tags": [
501
+ "announcement"
502
+ ],
503
+ "description": "Get announcement"
504
+ }
505
+ },
482
506
  "/api/v1/apikeys": {
483
507
  "get": {
484
508
  "summary": "apikeys",
@@ -2393,6 +2417,36 @@
2393
2417
  "format": "double",
2394
2418
  "example": "93566.25"
2395
2419
  },
2420
+ "weekly_trades_count": {
2421
+ "type": "integer",
2422
+ "format": "int64",
2423
+ "example": "68"
2424
+ },
2425
+ "weekly_base_token_volume": {
2426
+ "type": "number",
2427
+ "format": "double",
2428
+ "example": "235.25"
2429
+ },
2430
+ "weekly_quote_token_volume": {
2431
+ "type": "number",
2432
+ "format": "double",
2433
+ "example": "93566.25"
2434
+ },
2435
+ "monthly_trades_count": {
2436
+ "type": "integer",
2437
+ "format": "int64",
2438
+ "example": "68"
2439
+ },
2440
+ "monthly_base_token_volume": {
2441
+ "type": "number",
2442
+ "format": "double",
2443
+ "example": "235.25"
2444
+ },
2445
+ "monthly_quote_token_volume": {
2446
+ "type": "number",
2447
+ "format": "double",
2448
+ "example": "93566.25"
2449
+ },
2396
2450
  "total_trades_count": {
2397
2451
  "type": "integer",
2398
2452
  "format": "int64",
@@ -2415,6 +2469,12 @@
2415
2469
  "daily_trades_count",
2416
2470
  "daily_base_token_volume",
2417
2471
  "daily_quote_token_volume",
2472
+ "weekly_trades_count",
2473
+ "weekly_base_token_volume",
2474
+ "weekly_quote_token_volume",
2475
+ "monthly_trades_count",
2476
+ "monthly_base_token_volume",
2477
+ "monthly_quote_token_volume",
2418
2478
  "total_trades_count",
2419
2479
  "total_base_token_volume",
2420
2480
  "total_quote_token_volume"
@@ -2587,22 +2647,42 @@
2587
2647
  "AccountTradeStats": {
2588
2648
  "type": "object",
2589
2649
  "properties": {
2590
- "total_trades_count": {
2650
+ "daily_trades_count": {
2591
2651
  "type": "integer",
2592
2652
  "format": "int64",
2593
2653
  "example": "68"
2594
2654
  },
2595
- "total_volume": {
2655
+ "daily_volume": {
2596
2656
  "type": "number",
2597
2657
  "format": "double",
2598
2658
  "example": "235.25"
2599
2659
  },
2600
- "daily_trades_count": {
2660
+ "weekly_trades_count": {
2601
2661
  "type": "integer",
2602
2662
  "format": "int64",
2603
2663
  "example": "68"
2604
2664
  },
2605
- "daily_volume": {
2665
+ "weekly_volume": {
2666
+ "type": "number",
2667
+ "format": "double",
2668
+ "example": "235.25"
2669
+ },
2670
+ "monthly_trades_count": {
2671
+ "type": "integer",
2672
+ "format": "int64",
2673
+ "example": "68"
2674
+ },
2675
+ "monthly_volume": {
2676
+ "type": "number",
2677
+ "format": "double",
2678
+ "example": "235.25"
2679
+ },
2680
+ "total_trades_count": {
2681
+ "type": "integer",
2682
+ "format": "int64",
2683
+ "example": "68"
2684
+ },
2685
+ "total_volume": {
2606
2686
  "type": "number",
2607
2687
  "format": "double",
2608
2688
  "example": "235.25"
@@ -2610,10 +2690,14 @@
2610
2690
  },
2611
2691
  "title": "AccountTradeStats",
2612
2692
  "required": [
2613
- "total_trades_count",
2614
- "total_volume",
2615
2693
  "daily_trades_count",
2616
- "daily_volume"
2694
+ "daily_volume",
2695
+ "weekly_trades_count",
2696
+ "weekly_volume",
2697
+ "monthly_trades_count",
2698
+ "monthly_volume",
2699
+ "total_trades_count",
2700
+ "total_volume"
2617
2701
  ]
2618
2702
  },
2619
2703
  "Accounts": {
@@ -2646,6 +2730,51 @@
2646
2730
  "accounts"
2647
2731
  ]
2648
2732
  },
2733
+ "Announcement": {
2734
+ "type": "object",
2735
+ "properties": {
2736
+ "title": {
2737
+ "type": "string"
2738
+ },
2739
+ "content": {
2740
+ "type": "string"
2741
+ },
2742
+ "created_at": {
2743
+ "type": "integer",
2744
+ "format": "int64"
2745
+ }
2746
+ },
2747
+ "title": "Announcement",
2748
+ "required": [
2749
+ "title",
2750
+ "content",
2751
+ "created_at"
2752
+ ]
2753
+ },
2754
+ "Announcements": {
2755
+ "type": "object",
2756
+ "properties": {
2757
+ "code": {
2758
+ "type": "integer",
2759
+ "format": "int32",
2760
+ "example": "200"
2761
+ },
2762
+ "message": {
2763
+ "type": "string"
2764
+ },
2765
+ "announcements": {
2766
+ "type": "array",
2767
+ "items": {
2768
+ "$ref": "#/definitions/Announcement"
2769
+ }
2770
+ }
2771
+ },
2772
+ "title": "Announcements",
2773
+ "required": [
2774
+ "code",
2775
+ "announcements"
2776
+ ]
2777
+ },
2649
2778
  "ApiKey": {
2650
2779
  "type": "object",
2651
2780
  "properties": {
@@ -3610,17 +3739,13 @@
3610
3739
  "type": "integer",
3611
3740
  "format": "int64",
3612
3741
  "example": "45434"
3613
- },
3614
- "NetworkRpc": {
3615
- "type": "string"
3616
3742
  }
3617
3743
  },
3618
3744
  "title": "L1ProviderInfo",
3619
3745
  "required": [
3620
3746
  "chainId",
3621
3747
  "networkId",
3622
- "latestBlockNumber",
3623
- "NetworkRpc"
3748
+ "latestBlockNumber"
3624
3749
  ]
3625
3750
  },
3626
3751
  "Layer1BasicInfo": {
@@ -4735,6 +4860,21 @@
4735
4860
  "type": "integer",
4736
4861
  "format": "int64",
4737
4862
  "example": "20000"
4863
+ },
4864
+ "share_price_1d": {
4865
+ "type": "number",
4866
+ "format": "double",
4867
+ "example": "0.0001"
4868
+ },
4869
+ "share_price_7d": {
4870
+ "type": "number",
4871
+ "format": "double",
4872
+ "example": "0.0001"
4873
+ },
4874
+ "share_price_30d": {
4875
+ "type": "number",
4876
+ "format": "double",
4877
+ "example": "0.0001"
4738
4878
  }
4739
4879
  },
4740
4880
  "title": "PublicPoolInfo",
@@ -4743,7 +4883,10 @@
4743
4883
  "operator_fee",
4744
4884
  "min_operator_share_rate",
4745
4885
  "total_shares",
4746
- "operator_shares"
4886
+ "operator_shares",
4887
+ "share_price_1d",
4888
+ "share_price_7d",
4889
+ "share_price_30d"
4747
4890
  ]
4748
4891
  },
4749
4892
  "PublicPoolShare": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.92",
3
+ "version": "1.0.94",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {