zklighter-perps 1.0.109 → 1.0.111
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/apis/OrderApi.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface AccountActiveOrdersRequest {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export interface AccountInactiveOrdersRequest {
|
|
50
|
+
auth: string;
|
|
50
51
|
account_index: number;
|
|
51
52
|
limit: number;
|
|
52
53
|
market_id?: number;
|
|
@@ -163,6 +164,13 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
163
164
|
* accountInactiveOrders
|
|
164
165
|
*/
|
|
165
166
|
async accountInactiveOrdersRaw(requestParameters: AccountInactiveOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Orders>> {
|
|
167
|
+
if (requestParameters['auth'] == null) {
|
|
168
|
+
throw new runtime.RequiredError(
|
|
169
|
+
'auth',
|
|
170
|
+
'Required parameter "auth" was null or undefined when calling accountInactiveOrders().'
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
166
174
|
if (requestParameters['account_index'] == null) {
|
|
167
175
|
throw new runtime.RequiredError(
|
|
168
176
|
'account_index',
|
|
@@ -179,6 +187,10 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
179
187
|
|
|
180
188
|
const queryParameters: any = {};
|
|
181
189
|
|
|
190
|
+
if (requestParameters['auth'] != null) {
|
|
191
|
+
queryParameters['auth'] = requestParameters['auth'];
|
|
192
|
+
}
|
|
193
|
+
|
|
182
194
|
if (requestParameters['account_index'] != null) {
|
|
183
195
|
queryParameters['account_index'] = requestParameters['account_index'];
|
|
184
196
|
}
|
|
@@ -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 { Mapint64AccountMetadata } from './Mapint64AccountMetadata';
|
|
17
|
+
import {
|
|
18
|
+
Mapint64AccountMetadataFromJSON,
|
|
19
|
+
Mapint64AccountMetadataFromJSONTyped,
|
|
20
|
+
Mapint64AccountMetadataToJSON,
|
|
21
|
+
} from './Mapint64AccountMetadata';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface AccountMetadatas
|
|
27
|
+
*/
|
|
28
|
+
export interface AccountMetadatas {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof AccountMetadatas
|
|
33
|
+
*/
|
|
34
|
+
code: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof AccountMetadatas
|
|
39
|
+
*/
|
|
40
|
+
message?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Mapint64AccountMetadata}
|
|
44
|
+
* @memberof AccountMetadatas
|
|
45
|
+
*/
|
|
46
|
+
account_metadatas: Mapint64AccountMetadata;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AccountMetadatas interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfAccountMetadatas(value: object): value is AccountMetadatas {
|
|
53
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
54
|
+
if (!('account_metadatas' in value) || value['account_metadatas'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function AccountMetadatasFromJSON(json: any): AccountMetadatas {
|
|
59
|
+
return AccountMetadatasFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AccountMetadatasFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMetadatas {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'code': json['code'],
|
|
69
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
70
|
+
'account_metadatas': Mapint64AccountMetadataFromJSON(json['account_metadatas']),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function AccountMetadatasToJSON(value?: AccountMetadatas | null): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'code': value['code'],
|
|
81
|
+
'message': value['message'],
|
|
82
|
+
'account_metadatas': Mapint64AccountMetadataToJSON(value['account_metadatas']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface ReqGetAccountInactiveOrders
|
|
20
20
|
*/
|
|
21
21
|
export interface ReqGetAccountInactiveOrders {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReqGetAccountInactiveOrders
|
|
26
|
+
*/
|
|
27
|
+
auth: string;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {number}
|
|
@@ -61,6 +67,7 @@ export interface ReqGetAccountInactiveOrders {
|
|
|
61
67
|
* Check if a given object implements the ReqGetAccountInactiveOrders interface.
|
|
62
68
|
*/
|
|
63
69
|
export function instanceOfReqGetAccountInactiveOrders(value: object): value is ReqGetAccountInactiveOrders {
|
|
70
|
+
if (!('auth' in value) || value['auth'] === undefined) return false;
|
|
64
71
|
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
65
72
|
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
66
73
|
return true;
|
|
@@ -76,6 +83,7 @@ export function ReqGetAccountInactiveOrdersFromJSONTyped(json: any, ignoreDiscri
|
|
|
76
83
|
}
|
|
77
84
|
return {
|
|
78
85
|
|
|
86
|
+
'auth': json['auth'],
|
|
79
87
|
'account_index': json['account_index'],
|
|
80
88
|
'market_id': json['market_id'] == null ? undefined : json['market_id'],
|
|
81
89
|
'ask_filter': json['ask_filter'] == null ? undefined : json['ask_filter'],
|
|
@@ -91,6 +99,7 @@ export function ReqGetAccountInactiveOrdersToJSON(value?: ReqGetAccountInactiveO
|
|
|
91
99
|
}
|
|
92
100
|
return {
|
|
93
101
|
|
|
102
|
+
'auth': value['auth'],
|
|
94
103
|
'account_index': value['account_index'],
|
|
95
104
|
'market_id': value['market_id'],
|
|
96
105
|
'ask_filter': value['ask_filter'],
|
|
@@ -0,0 +1,89 @@
|
|
|
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 ReqGetAccountMetadata
|
|
20
|
+
*/
|
|
21
|
+
export interface ReqGetAccountMetadata {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReqGetAccountMetadata
|
|
26
|
+
*/
|
|
27
|
+
by: ReqGetAccountMetadataByEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ReqGetAccountMetadata
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ReqGetAccountMetadata
|
|
38
|
+
*/
|
|
39
|
+
auth?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ReqGetAccountMetadataByEnum = {
|
|
47
|
+
Index: 'index',
|
|
48
|
+
L1Address: 'l1_address'
|
|
49
|
+
} as const;
|
|
50
|
+
export type ReqGetAccountMetadataByEnum = typeof ReqGetAccountMetadataByEnum[keyof typeof ReqGetAccountMetadataByEnum];
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ReqGetAccountMetadata interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfReqGetAccountMetadata(value: object): value is ReqGetAccountMetadata {
|
|
57
|
+
if (!('by' in value) || value['by'] === undefined) return false;
|
|
58
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ReqGetAccountMetadataFromJSON(json: any): ReqGetAccountMetadata {
|
|
63
|
+
return ReqGetAccountMetadataFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ReqGetAccountMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetAccountMetadata {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'by': json['by'],
|
|
73
|
+
'value': json['value'],
|
|
74
|
+
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ReqGetAccountMetadataToJSON(value?: ReqGetAccountMetadata | null): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'by': value['by'],
|
|
85
|
+
'value': value['value'],
|
|
86
|
+
'auth': value['auth'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
package/openapi.json
CHANGED
|
@@ -152,6 +152,12 @@
|
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
"parameters": [
|
|
155
|
+
{
|
|
156
|
+
"name": "auth",
|
|
157
|
+
"in": "query",
|
|
158
|
+
"required": true,
|
|
159
|
+
"type": "string"
|
|
160
|
+
},
|
|
155
161
|
{
|
|
156
162
|
"name": "account_index",
|
|
157
163
|
"in": "query",
|
|
@@ -5585,6 +5591,9 @@
|
|
|
5585
5591
|
"ReqGetAccountInactiveOrders": {
|
|
5586
5592
|
"type": "object",
|
|
5587
5593
|
"properties": {
|
|
5594
|
+
"auth": {
|
|
5595
|
+
"type": "string"
|
|
5596
|
+
},
|
|
5588
5597
|
"account_index": {
|
|
5589
5598
|
"type": "integer",
|
|
5590
5599
|
"format": "int64"
|
|
@@ -5614,6 +5623,7 @@
|
|
|
5614
5623
|
},
|
|
5615
5624
|
"title": "ReqGetAccountInactiveOrders",
|
|
5616
5625
|
"required": [
|
|
5626
|
+
"auth",
|
|
5617
5627
|
"account_index",
|
|
5618
5628
|
"limit"
|
|
5619
5629
|
]
|