zklighter-perps 1.0.66 → 1.0.67
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/AccountApi.ts +5 -0
- package/apis/OrderApi.ts +12 -0
- package/apis/TransactionApi.ts +6 -6
- package/models/ReqGetAccountActiveOrders.ts +9 -0
- package/models/ReqGetAccountPnL.ts +8 -0
- package/openapi.json +26 -3
- package/package.json +1 -1
package/apis/AccountApi.ts
CHANGED
|
@@ -86,6 +86,7 @@ export interface PnlRequest {
|
|
|
86
86
|
start_timestamp: number;
|
|
87
87
|
end_timestamp: number;
|
|
88
88
|
count_back: number;
|
|
89
|
+
ignore_transfers?: boolean;
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
export interface PublicPoolsRequest {
|
|
@@ -479,6 +480,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
479
480
|
queryParameters['count_back'] = requestParameters['count_back'];
|
|
480
481
|
}
|
|
481
482
|
|
|
483
|
+
if (requestParameters['ignore_transfers'] != null) {
|
|
484
|
+
queryParameters['ignore_transfers'] = requestParameters['ignore_transfers'];
|
|
485
|
+
}
|
|
486
|
+
|
|
482
487
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
483
488
|
|
|
484
489
|
const response = await this.request({
|
package/apis/OrderApi.ts
CHANGED
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
export interface AccountActiveOrdersRequest {
|
|
44
44
|
account_index: number;
|
|
45
45
|
market_id: number;
|
|
46
|
+
auth: string;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
export interface AccountInactiveOrdersRequest {
|
|
@@ -114,6 +115,13 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
114
115
|
);
|
|
115
116
|
}
|
|
116
117
|
|
|
118
|
+
if (requestParameters['auth'] == null) {
|
|
119
|
+
throw new runtime.RequiredError(
|
|
120
|
+
'auth',
|
|
121
|
+
'Required parameter "auth" was null or undefined when calling accountActiveOrders().'
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
117
125
|
const queryParameters: any = {};
|
|
118
126
|
|
|
119
127
|
if (requestParameters['account_index'] != null) {
|
|
@@ -124,6 +132,10 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
124
132
|
queryParameters['market_id'] = requestParameters['market_id'];
|
|
125
133
|
}
|
|
126
134
|
|
|
135
|
+
if (requestParameters['auth'] != null) {
|
|
136
|
+
queryParameters['auth'] = requestParameters['auth'];
|
|
137
|
+
}
|
|
138
|
+
|
|
127
139
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
128
140
|
|
|
129
141
|
const response = await this.request({
|
package/apis/TransactionApi.ts
CHANGED
|
@@ -82,7 +82,7 @@ export interface SetAccountMetadataRequest {
|
|
|
82
82
|
target_account_index: number;
|
|
83
83
|
api_key_index: number;
|
|
84
84
|
metadata: string;
|
|
85
|
-
|
|
85
|
+
auth: string;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
export interface TxRequest {
|
|
@@ -537,10 +537,10 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
537
537
|
);
|
|
538
538
|
}
|
|
539
539
|
|
|
540
|
-
if (requestParameters['
|
|
540
|
+
if (requestParameters['auth'] == null) {
|
|
541
541
|
throw new runtime.RequiredError(
|
|
542
|
-
'
|
|
543
|
-
'Required parameter "
|
|
542
|
+
'auth',
|
|
543
|
+
'Required parameter "auth" was null or undefined when calling setAccountMetadata().'
|
|
544
544
|
);
|
|
545
545
|
}
|
|
546
546
|
|
|
@@ -578,8 +578,8 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
578
578
|
formParams.append('metadata', requestParameters['metadata'] as any);
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
if (requestParameters['
|
|
582
|
-
formParams.append('
|
|
581
|
+
if (requestParameters['auth'] != null) {
|
|
582
|
+
formParams.append('auth', requestParameters['auth'] as any);
|
|
583
583
|
}
|
|
584
584
|
|
|
585
585
|
const response = await this.request({
|
|
@@ -31,6 +31,12 @@ export interface ReqGetAccountActiveOrders {
|
|
|
31
31
|
* @memberof ReqGetAccountActiveOrders
|
|
32
32
|
*/
|
|
33
33
|
market_id: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ReqGetAccountActiveOrders
|
|
38
|
+
*/
|
|
39
|
+
auth: string;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -39,6 +45,7 @@ export interface ReqGetAccountActiveOrders {
|
|
|
39
45
|
export function instanceOfReqGetAccountActiveOrders(value: object): value is ReqGetAccountActiveOrders {
|
|
40
46
|
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
41
47
|
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
48
|
+
if (!('auth' in value) || value['auth'] === undefined) return false;
|
|
42
49
|
return true;
|
|
43
50
|
}
|
|
44
51
|
|
|
@@ -54,6 +61,7 @@ export function ReqGetAccountActiveOrdersFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
54
61
|
|
|
55
62
|
'account_index': json['account_index'],
|
|
56
63
|
'market_id': json['market_id'],
|
|
64
|
+
'auth': json['auth'],
|
|
57
65
|
};
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -65,6 +73,7 @@ export function ReqGetAccountActiveOrdersToJSON(value?: ReqGetAccountActiveOrder
|
|
|
65
73
|
|
|
66
74
|
'account_index': value['account_index'],
|
|
67
75
|
'market_id': value['market_id'],
|
|
76
|
+
'auth': value['auth'],
|
|
68
77
|
};
|
|
69
78
|
}
|
|
70
79
|
|
|
@@ -55,6 +55,12 @@ export interface ReqGetAccountPnL {
|
|
|
55
55
|
* @memberof ReqGetAccountPnL
|
|
56
56
|
*/
|
|
57
57
|
count_back: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof ReqGetAccountPnL
|
|
62
|
+
*/
|
|
63
|
+
ignore_transfers?: boolean;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
|
|
@@ -109,6 +115,7 @@ export function ReqGetAccountPnLFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
109
115
|
'start_timestamp': json['start_timestamp'],
|
|
110
116
|
'end_timestamp': json['end_timestamp'],
|
|
111
117
|
'count_back': json['count_back'],
|
|
118
|
+
'ignore_transfers': json['ignore_transfers'] == null ? undefined : json['ignore_transfers'],
|
|
112
119
|
};
|
|
113
120
|
}
|
|
114
121
|
|
|
@@ -124,6 +131,7 @@ export function ReqGetAccountPnLToJSON(value?: ReqGetAccountPnL | null): any {
|
|
|
124
131
|
'start_timestamp': value['start_timestamp'],
|
|
125
132
|
'end_timestamp': value['end_timestamp'],
|
|
126
133
|
'count_back': value['count_back'],
|
|
134
|
+
'ignore_transfers': value['ignore_transfers'],
|
|
127
135
|
};
|
|
128
136
|
}
|
|
129
137
|
|
package/openapi.json
CHANGED
|
@@ -116,6 +116,12 @@
|
|
|
116
116
|
"required": true,
|
|
117
117
|
"type": "integer",
|
|
118
118
|
"format": "uint8"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "auth",
|
|
122
|
+
"in": "query",
|
|
123
|
+
"required": true,
|
|
124
|
+
"type": "string"
|
|
119
125
|
}
|
|
120
126
|
],
|
|
121
127
|
"tags": [
|
|
@@ -1321,6 +1327,14 @@
|
|
|
1321
1327
|
"required": true,
|
|
1322
1328
|
"type": "integer",
|
|
1323
1329
|
"format": "int64"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"name": "ignore_transfers",
|
|
1333
|
+
"in": "query",
|
|
1334
|
+
"required": false,
|
|
1335
|
+
"type": "boolean",
|
|
1336
|
+
"format": "boolean",
|
|
1337
|
+
"default": "false"
|
|
1324
1338
|
}
|
|
1325
1339
|
],
|
|
1326
1340
|
"tags": [
|
|
@@ -3979,12 +3993,16 @@
|
|
|
3979
3993
|
"market_id": {
|
|
3980
3994
|
"type": "integer",
|
|
3981
3995
|
"format": "uint8"
|
|
3996
|
+
},
|
|
3997
|
+
"auth": {
|
|
3998
|
+
"type": "string"
|
|
3982
3999
|
}
|
|
3983
4000
|
},
|
|
3984
4001
|
"title": "ReqGetAccountActiveOrders",
|
|
3985
4002
|
"required": [
|
|
3986
4003
|
"account_index",
|
|
3987
|
-
"market_id"
|
|
4004
|
+
"market_id",
|
|
4005
|
+
"auth"
|
|
3988
4006
|
]
|
|
3989
4007
|
},
|
|
3990
4008
|
"ReqGetAccountApiKeys": {
|
|
@@ -4132,6 +4150,11 @@
|
|
|
4132
4150
|
"count_back": {
|
|
4133
4151
|
"type": "integer",
|
|
4134
4152
|
"format": "int64"
|
|
4153
|
+
},
|
|
4154
|
+
"ignore_transfers": {
|
|
4155
|
+
"type": "boolean",
|
|
4156
|
+
"format": "boolean",
|
|
4157
|
+
"default": "false"
|
|
4135
4158
|
}
|
|
4136
4159
|
},
|
|
4137
4160
|
"title": "ReqGetAccountPnL",
|
|
@@ -4686,7 +4709,7 @@
|
|
|
4686
4709
|
"metadata": {
|
|
4687
4710
|
"type": "string"
|
|
4688
4711
|
},
|
|
4689
|
-
"
|
|
4712
|
+
"auth": {
|
|
4690
4713
|
"type": "string"
|
|
4691
4714
|
}
|
|
4692
4715
|
},
|
|
@@ -4696,7 +4719,7 @@
|
|
|
4696
4719
|
"target_account_index",
|
|
4697
4720
|
"api_key_index",
|
|
4698
4721
|
"metadata",
|
|
4699
|
-
"
|
|
4722
|
+
"auth"
|
|
4700
4723
|
]
|
|
4701
4724
|
},
|
|
4702
4725
|
"ResultCode": {
|