zklighter-perps 1.0.158 → 1.0.160
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 -5
- package/apis/AccountApi.ts +0 -88
- package/apis/ReferralApi.ts +0 -46
- package/models/index.ts +0 -5
- package/openapi.json +0 -325
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -50,7 +50,6 @@ models/Funding.ts
|
|
|
50
50
|
models/FundingRate.ts
|
|
51
51
|
models/FundingRates.ts
|
|
52
52
|
models/Fundings.ts
|
|
53
|
-
models/HasRefereeCode.ts
|
|
54
53
|
models/IsWhitelisted.ts
|
|
55
54
|
models/L1Metadata.ts
|
|
56
55
|
models/L1ProviderInfo.ts
|
|
@@ -76,11 +75,9 @@ models/PnLEntry.ts
|
|
|
76
75
|
models/PositionFunding.ts
|
|
77
76
|
models/PositionFundings.ts
|
|
78
77
|
models/PriceLevel.ts
|
|
79
|
-
models/PublicPool.ts
|
|
80
78
|
models/PublicPoolInfo.ts
|
|
81
79
|
models/PublicPoolMetadata.ts
|
|
82
80
|
models/PublicPoolShare.ts
|
|
83
|
-
models/PublicPools.ts
|
|
84
81
|
models/ReferralCode.ts
|
|
85
82
|
models/ReferralPointEntry.ts
|
|
86
83
|
models/ReferralPoints.ts
|
|
@@ -113,7 +110,6 @@ models/ReqGetOrderBookDetails.ts
|
|
|
113
110
|
models/ReqGetOrderBookOrders.ts
|
|
114
111
|
models/ReqGetOrderBooks.ts
|
|
115
112
|
models/ReqGetPositionFunding.ts
|
|
116
|
-
models/ReqGetPublicPools.ts
|
|
117
113
|
models/ReqGetPublicPoolsMetadata.ts
|
|
118
114
|
models/ReqGetRangeWithCursor.ts
|
|
119
115
|
models/ReqGetRangeWithIndex.ts
|
|
@@ -126,7 +122,6 @@ models/ReqGetTransferFeeInfo.ts
|
|
|
126
122
|
models/ReqGetTransferHistory.ts
|
|
127
123
|
models/ReqGetTx.ts
|
|
128
124
|
models/ReqGetWithdrawHistory.ts
|
|
129
|
-
models/ReqHasRefereeByL1Address.ts
|
|
130
125
|
models/ReqIsWhitelisted.ts
|
|
131
126
|
models/RespChangeAccountTier.ts
|
|
132
127
|
models/RespGetFastBridgeInfo.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/apis/ReferralApi.ts
CHANGED
|
@@ -15,14 +15,11 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
HasRefereeCode,
|
|
19
18
|
ReferralCode,
|
|
20
19
|
ReferralPoints,
|
|
21
20
|
ResultCode,
|
|
22
21
|
} from '../models/index';
|
|
23
22
|
import {
|
|
24
|
-
HasRefereeCodeFromJSON,
|
|
25
|
-
HasRefereeCodeToJSON,
|
|
26
23
|
ReferralCodeFromJSON,
|
|
27
24
|
ReferralCodeToJSON,
|
|
28
25
|
ReferralPointsFromJSON,
|
|
@@ -43,10 +40,6 @@ export interface ReferralGetRequest {
|
|
|
43
40
|
auth?: string;
|
|
44
41
|
}
|
|
45
42
|
|
|
46
|
-
export interface ReferralHasRefereeByAddressRequest {
|
|
47
|
-
l1_address: string;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
43
|
export interface ReferralPointsRequest {
|
|
51
44
|
account_index: number;
|
|
52
45
|
authorization?: string;
|
|
@@ -176,45 +169,6 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
176
169
|
return await response.value();
|
|
177
170
|
}
|
|
178
171
|
|
|
179
|
-
/**
|
|
180
|
-
* Does L1 address have referee code?
|
|
181
|
-
* referral_hasRefereeByAddress
|
|
182
|
-
*/
|
|
183
|
-
async referralHasRefereeByAddressRaw(requestParameters: ReferralHasRefereeByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HasRefereeCode>> {
|
|
184
|
-
if (requestParameters['l1_address'] == null) {
|
|
185
|
-
throw new runtime.RequiredError(
|
|
186
|
-
'l1_address',
|
|
187
|
-
'Required parameter "l1_address" was null or undefined when calling referralHasRefereeByAddress().'
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
const queryParameters: any = {};
|
|
192
|
-
|
|
193
|
-
if (requestParameters['l1_address'] != null) {
|
|
194
|
-
queryParameters['l1_address'] = requestParameters['l1_address'];
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
198
|
-
|
|
199
|
-
const response = await this.request({
|
|
200
|
-
path: `/api/v1/referral/hasRefereeByAddress`,
|
|
201
|
-
method: 'GET',
|
|
202
|
-
headers: headerParameters,
|
|
203
|
-
query: queryParameters,
|
|
204
|
-
}, initOverrides);
|
|
205
|
-
|
|
206
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => HasRefereeCodeFromJSON(jsonValue));
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Does L1 address have referee code?
|
|
211
|
-
* referral_hasRefereeByAddress
|
|
212
|
-
*/
|
|
213
|
-
async referralHasRefereeByAddress(requestParameters: ReferralHasRefereeByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HasRefereeCode> {
|
|
214
|
-
const response = await this.referralHasRefereeByAddressRaw(requestParameters, initOverrides);
|
|
215
|
-
return await response.value();
|
|
216
|
-
}
|
|
217
|
-
|
|
218
172
|
/**
|
|
219
173
|
* Get referral points
|
|
220
174
|
* referral_points
|
package/models/index.ts
CHANGED
|
@@ -38,7 +38,6 @@ export * from './Funding';
|
|
|
38
38
|
export * from './FundingRate';
|
|
39
39
|
export * from './FundingRates';
|
|
40
40
|
export * from './Fundings';
|
|
41
|
-
export * from './HasRefereeCode';
|
|
42
41
|
export * from './IsWhitelisted';
|
|
43
42
|
export * from './L1Metadata';
|
|
44
43
|
export * from './L1ProviderInfo';
|
|
@@ -64,11 +63,9 @@ export * from './PnLEntry';
|
|
|
64
63
|
export * from './PositionFunding';
|
|
65
64
|
export * from './PositionFundings';
|
|
66
65
|
export * from './PriceLevel';
|
|
67
|
-
export * from './PublicPool';
|
|
68
66
|
export * from './PublicPoolInfo';
|
|
69
67
|
export * from './PublicPoolMetadata';
|
|
70
68
|
export * from './PublicPoolShare';
|
|
71
|
-
export * from './PublicPools';
|
|
72
69
|
export * from './ReferralCode';
|
|
73
70
|
export * from './ReferralPointEntry';
|
|
74
71
|
export * from './ReferralPoints';
|
|
@@ -101,7 +98,6 @@ export * from './ReqGetOrderBookDetails';
|
|
|
101
98
|
export * from './ReqGetOrderBookOrders';
|
|
102
99
|
export * from './ReqGetOrderBooks';
|
|
103
100
|
export * from './ReqGetPositionFunding';
|
|
104
|
-
export * from './ReqGetPublicPools';
|
|
105
101
|
export * from './ReqGetPublicPoolsMetadata';
|
|
106
102
|
export * from './ReqGetRangeWithCursor';
|
|
107
103
|
export * from './ReqGetRangeWithIndex';
|
|
@@ -114,7 +110,6 @@ export * from './ReqGetTransferFeeInfo';
|
|
|
114
110
|
export * from './ReqGetTransferHistory';
|
|
115
111
|
export * from './ReqGetTx';
|
|
116
112
|
export * from './ReqGetWithdrawHistory';
|
|
117
|
-
export * from './ReqHasRefereeByL1Address';
|
|
118
113
|
export * from './ReqIsWhitelisted';
|
|
119
114
|
export * from './RespChangeAccountTier';
|
|
120
115
|
export * from './RespGetFastBridgeInfo';
|
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",
|
|
@@ -2389,41 +2313,6 @@
|
|
|
2389
2313
|
"description": "Get referral code"
|
|
2390
2314
|
}
|
|
2391
2315
|
},
|
|
2392
|
-
"/api/v1/referral/hasRefereeByAddress": {
|
|
2393
|
-
"get": {
|
|
2394
|
-
"summary": "referral_hasRefereeByAddress",
|
|
2395
|
-
"operationId": "referral_hasRefereeByAddress",
|
|
2396
|
-
"responses": {
|
|
2397
|
-
"200": {
|
|
2398
|
-
"description": "A successful response.",
|
|
2399
|
-
"schema": {
|
|
2400
|
-
"$ref": "#/definitions/HasRefereeCode"
|
|
2401
|
-
}
|
|
2402
|
-
},
|
|
2403
|
-
"400": {
|
|
2404
|
-
"description": "Bad request",
|
|
2405
|
-
"schema": {
|
|
2406
|
-
"$ref": "#/definitions/ResultCode"
|
|
2407
|
-
}
|
|
2408
|
-
}
|
|
2409
|
-
},
|
|
2410
|
-
"parameters": [
|
|
2411
|
-
{
|
|
2412
|
-
"name": "l1_address",
|
|
2413
|
-
"in": "query",
|
|
2414
|
-
"required": true,
|
|
2415
|
-
"type": "string"
|
|
2416
|
-
}
|
|
2417
|
-
],
|
|
2418
|
-
"tags": [
|
|
2419
|
-
"referral"
|
|
2420
|
-
],
|
|
2421
|
-
"consumes": [
|
|
2422
|
-
"multipart/form-data"
|
|
2423
|
-
],
|
|
2424
|
-
"description": "Does L1 address have referee code?"
|
|
2425
|
-
}
|
|
2426
|
-
},
|
|
2427
2316
|
"/api/v1/referral/points": {
|
|
2428
2317
|
"get": {
|
|
2429
2318
|
"summary": "referral_points",
|
|
@@ -4691,28 +4580,6 @@
|
|
|
4691
4580
|
"fundings"
|
|
4692
4581
|
]
|
|
4693
4582
|
},
|
|
4694
|
-
"HasRefereeCode": {
|
|
4695
|
-
"type": "object",
|
|
4696
|
-
"properties": {
|
|
4697
|
-
"code": {
|
|
4698
|
-
"type": "integer",
|
|
4699
|
-
"format": "int32",
|
|
4700
|
-
"example": "200"
|
|
4701
|
-
},
|
|
4702
|
-
"message": {
|
|
4703
|
-
"type": "string"
|
|
4704
|
-
},
|
|
4705
|
-
"has_referee": {
|
|
4706
|
-
"type": "boolean",
|
|
4707
|
-
"format": "boolean"
|
|
4708
|
-
}
|
|
4709
|
-
},
|
|
4710
|
-
"title": "HasRefereeCode",
|
|
4711
|
-
"required": [
|
|
4712
|
-
"code",
|
|
4713
|
-
"has_referee"
|
|
4714
|
-
]
|
|
4715
|
-
},
|
|
4716
4583
|
"IsWhitelisted": {
|
|
4717
4584
|
"type": "object",
|
|
4718
4585
|
"properties": {
|
|
@@ -5932,121 +5799,6 @@
|
|
|
5932
5799
|
"size"
|
|
5933
5800
|
]
|
|
5934
5801
|
},
|
|
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
5802
|
"PublicPoolInfo": {
|
|
6051
5803
|
"type": "object",
|
|
6052
5804
|
"properties": {
|
|
@@ -6197,35 +5949,6 @@
|
|
|
6197
5949
|
"entry_usdc"
|
|
6198
5950
|
]
|
|
6199
5951
|
},
|
|
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
5952
|
"ReferralCode": {
|
|
6230
5953
|
"type": "object",
|
|
6231
5954
|
"properties": {
|
|
@@ -7160,42 +6883,6 @@
|
|
|
7160
6883
|
"limit"
|
|
7161
6884
|
]
|
|
7162
6885
|
},
|
|
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
6886
|
"ReqGetPublicPoolsMetadata": {
|
|
7200
6887
|
"type": "object",
|
|
7201
6888
|
"properties": {
|
|
@@ -7497,18 +7184,6 @@
|
|
|
7497
7184
|
"account_index"
|
|
7498
7185
|
]
|
|
7499
7186
|
},
|
|
7500
|
-
"ReqHasRefereeByL1Address": {
|
|
7501
|
-
"type": "object",
|
|
7502
|
-
"properties": {
|
|
7503
|
-
"l1_address": {
|
|
7504
|
-
"type": "string"
|
|
7505
|
-
}
|
|
7506
|
-
},
|
|
7507
|
-
"title": "ReqHasRefereeByL1Address",
|
|
7508
|
-
"required": [
|
|
7509
|
-
"l1_address"
|
|
7510
|
-
]
|
|
7511
|
-
},
|
|
7512
7187
|
"ReqIsWhitelisted": {
|
|
7513
7188
|
"type": "object",
|
|
7514
7189
|
"properties": {
|