zklighter-perps 1.0.154 → 1.0.156
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 +5 -0
- package/apis/AccountApi.ts +88 -0
- package/apis/ReferralApi.ts +46 -0
- package/models/AccountPosition.ts +9 -0
- package/models/PublicPoolMetadata.ts +156 -0
- package/models/ReqGetPublicPoolsMetadata.ts +107 -0
- package/models/RespPublicPoolsMetadata.ts +85 -0
- package/models/index.ts +5 -0
- package/openapi.json +273 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -50,6 +50,7 @@ models/Funding.ts
|
|
|
50
50
|
models/FundingRate.ts
|
|
51
51
|
models/FundingRates.ts
|
|
52
52
|
models/Fundings.ts
|
|
53
|
+
models/HasRefereeCode.ts
|
|
53
54
|
models/IsWhitelisted.ts
|
|
54
55
|
models/L1Metadata.ts
|
|
55
56
|
models/L1ProviderInfo.ts
|
|
@@ -77,6 +78,7 @@ models/PositionFundings.ts
|
|
|
77
78
|
models/PriceLevel.ts
|
|
78
79
|
models/PublicPool.ts
|
|
79
80
|
models/PublicPoolInfo.ts
|
|
81
|
+
models/PublicPoolMetadata.ts
|
|
80
82
|
models/PublicPoolShare.ts
|
|
81
83
|
models/PublicPools.ts
|
|
82
84
|
models/ReferralCode.ts
|
|
@@ -112,6 +114,7 @@ models/ReqGetOrderBookOrders.ts
|
|
|
112
114
|
models/ReqGetOrderBooks.ts
|
|
113
115
|
models/ReqGetPositionFunding.ts
|
|
114
116
|
models/ReqGetPublicPools.ts
|
|
117
|
+
models/ReqGetPublicPoolsMetadata.ts
|
|
115
118
|
models/ReqGetRangeWithCursor.ts
|
|
116
119
|
models/ReqGetRangeWithIndex.ts
|
|
117
120
|
models/ReqGetRangeWithIndexSortable.ts
|
|
@@ -123,10 +126,12 @@ models/ReqGetTransferFeeInfo.ts
|
|
|
123
126
|
models/ReqGetTransferHistory.ts
|
|
124
127
|
models/ReqGetTx.ts
|
|
125
128
|
models/ReqGetWithdrawHistory.ts
|
|
129
|
+
models/ReqHasRefereeByL1Address.ts
|
|
126
130
|
models/ReqIsWhitelisted.ts
|
|
127
131
|
models/RespChangeAccountTier.ts
|
|
128
132
|
models/RespGetFastBridgeInfo.ts
|
|
129
133
|
models/RespGetFastwithdrawalInfo.ts
|
|
134
|
+
models/RespPublicPoolsMetadata.ts
|
|
130
135
|
models/RespSendTx.ts
|
|
131
136
|
models/RespSendTxBatch.ts
|
|
132
137
|
models/RespWithdrawalDelay.ts
|
package/apis/AccountApi.ts
CHANGED
|
@@ -27,6 +27,7 @@ import type {
|
|
|
27
27
|
PositionFundings,
|
|
28
28
|
PublicPools,
|
|
29
29
|
RespChangeAccountTier,
|
|
30
|
+
RespPublicPoolsMetadata,
|
|
30
31
|
ResultCode,
|
|
31
32
|
SubAccounts,
|
|
32
33
|
} from '../models/index';
|
|
@@ -55,6 +56,8 @@ import {
|
|
|
55
56
|
PublicPoolsToJSON,
|
|
56
57
|
RespChangeAccountTierFromJSON,
|
|
57
58
|
RespChangeAccountTierToJSON,
|
|
59
|
+
RespPublicPoolsMetadataFromJSON,
|
|
60
|
+
RespPublicPoolsMetadataToJSON,
|
|
58
61
|
ResultCodeFromJSON,
|
|
59
62
|
ResultCodeToJSON,
|
|
60
63
|
SubAccountsFromJSON,
|
|
@@ -157,6 +160,15 @@ export interface PublicPoolsRequest {
|
|
|
157
160
|
account_index?: number;
|
|
158
161
|
}
|
|
159
162
|
|
|
163
|
+
export interface PublicPoolsMetadataRequest {
|
|
164
|
+
index: number;
|
|
165
|
+
limit: number;
|
|
166
|
+
authorization?: string;
|
|
167
|
+
auth?: string;
|
|
168
|
+
filter?: PublicPoolsMetadataFilterEnum;
|
|
169
|
+
account_index?: number;
|
|
170
|
+
}
|
|
171
|
+
|
|
160
172
|
/**
|
|
161
173
|
*
|
|
162
174
|
*/
|
|
@@ -960,6 +972,72 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
960
972
|
return await response.value();
|
|
961
973
|
}
|
|
962
974
|
|
|
975
|
+
/**
|
|
976
|
+
* Get public pools metadata
|
|
977
|
+
* publicPoolsMetadata
|
|
978
|
+
*/
|
|
979
|
+
async publicPoolsMetadataRaw(requestParameters: PublicPoolsMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespPublicPoolsMetadata>> {
|
|
980
|
+
if (requestParameters['index'] == null) {
|
|
981
|
+
throw new runtime.RequiredError(
|
|
982
|
+
'index',
|
|
983
|
+
'Required parameter "index" was null or undefined when calling publicPoolsMetadata().'
|
|
984
|
+
);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
if (requestParameters['limit'] == null) {
|
|
988
|
+
throw new runtime.RequiredError(
|
|
989
|
+
'limit',
|
|
990
|
+
'Required parameter "limit" was null or undefined when calling publicPoolsMetadata().'
|
|
991
|
+
);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
const queryParameters: any = {};
|
|
995
|
+
|
|
996
|
+
if (requestParameters['auth'] != null) {
|
|
997
|
+
queryParameters['auth'] = requestParameters['auth'];
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
if (requestParameters['filter'] != null) {
|
|
1001
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
if (requestParameters['index'] != null) {
|
|
1005
|
+
queryParameters['index'] = requestParameters['index'];
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
if (requestParameters['limit'] != null) {
|
|
1009
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
if (requestParameters['account_index'] != null) {
|
|
1013
|
+
queryParameters['account_index'] = requestParameters['account_index'];
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1017
|
+
|
|
1018
|
+
if (requestParameters['authorization'] != null) {
|
|
1019
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
const response = await this.request({
|
|
1023
|
+
path: `/api/v1/publicPoolsMetadata`,
|
|
1024
|
+
method: 'GET',
|
|
1025
|
+
headers: headerParameters,
|
|
1026
|
+
query: queryParameters,
|
|
1027
|
+
}, initOverrides);
|
|
1028
|
+
|
|
1029
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespPublicPoolsMetadataFromJSON(jsonValue));
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* Get public pools metadata
|
|
1034
|
+
* publicPoolsMetadata
|
|
1035
|
+
*/
|
|
1036
|
+
async publicPoolsMetadata(requestParameters: PublicPoolsMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespPublicPoolsMetadata> {
|
|
1037
|
+
const response = await this.publicPoolsMetadataRaw(requestParameters, initOverrides);
|
|
1038
|
+
return await response.value();
|
|
1039
|
+
}
|
|
1040
|
+
|
|
963
1041
|
}
|
|
964
1042
|
|
|
965
1043
|
/**
|
|
@@ -1025,3 +1103,13 @@ export const PublicPoolsFilterEnum = {
|
|
|
1025
1103
|
AccountIndex: 'account_index'
|
|
1026
1104
|
} as const;
|
|
1027
1105
|
export type PublicPoolsFilterEnum = typeof PublicPoolsFilterEnum[keyof typeof PublicPoolsFilterEnum];
|
|
1106
|
+
/**
|
|
1107
|
+
* @export
|
|
1108
|
+
*/
|
|
1109
|
+
export const PublicPoolsMetadataFilterEnum = {
|
|
1110
|
+
All: 'all',
|
|
1111
|
+
User: 'user',
|
|
1112
|
+
Protocol: 'protocol',
|
|
1113
|
+
AccountIndex: 'account_index'
|
|
1114
|
+
} as const;
|
|
1115
|
+
export type PublicPoolsMetadataFilterEnum = typeof PublicPoolsMetadataFilterEnum[keyof typeof PublicPoolsMetadataFilterEnum];
|
package/apis/ReferralApi.ts
CHANGED
|
@@ -15,11 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
HasRefereeCode,
|
|
18
19
|
ReferralCode,
|
|
19
20
|
ReferralPoints,
|
|
20
21
|
ResultCode,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
24
|
+
HasRefereeCodeFromJSON,
|
|
25
|
+
HasRefereeCodeToJSON,
|
|
23
26
|
ReferralCodeFromJSON,
|
|
24
27
|
ReferralCodeToJSON,
|
|
25
28
|
ReferralPointsFromJSON,
|
|
@@ -40,6 +43,10 @@ export interface ReferralGetRequest {
|
|
|
40
43
|
auth?: string;
|
|
41
44
|
}
|
|
42
45
|
|
|
46
|
+
export interface ReferralHasRefereeByAddressRequest {
|
|
47
|
+
l1_address: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
43
50
|
export interface ReferralPointsRequest {
|
|
44
51
|
account_index: number;
|
|
45
52
|
authorization?: string;
|
|
@@ -169,6 +176,45 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
169
176
|
return await response.value();
|
|
170
177
|
}
|
|
171
178
|
|
|
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
|
+
|
|
172
218
|
/**
|
|
173
219
|
* Get referral points
|
|
174
220
|
* referral_points
|
|
@@ -91,6 +91,12 @@ export interface AccountPosition {
|
|
|
91
91
|
* @memberof AccountPosition
|
|
92
92
|
*/
|
|
93
93
|
realized_pnl: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof AccountPosition
|
|
98
|
+
*/
|
|
99
|
+
liquidation_price: string;
|
|
94
100
|
/**
|
|
95
101
|
*
|
|
96
102
|
* @type {string}
|
|
@@ -127,6 +133,7 @@ export function instanceOfAccountPosition(value: object): value is AccountPositi
|
|
|
127
133
|
if (!('position_value' in value) || value['position_value'] === undefined) return false;
|
|
128
134
|
if (!('unrealized_pnl' in value) || value['unrealized_pnl'] === undefined) return false;
|
|
129
135
|
if (!('realized_pnl' in value) || value['realized_pnl'] === undefined) return false;
|
|
136
|
+
if (!('liquidation_price' in value) || value['liquidation_price'] === undefined) return false;
|
|
130
137
|
if (!('margin_mode' in value) || value['margin_mode'] === undefined) return false;
|
|
131
138
|
if (!('allocated_margin' in value) || value['allocated_margin'] === undefined) return false;
|
|
132
139
|
return true;
|
|
@@ -154,6 +161,7 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
154
161
|
'position_value': json['position_value'],
|
|
155
162
|
'unrealized_pnl': json['unrealized_pnl'],
|
|
156
163
|
'realized_pnl': json['realized_pnl'],
|
|
164
|
+
'liquidation_price': json['liquidation_price'],
|
|
157
165
|
'total_funding_paid_out': json['total_funding_paid_out'] == null ? undefined : json['total_funding_paid_out'],
|
|
158
166
|
'margin_mode': json['margin_mode'],
|
|
159
167
|
'allocated_margin': json['allocated_margin'],
|
|
@@ -178,6 +186,7 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
|
|
|
178
186
|
'position_value': value['position_value'],
|
|
179
187
|
'unrealized_pnl': value['unrealized_pnl'],
|
|
180
188
|
'realized_pnl': value['realized_pnl'],
|
|
189
|
+
'liquidation_price': value['liquidation_price'],
|
|
181
190
|
'total_funding_paid_out': value['total_funding_paid_out'],
|
|
182
191
|
'margin_mode': value['margin_mode'],
|
|
183
192
|
'allocated_margin': value['allocated_margin'],
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PublicPoolShare } from './PublicPoolShare';
|
|
17
|
+
import {
|
|
18
|
+
PublicPoolShareFromJSON,
|
|
19
|
+
PublicPoolShareFromJSONTyped,
|
|
20
|
+
PublicPoolShareToJSON,
|
|
21
|
+
} from './PublicPoolShare';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PublicPoolMetadata
|
|
27
|
+
*/
|
|
28
|
+
export interface PublicPoolMetadata {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof PublicPoolMetadata
|
|
33
|
+
*/
|
|
34
|
+
code: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PublicPoolMetadata
|
|
39
|
+
*/
|
|
40
|
+
message?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof PublicPoolMetadata
|
|
45
|
+
*/
|
|
46
|
+
account_type: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof PublicPoolMetadata
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof PublicPoolMetadata
|
|
57
|
+
*/
|
|
58
|
+
l1_address: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof PublicPoolMetadata
|
|
63
|
+
*/
|
|
64
|
+
annual_percentage_yield: number;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof PublicPoolMetadata
|
|
69
|
+
*/
|
|
70
|
+
status: number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof PublicPoolMetadata
|
|
75
|
+
*/
|
|
76
|
+
operator_fee: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof PublicPoolMetadata
|
|
81
|
+
*/
|
|
82
|
+
total_asset_value: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof PublicPoolMetadata
|
|
87
|
+
*/
|
|
88
|
+
total_shares: number;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {PublicPoolShare}
|
|
92
|
+
* @memberof PublicPoolMetadata
|
|
93
|
+
*/
|
|
94
|
+
account_share?: PublicPoolShare;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the PublicPoolMetadata interface.
|
|
99
|
+
*/
|
|
100
|
+
export function instanceOfPublicPoolMetadata(value: object): value is PublicPoolMetadata {
|
|
101
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
102
|
+
if (!('account_type' in value) || value['account_type'] === undefined) return false;
|
|
103
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
104
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
105
|
+
if (!('annual_percentage_yield' in value) || value['annual_percentage_yield'] === undefined) return false;
|
|
106
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
107
|
+
if (!('operator_fee' in value) || value['operator_fee'] === undefined) return false;
|
|
108
|
+
if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
|
|
109
|
+
if (!('total_shares' in value) || value['total_shares'] === undefined) return false;
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function PublicPoolMetadataFromJSON(json: any): PublicPoolMetadata {
|
|
114
|
+
return PublicPoolMetadataFromJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function PublicPoolMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicPoolMetadata {
|
|
118
|
+
if (json == null) {
|
|
119
|
+
return json;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'code': json['code'],
|
|
124
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
125
|
+
'account_type': json['account_type'],
|
|
126
|
+
'name': json['name'],
|
|
127
|
+
'l1_address': json['l1_address'],
|
|
128
|
+
'annual_percentage_yield': json['annual_percentage_yield'],
|
|
129
|
+
'status': json['status'],
|
|
130
|
+
'operator_fee': json['operator_fee'],
|
|
131
|
+
'total_asset_value': json['total_asset_value'],
|
|
132
|
+
'total_shares': json['total_shares'],
|
|
133
|
+
'account_share': json['account_share'] == null ? undefined : PublicPoolShareFromJSON(json['account_share']),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function PublicPoolMetadataToJSON(value?: PublicPoolMetadata | null): any {
|
|
138
|
+
if (value == null) {
|
|
139
|
+
return value;
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
|
|
143
|
+
'code': value['code'],
|
|
144
|
+
'message': value['message'],
|
|
145
|
+
'account_type': value['account_type'],
|
|
146
|
+
'name': value['name'],
|
|
147
|
+
'l1_address': value['l1_address'],
|
|
148
|
+
'annual_percentage_yield': value['annual_percentage_yield'],
|
|
149
|
+
'status': value['status'],
|
|
150
|
+
'operator_fee': value['operator_fee'],
|
|
151
|
+
'total_asset_value': value['total_asset_value'],
|
|
152
|
+
'total_shares': value['total_shares'],
|
|
153
|
+
'account_share': PublicPoolShareToJSON(value['account_share']),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ReqGetPublicPoolsMetadata
|
|
20
|
+
*/
|
|
21
|
+
export interface ReqGetPublicPoolsMetadata {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReqGetPublicPoolsMetadata
|
|
26
|
+
*/
|
|
27
|
+
auth?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ReqGetPublicPoolsMetadata
|
|
32
|
+
*/
|
|
33
|
+
filter?: ReqGetPublicPoolsMetadataFilterEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ReqGetPublicPoolsMetadata
|
|
38
|
+
*/
|
|
39
|
+
index: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ReqGetPublicPoolsMetadata
|
|
44
|
+
*/
|
|
45
|
+
limit: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ReqGetPublicPoolsMetadata
|
|
50
|
+
*/
|
|
51
|
+
account_index?: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const ReqGetPublicPoolsMetadataFilterEnum = {
|
|
59
|
+
All: 'all',
|
|
60
|
+
User: 'user',
|
|
61
|
+
Protocol: 'protocol',
|
|
62
|
+
AccountIndex: 'account_index'
|
|
63
|
+
} as const;
|
|
64
|
+
export type ReqGetPublicPoolsMetadataFilterEnum = typeof ReqGetPublicPoolsMetadataFilterEnum[keyof typeof ReqGetPublicPoolsMetadataFilterEnum];
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the ReqGetPublicPoolsMetadata interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfReqGetPublicPoolsMetadata(value: object): value is ReqGetPublicPoolsMetadata {
|
|
71
|
+
if (!('index' in value) || value['index'] === undefined) return false;
|
|
72
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ReqGetPublicPoolsMetadataFromJSON(json: any): ReqGetPublicPoolsMetadata {
|
|
77
|
+
return ReqGetPublicPoolsMetadataFromJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ReqGetPublicPoolsMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetPublicPoolsMetadata {
|
|
81
|
+
if (json == null) {
|
|
82
|
+
return json;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
87
|
+
'filter': json['filter'] == null ? undefined : json['filter'],
|
|
88
|
+
'index': json['index'],
|
|
89
|
+
'limit': json['limit'],
|
|
90
|
+
'account_index': json['account_index'] == null ? undefined : json['account_index'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ReqGetPublicPoolsMetadataToJSON(value?: ReqGetPublicPoolsMetadata | null): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'auth': value['auth'],
|
|
101
|
+
'filter': value['filter'],
|
|
102
|
+
'index': value['index'],
|
|
103
|
+
'limit': value['limit'],
|
|
104
|
+
'account_index': value['account_index'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PublicPoolMetadata } from './PublicPoolMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PublicPoolMetadataFromJSON,
|
|
19
|
+
PublicPoolMetadataFromJSONTyped,
|
|
20
|
+
PublicPoolMetadataToJSON,
|
|
21
|
+
} from './PublicPoolMetadata';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface RespPublicPoolsMetadata
|
|
27
|
+
*/
|
|
28
|
+
export interface RespPublicPoolsMetadata {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof RespPublicPoolsMetadata
|
|
33
|
+
*/
|
|
34
|
+
code: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RespPublicPoolsMetadata
|
|
39
|
+
*/
|
|
40
|
+
message?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<PublicPoolMetadata>}
|
|
44
|
+
* @memberof RespPublicPoolsMetadata
|
|
45
|
+
*/
|
|
46
|
+
public_pools: Array<PublicPoolMetadata>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the RespPublicPoolsMetadata interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfRespPublicPoolsMetadata(value: object): value is RespPublicPoolsMetadata {
|
|
53
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
54
|
+
if (!('public_pools' in value) || value['public_pools'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function RespPublicPoolsMetadataFromJSON(json: any): RespPublicPoolsMetadata {
|
|
59
|
+
return RespPublicPoolsMetadataFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function RespPublicPoolsMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespPublicPoolsMetadata {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'code': json['code'],
|
|
69
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
70
|
+
'public_pools': ((json['public_pools'] as Array<any>).map(PublicPoolMetadataFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function RespPublicPoolsMetadataToJSON(value?: RespPublicPoolsMetadata | null): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'code': value['code'],
|
|
81
|
+
'message': value['message'],
|
|
82
|
+
'public_pools': ((value['public_pools'] as Array<any>).map(PublicPoolMetadataToJSON)),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
package/models/index.ts
CHANGED
|
@@ -38,6 +38,7 @@ export * from './Funding';
|
|
|
38
38
|
export * from './FundingRate';
|
|
39
39
|
export * from './FundingRates';
|
|
40
40
|
export * from './Fundings';
|
|
41
|
+
export * from './HasRefereeCode';
|
|
41
42
|
export * from './IsWhitelisted';
|
|
42
43
|
export * from './L1Metadata';
|
|
43
44
|
export * from './L1ProviderInfo';
|
|
@@ -65,6 +66,7 @@ export * from './PositionFundings';
|
|
|
65
66
|
export * from './PriceLevel';
|
|
66
67
|
export * from './PublicPool';
|
|
67
68
|
export * from './PublicPoolInfo';
|
|
69
|
+
export * from './PublicPoolMetadata';
|
|
68
70
|
export * from './PublicPoolShare';
|
|
69
71
|
export * from './PublicPools';
|
|
70
72
|
export * from './ReferralCode';
|
|
@@ -100,6 +102,7 @@ export * from './ReqGetOrderBookOrders';
|
|
|
100
102
|
export * from './ReqGetOrderBooks';
|
|
101
103
|
export * from './ReqGetPositionFunding';
|
|
102
104
|
export * from './ReqGetPublicPools';
|
|
105
|
+
export * from './ReqGetPublicPoolsMetadata';
|
|
103
106
|
export * from './ReqGetRangeWithCursor';
|
|
104
107
|
export * from './ReqGetRangeWithIndex';
|
|
105
108
|
export * from './ReqGetRangeWithIndexSortable';
|
|
@@ -111,10 +114,12 @@ export * from './ReqGetTransferFeeInfo';
|
|
|
111
114
|
export * from './ReqGetTransferHistory';
|
|
112
115
|
export * from './ReqGetTx';
|
|
113
116
|
export * from './ReqGetWithdrawHistory';
|
|
117
|
+
export * from './ReqHasRefereeByL1Address';
|
|
114
118
|
export * from './ReqIsWhitelisted';
|
|
115
119
|
export * from './RespChangeAccountTier';
|
|
116
120
|
export * from './RespGetFastBridgeInfo';
|
|
117
121
|
export * from './RespGetFastwithdrawalInfo';
|
|
122
|
+
export * from './RespPublicPoolsMetadata';
|
|
118
123
|
export * from './RespSendTx';
|
|
119
124
|
export * from './RespSendTxBatch';
|
|
120
125
|
export * from './RespWithdrawalDelay';
|
package/openapi.json
CHANGED
|
@@ -2174,6 +2174,82 @@
|
|
|
2174
2174
|
"description": "Get public pools"
|
|
2175
2175
|
}
|
|
2176
2176
|
},
|
|
2177
|
+
"/api/v1/publicPoolsMetadata": {
|
|
2178
|
+
"get": {
|
|
2179
|
+
"summary": "publicPoolsMetadata",
|
|
2180
|
+
"operationId": "publicPoolsMetadata",
|
|
2181
|
+
"responses": {
|
|
2182
|
+
"200": {
|
|
2183
|
+
"description": "A successful response.",
|
|
2184
|
+
"schema": {
|
|
2185
|
+
"$ref": "#/definitions/RespPublicPoolsMetadata"
|
|
2186
|
+
}
|
|
2187
|
+
},
|
|
2188
|
+
"400": {
|
|
2189
|
+
"description": "Bad request",
|
|
2190
|
+
"schema": {
|
|
2191
|
+
"$ref": "#/definitions/ResultCode"
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
},
|
|
2195
|
+
"parameters": [
|
|
2196
|
+
{
|
|
2197
|
+
"name": "authorization",
|
|
2198
|
+
"in": "header",
|
|
2199
|
+
"required": false,
|
|
2200
|
+
"type": "string"
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
"name": "auth",
|
|
2204
|
+
"in": "query",
|
|
2205
|
+
"required": false,
|
|
2206
|
+
"type": "string"
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
"name": "filter",
|
|
2210
|
+
"in": "query",
|
|
2211
|
+
"required": false,
|
|
2212
|
+
"type": "string",
|
|
2213
|
+
"enum": [
|
|
2214
|
+
"all",
|
|
2215
|
+
"user",
|
|
2216
|
+
"protocol",
|
|
2217
|
+
"account_index"
|
|
2218
|
+
]
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
"name": "index",
|
|
2222
|
+
"in": "query",
|
|
2223
|
+
"required": true,
|
|
2224
|
+
"type": "integer",
|
|
2225
|
+
"format": "int64"
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
"name": "limit",
|
|
2229
|
+
"in": "query",
|
|
2230
|
+
"required": true,
|
|
2231
|
+
"type": "integer",
|
|
2232
|
+
"format": "int64",
|
|
2233
|
+
"minimum": 1,
|
|
2234
|
+
"maximum": 100
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
"name": "account_index",
|
|
2238
|
+
"in": "query",
|
|
2239
|
+
"required": false,
|
|
2240
|
+
"type": "integer",
|
|
2241
|
+
"format": "int64"
|
|
2242
|
+
}
|
|
2243
|
+
],
|
|
2244
|
+
"tags": [
|
|
2245
|
+
"account"
|
|
2246
|
+
],
|
|
2247
|
+
"consumes": [
|
|
2248
|
+
"multipart/form-data"
|
|
2249
|
+
],
|
|
2250
|
+
"description": "Get public pools metadata"
|
|
2251
|
+
}
|
|
2252
|
+
},
|
|
2177
2253
|
"/api/v1/recentTrades": {
|
|
2178
2254
|
"get": {
|
|
2179
2255
|
"summary": "recentTrades",
|
|
@@ -2313,6 +2389,41 @@
|
|
|
2313
2389
|
"description": "Get referral code"
|
|
2314
2390
|
}
|
|
2315
2391
|
},
|
|
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
|
+
},
|
|
2316
2427
|
"/api/v1/referral/points": {
|
|
2317
2428
|
"get": {
|
|
2318
2429
|
"summary": "referral_points",
|
|
@@ -3379,6 +3490,10 @@
|
|
|
3379
3490
|
"type": "string",
|
|
3380
3491
|
"example": "2.000000"
|
|
3381
3492
|
},
|
|
3493
|
+
"liquidation_price": {
|
|
3494
|
+
"type": "string",
|
|
3495
|
+
"example": "3024.66"
|
|
3496
|
+
},
|
|
3382
3497
|
"total_funding_paid_out": {
|
|
3383
3498
|
"type": "string",
|
|
3384
3499
|
"example": "34.2"
|
|
@@ -3407,6 +3522,7 @@
|
|
|
3407
3522
|
"position_value",
|
|
3408
3523
|
"unrealized_pnl",
|
|
3409
3524
|
"realized_pnl",
|
|
3525
|
+
"liquidation_price",
|
|
3410
3526
|
"margin_mode",
|
|
3411
3527
|
"allocated_margin"
|
|
3412
3528
|
]
|
|
@@ -4569,6 +4685,28 @@
|
|
|
4569
4685
|
"fundings"
|
|
4570
4686
|
]
|
|
4571
4687
|
},
|
|
4688
|
+
"HasRefereeCode": {
|
|
4689
|
+
"type": "object",
|
|
4690
|
+
"properties": {
|
|
4691
|
+
"code": {
|
|
4692
|
+
"type": "integer",
|
|
4693
|
+
"format": "int32",
|
|
4694
|
+
"example": "200"
|
|
4695
|
+
},
|
|
4696
|
+
"message": {
|
|
4697
|
+
"type": "string"
|
|
4698
|
+
},
|
|
4699
|
+
"has_referee": {
|
|
4700
|
+
"type": "boolean",
|
|
4701
|
+
"format": "boolean"
|
|
4702
|
+
}
|
|
4703
|
+
},
|
|
4704
|
+
"title": "HasRefereeCode",
|
|
4705
|
+
"required": [
|
|
4706
|
+
"code",
|
|
4707
|
+
"has_referee"
|
|
4708
|
+
]
|
|
4709
|
+
},
|
|
4572
4710
|
"IsWhitelisted": {
|
|
4573
4711
|
"type": "object",
|
|
4574
4712
|
"properties": {
|
|
@@ -5959,6 +6097,69 @@
|
|
|
5959
6097
|
"share_prices"
|
|
5960
6098
|
]
|
|
5961
6099
|
},
|
|
6100
|
+
"PublicPoolMetadata": {
|
|
6101
|
+
"type": "object",
|
|
6102
|
+
"properties": {
|
|
6103
|
+
"code": {
|
|
6104
|
+
"type": "integer",
|
|
6105
|
+
"format": "int32",
|
|
6106
|
+
"example": "200"
|
|
6107
|
+
},
|
|
6108
|
+
"message": {
|
|
6109
|
+
"type": "string"
|
|
6110
|
+
},
|
|
6111
|
+
"account_type": {
|
|
6112
|
+
"type": "integer",
|
|
6113
|
+
"format": "uint8",
|
|
6114
|
+
"example": "1"
|
|
6115
|
+
},
|
|
6116
|
+
"name": {
|
|
6117
|
+
"type": "string"
|
|
6118
|
+
},
|
|
6119
|
+
"l1_address": {
|
|
6120
|
+
"type": "string",
|
|
6121
|
+
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
6122
|
+
},
|
|
6123
|
+
"annual_percentage_yield": {
|
|
6124
|
+
"type": "number",
|
|
6125
|
+
"format": "double",
|
|
6126
|
+
"example": "20.5000"
|
|
6127
|
+
},
|
|
6128
|
+
"status": {
|
|
6129
|
+
"type": "integer",
|
|
6130
|
+
"format": "uint8",
|
|
6131
|
+
"example": "0"
|
|
6132
|
+
},
|
|
6133
|
+
"operator_fee": {
|
|
6134
|
+
"type": "string",
|
|
6135
|
+
"example": "100"
|
|
6136
|
+
},
|
|
6137
|
+
"total_asset_value": {
|
|
6138
|
+
"type": "string",
|
|
6139
|
+
"example": "19995"
|
|
6140
|
+
},
|
|
6141
|
+
"total_shares": {
|
|
6142
|
+
"type": "integer",
|
|
6143
|
+
"format": "int64",
|
|
6144
|
+
"example": "100000"
|
|
6145
|
+
},
|
|
6146
|
+
"account_share": {
|
|
6147
|
+
"$ref": "#/definitions/PublicPoolShare"
|
|
6148
|
+
}
|
|
6149
|
+
},
|
|
6150
|
+
"title": "PublicPoolMetadata",
|
|
6151
|
+
"required": [
|
|
6152
|
+
"code",
|
|
6153
|
+
"account_type",
|
|
6154
|
+
"name",
|
|
6155
|
+
"l1_address",
|
|
6156
|
+
"annual_percentage_yield",
|
|
6157
|
+
"status",
|
|
6158
|
+
"operator_fee",
|
|
6159
|
+
"total_asset_value",
|
|
6160
|
+
"total_shares"
|
|
6161
|
+
]
|
|
6162
|
+
},
|
|
5962
6163
|
"PublicPoolShare": {
|
|
5963
6164
|
"type": "object",
|
|
5964
6165
|
"properties": {
|
|
@@ -6983,6 +7184,42 @@
|
|
|
6983
7184
|
"limit"
|
|
6984
7185
|
]
|
|
6985
7186
|
},
|
|
7187
|
+
"ReqGetPublicPoolsMetadata": {
|
|
7188
|
+
"type": "object",
|
|
7189
|
+
"properties": {
|
|
7190
|
+
"auth": {
|
|
7191
|
+
"type": "string"
|
|
7192
|
+
},
|
|
7193
|
+
"filter": {
|
|
7194
|
+
"type": "string",
|
|
7195
|
+
"enum": [
|
|
7196
|
+
"all",
|
|
7197
|
+
"user",
|
|
7198
|
+
"protocol",
|
|
7199
|
+
"account_index"
|
|
7200
|
+
]
|
|
7201
|
+
},
|
|
7202
|
+
"index": {
|
|
7203
|
+
"type": "integer",
|
|
7204
|
+
"format": "int64"
|
|
7205
|
+
},
|
|
7206
|
+
"limit": {
|
|
7207
|
+
"type": "integer",
|
|
7208
|
+
"format": "int64",
|
|
7209
|
+
"maximum": 100,
|
|
7210
|
+
"minimum": 1
|
|
7211
|
+
},
|
|
7212
|
+
"account_index": {
|
|
7213
|
+
"type": "integer",
|
|
7214
|
+
"format": "int64"
|
|
7215
|
+
}
|
|
7216
|
+
},
|
|
7217
|
+
"title": "ReqGetPublicPoolsMetadata",
|
|
7218
|
+
"required": [
|
|
7219
|
+
"index",
|
|
7220
|
+
"limit"
|
|
7221
|
+
]
|
|
7222
|
+
},
|
|
6986
7223
|
"ReqGetRangeWithCursor": {
|
|
6987
7224
|
"type": "object",
|
|
6988
7225
|
"properties": {
|
|
@@ -7248,6 +7485,18 @@
|
|
|
7248
7485
|
"account_index"
|
|
7249
7486
|
]
|
|
7250
7487
|
},
|
|
7488
|
+
"ReqHasRefereeByL1Address": {
|
|
7489
|
+
"type": "object",
|
|
7490
|
+
"properties": {
|
|
7491
|
+
"l1_address": {
|
|
7492
|
+
"type": "string"
|
|
7493
|
+
}
|
|
7494
|
+
},
|
|
7495
|
+
"title": "ReqHasRefereeByL1Address",
|
|
7496
|
+
"required": [
|
|
7497
|
+
"l1_address"
|
|
7498
|
+
]
|
|
7499
|
+
},
|
|
7251
7500
|
"ReqIsWhitelisted": {
|
|
7252
7501
|
"type": "object",
|
|
7253
7502
|
"properties": {
|
|
@@ -7425,6 +7674,30 @@
|
|
|
7425
7674
|
"max_withdrawal_amount"
|
|
7426
7675
|
]
|
|
7427
7676
|
},
|
|
7677
|
+
"RespPublicPoolsMetadata": {
|
|
7678
|
+
"type": "object",
|
|
7679
|
+
"properties": {
|
|
7680
|
+
"code": {
|
|
7681
|
+
"type": "integer",
|
|
7682
|
+
"format": "int32",
|
|
7683
|
+
"example": "200"
|
|
7684
|
+
},
|
|
7685
|
+
"message": {
|
|
7686
|
+
"type": "string"
|
|
7687
|
+
},
|
|
7688
|
+
"public_pools": {
|
|
7689
|
+
"type": "array",
|
|
7690
|
+
"items": {
|
|
7691
|
+
"$ref": "#/definitions/PublicPoolMetadata"
|
|
7692
|
+
}
|
|
7693
|
+
}
|
|
7694
|
+
},
|
|
7695
|
+
"title": "RespPublicPoolsMetadata",
|
|
7696
|
+
"required": [
|
|
7697
|
+
"code",
|
|
7698
|
+
"public_pools"
|
|
7699
|
+
]
|
|
7700
|
+
},
|
|
7428
7701
|
"RespSendTx": {
|
|
7429
7702
|
"type": "object",
|
|
7430
7703
|
"properties": {
|