zklighter-perps 1.0.324 → 1.0.326
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/apis/AccountApi.ts
CHANGED
|
@@ -252,6 +252,8 @@ export interface PnlLeaderboardRequest {
|
|
|
252
252
|
offset: number;
|
|
253
253
|
search?: string;
|
|
254
254
|
guild_id?: number;
|
|
255
|
+
l1_addresses?: string;
|
|
256
|
+
integrator_account_index?: number;
|
|
255
257
|
}
|
|
256
258
|
|
|
257
259
|
export interface PnlV2Request {
|
|
@@ -1598,6 +1600,14 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1598
1600
|
queryParameters['guild_id'] = requestParameters['guild_id'];
|
|
1599
1601
|
}
|
|
1600
1602
|
|
|
1603
|
+
if (requestParameters['l1_addresses'] != null) {
|
|
1604
|
+
queryParameters['l1_addresses'] = requestParameters['l1_addresses'];
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
if (requestParameters['integrator_account_index'] != null) {
|
|
1608
|
+
queryParameters['integrator_account_index'] = requestParameters['integrator_account_index'];
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1601
1611
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1602
1612
|
|
|
1603
1613
|
const response = await this.request({
|
|
@@ -2550,7 +2560,8 @@ export const PnlLeaderboardSortByEnum = {
|
|
|
2550
2560
|
Pnl: 'pnl',
|
|
2551
2561
|
Roi: 'roi',
|
|
2552
2562
|
Volume: 'volume',
|
|
2553
|
-
AccountValue: 'account_value'
|
|
2563
|
+
AccountValue: 'account_value',
|
|
2564
|
+
Streak: 'streak'
|
|
2554
2565
|
} as const;
|
|
2555
2566
|
export type PnlLeaderboardSortByEnum = typeof PnlLeaderboardSortByEnum[keyof typeof PnlLeaderboardSortByEnum];
|
|
2556
2567
|
/**
|
|
@@ -124,8 +124,7 @@ export interface BinaryOptionMarketStats {
|
|
|
124
124
|
export const BinaryOptionMarketStatsStatusEnum = {
|
|
125
125
|
Inactive: 'inactive',
|
|
126
126
|
Active: 'active',
|
|
127
|
-
InSettlement: 'in-settlement'
|
|
128
|
-
Settled: 'settled'
|
|
127
|
+
InSettlement: 'in-settlement'
|
|
129
128
|
} as const;
|
|
130
129
|
export type BinaryOptionMarketStatsStatusEnum = typeof BinaryOptionMarketStatsStatusEnum[keyof typeof BinaryOptionMarketStatsStatusEnum];
|
|
131
130
|
|
|
@@ -55,6 +55,48 @@ export interface PnlLeaderboardEntry {
|
|
|
55
55
|
* @memberof PnlLeaderboardEntry
|
|
56
56
|
*/
|
|
57
57
|
volume: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof PnlLeaderboardEntry
|
|
62
|
+
*/
|
|
63
|
+
streak: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof PnlLeaderboardEntry
|
|
68
|
+
*/
|
|
69
|
+
longest_streak: number;
|
|
70
|
+
/**
|
|
71
|
+
* gross open perp notional at mark price
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof PnlLeaderboardEntry
|
|
74
|
+
*/
|
|
75
|
+
net_position: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof PnlLeaderboardEntry
|
|
80
|
+
*/
|
|
81
|
+
biggest_position_value: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof PnlLeaderboardEntry
|
|
86
|
+
*/
|
|
87
|
+
biggest_position_asset: string;
|
|
88
|
+
/**
|
|
89
|
+
* share of net_position that is long; absent without open positions
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof PnlLeaderboardEntry
|
|
92
|
+
*/
|
|
93
|
+
long_percentage: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof PnlLeaderboardEntry
|
|
98
|
+
*/
|
|
99
|
+
short_percentage: number;
|
|
58
100
|
/**
|
|
59
101
|
*
|
|
60
102
|
* @type {number}
|
|
@@ -85,6 +127,13 @@ export function instanceOfPnlLeaderboardEntry(value: object): value is PnlLeader
|
|
|
85
127
|
if (!('pnl' in value) || value['pnl'] === undefined) return false;
|
|
86
128
|
if (!('roi' in value) || value['roi'] === undefined) return false;
|
|
87
129
|
if (!('volume' in value) || value['volume'] === undefined) return false;
|
|
130
|
+
if (!('streak' in value) || value['streak'] === undefined) return false;
|
|
131
|
+
if (!('longest_streak' in value) || value['longest_streak'] === undefined) return false;
|
|
132
|
+
if (!('net_position' in value) || value['net_position'] === undefined) return false;
|
|
133
|
+
if (!('biggest_position_value' in value) || value['biggest_position_value'] === undefined) return false;
|
|
134
|
+
if (!('biggest_position_asset' in value) || value['biggest_position_asset'] === undefined) return false;
|
|
135
|
+
if (!('long_percentage' in value) || value['long_percentage'] === undefined) return false;
|
|
136
|
+
if (!('short_percentage' in value) || value['short_percentage'] === undefined) return false;
|
|
88
137
|
return true;
|
|
89
138
|
}
|
|
90
139
|
|
|
@@ -104,6 +153,13 @@ export function PnlLeaderboardEntryFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
104
153
|
'pnl': json['pnl'],
|
|
105
154
|
'roi': json['roi'],
|
|
106
155
|
'volume': json['volume'],
|
|
156
|
+
'streak': json['streak'],
|
|
157
|
+
'longest_streak': json['longest_streak'],
|
|
158
|
+
'net_position': json['net_position'],
|
|
159
|
+
'biggest_position_value': json['biggest_position_value'],
|
|
160
|
+
'biggest_position_asset': json['biggest_position_asset'],
|
|
161
|
+
'long_percentage': json['long_percentage'],
|
|
162
|
+
'short_percentage': json['short_percentage'],
|
|
107
163
|
'global_rank': json['global_rank'] == null ? undefined : json['global_rank'],
|
|
108
164
|
'guild_id': json['guild_id'] == null ? undefined : json['guild_id'],
|
|
109
165
|
'guild_name': json['guild_name'] == null ? undefined : json['guild_name'],
|
|
@@ -122,6 +178,13 @@ export function PnlLeaderboardEntryToJSON(value?: PnlLeaderboardEntry | null): a
|
|
|
122
178
|
'pnl': value['pnl'],
|
|
123
179
|
'roi': value['roi'],
|
|
124
180
|
'volume': value['volume'],
|
|
181
|
+
'streak': value['streak'],
|
|
182
|
+
'longest_streak': value['longest_streak'],
|
|
183
|
+
'net_position': value['net_position'],
|
|
184
|
+
'biggest_position_value': value['biggest_position_value'],
|
|
185
|
+
'biggest_position_asset': value['biggest_position_asset'],
|
|
186
|
+
'long_percentage': value['long_percentage'],
|
|
187
|
+
'short_percentage': value['short_percentage'],
|
|
125
188
|
'global_rank': value['global_rank'],
|
|
126
189
|
'guild_id': value['guild_id'],
|
|
127
190
|
'guild_name': value['guild_name'],
|
|
@@ -61,6 +61,18 @@ export interface ReqGetPnlLeaderboard {
|
|
|
61
61
|
* @memberof ReqGetPnlLeaderboard
|
|
62
62
|
*/
|
|
63
63
|
guild_id?: number;
|
|
64
|
+
/**
|
|
65
|
+
* comma-separated, max 150
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ReqGetPnlLeaderboard
|
|
68
|
+
*/
|
|
69
|
+
l1_addresses?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof ReqGetPnlLeaderboard
|
|
74
|
+
*/
|
|
75
|
+
integrator_account_index?: number;
|
|
64
76
|
}
|
|
65
77
|
|
|
66
78
|
|
|
@@ -82,7 +94,8 @@ export const ReqGetPnlLeaderboardSortByEnum = {
|
|
|
82
94
|
Pnl: 'pnl',
|
|
83
95
|
Roi: 'roi',
|
|
84
96
|
Volume: 'volume',
|
|
85
|
-
AccountValue: 'account_value'
|
|
97
|
+
AccountValue: 'account_value',
|
|
98
|
+
Streak: 'streak'
|
|
86
99
|
} as const;
|
|
87
100
|
export type ReqGetPnlLeaderboardSortByEnum = typeof ReqGetPnlLeaderboardSortByEnum[keyof typeof ReqGetPnlLeaderboardSortByEnum];
|
|
88
101
|
|
|
@@ -125,6 +138,8 @@ export function ReqGetPnlLeaderboardFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
125
138
|
'offset': json['offset'],
|
|
126
139
|
'search': json['search'] == null ? undefined : json['search'],
|
|
127
140
|
'guild_id': json['guild_id'] == null ? undefined : json['guild_id'],
|
|
141
|
+
'l1_addresses': json['l1_addresses'] == null ? undefined : json['l1_addresses'],
|
|
142
|
+
'integrator_account_index': json['integrator_account_index'] == null ? undefined : json['integrator_account_index'],
|
|
128
143
|
};
|
|
129
144
|
}
|
|
130
145
|
|
|
@@ -141,6 +156,8 @@ export function ReqGetPnlLeaderboardToJSON(value?: ReqGetPnlLeaderboard | null):
|
|
|
141
156
|
'offset': value['offset'],
|
|
142
157
|
'search': value['search'],
|
|
143
158
|
'guild_id': value['guild_id'],
|
|
159
|
+
'l1_addresses': value['l1_addresses'],
|
|
160
|
+
'integrator_account_index': value['integrator_account_index'],
|
|
144
161
|
};
|
|
145
162
|
}
|
|
146
163
|
|
package/openapi.json
CHANGED
|
@@ -4677,7 +4677,8 @@
|
|
|
4677
4677
|
"pnl",
|
|
4678
4678
|
"roi",
|
|
4679
4679
|
"volume",
|
|
4680
|
-
"account_value"
|
|
4680
|
+
"account_value",
|
|
4681
|
+
"streak"
|
|
4681
4682
|
],
|
|
4682
4683
|
"default": "pnl"
|
|
4683
4684
|
},
|
|
@@ -4724,6 +4725,20 @@
|
|
|
4724
4725
|
"required": false,
|
|
4725
4726
|
"type": "integer",
|
|
4726
4727
|
"format": "int64"
|
|
4728
|
+
},
|
|
4729
|
+
{
|
|
4730
|
+
"name": "l1_addresses",
|
|
4731
|
+
"description": " comma-separated, max 150",
|
|
4732
|
+
"in": "query",
|
|
4733
|
+
"required": false,
|
|
4734
|
+
"type": "string"
|
|
4735
|
+
},
|
|
4736
|
+
{
|
|
4737
|
+
"name": "integrator_account_index",
|
|
4738
|
+
"in": "query",
|
|
4739
|
+
"required": false,
|
|
4740
|
+
"type": "integer",
|
|
4741
|
+
"format": "int64"
|
|
4727
4742
|
}
|
|
4728
4743
|
],
|
|
4729
4744
|
"tags": [
|
|
@@ -8689,8 +8704,7 @@
|
|
|
8689
8704
|
"enum": [
|
|
8690
8705
|
"inactive",
|
|
8691
8706
|
"active",
|
|
8692
|
-
"in-settlement"
|
|
8693
|
-
"settled"
|
|
8707
|
+
"in-settlement"
|
|
8694
8708
|
],
|
|
8695
8709
|
"description": " inactive once the trading window closes"
|
|
8696
8710
|
},
|
|
@@ -13536,6 +13550,42 @@
|
|
|
13536
13550
|
"format": "double",
|
|
13537
13551
|
"example": "15999.34"
|
|
13538
13552
|
},
|
|
13553
|
+
"streak": {
|
|
13554
|
+
"type": "integer",
|
|
13555
|
+
"format": "int64",
|
|
13556
|
+
"example": "12"
|
|
13557
|
+
},
|
|
13558
|
+
"longest_streak": {
|
|
13559
|
+
"type": "integer",
|
|
13560
|
+
"format": "int64",
|
|
13561
|
+
"example": "40"
|
|
13562
|
+
},
|
|
13563
|
+
"net_position": {
|
|
13564
|
+
"type": "number",
|
|
13565
|
+
"format": "double",
|
|
13566
|
+
"example": "21304.42",
|
|
13567
|
+
"description": " gross open perp notional at mark price"
|
|
13568
|
+
},
|
|
13569
|
+
"biggest_position_value": {
|
|
13570
|
+
"type": "number",
|
|
13571
|
+
"format": "double",
|
|
13572
|
+
"example": "10460.71"
|
|
13573
|
+
},
|
|
13574
|
+
"biggest_position_asset": {
|
|
13575
|
+
"type": "string",
|
|
13576
|
+
"example": "ETH"
|
|
13577
|
+
},
|
|
13578
|
+
"long_percentage": {
|
|
13579
|
+
"type": "number",
|
|
13580
|
+
"format": "double",
|
|
13581
|
+
"example": "60.3",
|
|
13582
|
+
"description": " share of net_position that is long; absent without open positions"
|
|
13583
|
+
},
|
|
13584
|
+
"short_percentage": {
|
|
13585
|
+
"type": "number",
|
|
13586
|
+
"format": "double",
|
|
13587
|
+
"example": "39.7"
|
|
13588
|
+
},
|
|
13539
13589
|
"global_rank": {
|
|
13540
13590
|
"type": "integer",
|
|
13541
13591
|
"format": "int64",
|
|
@@ -13558,7 +13608,14 @@
|
|
|
13558
13608
|
"account_value",
|
|
13559
13609
|
"pnl",
|
|
13560
13610
|
"roi",
|
|
13561
|
-
"volume"
|
|
13611
|
+
"volume",
|
|
13612
|
+
"streak",
|
|
13613
|
+
"longest_streak",
|
|
13614
|
+
"net_position",
|
|
13615
|
+
"biggest_position_value",
|
|
13616
|
+
"biggest_position_asset",
|
|
13617
|
+
"long_percentage",
|
|
13618
|
+
"short_percentage"
|
|
13562
13619
|
]
|
|
13563
13620
|
},
|
|
13564
13621
|
"PositionFunding": {
|
|
@@ -16279,7 +16336,8 @@
|
|
|
16279
16336
|
"pnl",
|
|
16280
16337
|
"roi",
|
|
16281
16338
|
"volume",
|
|
16282
|
-
"account_value"
|
|
16339
|
+
"account_value",
|
|
16340
|
+
"streak"
|
|
16283
16341
|
],
|
|
16284
16342
|
"default": "pnl"
|
|
16285
16343
|
},
|
|
@@ -16310,6 +16368,14 @@
|
|
|
16310
16368
|
"guild_id": {
|
|
16311
16369
|
"type": "integer",
|
|
16312
16370
|
"format": "int64"
|
|
16371
|
+
},
|
|
16372
|
+
"l1_addresses": {
|
|
16373
|
+
"type": "string",
|
|
16374
|
+
"description": " comma-separated, max 150"
|
|
16375
|
+
},
|
|
16376
|
+
"integrator_account_index": {
|
|
16377
|
+
"type": "integer",
|
|
16378
|
+
"format": "int64"
|
|
16313
16379
|
}
|
|
16314
16380
|
},
|
|
16315
16381
|
"title": "ReqGetPnlLeaderboard",
|