zklighter-perps 1.0.150 → 1.0.151
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 -2
- package/apis/ReferralApi.ts +0 -46
- package/apis/TransactionApi.ts +10 -0
- package/models/Account.ts +9 -0
- package/models/DetailedAccount.ts +9 -0
- package/models/PnLEntry.ts +9 -0
- package/models/PublicPool.ts +9 -0
- package/models/ReqGetAccountTxs.ts +8 -0
- package/models/index.ts +0 -2
- package/openapi.json +37 -70
- 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
|
|
@@ -124,7 +123,6 @@ models/ReqGetTransferFeeInfo.ts
|
|
|
124
123
|
models/ReqGetTransferHistory.ts
|
|
125
124
|
models/ReqGetTx.ts
|
|
126
125
|
models/ReqGetWithdrawHistory.ts
|
|
127
|
-
models/ReqHasRefereeByL1Address.ts
|
|
128
126
|
models/ReqIsWhitelisted.ts
|
|
129
127
|
models/RespChangeAccountTier.ts
|
|
130
128
|
models/RespGetFastBridgeInfo.ts
|
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;
|
|
@@ -175,45 +168,6 @@ export class ReferralApi extends runtime.BaseAPI {
|
|
|
175
168
|
return await response.value();
|
|
176
169
|
}
|
|
177
170
|
|
|
178
|
-
/**
|
|
179
|
-
* Does L1 address have referee code?
|
|
180
|
-
* referral_hasRefereeByAddress
|
|
181
|
-
*/
|
|
182
|
-
async referralHasRefereeByAddressRaw(requestParameters: ReferralHasRefereeByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HasRefereeCode>> {
|
|
183
|
-
if (requestParameters['l1_address'] == null) {
|
|
184
|
-
throw new runtime.RequiredError(
|
|
185
|
-
'l1_address',
|
|
186
|
-
'Required parameter "l1_address" was null or undefined when calling referralHasRefereeByAddress().'
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
const queryParameters: any = {};
|
|
191
|
-
|
|
192
|
-
if (requestParameters['l1_address'] != null) {
|
|
193
|
-
queryParameters['l1_address'] = requestParameters['l1_address'];
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
197
|
-
|
|
198
|
-
const response = await this.request({
|
|
199
|
-
path: `/api/v1/referral/hasRefereeByAddress`,
|
|
200
|
-
method: 'GET',
|
|
201
|
-
headers: headerParameters,
|
|
202
|
-
query: queryParameters,
|
|
203
|
-
}, initOverrides);
|
|
204
|
-
|
|
205
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => HasRefereeCodeFromJSON(jsonValue));
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Does L1 address have referee code?
|
|
210
|
-
* referral_hasRefereeByAddress
|
|
211
|
-
*/
|
|
212
|
-
async referralHasRefereeByAddress(requestParameters: ReferralHasRefereeByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HasRefereeCode> {
|
|
213
|
-
const response = await this.referralHasRefereeByAddressRaw(requestParameters, initOverrides);
|
|
214
|
-
return await response.value();
|
|
215
|
-
}
|
|
216
|
-
|
|
217
171
|
/**
|
|
218
172
|
* Get referral points
|
|
219
173
|
* referral_points
|
package/apis/TransactionApi.ts
CHANGED
|
@@ -56,8 +56,10 @@ export interface AccountTxsRequest {
|
|
|
56
56
|
limit: number;
|
|
57
57
|
by: AccountTxsByEnum;
|
|
58
58
|
value: string;
|
|
59
|
+
authorization?: string;
|
|
59
60
|
index?: number;
|
|
60
61
|
types?: Array<number>;
|
|
62
|
+
auth?: string;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
export interface BlockTxsRequest {
|
|
@@ -240,8 +242,16 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
240
242
|
queryParameters['types'] = requestParameters['types']!.join(runtime.COLLECTION_FORMATS["csv"]);
|
|
241
243
|
}
|
|
242
244
|
|
|
245
|
+
if (requestParameters['auth'] != null) {
|
|
246
|
+
queryParameters['auth'] = requestParameters['auth'];
|
|
247
|
+
}
|
|
248
|
+
|
|
243
249
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
244
250
|
|
|
251
|
+
if (requestParameters['authorization'] != null) {
|
|
252
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
253
|
+
}
|
|
254
|
+
|
|
245
255
|
const response = await this.request({
|
|
246
256
|
path: `/api/v1/accountTxs`,
|
|
247
257
|
method: 'GET',
|
package/models/Account.ts
CHANGED
|
@@ -73,6 +73,12 @@ export interface Account {
|
|
|
73
73
|
* @memberof Account
|
|
74
74
|
*/
|
|
75
75
|
pending_order_count: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Account
|
|
80
|
+
*/
|
|
81
|
+
available_balance: string;
|
|
76
82
|
/**
|
|
77
83
|
*
|
|
78
84
|
* @type {number}
|
|
@@ -99,6 +105,7 @@ export function instanceOfAccount(value: object): value is Account {
|
|
|
99
105
|
if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
|
|
100
106
|
if (!('total_isolated_order_count' in value) || value['total_isolated_order_count'] === undefined) return false;
|
|
101
107
|
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
108
|
+
if (!('available_balance' in value) || value['available_balance'] === undefined) return false;
|
|
102
109
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
103
110
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
104
111
|
return true;
|
|
@@ -123,6 +130,7 @@ export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): A
|
|
|
123
130
|
'total_order_count': json['total_order_count'],
|
|
124
131
|
'total_isolated_order_count': json['total_isolated_order_count'],
|
|
125
132
|
'pending_order_count': json['pending_order_count'],
|
|
133
|
+
'available_balance': json['available_balance'],
|
|
126
134
|
'status': json['status'],
|
|
127
135
|
'collateral': json['collateral'],
|
|
128
136
|
};
|
|
@@ -143,6 +151,7 @@ export function AccountToJSON(value?: Account | null): any {
|
|
|
143
151
|
'total_order_count': value['total_order_count'],
|
|
144
152
|
'total_isolated_order_count': value['total_isolated_order_count'],
|
|
145
153
|
'pending_order_count': value['pending_order_count'],
|
|
154
|
+
'available_balance': value['available_balance'],
|
|
146
155
|
'status': value['status'],
|
|
147
156
|
'collateral': value['collateral'],
|
|
148
157
|
};
|
|
@@ -92,6 +92,12 @@ export interface DetailedAccount {
|
|
|
92
92
|
* @memberof DetailedAccount
|
|
93
93
|
*/
|
|
94
94
|
pending_order_count: number;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof DetailedAccount
|
|
99
|
+
*/
|
|
100
|
+
available_balance: string;
|
|
95
101
|
/**
|
|
96
102
|
*
|
|
97
103
|
* @type {number}
|
|
@@ -178,6 +184,7 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
|
|
|
178
184
|
if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
|
|
179
185
|
if (!('total_isolated_order_count' in value) || value['total_isolated_order_count'] === undefined) return false;
|
|
180
186
|
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
187
|
+
if (!('available_balance' in value) || value['available_balance'] === undefined) return false;
|
|
181
188
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
182
189
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
183
190
|
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
@@ -212,6 +219,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
212
219
|
'total_order_count': json['total_order_count'],
|
|
213
220
|
'total_isolated_order_count': json['total_isolated_order_count'],
|
|
214
221
|
'pending_order_count': json['pending_order_count'],
|
|
222
|
+
'available_balance': json['available_balance'],
|
|
215
223
|
'status': json['status'],
|
|
216
224
|
'collateral': json['collateral'],
|
|
217
225
|
'account_index': json['account_index'],
|
|
@@ -242,6 +250,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
|
|
|
242
250
|
'total_order_count': value['total_order_count'],
|
|
243
251
|
'total_isolated_order_count': value['total_isolated_order_count'],
|
|
244
252
|
'pending_order_count': value['pending_order_count'],
|
|
253
|
+
'available_balance': value['available_balance'],
|
|
245
254
|
'status': value['status'],
|
|
246
255
|
'collateral': value['collateral'],
|
|
247
256
|
'account_index': value['account_index'],
|
package/models/PnLEntry.ts
CHANGED
|
@@ -61,6 +61,12 @@ export interface PnLEntry {
|
|
|
61
61
|
* @memberof PnLEntry
|
|
62
62
|
*/
|
|
63
63
|
pool_outflow: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof PnLEntry
|
|
68
|
+
*/
|
|
69
|
+
pool_total_shares: number;
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
/**
|
|
@@ -74,6 +80,7 @@ export function instanceOfPnLEntry(value: object): value is PnLEntry {
|
|
|
74
80
|
if (!('pool_pnl' in value) || value['pool_pnl'] === undefined) return false;
|
|
75
81
|
if (!('pool_inflow' in value) || value['pool_inflow'] === undefined) return false;
|
|
76
82
|
if (!('pool_outflow' in value) || value['pool_outflow'] === undefined) return false;
|
|
83
|
+
if (!('pool_total_shares' in value) || value['pool_total_shares'] === undefined) return false;
|
|
77
84
|
return true;
|
|
78
85
|
}
|
|
79
86
|
|
|
@@ -94,6 +101,7 @@ export function PnLEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
94
101
|
'pool_pnl': json['pool_pnl'],
|
|
95
102
|
'pool_inflow': json['pool_inflow'],
|
|
96
103
|
'pool_outflow': json['pool_outflow'],
|
|
104
|
+
'pool_total_shares': json['pool_total_shares'],
|
|
97
105
|
};
|
|
98
106
|
}
|
|
99
107
|
|
|
@@ -110,6 +118,7 @@ export function PnLEntryToJSON(value?: PnLEntry | null): any {
|
|
|
110
118
|
'pool_pnl': value['pool_pnl'],
|
|
111
119
|
'pool_inflow': value['pool_inflow'],
|
|
112
120
|
'pool_outflow': value['pool_outflow'],
|
|
121
|
+
'pool_total_shares': value['pool_total_shares'],
|
|
113
122
|
};
|
|
114
123
|
}
|
|
115
124
|
|
package/models/PublicPool.ts
CHANGED
|
@@ -86,6 +86,12 @@ export interface PublicPool {
|
|
|
86
86
|
* @memberof PublicPool
|
|
87
87
|
*/
|
|
88
88
|
pending_order_count: number;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof PublicPool
|
|
93
|
+
*/
|
|
94
|
+
available_balance: string;
|
|
89
95
|
/**
|
|
90
96
|
*
|
|
91
97
|
* @type {number}
|
|
@@ -166,6 +172,7 @@ export function instanceOfPublicPool(value: object): value is PublicPool {
|
|
|
166
172
|
if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
|
|
167
173
|
if (!('total_isolated_order_count' in value) || value['total_isolated_order_count'] === undefined) return false;
|
|
168
174
|
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
175
|
+
if (!('available_balance' in value) || value['available_balance'] === undefined) return false;
|
|
169
176
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
170
177
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
171
178
|
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
@@ -198,6 +205,7 @@ export function PublicPoolFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
198
205
|
'total_order_count': json['total_order_count'],
|
|
199
206
|
'total_isolated_order_count': json['total_isolated_order_count'],
|
|
200
207
|
'pending_order_count': json['pending_order_count'],
|
|
208
|
+
'available_balance': json['available_balance'],
|
|
201
209
|
'status': json['status'],
|
|
202
210
|
'collateral': json['collateral'],
|
|
203
211
|
'account_index': json['account_index'],
|
|
@@ -227,6 +235,7 @@ export function PublicPoolToJSON(value?: PublicPool | null): any {
|
|
|
227
235
|
'total_order_count': value['total_order_count'],
|
|
228
236
|
'total_isolated_order_count': value['total_isolated_order_count'],
|
|
229
237
|
'pending_order_count': value['pending_order_count'],
|
|
238
|
+
'available_balance': value['available_balance'],
|
|
230
239
|
'status': value['status'],
|
|
231
240
|
'collateral': value['collateral'],
|
|
232
241
|
'account_index': value['account_index'],
|
|
@@ -49,6 +49,12 @@ export interface ReqGetAccountTxs {
|
|
|
49
49
|
* @memberof ReqGetAccountTxs
|
|
50
50
|
*/
|
|
51
51
|
types?: Array<number>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ReqGetAccountTxs
|
|
56
|
+
*/
|
|
57
|
+
auth?: string;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
|
|
@@ -83,6 +89,7 @@ export function ReqGetAccountTxsFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
83
89
|
'by': json['by'] == null ? undefined : json['by'],
|
|
84
90
|
'value': json['value'] == null ? undefined : json['value'],
|
|
85
91
|
'types': json['types'] == null ? undefined : json['types'],
|
|
92
|
+
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
86
93
|
};
|
|
87
94
|
}
|
|
88
95
|
|
|
@@ -97,6 +104,7 @@ export function ReqGetAccountTxsToJSON(value?: ReqGetAccountTxs | null): any {
|
|
|
97
104
|
'by': value['by'],
|
|
98
105
|
'value': value['value'],
|
|
99
106
|
'types': value['types'],
|
|
107
|
+
'auth': value['auth'],
|
|
100
108
|
};
|
|
101
109
|
}
|
|
102
110
|
|
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';
|
|
@@ -112,7 +111,6 @@ export * from './ReqGetTransferFeeInfo';
|
|
|
112
111
|
export * from './ReqGetTransferHistory';
|
|
113
112
|
export * from './ReqGetTx';
|
|
114
113
|
export * from './ReqGetWithdrawHistory';
|
|
115
|
-
export * from './ReqHasRefereeByL1Address';
|
|
116
114
|
export * from './ReqIsWhitelisted';
|
|
117
115
|
export * from './RespChangeAccountTier';
|
|
118
116
|
export * from './RespGetFastBridgeInfo';
|
package/openapi.json
CHANGED
|
@@ -408,6 +408,12 @@
|
|
|
408
408
|
}
|
|
409
409
|
},
|
|
410
410
|
"parameters": [
|
|
411
|
+
{
|
|
412
|
+
"name": "authorization",
|
|
413
|
+
"in": "header",
|
|
414
|
+
"required": false,
|
|
415
|
+
"type": "string"
|
|
416
|
+
},
|
|
411
417
|
{
|
|
412
418
|
"name": "index",
|
|
413
419
|
"in": "query",
|
|
@@ -448,6 +454,12 @@
|
|
|
448
454
|
"type": "integer",
|
|
449
455
|
"format": "uint8"
|
|
450
456
|
}
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"name": "auth",
|
|
460
|
+
"in": "query",
|
|
461
|
+
"required": false,
|
|
462
|
+
"type": "string"
|
|
451
463
|
}
|
|
452
464
|
],
|
|
453
465
|
"tags": [
|
|
@@ -2301,41 +2313,6 @@
|
|
|
2301
2313
|
"description": "Get referral code"
|
|
2302
2314
|
}
|
|
2303
2315
|
},
|
|
2304
|
-
"/api/v1/referral/hasRefereeByAddress": {
|
|
2305
|
-
"get": {
|
|
2306
|
-
"summary": "referral_hasRefereeByAddress",
|
|
2307
|
-
"operationId": "referral_hasRefereeByAddress",
|
|
2308
|
-
"responses": {
|
|
2309
|
-
"200": {
|
|
2310
|
-
"description": "A successful response.",
|
|
2311
|
-
"schema": {
|
|
2312
|
-
"$ref": "#/definitions/HasRefereeCode"
|
|
2313
|
-
}
|
|
2314
|
-
},
|
|
2315
|
-
"400": {
|
|
2316
|
-
"description": "Bad request",
|
|
2317
|
-
"schema": {
|
|
2318
|
-
"$ref": "#/definitions/ResultCode"
|
|
2319
|
-
}
|
|
2320
|
-
}
|
|
2321
|
-
},
|
|
2322
|
-
"parameters": [
|
|
2323
|
-
{
|
|
2324
|
-
"name": "l1_address",
|
|
2325
|
-
"in": "query",
|
|
2326
|
-
"required": true,
|
|
2327
|
-
"type": "string"
|
|
2328
|
-
}
|
|
2329
|
-
],
|
|
2330
|
-
"tags": [
|
|
2331
|
-
"referral"
|
|
2332
|
-
],
|
|
2333
|
-
"consumes": [
|
|
2334
|
-
"multipart/form-data"
|
|
2335
|
-
],
|
|
2336
|
-
"description": "Does L1 address have referee code?"
|
|
2337
|
-
}
|
|
2338
|
-
},
|
|
2339
2316
|
"/api/v1/referral/points": {
|
|
2340
2317
|
"get": {
|
|
2341
2318
|
"summary": "referral_points",
|
|
@@ -3056,6 +3033,10 @@
|
|
|
3056
3033
|
"format": "int64",
|
|
3057
3034
|
"example": "100"
|
|
3058
3035
|
},
|
|
3036
|
+
"available_balance": {
|
|
3037
|
+
"type": "string",
|
|
3038
|
+
"example": "19995"
|
|
3039
|
+
},
|
|
3059
3040
|
"status": {
|
|
3060
3041
|
"type": "integer",
|
|
3061
3042
|
"format": "uint8",
|
|
@@ -3076,6 +3057,7 @@
|
|
|
3076
3057
|
"total_order_count",
|
|
3077
3058
|
"total_isolated_order_count",
|
|
3078
3059
|
"pending_order_count",
|
|
3060
|
+
"available_balance",
|
|
3079
3061
|
"status",
|
|
3080
3062
|
"collateral"
|
|
3081
3063
|
]
|
|
@@ -4120,6 +4102,10 @@
|
|
|
4120
4102
|
"format": "int64",
|
|
4121
4103
|
"example": "100"
|
|
4122
4104
|
},
|
|
4105
|
+
"available_balance": {
|
|
4106
|
+
"type": "string",
|
|
4107
|
+
"example": "19995"
|
|
4108
|
+
},
|
|
4123
4109
|
"status": {
|
|
4124
4110
|
"type": "integer",
|
|
4125
4111
|
"format": "uint8",
|
|
@@ -4182,6 +4168,7 @@
|
|
|
4182
4168
|
"total_order_count",
|
|
4183
4169
|
"total_isolated_order_count",
|
|
4184
4170
|
"pending_order_count",
|
|
4171
|
+
"available_balance",
|
|
4185
4172
|
"status",
|
|
4186
4173
|
"collateral",
|
|
4187
4174
|
"account_index",
|
|
@@ -4582,28 +4569,6 @@
|
|
|
4582
4569
|
"fundings"
|
|
4583
4570
|
]
|
|
4584
4571
|
},
|
|
4585
|
-
"HasRefereeCode": {
|
|
4586
|
-
"type": "object",
|
|
4587
|
-
"properties": {
|
|
4588
|
-
"code": {
|
|
4589
|
-
"type": "integer",
|
|
4590
|
-
"format": "int32",
|
|
4591
|
-
"example": "200"
|
|
4592
|
-
},
|
|
4593
|
-
"message": {
|
|
4594
|
-
"type": "string"
|
|
4595
|
-
},
|
|
4596
|
-
"has_referee": {
|
|
4597
|
-
"type": "boolean",
|
|
4598
|
-
"format": "boolean"
|
|
4599
|
-
}
|
|
4600
|
-
},
|
|
4601
|
-
"title": "HasRefereeCode",
|
|
4602
|
-
"required": [
|
|
4603
|
-
"code",
|
|
4604
|
-
"has_referee"
|
|
4605
|
-
]
|
|
4606
|
-
},
|
|
4607
4572
|
"IsWhitelisted": {
|
|
4608
4573
|
"type": "object",
|
|
4609
4574
|
"properties": {
|
|
@@ -5709,6 +5674,11 @@
|
|
|
5709
5674
|
"type": "number",
|
|
5710
5675
|
"format": "double",
|
|
5711
5676
|
"example": "12.0"
|
|
5677
|
+
},
|
|
5678
|
+
"pool_total_shares": {
|
|
5679
|
+
"type": "number",
|
|
5680
|
+
"format": "double",
|
|
5681
|
+
"example": "12.0"
|
|
5712
5682
|
}
|
|
5713
5683
|
},
|
|
5714
5684
|
"title": "PnLEntry",
|
|
@@ -5719,7 +5689,8 @@
|
|
|
5719
5689
|
"outflow",
|
|
5720
5690
|
"pool_pnl",
|
|
5721
5691
|
"pool_inflow",
|
|
5722
|
-
"pool_outflow"
|
|
5692
|
+
"pool_outflow",
|
|
5693
|
+
"pool_total_shares"
|
|
5723
5694
|
]
|
|
5724
5695
|
},
|
|
5725
5696
|
"PositionFunding": {
|
|
@@ -5862,6 +5833,10 @@
|
|
|
5862
5833
|
"format": "int64",
|
|
5863
5834
|
"example": "100"
|
|
5864
5835
|
},
|
|
5836
|
+
"available_balance": {
|
|
5837
|
+
"type": "string",
|
|
5838
|
+
"example": "19995"
|
|
5839
|
+
},
|
|
5865
5840
|
"status": {
|
|
5866
5841
|
"type": "integer",
|
|
5867
5842
|
"format": "uint8",
|
|
@@ -5915,6 +5890,7 @@
|
|
|
5915
5890
|
"total_order_count",
|
|
5916
5891
|
"total_isolated_order_count",
|
|
5917
5892
|
"pending_order_count",
|
|
5893
|
+
"available_balance",
|
|
5918
5894
|
"status",
|
|
5919
5895
|
"collateral",
|
|
5920
5896
|
"account_index",
|
|
@@ -6580,6 +6556,9 @@
|
|
|
6580
6556
|
"type": "integer",
|
|
6581
6557
|
"format": "uint8"
|
|
6582
6558
|
}
|
|
6559
|
+
},
|
|
6560
|
+
"auth": {
|
|
6561
|
+
"type": "string"
|
|
6583
6562
|
}
|
|
6584
6563
|
},
|
|
6585
6564
|
"title": "ReqGetAccountTxs"
|
|
@@ -7280,18 +7259,6 @@
|
|
|
7280
7259
|
"account_index"
|
|
7281
7260
|
]
|
|
7282
7261
|
},
|
|
7283
|
-
"ReqHasRefereeByL1Address": {
|
|
7284
|
-
"type": "object",
|
|
7285
|
-
"properties": {
|
|
7286
|
-
"l1_address": {
|
|
7287
|
-
"type": "string"
|
|
7288
|
-
}
|
|
7289
|
-
},
|
|
7290
|
-
"title": "ReqHasRefereeByL1Address",
|
|
7291
|
-
"required": [
|
|
7292
|
-
"l1_address"
|
|
7293
|
-
]
|
|
7294
|
-
},
|
|
7295
7262
|
"ReqIsWhitelisted": {
|
|
7296
7263
|
"type": "object",
|
|
7297
7264
|
"properties": {
|