zklighter-perps 1.0.56 → 1.0.58
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/LiquidationApi.ts +23 -8
- package/models/Order.ts +2 -1
- package/models/index.ts +0 -1
- package/openapi.json +8 -31
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/apis/LiquidationApi.ts
CHANGED
|
@@ -77,33 +77,48 @@ export class LiquidationApi extends runtime.BaseAPI {
|
|
|
77
77
|
|
|
78
78
|
const queryParameters: any = {};
|
|
79
79
|
|
|
80
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
81
|
+
|
|
82
|
+
const consumes: runtime.Consume[] = [
|
|
83
|
+
{ contentType: 'multipart/form-data' },
|
|
84
|
+
];
|
|
85
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
86
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
87
|
+
|
|
88
|
+
let formParams: { append(param: string, value: any): any };
|
|
89
|
+
let useForm = false;
|
|
90
|
+
if (useForm) {
|
|
91
|
+
formParams = new FormData();
|
|
92
|
+
} else {
|
|
93
|
+
formParams = new URLSearchParams();
|
|
94
|
+
}
|
|
95
|
+
|
|
80
96
|
if (requestParameters['notif_type'] != null) {
|
|
81
|
-
|
|
97
|
+
formParams.append('notif_type', requestParameters['notif_type'] as any);
|
|
82
98
|
}
|
|
83
99
|
|
|
84
100
|
if (requestParameters['account_index'] != null) {
|
|
85
|
-
|
|
101
|
+
formParams.append('account_index', requestParameters['account_index'] as any);
|
|
86
102
|
}
|
|
87
103
|
|
|
88
104
|
if (requestParameters['api_key_index'] != null) {
|
|
89
|
-
|
|
105
|
+
formParams.append('api_key_index', requestParameters['api_key_index'] as any);
|
|
90
106
|
}
|
|
91
107
|
|
|
92
108
|
if (requestParameters['liquidation_ids'] != null) {
|
|
93
|
-
|
|
109
|
+
formParams.append('liquidation_ids', requestParameters['liquidation_ids'] as any);
|
|
94
110
|
}
|
|
95
111
|
|
|
96
112
|
if (requestParameters['signature'] != null) {
|
|
97
|
-
|
|
113
|
+
formParams.append('signature', requestParameters['signature'] as any);
|
|
98
114
|
}
|
|
99
115
|
|
|
100
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
101
|
-
|
|
102
116
|
const response = await this.request({
|
|
103
117
|
path: `/api/v1/markNotifRead`,
|
|
104
|
-
method: '
|
|
118
|
+
method: 'POST',
|
|
105
119
|
headers: headerParameters,
|
|
106
120
|
query: queryParameters,
|
|
121
|
+
body: formParams,
|
|
107
122
|
}, initOverrides);
|
|
108
123
|
|
|
109
124
|
return new runtime.JSONApiResponse(response, (jsonValue) => ResultCodeFromJSON(jsonValue));
|
package/models/Order.ts
CHANGED
|
@@ -177,7 +177,8 @@ export const OrderTypeEnum = {
|
|
|
177
177
|
TakeProfit: 'take-profit',
|
|
178
178
|
TakeProfitLimit: 'take-profit-limit',
|
|
179
179
|
Twap: 'twap',
|
|
180
|
-
TwapSub: 'twap-sub'
|
|
180
|
+
TwapSub: 'twap-sub',
|
|
181
|
+
Liquidation: 'liquidation'
|
|
181
182
|
} as const;
|
|
182
183
|
export type OrderTypeEnum = typeof OrderTypeEnum[keyof typeof OrderTypeEnum];
|
|
183
184
|
|
package/models/index.ts
CHANGED
|
@@ -77,7 +77,6 @@ export * from './ReqGetRangeWithIndexSortable';
|
|
|
77
77
|
export * from './ReqGetRecentTrades';
|
|
78
78
|
export * from './ReqGetTrades';
|
|
79
79
|
export * from './ReqGetTx';
|
|
80
|
-
export * from './ReqMarkNotifRead';
|
|
81
80
|
export * from './ResultCode';
|
|
82
81
|
export * from './SimpleOrder';
|
|
83
82
|
export * from './Status';
|
package/openapi.json
CHANGED
|
@@ -968,7 +968,7 @@
|
|
|
968
968
|
}
|
|
969
969
|
},
|
|
970
970
|
"/api/v1/markNotifRead": {
|
|
971
|
-
"
|
|
971
|
+
"post": {
|
|
972
972
|
"summary": "markNotifRead",
|
|
973
973
|
"operationId": "markNotifRead",
|
|
974
974
|
"responses": {
|
|
@@ -987,36 +987,12 @@
|
|
|
987
987
|
},
|
|
988
988
|
"parameters": [
|
|
989
989
|
{
|
|
990
|
-
"name": "
|
|
991
|
-
"in": "
|
|
992
|
-
"required": true,
|
|
993
|
-
"type": "string"
|
|
994
|
-
},
|
|
995
|
-
{
|
|
996
|
-
"name": "account_index",
|
|
997
|
-
"in": "query",
|
|
998
|
-
"required": true,
|
|
999
|
-
"type": "integer",
|
|
1000
|
-
"format": "int64"
|
|
1001
|
-
},
|
|
1002
|
-
{
|
|
1003
|
-
"name": "api_key_index",
|
|
1004
|
-
"in": "query",
|
|
1005
|
-
"required": true,
|
|
1006
|
-
"type": "integer",
|
|
1007
|
-
"format": "uint8"
|
|
1008
|
-
},
|
|
1009
|
-
{
|
|
1010
|
-
"name": "liquidation_ids",
|
|
1011
|
-
"in": "query",
|
|
1012
|
-
"required": true,
|
|
1013
|
-
"type": "string"
|
|
1014
|
-
},
|
|
1015
|
-
{
|
|
1016
|
-
"name": "signature",
|
|
1017
|
-
"in": "query",
|
|
990
|
+
"name": "body",
|
|
991
|
+
"in": "body",
|
|
1018
992
|
"required": true,
|
|
1019
|
-
"
|
|
993
|
+
"schema": {
|
|
994
|
+
"$ref": "#/definitions/ReqMarkNotifRead"
|
|
995
|
+
}
|
|
1020
996
|
}
|
|
1021
997
|
],
|
|
1022
998
|
"tags": [
|
|
@@ -3078,7 +3054,8 @@
|
|
|
3078
3054
|
"take-profit",
|
|
3079
3055
|
"take-profit-limit",
|
|
3080
3056
|
"twap",
|
|
3081
|
-
"twap-sub"
|
|
3057
|
+
"twap-sub",
|
|
3058
|
+
"liquidation"
|
|
3082
3059
|
]
|
|
3083
3060
|
},
|
|
3084
3061
|
"time_in_force": {
|