zklighter-perps 1.0.97 → 1.0.99
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 +1 -2
- package/apis/AccountApi.ts +1 -8
- package/apis/NotificationApi.ts +112 -0
- package/apis/index.ts +1 -1
- package/models/DetailedAccount.ts +15 -0
- package/models/PnLEntry.ts +18 -0
- package/models/ReqGetAccountApiKeys.ts +2 -3
- package/models/index.ts +0 -1
- package/openapi.json +74 -103
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -4,7 +4,7 @@ apis/BlockApi.ts
|
|
|
4
4
|
apis/BridgeApi.ts
|
|
5
5
|
apis/CandlestickApi.ts
|
|
6
6
|
apis/InfoApi.ts
|
|
7
|
-
apis/
|
|
7
|
+
apis/NotificationApi.ts
|
|
8
8
|
apis/OrderApi.ts
|
|
9
9
|
apis/ReferralApi.ts
|
|
10
10
|
apis/RootApi.ts
|
|
@@ -50,7 +50,6 @@ models/Layer1BasicInfo.ts
|
|
|
50
50
|
models/Layer2BasicInfo.ts
|
|
51
51
|
models/Leaderboard.ts
|
|
52
52
|
models/LeaderboardEntry.ts
|
|
53
|
-
models/Liquidation.ts
|
|
54
53
|
models/MarketInfo.ts
|
|
55
54
|
models/NextNonce.ts
|
|
56
55
|
models/Order.ts
|
package/apis/AccountApi.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface AccountsByL1AddressRequest {
|
|
|
66
66
|
|
|
67
67
|
export interface ApikeysRequest {
|
|
68
68
|
account_index: number;
|
|
69
|
-
api_key_index
|
|
69
|
+
api_key_index?: number;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export interface FaucetRequest {
|
|
@@ -256,13 +256,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
if (requestParameters['api_key_index'] == null) {
|
|
260
|
-
throw new runtime.RequiredError(
|
|
261
|
-
'api_key_index',
|
|
262
|
-
'Required parameter "api_key_index" was null or undefined when calling apikeys().'
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
259
|
const queryParameters: any = {};
|
|
267
260
|
|
|
268
261
|
if (requestParameters['account_index'] != null) {
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ResultCode,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
ResultCodeFromJSON,
|
|
22
|
+
ResultCodeToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
export interface NotificationAckRequest {
|
|
26
|
+
notif_id: string;
|
|
27
|
+
auth: string;
|
|
28
|
+
account_index: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export class NotificationApi extends runtime.BaseAPI {
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Ack notification
|
|
38
|
+
* notification_ack
|
|
39
|
+
*/
|
|
40
|
+
async notificationAckRaw(requestParameters: NotificationAckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResultCode>> {
|
|
41
|
+
if (requestParameters['notif_id'] == null) {
|
|
42
|
+
throw new runtime.RequiredError(
|
|
43
|
+
'notif_id',
|
|
44
|
+
'Required parameter "notif_id" was null or undefined when calling notificationAck().'
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (requestParameters['auth'] == null) {
|
|
49
|
+
throw new runtime.RequiredError(
|
|
50
|
+
'auth',
|
|
51
|
+
'Required parameter "auth" was null or undefined when calling notificationAck().'
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (requestParameters['account_index'] == null) {
|
|
56
|
+
throw new runtime.RequiredError(
|
|
57
|
+
'account_index',
|
|
58
|
+
'Required parameter "account_index" was null or undefined when calling notificationAck().'
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const queryParameters: any = {};
|
|
63
|
+
|
|
64
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
65
|
+
|
|
66
|
+
const consumes: runtime.Consume[] = [
|
|
67
|
+
{ contentType: 'multipart/form-data' },
|
|
68
|
+
];
|
|
69
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
70
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
71
|
+
|
|
72
|
+
let formParams: { append(param: string, value: any): any };
|
|
73
|
+
let useForm = false;
|
|
74
|
+
if (useForm) {
|
|
75
|
+
formParams = new FormData();
|
|
76
|
+
} else {
|
|
77
|
+
formParams = new URLSearchParams();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (requestParameters['notif_id'] != null) {
|
|
81
|
+
formParams.append('notif_id', requestParameters['notif_id'] as any);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (requestParameters['auth'] != null) {
|
|
85
|
+
formParams.append('auth', requestParameters['auth'] as any);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (requestParameters['account_index'] != null) {
|
|
89
|
+
formParams.append('account_index', requestParameters['account_index'] as any);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const response = await this.request({
|
|
93
|
+
path: `/api/v1/notification/ack`,
|
|
94
|
+
method: 'POST',
|
|
95
|
+
headers: headerParameters,
|
|
96
|
+
query: queryParameters,
|
|
97
|
+
body: formParams,
|
|
98
|
+
}, initOverrides);
|
|
99
|
+
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ResultCodeFromJSON(jsonValue));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Ack notification
|
|
105
|
+
* notification_ack
|
|
106
|
+
*/
|
|
107
|
+
async notificationAck(requestParameters: NotificationAckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResultCode> {
|
|
108
|
+
const response = await this.notificationAckRaw(requestParameters, initOverrides);
|
|
109
|
+
return await response.value();
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
}
|
package/apis/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ export * from './BlockApi';
|
|
|
6
6
|
export * from './BridgeApi';
|
|
7
7
|
export * from './CandlestickApi';
|
|
8
8
|
export * from './InfoApi';
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './NotificationApi';
|
|
10
10
|
export * from './OrderApi';
|
|
11
11
|
export * from './ReferralApi';
|
|
12
12
|
export * from './RootApi';
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
AccountMarketStatsFromJSONTyped,
|
|
20
20
|
AccountMarketStatsToJSON,
|
|
21
21
|
} from './AccountMarketStats';
|
|
22
|
+
import type { AccountTradeStats } from './AccountTradeStats';
|
|
23
|
+
import {
|
|
24
|
+
AccountTradeStatsFromJSON,
|
|
25
|
+
AccountTradeStatsFromJSONTyped,
|
|
26
|
+
AccountTradeStatsToJSON,
|
|
27
|
+
} from './AccountTradeStats';
|
|
22
28
|
import type { AccountPosition } from './AccountPosition';
|
|
23
29
|
import {
|
|
24
30
|
AccountPositionFromJSON,
|
|
@@ -140,6 +146,12 @@ export interface DetailedAccount {
|
|
|
140
146
|
* @memberof DetailedAccount
|
|
141
147
|
*/
|
|
142
148
|
positions: Array<AccountPosition>;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @type {Array<AccountTradeStats>}
|
|
152
|
+
* @memberof DetailedAccount
|
|
153
|
+
*/
|
|
154
|
+
trade_stats: Array<AccountTradeStats>;
|
|
143
155
|
/**
|
|
144
156
|
*
|
|
145
157
|
* @type {string}
|
|
@@ -185,6 +197,7 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
|
|
|
185
197
|
if (!('referral_points_percentage' in value) || value['referral_points_percentage'] === undefined) return false;
|
|
186
198
|
if (!('max_referral_usage_limit' in value) || value['max_referral_usage_limit'] === undefined) return false;
|
|
187
199
|
if (!('positions' in value) || value['positions'] === undefined) return false;
|
|
200
|
+
if (!('trade_stats' in value) || value['trade_stats'] === undefined) return false;
|
|
188
201
|
if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
|
|
189
202
|
if (!('market_stats' in value) || value['market_stats'] === undefined) return false;
|
|
190
203
|
if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
|
|
@@ -218,6 +231,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
218
231
|
'referral_points_percentage': json['referral_points_percentage'],
|
|
219
232
|
'max_referral_usage_limit': json['max_referral_usage_limit'],
|
|
220
233
|
'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
|
|
234
|
+
'trade_stats': ((json['trade_stats'] as Array<any>).map(AccountTradeStatsFromJSON)),
|
|
221
235
|
'total_asset_value': json['total_asset_value'],
|
|
222
236
|
'market_stats': ((json['market_stats'] as Array<any>).map(AccountMarketStatsFromJSON)),
|
|
223
237
|
'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
|
|
@@ -247,6 +261,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
|
|
|
247
261
|
'referral_points_percentage': value['referral_points_percentage'],
|
|
248
262
|
'max_referral_usage_limit': value['max_referral_usage_limit'],
|
|
249
263
|
'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
|
|
264
|
+
'trade_stats': ((value['trade_stats'] as Array<any>).map(AccountTradeStatsToJSON)),
|
|
250
265
|
'total_asset_value': value['total_asset_value'],
|
|
251
266
|
'market_stats': ((value['market_stats'] as Array<any>).map(AccountMarketStatsToJSON)),
|
|
252
267
|
'pool_info': PublicPoolInfoToJSON(value['pool_info']),
|
package/models/PnLEntry.ts
CHANGED
|
@@ -43,6 +43,18 @@ export interface PnLEntry {
|
|
|
43
43
|
* @memberof PnLEntry
|
|
44
44
|
*/
|
|
45
45
|
pool_pnl: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof PnLEntry
|
|
50
|
+
*/
|
|
51
|
+
inflow: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof PnLEntry
|
|
56
|
+
*/
|
|
57
|
+
outflow: number;
|
|
46
58
|
}
|
|
47
59
|
|
|
48
60
|
/**
|
|
@@ -53,6 +65,8 @@ export function instanceOfPnLEntry(value: object): value is PnLEntry {
|
|
|
53
65
|
if (!('value' in value) || value['value'] === undefined) return false;
|
|
54
66
|
if (!('trade_pnl' in value) || value['trade_pnl'] === undefined) return false;
|
|
55
67
|
if (!('pool_pnl' in value) || value['pool_pnl'] === undefined) return false;
|
|
68
|
+
if (!('inflow' in value) || value['inflow'] === undefined) return false;
|
|
69
|
+
if (!('outflow' in value) || value['outflow'] === undefined) return false;
|
|
56
70
|
return true;
|
|
57
71
|
}
|
|
58
72
|
|
|
@@ -70,6 +84,8 @@ export function PnLEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
70
84
|
'value': json['value'],
|
|
71
85
|
'trade_pnl': json['trade_pnl'],
|
|
72
86
|
'pool_pnl': json['pool_pnl'],
|
|
87
|
+
'inflow': json['inflow'],
|
|
88
|
+
'outflow': json['outflow'],
|
|
73
89
|
};
|
|
74
90
|
}
|
|
75
91
|
|
|
@@ -83,6 +99,8 @@ export function PnLEntryToJSON(value?: PnLEntry | null): any {
|
|
|
83
99
|
'value': value['value'],
|
|
84
100
|
'trade_pnl': value['trade_pnl'],
|
|
85
101
|
'pool_pnl': value['pool_pnl'],
|
|
102
|
+
'inflow': value['inflow'],
|
|
103
|
+
'outflow': value['outflow'],
|
|
86
104
|
};
|
|
87
105
|
}
|
|
88
106
|
|
|
@@ -30,7 +30,7 @@ export interface ReqGetAccountApiKeys {
|
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReqGetAccountApiKeys
|
|
32
32
|
*/
|
|
33
|
-
api_key_index
|
|
33
|
+
api_key_index?: number;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -38,7 +38,6 @@ export interface ReqGetAccountApiKeys {
|
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfReqGetAccountApiKeys(value: object): value is ReqGetAccountApiKeys {
|
|
40
40
|
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
41
|
-
if (!('api_key_index' in value) || value['api_key_index'] === undefined) return false;
|
|
42
41
|
return true;
|
|
43
42
|
}
|
|
44
43
|
|
|
@@ -53,7 +52,7 @@ export function ReqGetAccountApiKeysFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
53
52
|
return {
|
|
54
53
|
|
|
55
54
|
'account_index': json['account_index'],
|
|
56
|
-
'api_key_index': json['api_key_index'],
|
|
55
|
+
'api_key_index': json['api_key_index'] == null ? undefined : json['api_key_index'],
|
|
57
56
|
};
|
|
58
57
|
}
|
|
59
58
|
|
package/models/index.ts
CHANGED
|
@@ -39,7 +39,6 @@ export * from './Layer1BasicInfo';
|
|
|
39
39
|
export * from './Layer2BasicInfo';
|
|
40
40
|
export * from './Leaderboard';
|
|
41
41
|
export * from './LeaderboardEntry';
|
|
42
|
-
export * from './Liquidation';
|
|
43
42
|
export * from './MarketInfo';
|
|
44
43
|
export * from './NextNonce';
|
|
45
44
|
export * from './Order';
|
package/openapi.json
CHANGED
|
@@ -532,7 +532,7 @@
|
|
|
532
532
|
{
|
|
533
533
|
"name": "api_key_index",
|
|
534
534
|
"in": "query",
|
|
535
|
-
"required":
|
|
535
|
+
"required": false,
|
|
536
536
|
"type": "integer",
|
|
537
537
|
"format": "uint8",
|
|
538
538
|
"default": "255"
|
|
@@ -1355,15 +1355,15 @@
|
|
|
1355
1355
|
"description": "Get points leaderboard"
|
|
1356
1356
|
}
|
|
1357
1357
|
},
|
|
1358
|
-
"/api/v1/
|
|
1359
|
-
"
|
|
1360
|
-
"summary": "
|
|
1361
|
-
"operationId": "
|
|
1358
|
+
"/api/v1/nextNonce": {
|
|
1359
|
+
"get": {
|
|
1360
|
+
"summary": "nextNonce",
|
|
1361
|
+
"operationId": "nextNonce",
|
|
1362
1362
|
"responses": {
|
|
1363
1363
|
"200": {
|
|
1364
1364
|
"description": "A successful response.",
|
|
1365
1365
|
"schema": {
|
|
1366
|
-
"$ref": "#/definitions/
|
|
1366
|
+
"$ref": "#/definitions/NextNonce"
|
|
1367
1367
|
}
|
|
1368
1368
|
},
|
|
1369
1369
|
"400": {
|
|
@@ -1375,32 +1375,38 @@
|
|
|
1375
1375
|
},
|
|
1376
1376
|
"parameters": [
|
|
1377
1377
|
{
|
|
1378
|
-
"name": "
|
|
1379
|
-
"in": "
|
|
1378
|
+
"name": "account_index",
|
|
1379
|
+
"in": "query",
|
|
1380
1380
|
"required": true,
|
|
1381
|
-
"
|
|
1382
|
-
|
|
1383
|
-
|
|
1381
|
+
"type": "integer",
|
|
1382
|
+
"format": "int64"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"name": "api_key_index",
|
|
1386
|
+
"in": "query",
|
|
1387
|
+
"required": true,
|
|
1388
|
+
"type": "integer",
|
|
1389
|
+
"format": "uint8"
|
|
1384
1390
|
}
|
|
1385
1391
|
],
|
|
1386
1392
|
"tags": [
|
|
1387
|
-
"
|
|
1393
|
+
"transaction"
|
|
1388
1394
|
],
|
|
1389
1395
|
"consumes": [
|
|
1390
1396
|
"multipart/form-data"
|
|
1391
1397
|
],
|
|
1392
|
-
"description": "
|
|
1398
|
+
"description": "Get next nonce for a specific account and api key"
|
|
1393
1399
|
}
|
|
1394
1400
|
},
|
|
1395
|
-
"/api/v1/
|
|
1396
|
-
"
|
|
1397
|
-
"summary": "
|
|
1398
|
-
"operationId": "
|
|
1401
|
+
"/api/v1/notification/ack": {
|
|
1402
|
+
"post": {
|
|
1403
|
+
"summary": "notification_ack",
|
|
1404
|
+
"operationId": "notification_ack",
|
|
1399
1405
|
"responses": {
|
|
1400
1406
|
"200": {
|
|
1401
1407
|
"description": "A successful response.",
|
|
1402
1408
|
"schema": {
|
|
1403
|
-
"$ref": "#/definitions/
|
|
1409
|
+
"$ref": "#/definitions/ResultCode"
|
|
1404
1410
|
}
|
|
1405
1411
|
},
|
|
1406
1412
|
"400": {
|
|
@@ -1412,27 +1418,21 @@
|
|
|
1412
1418
|
},
|
|
1413
1419
|
"parameters": [
|
|
1414
1420
|
{
|
|
1415
|
-
"name": "
|
|
1416
|
-
"in": "
|
|
1417
|
-
"required": true,
|
|
1418
|
-
"type": "integer",
|
|
1419
|
-
"format": "int64"
|
|
1420
|
-
},
|
|
1421
|
-
{
|
|
1422
|
-
"name": "api_key_index",
|
|
1423
|
-
"in": "query",
|
|
1421
|
+
"name": "body",
|
|
1422
|
+
"in": "body",
|
|
1424
1423
|
"required": true,
|
|
1425
|
-
"
|
|
1426
|
-
|
|
1424
|
+
"schema": {
|
|
1425
|
+
"$ref": "#/definitions/ReqAckNotif"
|
|
1426
|
+
}
|
|
1427
1427
|
}
|
|
1428
1428
|
],
|
|
1429
1429
|
"tags": [
|
|
1430
|
-
"
|
|
1430
|
+
"notification"
|
|
1431
1431
|
],
|
|
1432
1432
|
"consumes": [
|
|
1433
1433
|
"multipart/form-data"
|
|
1434
1434
|
],
|
|
1435
|
-
"description": "
|
|
1435
|
+
"description": "Ack notification"
|
|
1436
1436
|
}
|
|
1437
1437
|
},
|
|
1438
1438
|
"/api/v1/orderBookDetails": {
|
|
@@ -3387,6 +3387,12 @@
|
|
|
3387
3387
|
"$ref": "#/definitions/AccountPosition"
|
|
3388
3388
|
}
|
|
3389
3389
|
},
|
|
3390
|
+
"trade_stats": {
|
|
3391
|
+
"type": "array",
|
|
3392
|
+
"items": {
|
|
3393
|
+
"$ref": "#/definitions/AccountTradeStats"
|
|
3394
|
+
}
|
|
3395
|
+
},
|
|
3390
3396
|
"total_asset_value": {
|
|
3391
3397
|
"type": "string",
|
|
3392
3398
|
"example": "19995"
|
|
@@ -3424,6 +3430,7 @@
|
|
|
3424
3430
|
"referral_points_percentage",
|
|
3425
3431
|
"max_referral_usage_limit",
|
|
3426
3432
|
"positions",
|
|
3433
|
+
"trade_stats",
|
|
3427
3434
|
"total_asset_value",
|
|
3428
3435
|
"market_stats",
|
|
3429
3436
|
"pool_info",
|
|
@@ -3961,42 +3968,6 @@
|
|
|
3961
3968
|
"entryId"
|
|
3962
3969
|
]
|
|
3963
3970
|
},
|
|
3964
|
-
"Liquidation": {
|
|
3965
|
-
"type": "object",
|
|
3966
|
-
"properties": {
|
|
3967
|
-
"liquidation_id": {
|
|
3968
|
-
"type": "integer",
|
|
3969
|
-
"format": "int64",
|
|
3970
|
-
"example": "1"
|
|
3971
|
-
},
|
|
3972
|
-
"account_index": {
|
|
3973
|
-
"type": "integer",
|
|
3974
|
-
"format": "int64",
|
|
3975
|
-
"example": "1"
|
|
3976
|
-
},
|
|
3977
|
-
"liquidation_type": {
|
|
3978
|
-
"type": "integer",
|
|
3979
|
-
"format": "uint8",
|
|
3980
|
-
"example": "1"
|
|
3981
|
-
},
|
|
3982
|
-
"portfolio_value": {
|
|
3983
|
-
"type": "string",
|
|
3984
|
-
"example": "1"
|
|
3985
|
-
},
|
|
3986
|
-
"margin_requirement": {
|
|
3987
|
-
"type": "string",
|
|
3988
|
-
"example": "1"
|
|
3989
|
-
}
|
|
3990
|
-
},
|
|
3991
|
-
"title": "Liquidation",
|
|
3992
|
-
"required": [
|
|
3993
|
-
"liquidation_id",
|
|
3994
|
-
"account_index",
|
|
3995
|
-
"liquidation_type",
|
|
3996
|
-
"portfolio_value",
|
|
3997
|
-
"margin_requirement"
|
|
3998
|
-
]
|
|
3999
|
-
},
|
|
4000
3971
|
"MarketInfo": {
|
|
4001
3972
|
"type": "object",
|
|
4002
3973
|
"properties": {
|
|
@@ -4737,6 +4708,16 @@
|
|
|
4737
4708
|
"type": "number",
|
|
4738
4709
|
"format": "double",
|
|
4739
4710
|
"example": "12.0"
|
|
4711
|
+
},
|
|
4712
|
+
"inflow": {
|
|
4713
|
+
"type": "number",
|
|
4714
|
+
"format": "double",
|
|
4715
|
+
"example": "12.0"
|
|
4716
|
+
},
|
|
4717
|
+
"outflow": {
|
|
4718
|
+
"type": "number",
|
|
4719
|
+
"format": "double",
|
|
4720
|
+
"example": "12.0"
|
|
4740
4721
|
}
|
|
4741
4722
|
},
|
|
4742
4723
|
"title": "PnLEntry",
|
|
@@ -4744,7 +4725,9 @@
|
|
|
4744
4725
|
"timestamp",
|
|
4745
4726
|
"value",
|
|
4746
4727
|
"trade_pnl",
|
|
4747
|
-
"pool_pnl"
|
|
4728
|
+
"pool_pnl",
|
|
4729
|
+
"inflow",
|
|
4730
|
+
"outflow"
|
|
4748
4731
|
]
|
|
4749
4732
|
},
|
|
4750
4733
|
"PositionFunding": {
|
|
@@ -5146,6 +5129,28 @@
|
|
|
5146
5129
|
"reward_point_multiplier"
|
|
5147
5130
|
]
|
|
5148
5131
|
},
|
|
5132
|
+
"ReqAckNotif": {
|
|
5133
|
+
"type": "object",
|
|
5134
|
+
"properties": {
|
|
5135
|
+
"notif_id": {
|
|
5136
|
+
"type": "string",
|
|
5137
|
+
"example": "'liq:17:5898'"
|
|
5138
|
+
},
|
|
5139
|
+
"auth": {
|
|
5140
|
+
"type": "string"
|
|
5141
|
+
},
|
|
5142
|
+
"account_index": {
|
|
5143
|
+
"type": "integer",
|
|
5144
|
+
"format": "int64"
|
|
5145
|
+
}
|
|
5146
|
+
},
|
|
5147
|
+
"title": "ReqAckNotif",
|
|
5148
|
+
"required": [
|
|
5149
|
+
"notif_id",
|
|
5150
|
+
"auth",
|
|
5151
|
+
"account_index"
|
|
5152
|
+
]
|
|
5153
|
+
},
|
|
5149
5154
|
"ReqCancelDeposit": {
|
|
5150
5155
|
"type": "object",
|
|
5151
5156
|
"properties": {
|
|
@@ -5292,8 +5297,7 @@
|
|
|
5292
5297
|
},
|
|
5293
5298
|
"title": "ReqGetAccountApiKeys",
|
|
5294
5299
|
"required": [
|
|
5295
|
-
"account_index"
|
|
5296
|
-
"api_key_index"
|
|
5300
|
+
"account_index"
|
|
5297
5301
|
]
|
|
5298
5302
|
},
|
|
5299
5303
|
"ReqGetAccountByL1Address": {
|
|
@@ -6022,39 +6026,6 @@
|
|
|
6022
6026
|
"l1_address"
|
|
6023
6027
|
]
|
|
6024
6028
|
},
|
|
6025
|
-
"ReqMarkNotifRead": {
|
|
6026
|
-
"type": "object",
|
|
6027
|
-
"properties": {
|
|
6028
|
-
"notif_type": {
|
|
6029
|
-
"type": "string",
|
|
6030
|
-
"enum": [
|
|
6031
|
-
"liquidation"
|
|
6032
|
-
]
|
|
6033
|
-
},
|
|
6034
|
-
"account_index": {
|
|
6035
|
-
"type": "integer",
|
|
6036
|
-
"format": "int64"
|
|
6037
|
-
},
|
|
6038
|
-
"api_key_index": {
|
|
6039
|
-
"type": "integer",
|
|
6040
|
-
"format": "uint8"
|
|
6041
|
-
},
|
|
6042
|
-
"liquidation_ids": {
|
|
6043
|
-
"type": "string"
|
|
6044
|
-
},
|
|
6045
|
-
"signature": {
|
|
6046
|
-
"type": "string"
|
|
6047
|
-
}
|
|
6048
|
-
},
|
|
6049
|
-
"title": "ReqMarkNotifRead",
|
|
6050
|
-
"required": [
|
|
6051
|
-
"notif_type",
|
|
6052
|
-
"account_index",
|
|
6053
|
-
"api_key_index",
|
|
6054
|
-
"liquidation_ids",
|
|
6055
|
-
"signature"
|
|
6056
|
-
]
|
|
6057
|
-
},
|
|
6058
6029
|
"ReqSendTx": {
|
|
6059
6030
|
"type": "object",
|
|
6060
6031
|
"properties": {
|