zklighter-perps 1.0.158 → 1.0.159
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 -3
- package/apis/AccountApi.ts +0 -88
- package/models/index.ts +0 -3
- package/openapi.json +0 -256
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -76,11 +76,9 @@ models/PnLEntry.ts
|
|
|
76
76
|
models/PositionFunding.ts
|
|
77
77
|
models/PositionFundings.ts
|
|
78
78
|
models/PriceLevel.ts
|
|
79
|
-
models/PublicPool.ts
|
|
80
79
|
models/PublicPoolInfo.ts
|
|
81
80
|
models/PublicPoolMetadata.ts
|
|
82
81
|
models/PublicPoolShare.ts
|
|
83
|
-
models/PublicPools.ts
|
|
84
82
|
models/ReferralCode.ts
|
|
85
83
|
models/ReferralPointEntry.ts
|
|
86
84
|
models/ReferralPoints.ts
|
|
@@ -113,7 +111,6 @@ models/ReqGetOrderBookDetails.ts
|
|
|
113
111
|
models/ReqGetOrderBookOrders.ts
|
|
114
112
|
models/ReqGetOrderBooks.ts
|
|
115
113
|
models/ReqGetPositionFunding.ts
|
|
116
|
-
models/ReqGetPublicPools.ts
|
|
117
114
|
models/ReqGetPublicPoolsMetadata.ts
|
|
118
115
|
models/ReqGetRangeWithCursor.ts
|
|
119
116
|
models/ReqGetRangeWithIndex.ts
|
package/apis/AccountApi.ts
CHANGED
|
@@ -25,7 +25,6 @@ import type {
|
|
|
25
25
|
Leaderboard,
|
|
26
26
|
LiquidationInfos,
|
|
27
27
|
PositionFundings,
|
|
28
|
-
PublicPools,
|
|
29
28
|
RespChangeAccountTier,
|
|
30
29
|
RespPublicPoolsMetadata,
|
|
31
30
|
ResultCode,
|
|
@@ -52,8 +51,6 @@ import {
|
|
|
52
51
|
LiquidationInfosToJSON,
|
|
53
52
|
PositionFundingsFromJSON,
|
|
54
53
|
PositionFundingsToJSON,
|
|
55
|
-
PublicPoolsFromJSON,
|
|
56
|
-
PublicPoolsToJSON,
|
|
57
54
|
RespChangeAccountTierFromJSON,
|
|
58
55
|
RespChangeAccountTierToJSON,
|
|
59
56
|
RespPublicPoolsMetadataFromJSON,
|
|
@@ -151,15 +148,6 @@ export interface PositionFundingRequest {
|
|
|
151
148
|
side?: PositionFundingSideEnum;
|
|
152
149
|
}
|
|
153
150
|
|
|
154
|
-
export interface PublicPoolsRequest {
|
|
155
|
-
index: number;
|
|
156
|
-
limit: number;
|
|
157
|
-
authorization?: string;
|
|
158
|
-
auth?: string;
|
|
159
|
-
filter?: PublicPoolsFilterEnum;
|
|
160
|
-
account_index?: number;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
151
|
export interface PublicPoolsMetadataRequest {
|
|
164
152
|
index: number;
|
|
165
153
|
limit: number;
|
|
@@ -906,72 +894,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
906
894
|
return await response.value();
|
|
907
895
|
}
|
|
908
896
|
|
|
909
|
-
/**
|
|
910
|
-
* Get public pools
|
|
911
|
-
* publicPools
|
|
912
|
-
*/
|
|
913
|
-
async publicPoolsRaw(requestParameters: PublicPoolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicPools>> {
|
|
914
|
-
if (requestParameters['index'] == null) {
|
|
915
|
-
throw new runtime.RequiredError(
|
|
916
|
-
'index',
|
|
917
|
-
'Required parameter "index" was null or undefined when calling publicPools().'
|
|
918
|
-
);
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
if (requestParameters['limit'] == null) {
|
|
922
|
-
throw new runtime.RequiredError(
|
|
923
|
-
'limit',
|
|
924
|
-
'Required parameter "limit" was null or undefined when calling publicPools().'
|
|
925
|
-
);
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
const queryParameters: any = {};
|
|
929
|
-
|
|
930
|
-
if (requestParameters['auth'] != null) {
|
|
931
|
-
queryParameters['auth'] = requestParameters['auth'];
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
if (requestParameters['filter'] != null) {
|
|
935
|
-
queryParameters['filter'] = requestParameters['filter'];
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
if (requestParameters['index'] != null) {
|
|
939
|
-
queryParameters['index'] = requestParameters['index'];
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
if (requestParameters['limit'] != null) {
|
|
943
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
if (requestParameters['account_index'] != null) {
|
|
947
|
-
queryParameters['account_index'] = requestParameters['account_index'];
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
951
|
-
|
|
952
|
-
if (requestParameters['authorization'] != null) {
|
|
953
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
const response = await this.request({
|
|
957
|
-
path: `/api/v1/publicPools`,
|
|
958
|
-
method: 'GET',
|
|
959
|
-
headers: headerParameters,
|
|
960
|
-
query: queryParameters,
|
|
961
|
-
}, initOverrides);
|
|
962
|
-
|
|
963
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PublicPoolsFromJSON(jsonValue));
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
/**
|
|
967
|
-
* Get public pools
|
|
968
|
-
* publicPools
|
|
969
|
-
*/
|
|
970
|
-
async publicPools(requestParameters: PublicPoolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicPools> {
|
|
971
|
-
const response = await this.publicPoolsRaw(requestParameters, initOverrides);
|
|
972
|
-
return await response.value();
|
|
973
|
-
}
|
|
974
|
-
|
|
975
897
|
/**
|
|
976
898
|
* Get public pools metadata
|
|
977
899
|
* publicPoolsMetadata
|
|
@@ -1093,16 +1015,6 @@ export const PositionFundingSideEnum = {
|
|
|
1093
1015
|
All: 'all'
|
|
1094
1016
|
} as const;
|
|
1095
1017
|
export type PositionFundingSideEnum = typeof PositionFundingSideEnum[keyof typeof PositionFundingSideEnum];
|
|
1096
|
-
/**
|
|
1097
|
-
* @export
|
|
1098
|
-
*/
|
|
1099
|
-
export const PublicPoolsFilterEnum = {
|
|
1100
|
-
All: 'all',
|
|
1101
|
-
User: 'user',
|
|
1102
|
-
Protocol: 'protocol',
|
|
1103
|
-
AccountIndex: 'account_index'
|
|
1104
|
-
} as const;
|
|
1105
|
-
export type PublicPoolsFilterEnum = typeof PublicPoolsFilterEnum[keyof typeof PublicPoolsFilterEnum];
|
|
1106
1018
|
/**
|
|
1107
1019
|
* @export
|
|
1108
1020
|
*/
|
package/models/index.ts
CHANGED
|
@@ -64,11 +64,9 @@ export * from './PnLEntry';
|
|
|
64
64
|
export * from './PositionFunding';
|
|
65
65
|
export * from './PositionFundings';
|
|
66
66
|
export * from './PriceLevel';
|
|
67
|
-
export * from './PublicPool';
|
|
68
67
|
export * from './PublicPoolInfo';
|
|
69
68
|
export * from './PublicPoolMetadata';
|
|
70
69
|
export * from './PublicPoolShare';
|
|
71
|
-
export * from './PublicPools';
|
|
72
70
|
export * from './ReferralCode';
|
|
73
71
|
export * from './ReferralPointEntry';
|
|
74
72
|
export * from './ReferralPoints';
|
|
@@ -101,7 +99,6 @@ export * from './ReqGetOrderBookDetails';
|
|
|
101
99
|
export * from './ReqGetOrderBookOrders';
|
|
102
100
|
export * from './ReqGetOrderBooks';
|
|
103
101
|
export * from './ReqGetPositionFunding';
|
|
104
|
-
export * from './ReqGetPublicPools';
|
|
105
102
|
export * from './ReqGetPublicPoolsMetadata';
|
|
106
103
|
export * from './ReqGetRangeWithCursor';
|
|
107
104
|
export * from './ReqGetRangeWithIndex';
|
package/openapi.json
CHANGED
|
@@ -2098,82 +2098,6 @@
|
|
|
2098
2098
|
"description": "Get accounts position fundings"
|
|
2099
2099
|
}
|
|
2100
2100
|
},
|
|
2101
|
-
"/api/v1/publicPools": {
|
|
2102
|
-
"get": {
|
|
2103
|
-
"summary": "publicPools",
|
|
2104
|
-
"operationId": "publicPools",
|
|
2105
|
-
"responses": {
|
|
2106
|
-
"200": {
|
|
2107
|
-
"description": "A successful response.",
|
|
2108
|
-
"schema": {
|
|
2109
|
-
"$ref": "#/definitions/PublicPools"
|
|
2110
|
-
}
|
|
2111
|
-
},
|
|
2112
|
-
"400": {
|
|
2113
|
-
"description": "Bad request",
|
|
2114
|
-
"schema": {
|
|
2115
|
-
"$ref": "#/definitions/ResultCode"
|
|
2116
|
-
}
|
|
2117
|
-
}
|
|
2118
|
-
},
|
|
2119
|
-
"parameters": [
|
|
2120
|
-
{
|
|
2121
|
-
"name": "authorization",
|
|
2122
|
-
"in": "header",
|
|
2123
|
-
"required": false,
|
|
2124
|
-
"type": "string"
|
|
2125
|
-
},
|
|
2126
|
-
{
|
|
2127
|
-
"name": "auth",
|
|
2128
|
-
"in": "query",
|
|
2129
|
-
"required": false,
|
|
2130
|
-
"type": "string"
|
|
2131
|
-
},
|
|
2132
|
-
{
|
|
2133
|
-
"name": "filter",
|
|
2134
|
-
"in": "query",
|
|
2135
|
-
"required": false,
|
|
2136
|
-
"type": "string",
|
|
2137
|
-
"enum": [
|
|
2138
|
-
"all",
|
|
2139
|
-
"user",
|
|
2140
|
-
"protocol",
|
|
2141
|
-
"account_index"
|
|
2142
|
-
]
|
|
2143
|
-
},
|
|
2144
|
-
{
|
|
2145
|
-
"name": "index",
|
|
2146
|
-
"in": "query",
|
|
2147
|
-
"required": true,
|
|
2148
|
-
"type": "integer",
|
|
2149
|
-
"format": "int64"
|
|
2150
|
-
},
|
|
2151
|
-
{
|
|
2152
|
-
"name": "limit",
|
|
2153
|
-
"in": "query",
|
|
2154
|
-
"required": true,
|
|
2155
|
-
"type": "integer",
|
|
2156
|
-
"format": "int64",
|
|
2157
|
-
"minimum": 1,
|
|
2158
|
-
"maximum": 100
|
|
2159
|
-
},
|
|
2160
|
-
{
|
|
2161
|
-
"name": "account_index",
|
|
2162
|
-
"in": "query",
|
|
2163
|
-
"required": false,
|
|
2164
|
-
"type": "integer",
|
|
2165
|
-
"format": "int64"
|
|
2166
|
-
}
|
|
2167
|
-
],
|
|
2168
|
-
"tags": [
|
|
2169
|
-
"account"
|
|
2170
|
-
],
|
|
2171
|
-
"consumes": [
|
|
2172
|
-
"multipart/form-data"
|
|
2173
|
-
],
|
|
2174
|
-
"description": "Get public pools"
|
|
2175
|
-
}
|
|
2176
|
-
},
|
|
2177
2101
|
"/api/v1/publicPoolsMetadata": {
|
|
2178
2102
|
"get": {
|
|
2179
2103
|
"summary": "publicPoolsMetadata",
|
|
@@ -5932,121 +5856,6 @@
|
|
|
5932
5856
|
"size"
|
|
5933
5857
|
]
|
|
5934
5858
|
},
|
|
5935
|
-
"PublicPool": {
|
|
5936
|
-
"type": "object",
|
|
5937
|
-
"properties": {
|
|
5938
|
-
"code": {
|
|
5939
|
-
"type": "integer",
|
|
5940
|
-
"format": "int32",
|
|
5941
|
-
"example": "200"
|
|
5942
|
-
},
|
|
5943
|
-
"message": {
|
|
5944
|
-
"type": "string"
|
|
5945
|
-
},
|
|
5946
|
-
"account_type": {
|
|
5947
|
-
"type": "integer",
|
|
5948
|
-
"format": "uint8",
|
|
5949
|
-
"example": "1"
|
|
5950
|
-
},
|
|
5951
|
-
"index": {
|
|
5952
|
-
"type": "integer",
|
|
5953
|
-
"format": "int64",
|
|
5954
|
-
"example": "1"
|
|
5955
|
-
},
|
|
5956
|
-
"l1_address": {
|
|
5957
|
-
"type": "string",
|
|
5958
|
-
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
5959
|
-
},
|
|
5960
|
-
"cancel_all_time": {
|
|
5961
|
-
"type": "integer",
|
|
5962
|
-
"format": "int64",
|
|
5963
|
-
"example": "1640995200"
|
|
5964
|
-
},
|
|
5965
|
-
"total_order_count": {
|
|
5966
|
-
"type": "integer",
|
|
5967
|
-
"format": "int64",
|
|
5968
|
-
"example": "100"
|
|
5969
|
-
},
|
|
5970
|
-
"total_isolated_order_count": {
|
|
5971
|
-
"type": "integer",
|
|
5972
|
-
"format": "int64",
|
|
5973
|
-
"example": "100"
|
|
5974
|
-
},
|
|
5975
|
-
"pending_order_count": {
|
|
5976
|
-
"type": "integer",
|
|
5977
|
-
"format": "int64",
|
|
5978
|
-
"example": "100"
|
|
5979
|
-
},
|
|
5980
|
-
"available_balance": {
|
|
5981
|
-
"type": "string",
|
|
5982
|
-
"example": "19995"
|
|
5983
|
-
},
|
|
5984
|
-
"status": {
|
|
5985
|
-
"type": "integer",
|
|
5986
|
-
"format": "uint8",
|
|
5987
|
-
"example": "1"
|
|
5988
|
-
},
|
|
5989
|
-
"collateral": {
|
|
5990
|
-
"type": "string",
|
|
5991
|
-
"example": "46342"
|
|
5992
|
-
},
|
|
5993
|
-
"account_index": {
|
|
5994
|
-
"type": "integer",
|
|
5995
|
-
"format": "int64"
|
|
5996
|
-
},
|
|
5997
|
-
"name": {
|
|
5998
|
-
"type": "string"
|
|
5999
|
-
},
|
|
6000
|
-
"description": {
|
|
6001
|
-
"type": "string"
|
|
6002
|
-
},
|
|
6003
|
-
"can_invite": {
|
|
6004
|
-
"type": "boolean",
|
|
6005
|
-
"format": "boolean",
|
|
6006
|
-
"description": " Remove After FE uses L1 meta endpoint"
|
|
6007
|
-
},
|
|
6008
|
-
"referral_points_percentage": {
|
|
6009
|
-
"type": "string",
|
|
6010
|
-
"description": " Remove After FE uses L1 meta endpoint"
|
|
6011
|
-
},
|
|
6012
|
-
"total_asset_value": {
|
|
6013
|
-
"type": "string",
|
|
6014
|
-
"example": "19995"
|
|
6015
|
-
},
|
|
6016
|
-
"cross_asset_value": {
|
|
6017
|
-
"type": "string",
|
|
6018
|
-
"example": "19995"
|
|
6019
|
-
},
|
|
6020
|
-
"pool_info": {
|
|
6021
|
-
"$ref": "#/definitions/PublicPoolInfo"
|
|
6022
|
-
},
|
|
6023
|
-
"account_share": {
|
|
6024
|
-
"$ref": "#/definitions/PublicPoolShare"
|
|
6025
|
-
}
|
|
6026
|
-
},
|
|
6027
|
-
"title": "PublicPool",
|
|
6028
|
-
"required": [
|
|
6029
|
-
"code",
|
|
6030
|
-
"account_type",
|
|
6031
|
-
"index",
|
|
6032
|
-
"l1_address",
|
|
6033
|
-
"cancel_all_time",
|
|
6034
|
-
"total_order_count",
|
|
6035
|
-
"total_isolated_order_count",
|
|
6036
|
-
"pending_order_count",
|
|
6037
|
-
"available_balance",
|
|
6038
|
-
"status",
|
|
6039
|
-
"collateral",
|
|
6040
|
-
"account_index",
|
|
6041
|
-
"name",
|
|
6042
|
-
"description",
|
|
6043
|
-
"can_invite",
|
|
6044
|
-
"referral_points_percentage",
|
|
6045
|
-
"total_asset_value",
|
|
6046
|
-
"cross_asset_value",
|
|
6047
|
-
"pool_info"
|
|
6048
|
-
]
|
|
6049
|
-
},
|
|
6050
5859
|
"PublicPoolInfo": {
|
|
6051
5860
|
"type": "object",
|
|
6052
5861
|
"properties": {
|
|
@@ -6197,35 +6006,6 @@
|
|
|
6197
6006
|
"entry_usdc"
|
|
6198
6007
|
]
|
|
6199
6008
|
},
|
|
6200
|
-
"PublicPools": {
|
|
6201
|
-
"type": "object",
|
|
6202
|
-
"properties": {
|
|
6203
|
-
"code": {
|
|
6204
|
-
"type": "integer",
|
|
6205
|
-
"format": "int32",
|
|
6206
|
-
"example": "200"
|
|
6207
|
-
},
|
|
6208
|
-
"message": {
|
|
6209
|
-
"type": "string"
|
|
6210
|
-
},
|
|
6211
|
-
"total": {
|
|
6212
|
-
"type": "integer",
|
|
6213
|
-
"format": "int64"
|
|
6214
|
-
},
|
|
6215
|
-
"public_pools": {
|
|
6216
|
-
"type": "array",
|
|
6217
|
-
"items": {
|
|
6218
|
-
"$ref": "#/definitions/PublicPool"
|
|
6219
|
-
}
|
|
6220
|
-
}
|
|
6221
|
-
},
|
|
6222
|
-
"title": "PublicPools",
|
|
6223
|
-
"required": [
|
|
6224
|
-
"code",
|
|
6225
|
-
"total",
|
|
6226
|
-
"public_pools"
|
|
6227
|
-
]
|
|
6228
|
-
},
|
|
6229
6009
|
"ReferralCode": {
|
|
6230
6010
|
"type": "object",
|
|
6231
6011
|
"properties": {
|
|
@@ -7160,42 +6940,6 @@
|
|
|
7160
6940
|
"limit"
|
|
7161
6941
|
]
|
|
7162
6942
|
},
|
|
7163
|
-
"ReqGetPublicPools": {
|
|
7164
|
-
"type": "object",
|
|
7165
|
-
"properties": {
|
|
7166
|
-
"auth": {
|
|
7167
|
-
"type": "string"
|
|
7168
|
-
},
|
|
7169
|
-
"filter": {
|
|
7170
|
-
"type": "string",
|
|
7171
|
-
"enum": [
|
|
7172
|
-
"all",
|
|
7173
|
-
"user",
|
|
7174
|
-
"protocol",
|
|
7175
|
-
"account_index"
|
|
7176
|
-
]
|
|
7177
|
-
},
|
|
7178
|
-
"index": {
|
|
7179
|
-
"type": "integer",
|
|
7180
|
-
"format": "int64"
|
|
7181
|
-
},
|
|
7182
|
-
"limit": {
|
|
7183
|
-
"type": "integer",
|
|
7184
|
-
"format": "int64",
|
|
7185
|
-
"maximum": 100,
|
|
7186
|
-
"minimum": 1
|
|
7187
|
-
},
|
|
7188
|
-
"account_index": {
|
|
7189
|
-
"type": "integer",
|
|
7190
|
-
"format": "int64"
|
|
7191
|
-
}
|
|
7192
|
-
},
|
|
7193
|
-
"title": "ReqGetPublicPools",
|
|
7194
|
-
"required": [
|
|
7195
|
-
"index",
|
|
7196
|
-
"limit"
|
|
7197
|
-
]
|
|
7198
|
-
},
|
|
7199
6943
|
"ReqGetPublicPoolsMetadata": {
|
|
7200
6944
|
"type": "object",
|
|
7201
6945
|
"properties": {
|