zklighter-perps 1.0.115 → 1.0.116
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 +1 -8
- package/models/ReqGetTrades.ts +2 -3
- package/openapi.json +1 -2
- package/package.json +1 -1
package/apis/OrderApi.ts
CHANGED
|
@@ -83,9 +83,9 @@ export interface RecentTradesRequest {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export interface TradesRequest {
|
|
86
|
-
auth: string;
|
|
87
86
|
sort_by: TradesSortByEnum;
|
|
88
87
|
limit: number;
|
|
88
|
+
auth?: string;
|
|
89
89
|
market_id?: number;
|
|
90
90
|
account_index?: number;
|
|
91
91
|
order_index?: number;
|
|
@@ -511,13 +511,6 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
511
511
|
* trades
|
|
512
512
|
*/
|
|
513
513
|
async tradesRaw(requestParameters: TradesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Trades>> {
|
|
514
|
-
if (requestParameters['auth'] == null) {
|
|
515
|
-
throw new runtime.RequiredError(
|
|
516
|
-
'auth',
|
|
517
|
-
'Required parameter "auth" was null or undefined when calling trades().'
|
|
518
|
-
);
|
|
519
|
-
}
|
|
520
|
-
|
|
521
514
|
if (requestParameters['sort_by'] == null) {
|
|
522
515
|
throw new runtime.RequiredError(
|
|
523
516
|
'sort_by',
|
package/models/ReqGetTrades.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface ReqGetTrades {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof ReqGetTrades
|
|
26
26
|
*/
|
|
27
|
-
auth
|
|
27
|
+
auth?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
@@ -106,7 +106,6 @@ export type ReqGetTradesSortDirEnum = typeof ReqGetTradesSortDirEnum[keyof typeo
|
|
|
106
106
|
* Check if a given object implements the ReqGetTrades interface.
|
|
107
107
|
*/
|
|
108
108
|
export function instanceOfReqGetTrades(value: object): value is ReqGetTrades {
|
|
109
|
-
if (!('auth' in value) || value['auth'] === undefined) return false;
|
|
110
109
|
if (!('sort_by' in value) || value['sort_by'] === undefined) return false;
|
|
111
110
|
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -122,7 +121,7 @@ export function ReqGetTradesFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
122
121
|
}
|
|
123
122
|
return {
|
|
124
123
|
|
|
125
|
-
'auth': json['auth'],
|
|
124
|
+
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
126
125
|
'market_id': json['market_id'] == null ? undefined : json['market_id'],
|
|
127
126
|
'account_index': json['account_index'] == null ? undefined : json['account_index'],
|
|
128
127
|
'order_index': json['order_index'] == null ? undefined : json['order_index'],
|
package/openapi.json
CHANGED
|
@@ -2168,7 +2168,7 @@
|
|
|
2168
2168
|
{
|
|
2169
2169
|
"name": "auth",
|
|
2170
2170
|
"in": "query",
|
|
2171
|
-
"required":
|
|
2171
|
+
"required": false,
|
|
2172
2172
|
"type": "string"
|
|
2173
2173
|
},
|
|
2174
2174
|
{
|
|
@@ -6237,7 +6237,6 @@
|
|
|
6237
6237
|
},
|
|
6238
6238
|
"title": "ReqGetTrades",
|
|
6239
6239
|
"required": [
|
|
6240
|
-
"auth",
|
|
6241
6240
|
"sort_by",
|
|
6242
6241
|
"limit"
|
|
6243
6242
|
]
|