zklighter-perps 1.0.325 → 1.0.327
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 +12 -11
- package/apis/EventApi.ts +25 -18
- package/models/EventDetail.ts +8 -8
- package/models/PnlLeaderboardEntry.ts +63 -0
- package/models/ReqGetAccountPnLV2.ts +0 -8
- package/models/ReqGetEvents.ts +3 -3
- package/models/ReqGetPnlLeaderboard.ts +18 -1
- package/openapi.json +89 -39
- package/package.json +1 -1
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 {
|
|
@@ -260,8 +262,6 @@ export interface PnlV2Request {
|
|
|
260
262
|
resolution: PnlV2ResolutionEnum;
|
|
261
263
|
start_timestamp: number;
|
|
262
264
|
end_timestamp: number;
|
|
263
|
-
authorization?: string;
|
|
264
|
-
auth?: string;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
export interface PositionFundingRequest {
|
|
@@ -1598,6 +1598,14 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1598
1598
|
queryParameters['guild_id'] = requestParameters['guild_id'];
|
|
1599
1599
|
}
|
|
1600
1600
|
|
|
1601
|
+
if (requestParameters['l1_addresses'] != null) {
|
|
1602
|
+
queryParameters['l1_addresses'] = requestParameters['l1_addresses'];
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
if (requestParameters['integrator_account_index'] != null) {
|
|
1606
|
+
queryParameters['integrator_account_index'] = requestParameters['integrator_account_index'];
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1601
1609
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1602
1610
|
|
|
1603
1611
|
const response = await this.request({
|
|
@@ -1661,14 +1669,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1661
1669
|
|
|
1662
1670
|
const queryParameters: any = {};
|
|
1663
1671
|
|
|
1664
|
-
if (requestParameters['authorization'] != null) {
|
|
1665
|
-
queryParameters['authorization'] = requestParameters['authorization'];
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
if (requestParameters['auth'] != null) {
|
|
1669
|
-
queryParameters['auth'] = requestParameters['auth'];
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
1672
|
if (requestParameters['by'] != null) {
|
|
1673
1673
|
queryParameters['by'] = requestParameters['by'];
|
|
1674
1674
|
}
|
|
@@ -2550,7 +2550,8 @@ export const PnlLeaderboardSortByEnum = {
|
|
|
2550
2550
|
Pnl: 'pnl',
|
|
2551
2551
|
Roi: 'roi',
|
|
2552
2552
|
Volume: 'volume',
|
|
2553
|
-
AccountValue: 'account_value'
|
|
2553
|
+
AccountValue: 'account_value',
|
|
2554
|
+
Streak: 'streak'
|
|
2554
2555
|
} as const;
|
|
2555
2556
|
export type PnlLeaderboardSortByEnum = typeof PnlLeaderboardSortByEnum[keyof typeof PnlLeaderboardSortByEnum];
|
|
2556
2557
|
/**
|
package/apis/EventApi.ts
CHANGED
|
@@ -35,13 +35,13 @@ export interface EventCreateRequest {
|
|
|
35
35
|
account_index: number;
|
|
36
36
|
title: string;
|
|
37
37
|
event_kind: EventCreateEventKindEnum;
|
|
38
|
-
|
|
38
|
+
start_at: number;
|
|
39
|
+
end_at: number;
|
|
39
40
|
authorization?: string;
|
|
40
41
|
auth?: string;
|
|
41
42
|
description?: string;
|
|
42
43
|
tag?: string;
|
|
43
44
|
recurrence_period_seconds?: number;
|
|
44
|
-
occurrence_end_at?: number;
|
|
45
45
|
metadata?: string;
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -62,8 +62,8 @@ export interface EventUpdateRequest {
|
|
|
62
62
|
tag?: string;
|
|
63
63
|
event_kind?: EventUpdateEventKindEnum;
|
|
64
64
|
recurrence_period_seconds?: number;
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
start_at?: number;
|
|
66
|
+
end_at?: number;
|
|
67
67
|
metadata?: string;
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -113,10 +113,17 @@ export class EventApi extends runtime.BaseAPI {
|
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
if (requestParameters['
|
|
116
|
+
if (requestParameters['start_at'] == null) {
|
|
117
117
|
throw new runtime.RequiredError(
|
|
118
|
-
'
|
|
119
|
-
'Required parameter "
|
|
118
|
+
'start_at',
|
|
119
|
+
'Required parameter "start_at" was null or undefined when calling eventCreate().'
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (requestParameters['end_at'] == null) {
|
|
124
|
+
throw new runtime.RequiredError(
|
|
125
|
+
'end_at',
|
|
126
|
+
'Required parameter "end_at" was null or undefined when calling eventCreate().'
|
|
120
127
|
);
|
|
121
128
|
}
|
|
122
129
|
|
|
@@ -170,12 +177,12 @@ export class EventApi extends runtime.BaseAPI {
|
|
|
170
177
|
formParams.append('recurrence_period_seconds', requestParameters['recurrence_period_seconds'] as any);
|
|
171
178
|
}
|
|
172
179
|
|
|
173
|
-
if (requestParameters['
|
|
174
|
-
formParams.append('
|
|
180
|
+
if (requestParameters['start_at'] != null) {
|
|
181
|
+
formParams.append('start_at', requestParameters['start_at'] as any);
|
|
175
182
|
}
|
|
176
183
|
|
|
177
|
-
if (requestParameters['
|
|
178
|
-
formParams.append('
|
|
184
|
+
if (requestParameters['end_at'] != null) {
|
|
185
|
+
formParams.append('end_at', requestParameters['end_at'] as any);
|
|
179
186
|
}
|
|
180
187
|
|
|
181
188
|
if (requestParameters['metadata'] != null) {
|
|
@@ -344,12 +351,12 @@ export class EventApi extends runtime.BaseAPI {
|
|
|
344
351
|
formParams.append('recurrence_period_seconds', requestParameters['recurrence_period_seconds'] as any);
|
|
345
352
|
}
|
|
346
353
|
|
|
347
|
-
if (requestParameters['
|
|
348
|
-
formParams.append('
|
|
354
|
+
if (requestParameters['start_at'] != null) {
|
|
355
|
+
formParams.append('start_at', requestParameters['start_at'] as any);
|
|
349
356
|
}
|
|
350
357
|
|
|
351
|
-
if (requestParameters['
|
|
352
|
-
formParams.append('
|
|
358
|
+
if (requestParameters['end_at'] != null) {
|
|
359
|
+
formParams.append('end_at', requestParameters['end_at'] as any);
|
|
353
360
|
}
|
|
354
361
|
|
|
355
362
|
if (requestParameters['metadata'] != null) {
|
|
@@ -381,7 +388,7 @@ export class EventApi extends runtime.BaseAPI {
|
|
|
381
388
|
}
|
|
382
389
|
|
|
383
390
|
/**
|
|
384
|
-
* Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id.
|
|
391
|
+
* Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id. start_at sorting uses (start_at, event_id); cursor identifies an existing event and excludes it in the requested direction. tag filters across creators; creator_account_index is an optional additional filter. active=true requires a tradeable outcome; active=false includes scheduled and closed events.
|
|
385
392
|
* events
|
|
386
393
|
*/
|
|
387
394
|
async eventsRaw(requestParameters: EventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespGetEvents>> {
|
|
@@ -448,7 +455,7 @@ export class EventApi extends runtime.BaseAPI {
|
|
|
448
455
|
}
|
|
449
456
|
|
|
450
457
|
/**
|
|
451
|
-
* Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id.
|
|
458
|
+
* Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id. start_at sorting uses (start_at, event_id); cursor identifies an existing event and excludes it in the requested direction. tag filters across creators; creator_account_index is an optional additional filter. active=true requires a tradeable outcome; active=false includes scheduled and closed events.
|
|
452
459
|
* events
|
|
453
460
|
*/
|
|
454
461
|
async events(requestParameters: EventsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespGetEvents> {
|
|
@@ -487,7 +494,7 @@ export type EventsEventKindEnum = typeof EventsEventKindEnum[keyof typeof Events
|
|
|
487
494
|
*/
|
|
488
495
|
export const EventsSortEnum = {
|
|
489
496
|
Id: 'id',
|
|
490
|
-
|
|
497
|
+
StartAt: 'start_at'
|
|
491
498
|
} as const;
|
|
492
499
|
export type EventsSortEnum = typeof EventsSortEnum[keyof typeof EventsSortEnum];
|
|
493
500
|
/**
|
package/models/EventDetail.ts
CHANGED
|
@@ -79,13 +79,13 @@ export interface EventDetail {
|
|
|
79
79
|
* @type {number}
|
|
80
80
|
* @memberof EventDetail
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
start_at: number;
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
85
|
* @type {number}
|
|
86
86
|
* @memberof EventDetail
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
end_at: number;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
91
|
* @type {{ [key: string]: any; }}
|
|
@@ -129,8 +129,8 @@ export function instanceOfEventDetail(value: object): value is EventDetail {
|
|
|
129
129
|
if (!('tag' in value) || value['tag'] === undefined) return false;
|
|
130
130
|
if (!('event_kind' in value) || value['event_kind'] === undefined) return false;
|
|
131
131
|
if (!('recurrence_period_seconds' in value) || value['recurrence_period_seconds'] === undefined) return false;
|
|
132
|
-
if (!('
|
|
133
|
-
if (!('
|
|
132
|
+
if (!('start_at' in value) || value['start_at'] === undefined) return false;
|
|
133
|
+
if (!('end_at' in value) || value['end_at'] === undefined) return false;
|
|
134
134
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
135
135
|
if (!('order_books' in value) || value['order_books'] === undefined) return false;
|
|
136
136
|
if (!('lifetime_quote_token_volume' in value) || value['lifetime_quote_token_volume'] === undefined) return false;
|
|
@@ -155,8 +155,8 @@ export function EventDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
155
155
|
'tag': json['tag'],
|
|
156
156
|
'event_kind': json['event_kind'],
|
|
157
157
|
'recurrence_period_seconds': json['recurrence_period_seconds'],
|
|
158
|
-
'
|
|
159
|
-
'
|
|
158
|
+
'start_at': json['start_at'],
|
|
159
|
+
'end_at': json['end_at'],
|
|
160
160
|
'metadata': json['metadata'],
|
|
161
161
|
'order_books': ((json['order_books'] as Array<any>).map(EventOrderBookEntryFromJSON)),
|
|
162
162
|
'lifetime_quote_token_volume': json['lifetime_quote_token_volume'],
|
|
@@ -177,8 +177,8 @@ export function EventDetailToJSON(value?: EventDetail | null): any {
|
|
|
177
177
|
'tag': value['tag'],
|
|
178
178
|
'event_kind': value['event_kind'],
|
|
179
179
|
'recurrence_period_seconds': value['recurrence_period_seconds'],
|
|
180
|
-
'
|
|
181
|
-
'
|
|
180
|
+
'start_at': value['start_at'],
|
|
181
|
+
'end_at': value['end_at'],
|
|
182
182
|
'metadata': value['metadata'],
|
|
183
183
|
'order_books': ((value['order_books'] as Array<any>).map(EventOrderBookEntryToJSON)),
|
|
184
184
|
'lifetime_quote_token_volume': value['lifetime_quote_token_volume'],
|
|
@@ -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'],
|
|
@@ -19,12 +19,6 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface ReqGetAccountPnLV2
|
|
20
20
|
*/
|
|
21
21
|
export interface ReqGetAccountPnLV2 {
|
|
22
|
-
/**
|
|
23
|
-
* made optional to support header auth clients
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ReqGetAccountPnLV2
|
|
26
|
-
*/
|
|
27
|
-
auth?: string;
|
|
28
22
|
/**
|
|
29
23
|
*
|
|
30
24
|
* @type {string}
|
|
@@ -98,7 +92,6 @@ export function ReqGetAccountPnLV2FromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
98
92
|
}
|
|
99
93
|
return {
|
|
100
94
|
|
|
101
|
-
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
102
95
|
'by': json['by'],
|
|
103
96
|
'value': json['value'],
|
|
104
97
|
'resolution': json['resolution'],
|
|
@@ -113,7 +106,6 @@ export function ReqGetAccountPnLV2ToJSON(value?: ReqGetAccountPnLV2 | null): any
|
|
|
113
106
|
}
|
|
114
107
|
return {
|
|
115
108
|
|
|
116
|
-
'auth': value['auth'],
|
|
117
109
|
'by': value['by'],
|
|
118
110
|
'value': value['value'],
|
|
119
111
|
'resolution': value['resolution'],
|
package/models/ReqGetEvents.ts
CHANGED
|
@@ -68,13 +68,13 @@ export interface ReqGetEvents {
|
|
|
68
68
|
*/
|
|
69
69
|
event_kind?: ReqGetEventsEventKindEnum;
|
|
70
70
|
/**
|
|
71
|
-
* inclusive
|
|
71
|
+
* inclusive start_at, Unix milliseconds
|
|
72
72
|
* @type {number}
|
|
73
73
|
* @memberof ReqGetEvents
|
|
74
74
|
*/
|
|
75
75
|
start_from?: number;
|
|
76
76
|
/**
|
|
77
|
-
* exclusive
|
|
77
|
+
* exclusive start_at, Unix milliseconds
|
|
78
78
|
* @type {number}
|
|
79
79
|
* @memberof ReqGetEvents
|
|
80
80
|
*/
|
|
@@ -108,7 +108,7 @@ export type ReqGetEventsEventKindEnum = typeof ReqGetEventsEventKindEnum[keyof t
|
|
|
108
108
|
*/
|
|
109
109
|
export const ReqGetEventsSortEnum = {
|
|
110
110
|
Id: 'id',
|
|
111
|
-
|
|
111
|
+
StartAt: 'start_at'
|
|
112
112
|
} as const;
|
|
113
113
|
export type ReqGetEventsSortEnum = typeof ReqGetEventsSortEnum[keyof typeof ReqGetEventsSortEnum];
|
|
114
114
|
|
|
@@ -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
|
@@ -1843,7 +1843,7 @@
|
|
|
1843
1843
|
},
|
|
1844
1844
|
{
|
|
1845
1845
|
"name": "start_from",
|
|
1846
|
-
"description": " inclusive
|
|
1846
|
+
"description": " inclusive start_at, Unix milliseconds",
|
|
1847
1847
|
"in": "query",
|
|
1848
1848
|
"required": false,
|
|
1849
1849
|
"type": "integer",
|
|
@@ -1851,7 +1851,7 @@
|
|
|
1851
1851
|
},
|
|
1852
1852
|
{
|
|
1853
1853
|
"name": "start_before",
|
|
1854
|
-
"description": " exclusive
|
|
1854
|
+
"description": " exclusive start_at, Unix milliseconds",
|
|
1855
1855
|
"in": "query",
|
|
1856
1856
|
"required": false,
|
|
1857
1857
|
"type": "integer",
|
|
@@ -1864,7 +1864,7 @@
|
|
|
1864
1864
|
"type": "string",
|
|
1865
1865
|
"enum": [
|
|
1866
1866
|
"id",
|
|
1867
|
-
"
|
|
1867
|
+
"start_at"
|
|
1868
1868
|
],
|
|
1869
1869
|
"default": "id"
|
|
1870
1870
|
},
|
|
@@ -1886,7 +1886,7 @@
|
|
|
1886
1886
|
"consumes": [
|
|
1887
1887
|
"multipart/form-data"
|
|
1888
1888
|
],
|
|
1889
|
-
"description": "Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id.
|
|
1889
|
+
"description": "Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id. start_at sorting uses (start_at, event_id); cursor identifies an existing event and excludes it in the requested direction. tag filters across creators; creator_account_index is an optional additional filter. active=true requires a tradeable outcome; active=false includes scheduled and closed events."
|
|
1890
1890
|
}
|
|
1891
1891
|
},
|
|
1892
1892
|
"/api/v1/exchangeMetrics": {
|
|
@@ -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": [
|
|
@@ -7247,20 +7262,6 @@
|
|
|
7247
7262
|
}
|
|
7248
7263
|
},
|
|
7249
7264
|
"parameters": [
|
|
7250
|
-
{
|
|
7251
|
-
"name": "authorization",
|
|
7252
|
-
"description": " make required after integ is done",
|
|
7253
|
-
"in": "query",
|
|
7254
|
-
"required": false,
|
|
7255
|
-
"type": "string"
|
|
7256
|
-
},
|
|
7257
|
-
{
|
|
7258
|
-
"name": "auth",
|
|
7259
|
-
"description": " made optional to support header auth clients",
|
|
7260
|
-
"in": "query",
|
|
7261
|
-
"required": false,
|
|
7262
|
-
"type": "string"
|
|
7263
|
-
},
|
|
7264
7265
|
{
|
|
7265
7266
|
"name": "by",
|
|
7266
7267
|
"in": "query",
|
|
@@ -10027,11 +10028,11 @@
|
|
|
10027
10028
|
"type": "integer",
|
|
10028
10029
|
"format": "int32"
|
|
10029
10030
|
},
|
|
10030
|
-
"
|
|
10031
|
+
"start_at": {
|
|
10031
10032
|
"type": "integer",
|
|
10032
10033
|
"format": "int64"
|
|
10033
10034
|
},
|
|
10034
|
-
"
|
|
10035
|
+
"end_at": {
|
|
10035
10036
|
"type": "integer",
|
|
10036
10037
|
"format": "int64"
|
|
10037
10038
|
},
|
|
@@ -10061,8 +10062,8 @@
|
|
|
10061
10062
|
"tag",
|
|
10062
10063
|
"event_kind",
|
|
10063
10064
|
"recurrence_period_seconds",
|
|
10064
|
-
"
|
|
10065
|
-
"
|
|
10065
|
+
"start_at",
|
|
10066
|
+
"end_at",
|
|
10066
10067
|
"metadata",
|
|
10067
10068
|
"order_books",
|
|
10068
10069
|
"lifetime_quote_token_volume"
|
|
@@ -13535,6 +13536,42 @@
|
|
|
13535
13536
|
"format": "double",
|
|
13536
13537
|
"example": "15999.34"
|
|
13537
13538
|
},
|
|
13539
|
+
"streak": {
|
|
13540
|
+
"type": "integer",
|
|
13541
|
+
"format": "int64",
|
|
13542
|
+
"example": "12"
|
|
13543
|
+
},
|
|
13544
|
+
"longest_streak": {
|
|
13545
|
+
"type": "integer",
|
|
13546
|
+
"format": "int64",
|
|
13547
|
+
"example": "40"
|
|
13548
|
+
},
|
|
13549
|
+
"net_position": {
|
|
13550
|
+
"type": "number",
|
|
13551
|
+
"format": "double",
|
|
13552
|
+
"example": "21304.42",
|
|
13553
|
+
"description": " gross open perp notional at mark price"
|
|
13554
|
+
},
|
|
13555
|
+
"biggest_position_value": {
|
|
13556
|
+
"type": "number",
|
|
13557
|
+
"format": "double",
|
|
13558
|
+
"example": "10460.71"
|
|
13559
|
+
},
|
|
13560
|
+
"biggest_position_asset": {
|
|
13561
|
+
"type": "string",
|
|
13562
|
+
"example": "ETH"
|
|
13563
|
+
},
|
|
13564
|
+
"long_percentage": {
|
|
13565
|
+
"type": "number",
|
|
13566
|
+
"format": "double",
|
|
13567
|
+
"example": "60.3",
|
|
13568
|
+
"description": " share of net_position that is long; absent without open positions"
|
|
13569
|
+
},
|
|
13570
|
+
"short_percentage": {
|
|
13571
|
+
"type": "number",
|
|
13572
|
+
"format": "double",
|
|
13573
|
+
"example": "39.7"
|
|
13574
|
+
},
|
|
13538
13575
|
"global_rank": {
|
|
13539
13576
|
"type": "integer",
|
|
13540
13577
|
"format": "int64",
|
|
@@ -13557,7 +13594,14 @@
|
|
|
13557
13594
|
"account_value",
|
|
13558
13595
|
"pnl",
|
|
13559
13596
|
"roi",
|
|
13560
|
-
"volume"
|
|
13597
|
+
"volume",
|
|
13598
|
+
"streak",
|
|
13599
|
+
"longest_streak",
|
|
13600
|
+
"net_position",
|
|
13601
|
+
"biggest_position_value",
|
|
13602
|
+
"biggest_position_asset",
|
|
13603
|
+
"long_percentage",
|
|
13604
|
+
"short_percentage"
|
|
13561
13605
|
]
|
|
13562
13606
|
},
|
|
13563
13607
|
"PositionFunding": {
|
|
@@ -14631,15 +14675,15 @@
|
|
|
14631
14675
|
"format": "int32",
|
|
14632
14676
|
"description": " 0 for one-off events"
|
|
14633
14677
|
},
|
|
14634
|
-
"
|
|
14678
|
+
"start_at": {
|
|
14635
14679
|
"type": "integer",
|
|
14636
14680
|
"format": "int64",
|
|
14637
14681
|
"description": " Unix milliseconds; observation time, not trading time"
|
|
14638
14682
|
},
|
|
14639
|
-
"
|
|
14683
|
+
"end_at": {
|
|
14640
14684
|
"type": "integer",
|
|
14641
14685
|
"format": "int64",
|
|
14642
|
-
"description": "
|
|
14686
|
+
"description": " Unix milliseconds; must be after start_at"
|
|
14643
14687
|
},
|
|
14644
14688
|
"metadata": {
|
|
14645
14689
|
"type": "string",
|
|
@@ -14651,7 +14695,8 @@
|
|
|
14651
14695
|
"account_index",
|
|
14652
14696
|
"title",
|
|
14653
14697
|
"event_kind",
|
|
14654
|
-
"
|
|
14698
|
+
"start_at",
|
|
14699
|
+
"end_at"
|
|
14655
14700
|
]
|
|
14656
14701
|
},
|
|
14657
14702
|
"ReqCreateGuild": {
|
|
@@ -15281,10 +15326,6 @@
|
|
|
15281
15326
|
"ReqGetAccountPnLV2": {
|
|
15282
15327
|
"type": "object",
|
|
15283
15328
|
"properties": {
|
|
15284
|
-
"auth": {
|
|
15285
|
-
"type": "string",
|
|
15286
|
-
"description": " made optional to support header auth clients"
|
|
15287
|
-
},
|
|
15288
15329
|
"by": {
|
|
15289
15330
|
"type": "string",
|
|
15290
15331
|
"enum": [
|
|
@@ -15655,18 +15696,18 @@
|
|
|
15655
15696
|
"start_from": {
|
|
15656
15697
|
"type": "integer",
|
|
15657
15698
|
"format": "int64",
|
|
15658
|
-
"description": " inclusive
|
|
15699
|
+
"description": " inclusive start_at, Unix milliseconds"
|
|
15659
15700
|
},
|
|
15660
15701
|
"start_before": {
|
|
15661
15702
|
"type": "integer",
|
|
15662
15703
|
"format": "int64",
|
|
15663
|
-
"description": " exclusive
|
|
15704
|
+
"description": " exclusive start_at, Unix milliseconds"
|
|
15664
15705
|
},
|
|
15665
15706
|
"sort": {
|
|
15666
15707
|
"type": "string",
|
|
15667
15708
|
"enum": [
|
|
15668
15709
|
"id",
|
|
15669
|
-
"
|
|
15710
|
+
"start_at"
|
|
15670
15711
|
],
|
|
15671
15712
|
"default": "id"
|
|
15672
15713
|
},
|
|
@@ -16278,7 +16319,8 @@
|
|
|
16278
16319
|
"pnl",
|
|
16279
16320
|
"roi",
|
|
16280
16321
|
"volume",
|
|
16281
|
-
"account_value"
|
|
16322
|
+
"account_value",
|
|
16323
|
+
"streak"
|
|
16282
16324
|
],
|
|
16283
16325
|
"default": "pnl"
|
|
16284
16326
|
},
|
|
@@ -16309,6 +16351,14 @@
|
|
|
16309
16351
|
"guild_id": {
|
|
16310
16352
|
"type": "integer",
|
|
16311
16353
|
"format": "int64"
|
|
16354
|
+
},
|
|
16355
|
+
"l1_addresses": {
|
|
16356
|
+
"type": "string",
|
|
16357
|
+
"description": " comma-separated, max 150"
|
|
16358
|
+
},
|
|
16359
|
+
"integrator_account_index": {
|
|
16360
|
+
"type": "integer",
|
|
16361
|
+
"format": "int64"
|
|
16312
16362
|
}
|
|
16313
16363
|
},
|
|
16314
16364
|
"title": "ReqGetPnlLeaderboard",
|
|
@@ -17497,15 +17547,15 @@
|
|
|
17497
17547
|
"format": "int32",
|
|
17498
17548
|
"description": " 0 for one-off events"
|
|
17499
17549
|
},
|
|
17500
|
-
"
|
|
17550
|
+
"start_at": {
|
|
17501
17551
|
"type": "integer",
|
|
17502
17552
|
"format": "int64",
|
|
17503
17553
|
"description": " Unix milliseconds; observation time, not trading time"
|
|
17504
17554
|
},
|
|
17505
|
-
"
|
|
17555
|
+
"end_at": {
|
|
17506
17556
|
"type": "integer",
|
|
17507
17557
|
"format": "int64",
|
|
17508
|
-
"description": "
|
|
17558
|
+
"description": " Unix milliseconds; must be after start_at"
|
|
17509
17559
|
},
|
|
17510
17560
|
"metadata": {
|
|
17511
17561
|
"type": "string",
|