zklighter-perps 1.0.71 → 1.0.72
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 +0 -1
- package/apis/AccountApi.ts +0 -51
- package/models/DetailedAccount.ts +0 -9
- package/models/index.ts +0 -1
- package/openapi.json +1 -65
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/apis/AccountApi.ts
CHANGED
|
@@ -18,7 +18,6 @@ import type {
|
|
|
18
18
|
AccountApiKeys,
|
|
19
19
|
AccountPnL,
|
|
20
20
|
Accounts,
|
|
21
|
-
DetailedAccount,
|
|
22
21
|
DetailedAccounts,
|
|
23
22
|
FeeBucket,
|
|
24
23
|
IsWhitelisted,
|
|
@@ -34,8 +33,6 @@ import {
|
|
|
34
33
|
AccountPnLToJSON,
|
|
35
34
|
AccountsFromJSON,
|
|
36
35
|
AccountsToJSON,
|
|
37
|
-
DetailedAccountFromJSON,
|
|
38
|
-
DetailedAccountToJSON,
|
|
39
36
|
DetailedAccountsFromJSON,
|
|
40
37
|
DetailedAccountsToJSON,
|
|
41
38
|
FeeBucketFromJSON,
|
|
@@ -99,11 +96,6 @@ export interface PnlRequest {
|
|
|
99
96
|
ignore_transfers?: boolean;
|
|
100
97
|
}
|
|
101
98
|
|
|
102
|
-
export interface PublicPoolRequest {
|
|
103
|
-
index: number;
|
|
104
|
-
account_index?: number;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
99
|
export interface PublicPoolsRequest {
|
|
108
100
|
filter: string;
|
|
109
101
|
index: number;
|
|
@@ -560,49 +552,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
560
552
|
return await response.value();
|
|
561
553
|
}
|
|
562
554
|
|
|
563
|
-
/**
|
|
564
|
-
* Get public pool
|
|
565
|
-
* publicPool
|
|
566
|
-
*/
|
|
567
|
-
async publicPoolRaw(requestParameters: PublicPoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DetailedAccount>> {
|
|
568
|
-
if (requestParameters['index'] == null) {
|
|
569
|
-
throw new runtime.RequiredError(
|
|
570
|
-
'index',
|
|
571
|
-
'Required parameter "index" was null or undefined when calling publicPool().'
|
|
572
|
-
);
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
const queryParameters: any = {};
|
|
576
|
-
|
|
577
|
-
if (requestParameters['index'] != null) {
|
|
578
|
-
queryParameters['index'] = requestParameters['index'];
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
if (requestParameters['account_index'] != null) {
|
|
582
|
-
queryParameters['account_index'] = requestParameters['account_index'];
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
586
|
-
|
|
587
|
-
const response = await this.request({
|
|
588
|
-
path: `/api/v1/publicPool`,
|
|
589
|
-
method: 'GET',
|
|
590
|
-
headers: headerParameters,
|
|
591
|
-
query: queryParameters,
|
|
592
|
-
}, initOverrides);
|
|
593
|
-
|
|
594
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => DetailedAccountFromJSON(jsonValue));
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
* Get public pool
|
|
599
|
-
* publicPool
|
|
600
|
-
*/
|
|
601
|
-
async publicPool(requestParameters: PublicPoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DetailedAccount> {
|
|
602
|
-
const response = await this.publicPoolRaw(requestParameters, initOverrides);
|
|
603
|
-
return await response.value();
|
|
604
|
-
}
|
|
605
|
-
|
|
606
555
|
/**
|
|
607
556
|
* Get public pools
|
|
608
557
|
* publicPools
|
|
@@ -146,12 +146,6 @@ export interface DetailedAccount {
|
|
|
146
146
|
* @memberof DetailedAccount
|
|
147
147
|
*/
|
|
148
148
|
shares: Array<PublicPoolShare>;
|
|
149
|
-
/**
|
|
150
|
-
*
|
|
151
|
-
* @type {PublicPoolShare}
|
|
152
|
-
* @memberof DetailedAccount
|
|
153
|
-
*/
|
|
154
|
-
account_share: PublicPoolShare;
|
|
155
149
|
}
|
|
156
150
|
|
|
157
151
|
/**
|
|
@@ -174,7 +168,6 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
|
|
|
174
168
|
if (!('market_stats' in value) || value['market_stats'] === undefined) return false;
|
|
175
169
|
if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
|
|
176
170
|
if (!('shares' in value) || value['shares'] === undefined) return false;
|
|
177
|
-
if (!('account_share' in value) || value['account_share'] === undefined) return false;
|
|
178
171
|
return true;
|
|
179
172
|
}
|
|
180
173
|
|
|
@@ -205,7 +198,6 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
205
198
|
'market_stats': ((json['market_stats'] as Array<any>).map(AccountMarketStatsFromJSON)),
|
|
206
199
|
'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
|
|
207
200
|
'shares': ((json['shares'] as Array<any>).map(PublicPoolShareFromJSON)),
|
|
208
|
-
'account_share': PublicPoolShareFromJSON(json['account_share']),
|
|
209
201
|
};
|
|
210
202
|
}
|
|
211
203
|
|
|
@@ -232,7 +224,6 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
|
|
|
232
224
|
'market_stats': ((value['market_stats'] as Array<any>).map(AccountMarketStatsToJSON)),
|
|
233
225
|
'pool_info': PublicPoolInfoToJSON(value['pool_info']),
|
|
234
226
|
'shares': ((value['shares'] as Array<any>).map(PublicPoolShareToJSON)),
|
|
235
|
-
'account_share': PublicPoolShareToJSON(value['account_share']),
|
|
236
227
|
};
|
|
237
228
|
}
|
|
238
229
|
|
package/models/index.ts
CHANGED
|
@@ -71,7 +71,6 @@ export * from './ReqGetNextNonce';
|
|
|
71
71
|
export * from './ReqGetOrderBookDetails';
|
|
72
72
|
export * from './ReqGetOrderBookOrders';
|
|
73
73
|
export * from './ReqGetOrderBooks';
|
|
74
|
-
export * from './ReqGetPublicPool';
|
|
75
74
|
export * from './ReqGetPublicPools';
|
|
76
75
|
export * from './ReqGetRangeWithCursor';
|
|
77
76
|
export * from './ReqGetRangeWithIndex';
|
package/openapi.json
CHANGED
|
@@ -1381,49 +1381,6 @@
|
|
|
1381
1381
|
"description": "Get account PnL chart"
|
|
1382
1382
|
}
|
|
1383
1383
|
},
|
|
1384
|
-
"/api/v1/publicPool": {
|
|
1385
|
-
"get": {
|
|
1386
|
-
"summary": "publicPool",
|
|
1387
|
-
"operationId": "publicPool",
|
|
1388
|
-
"responses": {
|
|
1389
|
-
"200": {
|
|
1390
|
-
"description": "A successful response.",
|
|
1391
|
-
"schema": {
|
|
1392
|
-
"$ref": "#/definitions/DetailedAccount"
|
|
1393
|
-
}
|
|
1394
|
-
},
|
|
1395
|
-
"400": {
|
|
1396
|
-
"description": "Bad request",
|
|
1397
|
-
"schema": {
|
|
1398
|
-
"$ref": "#/definitions/ResultCode"
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
},
|
|
1402
|
-
"parameters": [
|
|
1403
|
-
{
|
|
1404
|
-
"name": "index",
|
|
1405
|
-
"in": "query",
|
|
1406
|
-
"required": true,
|
|
1407
|
-
"type": "integer",
|
|
1408
|
-
"format": "int64"
|
|
1409
|
-
},
|
|
1410
|
-
{
|
|
1411
|
-
"name": "account_index",
|
|
1412
|
-
"in": "query",
|
|
1413
|
-
"required": false,
|
|
1414
|
-
"type": "integer",
|
|
1415
|
-
"format": "int64"
|
|
1416
|
-
}
|
|
1417
|
-
],
|
|
1418
|
-
"tags": [
|
|
1419
|
-
"account"
|
|
1420
|
-
],
|
|
1421
|
-
"consumes": [
|
|
1422
|
-
"multipart/form-data"
|
|
1423
|
-
],
|
|
1424
|
-
"description": "Get public pool"
|
|
1425
|
-
}
|
|
1426
|
-
},
|
|
1427
1384
|
"/api/v1/publicPools": {
|
|
1428
1385
|
"get": {
|
|
1429
1386
|
"summary": "publicPools",
|
|
@@ -2507,9 +2464,6 @@
|
|
|
2507
2464
|
"items": {
|
|
2508
2465
|
"$ref": "#/definitions/PublicPoolShare"
|
|
2509
2466
|
}
|
|
2510
|
-
},
|
|
2511
|
-
"account_share": {
|
|
2512
|
-
"$ref": "#/definitions/PublicPoolShare"
|
|
2513
2467
|
}
|
|
2514
2468
|
},
|
|
2515
2469
|
"title": "DetailedAccount",
|
|
@@ -2529,8 +2483,7 @@
|
|
|
2529
2483
|
"total_asset_value",
|
|
2530
2484
|
"market_stats",
|
|
2531
2485
|
"pool_info",
|
|
2532
|
-
"shares"
|
|
2533
|
-
"account_share"
|
|
2486
|
+
"shares"
|
|
2534
2487
|
]
|
|
2535
2488
|
},
|
|
2536
2489
|
"DetailedAccounts": {
|
|
@@ -4568,23 +4521,6 @@
|
|
|
4568
4521
|
},
|
|
4569
4522
|
"title": "ReqGetOrderBooks"
|
|
4570
4523
|
},
|
|
4571
|
-
"ReqGetPublicPool": {
|
|
4572
|
-
"type": "object",
|
|
4573
|
-
"properties": {
|
|
4574
|
-
"index": {
|
|
4575
|
-
"type": "integer",
|
|
4576
|
-
"format": "int64"
|
|
4577
|
-
},
|
|
4578
|
-
"account_index": {
|
|
4579
|
-
"type": "integer",
|
|
4580
|
-
"format": "int64"
|
|
4581
|
-
}
|
|
4582
|
-
},
|
|
4583
|
-
"title": "ReqGetPublicPool",
|
|
4584
|
-
"required": [
|
|
4585
|
-
"index"
|
|
4586
|
-
]
|
|
4587
|
-
},
|
|
4588
4524
|
"ReqGetPublicPools": {
|
|
4589
4525
|
"type": "object",
|
|
4590
4526
|
"properties": {
|