zklighter-perps 1.0.112 → 1.0.114

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.
@@ -20,7 +20,6 @@ models/AccountPnL.ts
20
20
  models/AccountPosition.ts
21
21
  models/AccountStats.ts
22
22
  models/AccountTradeStats.ts
23
- models/Accounts.ts
24
23
  models/Announcement.ts
25
24
  models/Announcements.ts
26
25
  models/ApiKey.ts
@@ -51,7 +50,6 @@ models/Fundings.ts
51
50
  models/IsWhitelisted.ts
52
51
  models/L1ProviderInfo.ts
53
52
  models/Layer1BasicInfo.ts
54
- models/Layer2BasicInfo.ts
55
53
  models/Leaderboard.ts
56
54
  models/LeaderboardEntry.ts
57
55
  models/MarketInfo.ts
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  AccountApiKeys,
19
19
  AccountPnL,
20
- Accounts,
21
20
  DetailedAccounts,
22
21
  FeeBucket,
23
22
  IsWhitelisted,
@@ -32,8 +31,6 @@ import {
32
31
  AccountApiKeysToJSON,
33
32
  AccountPnLFromJSON,
34
33
  AccountPnLToJSON,
35
- AccountsFromJSON,
36
- AccountsToJSON,
37
34
  DetailedAccountsFromJSON,
38
35
  DetailedAccountsToJSON,
39
36
  FeeBucketFromJSON,
@@ -57,12 +54,6 @@ export interface AccountRequest {
57
54
  value: string;
58
55
  }
59
56
 
60
- export interface AccountsRequest {
61
- limit: number;
62
- index?: number;
63
- sort?: AccountsSortEnum;
64
- }
65
-
66
57
  export interface AccountsByL1AddressRequest {
67
58
  l1_address: string;
68
59
  }
@@ -90,6 +81,7 @@ export interface LeaderboardRequest {
90
81
  }
91
82
 
92
83
  export interface PnlRequest {
84
+ auth: string;
93
85
  by: PnlByEnum;
94
86
  value: string;
95
87
  resolution: PnlResolutionEnum;
@@ -100,6 +92,7 @@ export interface PnlRequest {
100
92
  }
101
93
 
102
94
  export interface PositionFundingRequest {
95
+ auth: string;
103
96
  account_index: number;
104
97
  limit: number;
105
98
  market_id?: number;
@@ -169,53 +162,6 @@ export class AccountApi extends runtime.BaseAPI {
169
162
  return await response.value();
170
163
  }
171
164
 
172
- /**
173
- * Get accounts returns accounts by account index
174
- * accounts
175
- */
176
- async accountsRaw(requestParameters: AccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Accounts>> {
177
- if (requestParameters['limit'] == null) {
178
- throw new runtime.RequiredError(
179
- 'limit',
180
- 'Required parameter "limit" was null or undefined when calling accounts().'
181
- );
182
- }
183
-
184
- const queryParameters: any = {};
185
-
186
- if (requestParameters['index'] != null) {
187
- queryParameters['index'] = requestParameters['index'];
188
- }
189
-
190
- if (requestParameters['limit'] != null) {
191
- queryParameters['limit'] = requestParameters['limit'];
192
- }
193
-
194
- if (requestParameters['sort'] != null) {
195
- queryParameters['sort'] = requestParameters['sort'];
196
- }
197
-
198
- const headerParameters: runtime.HTTPHeaders = {};
199
-
200
- const response = await this.request({
201
- path: `/api/v1/accounts`,
202
- method: 'GET',
203
- headers: headerParameters,
204
- query: queryParameters,
205
- }, initOverrides);
206
-
207
- return new runtime.JSONApiResponse(response, (jsonValue) => AccountsFromJSON(jsonValue));
208
- }
209
-
210
- /**
211
- * Get accounts returns accounts by account index
212
- * accounts
213
- */
214
- async accounts(requestParameters: AccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Accounts> {
215
- const response = await this.accountsRaw(requestParameters, initOverrides);
216
- return await response.value();
217
- }
218
-
219
165
  /**
220
166
  * Get accounts by l1_address returns all accounts associated with the given L1 address
221
167
  * accountsByL1Address
@@ -463,6 +409,13 @@ export class AccountApi extends runtime.BaseAPI {
463
409
  * pnl
464
410
  */
465
411
  async pnlRaw(requestParameters: PnlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPnL>> {
412
+ if (requestParameters['auth'] == null) {
413
+ throw new runtime.RequiredError(
414
+ 'auth',
415
+ 'Required parameter "auth" was null or undefined when calling pnl().'
416
+ );
417
+ }
418
+
466
419
  if (requestParameters['by'] == null) {
467
420
  throw new runtime.RequiredError(
468
421
  'by',
@@ -507,6 +460,10 @@ export class AccountApi extends runtime.BaseAPI {
507
460
 
508
461
  const queryParameters: any = {};
509
462
 
463
+ if (requestParameters['auth'] != null) {
464
+ queryParameters['auth'] = requestParameters['auth'];
465
+ }
466
+
510
467
  if (requestParameters['by'] != null) {
511
468
  queryParameters['by'] = requestParameters['by'];
512
469
  }
@@ -561,6 +518,13 @@ export class AccountApi extends runtime.BaseAPI {
561
518
  * positionFunding
562
519
  */
563
520
  async positionFundingRaw(requestParameters: PositionFundingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PositionFundings>> {
521
+ if (requestParameters['auth'] == null) {
522
+ throw new runtime.RequiredError(
523
+ 'auth',
524
+ 'Required parameter "auth" was null or undefined when calling positionFunding().'
525
+ );
526
+ }
527
+
564
528
  if (requestParameters['account_index'] == null) {
565
529
  throw new runtime.RequiredError(
566
530
  'account_index',
@@ -577,6 +541,10 @@ export class AccountApi extends runtime.BaseAPI {
577
541
 
578
542
  const queryParameters: any = {};
579
543
 
544
+ if (requestParameters['auth'] != null) {
545
+ queryParameters['auth'] = requestParameters['auth'];
546
+ }
547
+
580
548
  if (requestParameters['account_index'] != null) {
581
549
  queryParameters['account_index'] = requestParameters['account_index'];
582
550
  }
@@ -686,14 +654,6 @@ export const AccountByEnum = {
686
654
  L1Address: 'l1_address'
687
655
  } as const;
688
656
  export type AccountByEnum = typeof AccountByEnum[keyof typeof AccountByEnum];
689
- /**
690
- * @export
691
- */
692
- export const AccountsSortEnum = {
693
- Asc: 'asc',
694
- Desc: 'desc'
695
- } as const;
696
- export type AccountsSortEnum = typeof AccountsSortEnum[keyof typeof AccountsSortEnum];
697
657
  /**
698
658
  * @export
699
659
  */
package/apis/InfoApi.ts CHANGED
@@ -16,14 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  Layer1BasicInfo,
19
- Layer2BasicInfo,
20
19
  ResultCode,
21
20
  } from '../models/index';
22
21
  import {
23
22
  Layer1BasicInfoFromJSON,
24
23
  Layer1BasicInfoToJSON,
25
- Layer2BasicInfoFromJSON,
26
- Layer2BasicInfoToJSON,
27
24
  ResultCodeFromJSON,
28
25
  ResultCodeToJSON,
29
26
  } from '../models/index';
@@ -61,32 +58,4 @@ export class InfoApi extends runtime.BaseAPI {
61
58
  return await response.value();
62
59
  }
63
60
 
64
- /**
65
- * Get zklighter general info, including transaction and block stats
66
- * layer2BasicInfo
67
- */
68
- async layer2BasicInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Layer2BasicInfo>> {
69
- const queryParameters: any = {};
70
-
71
- const headerParameters: runtime.HTTPHeaders = {};
72
-
73
- const response = await this.request({
74
- path: `/api/v1/layer2BasicInfo`,
75
- method: 'GET',
76
- headers: headerParameters,
77
- query: queryParameters,
78
- }, initOverrides);
79
-
80
- return new runtime.JSONApiResponse(response, (jsonValue) => Layer2BasicInfoFromJSON(jsonValue));
81
- }
82
-
83
- /**
84
- * Get zklighter general info, including transaction and block stats
85
- * layer2BasicInfo
86
- */
87
- async layer2BasicInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Layer2BasicInfo> {
88
- const response = await this.layer2BasicInfoRaw(initOverrides);
89
- return await response.value();
90
- }
91
-
92
61
  }
package/apis/OrderApi.ts CHANGED
@@ -57,6 +57,7 @@ export interface AccountInactiveOrdersRequest {
57
57
  }
58
58
 
59
59
  export interface AccountOrdersRequest {
60
+ auth: string;
60
61
  account_index: number;
61
62
  market_id: number;
62
63
  limit: number;
@@ -241,6 +242,13 @@ export class OrderApi extends runtime.BaseAPI {
241
242
  * accountOrders
242
243
  */
243
244
  async accountOrdersRaw(requestParameters: AccountOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Orders>> {
245
+ if (requestParameters['auth'] == null) {
246
+ throw new runtime.RequiredError(
247
+ 'auth',
248
+ 'Required parameter "auth" was null or undefined when calling accountOrders().'
249
+ );
250
+ }
251
+
244
252
  if (requestParameters['account_index'] == null) {
245
253
  throw new runtime.RequiredError(
246
254
  'account_index',
@@ -264,6 +272,10 @@ export class OrderApi extends runtime.BaseAPI {
264
272
 
265
273
  const queryParameters: any = {};
266
274
 
275
+ if (requestParameters['auth'] != null) {
276
+ queryParameters['auth'] = requestParameters['auth'];
277
+ }
278
+
267
279
  if (requestParameters['account_index'] != null) {
268
280
  queryParameters['account_index'] = requestParameters['account_index'];
269
281
  }
@@ -13,12 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { AccountMarketStats } from './AccountMarketStats';
17
- import {
18
- AccountMarketStatsFromJSON,
19
- AccountMarketStatsFromJSONTyped,
20
- AccountMarketStatsToJSON,
21
- } from './AccountMarketStats';
22
16
  import type { AccountPosition } from './AccountPosition';
23
17
  import {
24
18
  AccountPositionFromJSON,
@@ -146,12 +140,6 @@ export interface DetailedAccount {
146
140
  * @memberof DetailedAccount
147
141
  */
148
142
  total_asset_value: string;
149
- /**
150
- *
151
- * @type {Array<AccountMarketStats>}
152
- * @memberof DetailedAccount
153
- */
154
- market_stats: Array<AccountMarketStats>;
155
143
  /**
156
144
  *
157
145
  * @type {PublicPoolInfo}
@@ -186,7 +174,6 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
186
174
  if (!('max_referral_usage_limit' in value) || value['max_referral_usage_limit'] === undefined) return false;
187
175
  if (!('positions' in value) || value['positions'] === undefined) return false;
188
176
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
189
- if (!('market_stats' in value) || value['market_stats'] === undefined) return false;
190
177
  if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
191
178
  if (!('shares' in value) || value['shares'] === undefined) return false;
192
179
  return true;
@@ -219,7 +206,6 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
219
206
  'max_referral_usage_limit': json['max_referral_usage_limit'],
220
207
  'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
221
208
  'total_asset_value': json['total_asset_value'],
222
- 'market_stats': ((json['market_stats'] as Array<any>).map(AccountMarketStatsFromJSON)),
223
209
  'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
224
210
  'shares': ((json['shares'] as Array<any>).map(PublicPoolShareFromJSON)),
225
211
  };
@@ -248,7 +234,6 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
248
234
  'max_referral_usage_limit': value['max_referral_usage_limit'],
249
235
  'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
250
236
  'total_asset_value': value['total_asset_value'],
251
- 'market_stats': ((value['market_stats'] as Array<any>).map(AccountMarketStatsToJSON)),
252
237
  'pool_info': PublicPoolInfoToJSON(value['pool_info']),
253
238
  'shares': ((value['shares'] as Array<any>).map(PublicPoolShareToJSON)),
254
239
  };
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
19
19
  * @interface ReqGetAccountOrders
20
20
  */
21
21
  export interface ReqGetAccountOrders {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetAccountOrders
26
+ */
27
+ auth: string;
22
28
  /**
23
29
  *
24
30
  * @type {number}
@@ -49,6 +55,7 @@ export interface ReqGetAccountOrders {
49
55
  * Check if a given object implements the ReqGetAccountOrders interface.
50
56
  */
51
57
  export function instanceOfReqGetAccountOrders(value: object): value is ReqGetAccountOrders {
58
+ if (!('auth' in value) || value['auth'] === undefined) return false;
52
59
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
53
60
  if (!('market_id' in value) || value['market_id'] === undefined) return false;
54
61
  if (!('limit' in value) || value['limit'] === undefined) return false;
@@ -65,6 +72,7 @@ export function ReqGetAccountOrdersFromJSONTyped(json: any, ignoreDiscriminator:
65
72
  }
66
73
  return {
67
74
 
75
+ 'auth': json['auth'],
68
76
  'account_index': json['account_index'],
69
77
  'market_id': json['market_id'],
70
78
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
@@ -78,6 +86,7 @@ export function ReqGetAccountOrdersToJSON(value?: ReqGetAccountOrders | null): a
78
86
  }
79
87
  return {
80
88
 
89
+ 'auth': value['auth'],
81
90
  'account_index': value['account_index'],
82
91
  'market_id': value['market_id'],
83
92
  'cursor': value['cursor'],
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
19
19
  * @interface ReqGetAccountPnL
20
20
  */
21
21
  export interface ReqGetAccountPnL {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetAccountPnL
26
+ */
27
+ auth: string;
22
28
  /**
23
29
  *
24
30
  * @type {string}
@@ -90,6 +96,7 @@ export type ReqGetAccountPnLResolutionEnum = typeof ReqGetAccountPnLResolutionEn
90
96
  * Check if a given object implements the ReqGetAccountPnL interface.
91
97
  */
92
98
  export function instanceOfReqGetAccountPnL(value: object): value is ReqGetAccountPnL {
99
+ if (!('auth' in value) || value['auth'] === undefined) return false;
93
100
  if (!('by' in value) || value['by'] === undefined) return false;
94
101
  if (!('value' in value) || value['value'] === undefined) return false;
95
102
  if (!('resolution' in value) || value['resolution'] === undefined) return false;
@@ -109,6 +116,7 @@ export function ReqGetAccountPnLFromJSONTyped(json: any, ignoreDiscriminator: bo
109
116
  }
110
117
  return {
111
118
 
119
+ 'auth': json['auth'],
112
120
  'by': json['by'],
113
121
  'value': json['value'],
114
122
  'resolution': json['resolution'],
@@ -125,6 +133,7 @@ export function ReqGetAccountPnLToJSON(value?: ReqGetAccountPnL | null): any {
125
133
  }
126
134
  return {
127
135
 
136
+ 'auth': value['auth'],
128
137
  'by': value['by'],
129
138
  'value': value['value'],
130
139
  'resolution': value['resolution'],
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
19
19
  * @interface ReqGetPositionFunding
20
20
  */
21
21
  export interface ReqGetPositionFunding {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetPositionFunding
26
+ */
27
+ auth: string;
22
28
  /**
23
29
  *
24
30
  * @type {number}
@@ -67,6 +73,7 @@ export type ReqGetPositionFundingSideEnum = typeof ReqGetPositionFundingSideEnum
67
73
  * Check if a given object implements the ReqGetPositionFunding interface.
68
74
  */
69
75
  export function instanceOfReqGetPositionFunding(value: object): value is ReqGetPositionFunding {
76
+ if (!('auth' in value) || value['auth'] === undefined) return false;
70
77
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
71
78
  if (!('limit' in value) || value['limit'] === undefined) return false;
72
79
  return true;
@@ -82,6 +89,7 @@ export function ReqGetPositionFundingFromJSONTyped(json: any, ignoreDiscriminato
82
89
  }
83
90
  return {
84
91
 
92
+ 'auth': json['auth'],
85
93
  'account_index': json['account_index'],
86
94
  'market_id': json['market_id'] == null ? undefined : json['market_id'],
87
95
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
@@ -96,6 +104,7 @@ export function ReqGetPositionFundingToJSON(value?: ReqGetPositionFunding | null
96
104
  }
97
105
  return {
98
106
 
107
+ 'auth': value['auth'],
99
108
  'account_index': value['account_index'],
100
109
  'market_id': value['market_id'],
101
110
  'cursor': value['cursor'],
package/models/index.ts CHANGED
@@ -8,7 +8,6 @@ export * from './AccountPnL';
8
8
  export * from './AccountPosition';
9
9
  export * from './AccountStats';
10
10
  export * from './AccountTradeStats';
11
- export * from './Accounts';
12
11
  export * from './Announcement';
13
12
  export * from './Announcements';
14
13
  export * from './ApiKey';
@@ -39,7 +38,6 @@ export * from './Fundings';
39
38
  export * from './IsWhitelisted';
40
39
  export * from './L1ProviderInfo';
41
40
  export * from './Layer1BasicInfo';
42
- export * from './Layer2BasicInfo';
43
41
  export * from './Leaderboard';
44
42
  export * from './LeaderboardEntry';
45
43
  export * from './MarketInfo';
package/openapi.json CHANGED
@@ -231,6 +231,12 @@
231
231
  }
232
232
  },
233
233
  "parameters": [
234
+ {
235
+ "name": "auth",
236
+ "in": "query",
237
+ "required": true,
238
+ "type": "string"
239
+ },
234
240
  {
235
241
  "name": "account_index",
236
242
  "in": "query",
@@ -394,62 +400,6 @@
394
400
  "description": "Get transactions of a specific account"
395
401
  }
396
402
  },
397
- "/api/v1/accounts": {
398
- "get": {
399
- "summary": "accounts",
400
- "operationId": "accounts",
401
- "responses": {
402
- "200": {
403
- "description": "A successful response.",
404
- "schema": {
405
- "$ref": "#/definitions/Accounts"
406
- }
407
- },
408
- "400": {
409
- "description": "Bad request",
410
- "schema": {
411
- "$ref": "#/definitions/ResultCode"
412
- }
413
- }
414
- },
415
- "parameters": [
416
- {
417
- "name": "index",
418
- "in": "query",
419
- "required": false,
420
- "type": "integer",
421
- "format": "int64"
422
- },
423
- {
424
- "name": "limit",
425
- "in": "query",
426
- "required": true,
427
- "type": "integer",
428
- "format": "int64",
429
- "minimum": 1,
430
- "maximum": 100
431
- },
432
- {
433
- "name": "sort",
434
- "in": "query",
435
- "required": false,
436
- "type": "string",
437
- "enum": [
438
- "asc",
439
- "desc"
440
- ],
441
- "default": "asc"
442
- }
443
- ],
444
- "tags": [
445
- "account"
446
- ],
447
- "consumes": [
448
- "multipart/form-data"
449
- ],
450
- "description": "Get accounts returns accounts by account index"
451
- }
452
- },
453
403
  "/api/v1/accountsByL1Address": {
454
404
  "get": {
455
405
  "summary": "accountsByL1Address",
@@ -1355,30 +1305,6 @@
1355
1305
  "description": "Get zklighter l1 general info, including contract address and rpc info"
1356
1306
  }
1357
1307
  },
1358
- "/api/v1/layer2BasicInfo": {
1359
- "get": {
1360
- "summary": "layer2BasicInfo",
1361
- "operationId": "layer2BasicInfo",
1362
- "responses": {
1363
- "200": {
1364
- "description": "A successful response.",
1365
- "schema": {
1366
- "$ref": "#/definitions/Layer2BasicInfo"
1367
- }
1368
- },
1369
- "400": {
1370
- "description": "Bad request",
1371
- "schema": {
1372
- "$ref": "#/definitions/ResultCode"
1373
- }
1374
- }
1375
- },
1376
- "tags": [
1377
- "info"
1378
- ],
1379
- "description": "Get zklighter general info, including transaction and block stats"
1380
- }
1381
- },
1382
1308
  "/api/v1/leaderboard": {
1383
1309
  "get": {
1384
1310
  "summary": "leaderboard",
@@ -1687,6 +1613,12 @@
1687
1613
  }
1688
1614
  },
1689
1615
  "parameters": [
1616
+ {
1617
+ "name": "auth",
1618
+ "in": "query",
1619
+ "required": true,
1620
+ "type": "string"
1621
+ },
1690
1622
  {
1691
1623
  "name": "by",
1692
1624
  "in": "query",
@@ -1778,6 +1710,12 @@
1778
1710
  }
1779
1711
  },
1780
1712
  "parameters": [
1713
+ {
1714
+ "name": "auth",
1715
+ "in": "query",
1716
+ "required": true,
1717
+ "type": "string"
1718
+ },
1781
1719
  {
1782
1720
  "name": "account_index",
1783
1721
  "in": "query",
@@ -2926,36 +2864,6 @@
2926
2864
  "total_volume"
2927
2865
  ]
2928
2866
  },
2929
- "Accounts": {
2930
- "type": "object",
2931
- "properties": {
2932
- "code": {
2933
- "type": "integer",
2934
- "format": "int32",
2935
- "example": "200"
2936
- },
2937
- "message": {
2938
- "type": "string"
2939
- },
2940
- "total": {
2941
- "type": "integer",
2942
- "format": "int64",
2943
- "example": "1"
2944
- },
2945
- "accounts": {
2946
- "type": "array",
2947
- "items": {
2948
- "$ref": "#/definitions/Account"
2949
- }
2950
- }
2951
- },
2952
- "title": "Accounts",
2953
- "required": [
2954
- "code",
2955
- "total",
2956
- "accounts"
2957
- ]
2958
- },
2959
2867
  "Announcement": {
2960
2868
  "type": "object",
2961
2869
  "properties": {
@@ -3571,12 +3479,6 @@
3571
3479
  "type": "string",
3572
3480
  "example": "19995"
3573
3481
  },
3574
- "market_stats": {
3575
- "type": "array",
3576
- "items": {
3577
- "$ref": "#/definitions/AccountMarketStats"
3578
- }
3579
- },
3580
3482
  "pool_info": {
3581
3483
  "$ref": "#/definitions/PublicPoolInfo"
3582
3484
  },
@@ -3605,7 +3507,6 @@
3605
3507
  "max_referral_usage_limit",
3606
3508
  "positions",
3607
3509
  "total_asset_value",
3608
- "market_stats",
3609
3510
  "pool_info",
3610
3511
  "shares"
3611
3512
  ]
@@ -4112,41 +4013,6 @@
4112
4013
  "latest_l1_desert_block"
4113
4014
  ]
4114
4015
  },
4115
- "Layer2BasicInfo": {
4116
- "type": "object",
4117
- "properties": {
4118
- "code": {
4119
- "type": "integer",
4120
- "format": "int32",
4121
- "example": "200"
4122
- },
4123
- "message": {
4124
- "type": "string"
4125
- },
4126
- "block_committed": {
4127
- "type": "integer",
4128
- "format": "int64",
4129
- "example": "45434"
4130
- },
4131
- "block_verified": {
4132
- "type": "integer",
4133
- "format": "int64",
4134
- "example": "45434"
4135
- },
4136
- "total_transaction_count": {
4137
- "type": "integer",
4138
- "format": "int64",
4139
- "example": "75434"
4140
- }
4141
- },
4142
- "title": "Layer2BasicInfo",
4143
- "required": [
4144
- "code",
4145
- "block_committed",
4146
- "block_verified",
4147
- "total_transaction_count"
4148
- ]
4149
- },
4150
4016
  "Leaderboard": {
4151
4017
  "type": "object",
4152
4018
  "properties": {
@@ -5668,6 +5534,9 @@
5668
5534
  "ReqGetAccountOrders": {
5669
5535
  "type": "object",
5670
5536
  "properties": {
5537
+ "auth": {
5538
+ "type": "string"
5539
+ },
5671
5540
  "account_index": {
5672
5541
  "type": "integer",
5673
5542
  "format": "int64"
@@ -5688,6 +5557,7 @@
5688
5557
  },
5689
5558
  "title": "ReqGetAccountOrders",
5690
5559
  "required": [
5560
+ "auth",
5691
5561
  "account_index",
5692
5562
  "market_id",
5693
5563
  "limit"
@@ -5718,6 +5588,9 @@
5718
5588
  "ReqGetAccountPnL": {
5719
5589
  "type": "object",
5720
5590
  "properties": {
5591
+ "auth": {
5592
+ "type": "string"
5593
+ },
5721
5594
  "by": {
5722
5595
  "type": "string",
5723
5596
  "enum": [
@@ -5760,6 +5633,7 @@
5760
5633
  },
5761
5634
  "title": "ReqGetAccountPnL",
5762
5635
  "required": [
5636
+ "auth",
5763
5637
  "by",
5764
5638
  "value",
5765
5639
  "resolution",
@@ -6115,6 +5989,9 @@
6115
5989
  "ReqGetPositionFunding": {
6116
5990
  "type": "object",
6117
5991
  "properties": {
5992
+ "auth": {
5993
+ "type": "string"
5994
+ },
6118
5995
  "account_index": {
6119
5996
  "type": "integer",
6120
5997
  "format": "int64"
@@ -6145,6 +6022,7 @@
6145
6022
  },
6146
6023
  "title": "ReqGetPositionFunding",
6147
6024
  "required": [
6025
+ "auth",
6148
6026
  "account_index",
6149
6027
  "limit"
6150
6028
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.112",
3
+ "version": "1.0.114",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {