zklighter-perps 1.0.338 → 1.0.339
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/.github/workflows/pkg-guard.yml +6 -0
- package/apis/OrderApi.ts +6 -6
- package/models/EventOrderBookEntry.ts +18 -0
- package/models/OrderBook.ts +18 -0
- package/models/PerpsMarketStats.ts +9 -0
- package/models/PerpsOrderBookDetail.ts +18 -0
- package/models/ReqGetAccountActiveOrders.ts +2 -2
- package/models/ReqGetAccountInactiveOrders.ts +2 -2
- package/models/ReqGetTrades.ts +2 -2
- package/models/SpotOrderBookDetail.ts +18 -0
- package/openapi.json +114 -48
- package/package.json +1 -1
- package/pkg-guard.config.json +8 -0
package/apis/OrderApi.ts
CHANGED
|
@@ -77,7 +77,7 @@ export interface AccountActiveOrdersRequest {
|
|
|
77
77
|
authorization?: string;
|
|
78
78
|
auth?: string;
|
|
79
79
|
market_id?: number;
|
|
80
|
-
market_type?: AccountActiveOrdersMarketTypeEnum
|
|
80
|
+
market_type?: Array<AccountActiveOrdersMarketTypeEnum>;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
export interface AccountInactiveOrdersRequest {
|
|
@@ -86,7 +86,7 @@ export interface AccountInactiveOrdersRequest {
|
|
|
86
86
|
authorization?: string;
|
|
87
87
|
auth?: string;
|
|
88
88
|
market_id?: number;
|
|
89
|
-
market_type?: AccountInactiveOrdersMarketTypeEnum
|
|
89
|
+
market_type?: Array<AccountInactiveOrdersMarketTypeEnum>;
|
|
90
90
|
ask_filter?: number;
|
|
91
91
|
between_timestamps?: string;
|
|
92
92
|
cursor?: string;
|
|
@@ -150,7 +150,7 @@ export interface TradesRequest {
|
|
|
150
150
|
sort_by: TradesSortByEnum;
|
|
151
151
|
limit: number;
|
|
152
152
|
market_id?: number;
|
|
153
|
-
market_type?: TradesMarketTypeEnum
|
|
153
|
+
market_type?: Array<TradesMarketTypeEnum>;
|
|
154
154
|
account_index?: number;
|
|
155
155
|
integrator_account_index?: number;
|
|
156
156
|
order_index?: number;
|
|
@@ -281,7 +281,7 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
if (requestParameters['market_type'] != null) {
|
|
284
|
-
queryParameters['market_type'] = requestParameters['market_type'];
|
|
284
|
+
queryParameters['market_type'] = requestParameters['market_type']!.join(runtime.COLLECTION_FORMATS["csv"]);
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -343,7 +343,7 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
if (requestParameters['market_type'] != null) {
|
|
346
|
-
queryParameters['market_type'] = requestParameters['market_type'];
|
|
346
|
+
queryParameters['market_type'] = requestParameters['market_type']!.join(runtime.COLLECTION_FORMATS["csv"]);
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
if (requestParameters['ask_filter'] != null) {
|
|
@@ -897,7 +897,7 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
897
897
|
}
|
|
898
898
|
|
|
899
899
|
if (requestParameters['market_type'] != null) {
|
|
900
|
-
queryParameters['market_type'] = requestParameters['market_type'];
|
|
900
|
+
queryParameters['market_type'] = requestParameters['market_type']!.join(runtime.COLLECTION_FORMATS["csv"]);
|
|
901
901
|
}
|
|
902
902
|
|
|
903
903
|
if (requestParameters['account_index'] != null) {
|
|
@@ -164,6 +164,18 @@ export interface EventOrderBookEntry {
|
|
|
164
164
|
* @memberof EventOrderBookEntry
|
|
165
165
|
*/
|
|
166
166
|
open_interest: string;
|
|
167
|
+
/**
|
|
168
|
+
* perps only: both sides, in base tokens
|
|
169
|
+
* @type {string}
|
|
170
|
+
* @memberof EventOrderBookEntry
|
|
171
|
+
*/
|
|
172
|
+
open_interest_limit: string;
|
|
173
|
+
/**
|
|
174
|
+
* perps only: both sides, in USDC at the mark price
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof EventOrderBookEntry
|
|
177
|
+
*/
|
|
178
|
+
open_interest_usd: string;
|
|
167
179
|
/**
|
|
168
180
|
*
|
|
169
181
|
* @type {number}
|
|
@@ -302,6 +314,8 @@ export function instanceOfEventOrderBookEntry(value: object): value is EventOrde
|
|
|
302
314
|
if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
|
|
303
315
|
if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
|
|
304
316
|
if (!('open_interest' in value) || value['open_interest'] === undefined) return false;
|
|
317
|
+
if (!('open_interest_limit' in value) || value['open_interest_limit'] === undefined) return false;
|
|
318
|
+
if (!('open_interest_usd' in value) || value['open_interest_usd'] === undefined) return false;
|
|
305
319
|
if (!('outcome' in value) || value['outcome'] === undefined) return false;
|
|
306
320
|
if (!('operator_account_index' in value) || value['operator_account_index'] === undefined) return false;
|
|
307
321
|
if (!('settlement_cap' in value) || value['settlement_cap'] === undefined) return false;
|
|
@@ -349,6 +363,8 @@ export function EventOrderBookEntryFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
349
363
|
'start_timestamp': json['start_timestamp'],
|
|
350
364
|
'end_timestamp': json['end_timestamp'],
|
|
351
365
|
'open_interest': json['open_interest'],
|
|
366
|
+
'open_interest_limit': json['open_interest_limit'],
|
|
367
|
+
'open_interest_usd': json['open_interest_usd'],
|
|
352
368
|
'outcome': json['outcome'],
|
|
353
369
|
'operator_account_index': json['operator_account_index'],
|
|
354
370
|
'settlement_cap': json['settlement_cap'],
|
|
@@ -392,6 +408,8 @@ export function EventOrderBookEntryToJSON(value?: EventOrderBookEntry | null): a
|
|
|
392
408
|
'start_timestamp': value['start_timestamp'],
|
|
393
409
|
'end_timestamp': value['end_timestamp'],
|
|
394
410
|
'open_interest': value['open_interest'],
|
|
411
|
+
'open_interest_limit': value['open_interest_limit'],
|
|
412
|
+
'open_interest_usd': value['open_interest_usd'],
|
|
395
413
|
'outcome': value['outcome'],
|
|
396
414
|
'operator_account_index': value['operator_account_index'],
|
|
397
415
|
'settlement_cap': value['settlement_cap'],
|
package/models/OrderBook.ts
CHANGED
|
@@ -157,6 +157,18 @@ export interface OrderBook {
|
|
|
157
157
|
* @memberof OrderBook
|
|
158
158
|
*/
|
|
159
159
|
open_interest: string;
|
|
160
|
+
/**
|
|
161
|
+
* perps only: both sides, in base tokens
|
|
162
|
+
* @type {string}
|
|
163
|
+
* @memberof OrderBook
|
|
164
|
+
*/
|
|
165
|
+
open_interest_limit: string;
|
|
166
|
+
/**
|
|
167
|
+
* perps only: both sides, in USDC at the mark price
|
|
168
|
+
* @type {string}
|
|
169
|
+
* @memberof OrderBook
|
|
170
|
+
*/
|
|
171
|
+
open_interest_usd: string;
|
|
160
172
|
/**
|
|
161
173
|
*
|
|
162
174
|
* @type {number}
|
|
@@ -277,6 +289,8 @@ export function instanceOfOrderBook(value: object): value is OrderBook {
|
|
|
277
289
|
if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
|
|
278
290
|
if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
|
|
279
291
|
if (!('open_interest' in value) || value['open_interest'] === undefined) return false;
|
|
292
|
+
if (!('open_interest_limit' in value) || value['open_interest_limit'] === undefined) return false;
|
|
293
|
+
if (!('open_interest_usd' in value) || value['open_interest_usd'] === undefined) return false;
|
|
280
294
|
if (!('outcome' in value) || value['outcome'] === undefined) return false;
|
|
281
295
|
if (!('operator_account_index' in value) || value['operator_account_index'] === undefined) return false;
|
|
282
296
|
if (!('settlement_cap' in value) || value['settlement_cap'] === undefined) return false;
|
|
@@ -321,6 +335,8 @@ export function OrderBookFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
321
335
|
'start_timestamp': json['start_timestamp'],
|
|
322
336
|
'end_timestamp': json['end_timestamp'],
|
|
323
337
|
'open_interest': json['open_interest'],
|
|
338
|
+
'open_interest_limit': json['open_interest_limit'],
|
|
339
|
+
'open_interest_usd': json['open_interest_usd'],
|
|
324
340
|
'outcome': json['outcome'],
|
|
325
341
|
'operator_account_index': json['operator_account_index'],
|
|
326
342
|
'settlement_cap': json['settlement_cap'],
|
|
@@ -361,6 +377,8 @@ export function OrderBookToJSON(value?: OrderBook | null): any {
|
|
|
361
377
|
'start_timestamp': value['start_timestamp'],
|
|
362
378
|
'end_timestamp': value['end_timestamp'],
|
|
363
379
|
'open_interest': value['open_interest'],
|
|
380
|
+
'open_interest_limit': value['open_interest_limit'],
|
|
381
|
+
'open_interest_usd': value['open_interest_usd'],
|
|
364
382
|
'outcome': value['outcome'],
|
|
365
383
|
'operator_account_index': value['operator_account_index'],
|
|
366
384
|
'settlement_cap': value['settlement_cap'],
|
|
@@ -73,6 +73,12 @@ export interface PerpsMarketStats {
|
|
|
73
73
|
* @memberof PerpsMarketStats
|
|
74
74
|
*/
|
|
75
75
|
open_interest_limit: string;
|
|
76
|
+
/**
|
|
77
|
+
* both sides, in USDC at the mark price
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof PerpsMarketStats
|
|
80
|
+
*/
|
|
81
|
+
open_interest_usd: string;
|
|
76
82
|
/**
|
|
77
83
|
*
|
|
78
84
|
* @type {string}
|
|
@@ -166,6 +172,7 @@ export function instanceOfPerpsMarketStats(value: object): value is PerpsMarketS
|
|
|
166
172
|
if (!('best_bid_price' in value) || value['best_bid_price'] === undefined) return false;
|
|
167
173
|
if (!('open_interest' in value) || value['open_interest'] === undefined) return false;
|
|
168
174
|
if (!('open_interest_limit' in value) || value['open_interest_limit'] === undefined) return false;
|
|
175
|
+
if (!('open_interest_usd' in value) || value['open_interest_usd'] === undefined) return false;
|
|
169
176
|
if (!('funding_clamp_small' in value) || value['funding_clamp_small'] === undefined) return false;
|
|
170
177
|
if (!('funding_clamp_big' in value) || value['funding_clamp_big'] === undefined) return false;
|
|
171
178
|
if (!('last_trade_price' in value) || value['last_trade_price'] === undefined) return false;
|
|
@@ -201,6 +208,7 @@ export function PerpsMarketStatsFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
201
208
|
'best_bid_price': json['best_bid_price'],
|
|
202
209
|
'open_interest': json['open_interest'],
|
|
203
210
|
'open_interest_limit': json['open_interest_limit'],
|
|
211
|
+
'open_interest_usd': json['open_interest_usd'],
|
|
204
212
|
'funding_clamp_small': json['funding_clamp_small'],
|
|
205
213
|
'funding_clamp_big': json['funding_clamp_big'],
|
|
206
214
|
'last_trade_price': json['last_trade_price'],
|
|
@@ -232,6 +240,7 @@ export function PerpsMarketStatsToJSON(value?: PerpsMarketStats | null): any {
|
|
|
232
240
|
'best_bid_price': value['best_bid_price'],
|
|
233
241
|
'open_interest': value['open_interest'],
|
|
234
242
|
'open_interest_limit': value['open_interest_limit'],
|
|
243
|
+
'open_interest_usd': value['open_interest_usd'],
|
|
235
244
|
'funding_clamp_small': value['funding_clamp_small'],
|
|
236
245
|
'funding_clamp_big': value['funding_clamp_big'],
|
|
237
246
|
'last_trade_price': value['last_trade_price'],
|
|
@@ -164,6 +164,18 @@ export interface PerpsOrderBookDetail {
|
|
|
164
164
|
* @memberof PerpsOrderBookDetail
|
|
165
165
|
*/
|
|
166
166
|
open_interest: number;
|
|
167
|
+
/**
|
|
168
|
+
* both sides, in base tokens
|
|
169
|
+
* @type {string}
|
|
170
|
+
* @memberof PerpsOrderBookDetail
|
|
171
|
+
*/
|
|
172
|
+
open_interest_limit: string;
|
|
173
|
+
/**
|
|
174
|
+
* both sides, in USDC at the mark price
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof PerpsOrderBookDetail
|
|
177
|
+
*/
|
|
178
|
+
open_interest_usd: string;
|
|
167
179
|
/**
|
|
168
180
|
*
|
|
169
181
|
* @type {number}
|
|
@@ -428,6 +440,8 @@ export function instanceOfPerpsOrderBookDetail(value: object): value is PerpsOrd
|
|
|
428
440
|
if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
|
|
429
441
|
if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
|
|
430
442
|
if (!('open_interest' in value) || value['open_interest'] === undefined) return false;
|
|
443
|
+
if (!('open_interest_limit' in value) || value['open_interest_limit'] === undefined) return false;
|
|
444
|
+
if (!('open_interest_usd' in value) || value['open_interest_usd'] === undefined) return false;
|
|
431
445
|
if (!('outcome' in value) || value['outcome'] === undefined) return false;
|
|
432
446
|
if (!('operator_account_index' in value) || value['operator_account_index'] === undefined) return false;
|
|
433
447
|
if (!('settlement_cap' in value) || value['settlement_cap'] === undefined) return false;
|
|
@@ -496,6 +510,8 @@ export function PerpsOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
496
510
|
'start_timestamp': json['start_timestamp'],
|
|
497
511
|
'end_timestamp': json['end_timestamp'],
|
|
498
512
|
'open_interest': json['open_interest'],
|
|
513
|
+
'open_interest_limit': json['open_interest_limit'],
|
|
514
|
+
'open_interest_usd': json['open_interest_usd'],
|
|
499
515
|
'outcome': json['outcome'],
|
|
500
516
|
'operator_account_index': json['operator_account_index'],
|
|
501
517
|
'settlement_cap': json['settlement_cap'],
|
|
@@ -560,6 +576,8 @@ export function PerpsOrderBookDetailToJSON(value?: PerpsOrderBookDetail | null):
|
|
|
560
576
|
'start_timestamp': value['start_timestamp'],
|
|
561
577
|
'end_timestamp': value['end_timestamp'],
|
|
562
578
|
'open_interest': value['open_interest'],
|
|
579
|
+
'open_interest_limit': value['open_interest_limit'],
|
|
580
|
+
'open_interest_usd': value['open_interest_usd'],
|
|
563
581
|
'outcome': value['outcome'],
|
|
564
582
|
'operator_account_index': value['operator_account_index'],
|
|
565
583
|
'settlement_cap': value['settlement_cap'],
|
|
@@ -39,10 +39,10 @@ export interface ReqGetAccountActiveOrders {
|
|
|
39
39
|
market_id?: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {string}
|
|
42
|
+
* @type {Array<string>}
|
|
43
43
|
* @memberof ReqGetAccountActiveOrders
|
|
44
44
|
*/
|
|
45
|
-
market_type?: ReqGetAccountActiveOrdersMarketTypeEnum
|
|
45
|
+
market_type?: Array<ReqGetAccountActiveOrdersMarketTypeEnum>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
|
|
@@ -39,10 +39,10 @@ export interface ReqGetAccountInactiveOrders {
|
|
|
39
39
|
market_id?: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {string}
|
|
42
|
+
* @type {Array<string>}
|
|
43
43
|
* @memberof ReqGetAccountInactiveOrders
|
|
44
44
|
*/
|
|
45
|
-
market_type?: ReqGetAccountInactiveOrdersMarketTypeEnum
|
|
45
|
+
market_type?: Array<ReqGetAccountInactiveOrdersMarketTypeEnum>;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
package/models/ReqGetTrades.ts
CHANGED
|
@@ -27,10 +27,10 @@ export interface ReqGetTrades {
|
|
|
27
27
|
market_id?: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {string}
|
|
30
|
+
* @type {Array<string>}
|
|
31
31
|
* @memberof ReqGetTrades
|
|
32
32
|
*/
|
|
33
|
-
market_type?: ReqGetTradesMarketTypeEnum
|
|
33
|
+
market_type?: Array<ReqGetTradesMarketTypeEnum>;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
@@ -157,6 +157,18 @@ export interface SpotOrderBookDetail {
|
|
|
157
157
|
* @memberof SpotOrderBookDetail
|
|
158
158
|
*/
|
|
159
159
|
open_interest: string;
|
|
160
|
+
/**
|
|
161
|
+
* perps only: both sides, in base tokens
|
|
162
|
+
* @type {string}
|
|
163
|
+
* @memberof SpotOrderBookDetail
|
|
164
|
+
*/
|
|
165
|
+
open_interest_limit: string;
|
|
166
|
+
/**
|
|
167
|
+
* perps only: both sides, in USDC at the mark price
|
|
168
|
+
* @type {string}
|
|
169
|
+
* @memberof SpotOrderBookDetail
|
|
170
|
+
*/
|
|
171
|
+
open_interest_usd: string;
|
|
160
172
|
/**
|
|
161
173
|
*
|
|
162
174
|
* @type {number}
|
|
@@ -337,6 +349,8 @@ export function instanceOfSpotOrderBookDetail(value: object): value is SpotOrder
|
|
|
337
349
|
if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
|
|
338
350
|
if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
|
|
339
351
|
if (!('open_interest' in value) || value['open_interest'] === undefined) return false;
|
|
352
|
+
if (!('open_interest_limit' in value) || value['open_interest_limit'] === undefined) return false;
|
|
353
|
+
if (!('open_interest_usd' in value) || value['open_interest_usd'] === undefined) return false;
|
|
340
354
|
if (!('outcome' in value) || value['outcome'] === undefined) return false;
|
|
341
355
|
if (!('operator_account_index' in value) || value['operator_account_index'] === undefined) return false;
|
|
342
356
|
if (!('settlement_cap' in value) || value['settlement_cap'] === undefined) return false;
|
|
@@ -391,6 +405,8 @@ export function SpotOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
391
405
|
'start_timestamp': json['start_timestamp'],
|
|
392
406
|
'end_timestamp': json['end_timestamp'],
|
|
393
407
|
'open_interest': json['open_interest'],
|
|
408
|
+
'open_interest_limit': json['open_interest_limit'],
|
|
409
|
+
'open_interest_usd': json['open_interest_usd'],
|
|
394
410
|
'outcome': json['outcome'],
|
|
395
411
|
'operator_account_index': json['operator_account_index'],
|
|
396
412
|
'settlement_cap': json['settlement_cap'],
|
|
@@ -441,6 +457,8 @@ export function SpotOrderBookDetailToJSON(value?: SpotOrderBookDetail | null): a
|
|
|
441
457
|
'start_timestamp': value['start_timestamp'],
|
|
442
458
|
'end_timestamp': value['end_timestamp'],
|
|
443
459
|
'open_interest': value['open_interest'],
|
|
460
|
+
'open_interest_limit': value['open_interest_limit'],
|
|
461
|
+
'open_interest_usd': value['open_interest_usd'],
|
|
444
462
|
'outcome': value['outcome'],
|
|
445
463
|
'operator_account_index': value['operator_account_index'],
|
|
446
464
|
'settlement_cap': value['settlement_cap'],
|
package/openapi.json
CHANGED
|
@@ -150,14 +150,16 @@
|
|
|
150
150
|
"name": "market_type",
|
|
151
151
|
"in": "query",
|
|
152
152
|
"required": false,
|
|
153
|
-
"type": "
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
153
|
+
"type": "array",
|
|
154
|
+
"items": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"enum": [
|
|
157
|
+
"all",
|
|
158
|
+
"spot",
|
|
159
|
+
"perp",
|
|
160
|
+
"bo"
|
|
161
|
+
]
|
|
162
|
+
}
|
|
161
163
|
}
|
|
162
164
|
],
|
|
163
165
|
"tags": [
|
|
@@ -221,14 +223,16 @@
|
|
|
221
223
|
"name": "market_type",
|
|
222
224
|
"in": "query",
|
|
223
225
|
"required": false,
|
|
224
|
-
"type": "
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
"
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
226
|
+
"type": "array",
|
|
227
|
+
"items": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"enum": [
|
|
230
|
+
"all",
|
|
231
|
+
"spot",
|
|
232
|
+
"perp",
|
|
233
|
+
"bo"
|
|
234
|
+
]
|
|
235
|
+
}
|
|
232
236
|
},
|
|
233
237
|
{
|
|
234
238
|
"name": "ask_filter",
|
|
@@ -7060,14 +7064,16 @@
|
|
|
7060
7064
|
"name": "market_type",
|
|
7061
7065
|
"in": "query",
|
|
7062
7066
|
"required": false,
|
|
7063
|
-
"type": "
|
|
7064
|
-
"
|
|
7065
|
-
"
|
|
7066
|
-
"
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7067
|
+
"type": "array",
|
|
7068
|
+
"items": {
|
|
7069
|
+
"type": "string",
|
|
7070
|
+
"enum": [
|
|
7071
|
+
"all",
|
|
7072
|
+
"spot",
|
|
7073
|
+
"perp",
|
|
7074
|
+
"bo"
|
|
7075
|
+
]
|
|
7076
|
+
}
|
|
7071
7077
|
},
|
|
7072
7078
|
{
|
|
7073
7079
|
"name": "account_index",
|
|
@@ -11028,6 +11034,16 @@
|
|
|
11028
11034
|
"type": "string",
|
|
11029
11035
|
"example": "93.0"
|
|
11030
11036
|
},
|
|
11037
|
+
"open_interest_limit": {
|
|
11038
|
+
"type": "string",
|
|
11039
|
+
"example": "250.2500",
|
|
11040
|
+
"description": " perps only: both sides, in base tokens"
|
|
11041
|
+
},
|
|
11042
|
+
"open_interest_usd": {
|
|
11043
|
+
"type": "string",
|
|
11044
|
+
"example": "281293.25",
|
|
11045
|
+
"description": " perps only: both sides, in USDC at the mark price"
|
|
11046
|
+
},
|
|
11031
11047
|
"outcome": {
|
|
11032
11048
|
"type": "integer",
|
|
11033
11049
|
"format": "int32",
|
|
@@ -11122,6 +11138,8 @@
|
|
|
11122
11138
|
"start_timestamp",
|
|
11123
11139
|
"end_timestamp",
|
|
11124
11140
|
"open_interest",
|
|
11141
|
+
"open_interest_limit",
|
|
11142
|
+
"open_interest_usd",
|
|
11125
11143
|
"outcome",
|
|
11126
11144
|
"operator_account_index",
|
|
11127
11145
|
"settlement_cap",
|
|
@@ -13680,6 +13698,16 @@
|
|
|
13680
13698
|
"type": "string",
|
|
13681
13699
|
"example": "93.0"
|
|
13682
13700
|
},
|
|
13701
|
+
"open_interest_limit": {
|
|
13702
|
+
"type": "string",
|
|
13703
|
+
"example": "250.2500",
|
|
13704
|
+
"description": " perps only: both sides, in base tokens"
|
|
13705
|
+
},
|
|
13706
|
+
"open_interest_usd": {
|
|
13707
|
+
"type": "string",
|
|
13708
|
+
"example": "281293.25",
|
|
13709
|
+
"description": " perps only: both sides, in USDC at the mark price"
|
|
13710
|
+
},
|
|
13683
13711
|
"outcome": {
|
|
13684
13712
|
"type": "integer",
|
|
13685
13713
|
"format": "int32",
|
|
@@ -13761,6 +13789,8 @@
|
|
|
13761
13789
|
"start_timestamp",
|
|
13762
13790
|
"end_timestamp",
|
|
13763
13791
|
"open_interest",
|
|
13792
|
+
"open_interest_limit",
|
|
13793
|
+
"open_interest_usd",
|
|
13764
13794
|
"outcome",
|
|
13765
13795
|
"operator_account_index",
|
|
13766
13796
|
"settlement_cap",
|
|
@@ -14362,6 +14392,11 @@
|
|
|
14362
14392
|
"type": "string",
|
|
14363
14393
|
"example": "235.25"
|
|
14364
14394
|
},
|
|
14395
|
+
"open_interest_usd": {
|
|
14396
|
+
"type": "string",
|
|
14397
|
+
"example": "711521.25",
|
|
14398
|
+
"description": " both sides, in USDC at the mark price"
|
|
14399
|
+
},
|
|
14365
14400
|
"funding_clamp_small": {
|
|
14366
14401
|
"type": "string",
|
|
14367
14402
|
"example": "0.005"
|
|
@@ -14432,6 +14467,7 @@
|
|
|
14432
14467
|
"best_bid_price",
|
|
14433
14468
|
"open_interest",
|
|
14434
14469
|
"open_interest_limit",
|
|
14470
|
+
"open_interest_usd",
|
|
14435
14471
|
"funding_clamp_small",
|
|
14436
14472
|
"funding_clamp_big",
|
|
14437
14473
|
"last_trade_price",
|
|
@@ -14565,6 +14601,16 @@
|
|
|
14565
14601
|
"format": "double",
|
|
14566
14602
|
"example": "93.0"
|
|
14567
14603
|
},
|
|
14604
|
+
"open_interest_limit": {
|
|
14605
|
+
"type": "string",
|
|
14606
|
+
"example": "250.2500",
|
|
14607
|
+
"description": " both sides, in base tokens"
|
|
14608
|
+
},
|
|
14609
|
+
"open_interest_usd": {
|
|
14610
|
+
"type": "string",
|
|
14611
|
+
"example": "281293.25",
|
|
14612
|
+
"description": " both sides, in USDC at the mark price"
|
|
14613
|
+
},
|
|
14568
14614
|
"outcome": {
|
|
14569
14615
|
"type": "integer",
|
|
14570
14616
|
"format": "int32",
|
|
@@ -14760,6 +14806,8 @@
|
|
|
14760
14806
|
"start_timestamp",
|
|
14761
14807
|
"end_timestamp",
|
|
14762
14808
|
"open_interest",
|
|
14809
|
+
"open_interest_limit",
|
|
14810
|
+
"open_interest_usd",
|
|
14763
14811
|
"outcome",
|
|
14764
14812
|
"operator_account_index",
|
|
14765
14813
|
"settlement_cap",
|
|
@@ -16681,14 +16729,16 @@
|
|
|
16681
16729
|
"default": "255"
|
|
16682
16730
|
},
|
|
16683
16731
|
"market_type": {
|
|
16684
|
-
"type": "
|
|
16685
|
-
"
|
|
16686
|
-
"
|
|
16687
|
-
"
|
|
16688
|
-
|
|
16689
|
-
|
|
16690
|
-
|
|
16691
|
-
|
|
16732
|
+
"type": "array",
|
|
16733
|
+
"items": {
|
|
16734
|
+
"type": "string",
|
|
16735
|
+
"enum": [
|
|
16736
|
+
"all",
|
|
16737
|
+
"spot",
|
|
16738
|
+
"perp",
|
|
16739
|
+
"bo"
|
|
16740
|
+
]
|
|
16741
|
+
}
|
|
16692
16742
|
}
|
|
16693
16743
|
},
|
|
16694
16744
|
"title": "ReqGetAccountActiveOrders",
|
|
@@ -16746,14 +16796,16 @@
|
|
|
16746
16796
|
"default": "255"
|
|
16747
16797
|
},
|
|
16748
16798
|
"market_type": {
|
|
16749
|
-
"type": "
|
|
16750
|
-
"
|
|
16751
|
-
"
|
|
16752
|
-
"
|
|
16753
|
-
|
|
16754
|
-
|
|
16755
|
-
|
|
16756
|
-
|
|
16799
|
+
"type": "array",
|
|
16800
|
+
"items": {
|
|
16801
|
+
"type": "string",
|
|
16802
|
+
"enum": [
|
|
16803
|
+
"all",
|
|
16804
|
+
"spot",
|
|
16805
|
+
"perp",
|
|
16806
|
+
"bo"
|
|
16807
|
+
]
|
|
16808
|
+
}
|
|
16757
16809
|
},
|
|
16758
16810
|
"ask_filter": {
|
|
16759
16811
|
"type": "integer",
|
|
@@ -18425,14 +18477,16 @@
|
|
|
18425
18477
|
"default": "255"
|
|
18426
18478
|
},
|
|
18427
18479
|
"market_type": {
|
|
18428
|
-
"type": "
|
|
18429
|
-
"
|
|
18430
|
-
"
|
|
18431
|
-
"
|
|
18432
|
-
|
|
18433
|
-
|
|
18434
|
-
|
|
18435
|
-
|
|
18480
|
+
"type": "array",
|
|
18481
|
+
"items": {
|
|
18482
|
+
"type": "string",
|
|
18483
|
+
"enum": [
|
|
18484
|
+
"all",
|
|
18485
|
+
"spot",
|
|
18486
|
+
"perp",
|
|
18487
|
+
"bo"
|
|
18488
|
+
]
|
|
18489
|
+
}
|
|
18436
18490
|
},
|
|
18437
18491
|
"account_index": {
|
|
18438
18492
|
"type": "integer",
|
|
@@ -22135,6 +22189,16 @@
|
|
|
22135
22189
|
"type": "string",
|
|
22136
22190
|
"example": "93.0"
|
|
22137
22191
|
},
|
|
22192
|
+
"open_interest_limit": {
|
|
22193
|
+
"type": "string",
|
|
22194
|
+
"example": "250.2500",
|
|
22195
|
+
"description": " perps only: both sides, in base tokens"
|
|
22196
|
+
},
|
|
22197
|
+
"open_interest_usd": {
|
|
22198
|
+
"type": "string",
|
|
22199
|
+
"example": "281293.25",
|
|
22200
|
+
"description": " perps only: both sides, in USDC at the mark price"
|
|
22201
|
+
},
|
|
22138
22202
|
"outcome": {
|
|
22139
22203
|
"type": "integer",
|
|
22140
22204
|
"format": "int32",
|
|
@@ -22269,6 +22333,8 @@
|
|
|
22269
22333
|
"start_timestamp",
|
|
22270
22334
|
"end_timestamp",
|
|
22271
22335
|
"open_interest",
|
|
22336
|
+
"open_interest_limit",
|
|
22337
|
+
"open_interest_usd",
|
|
22272
22338
|
"outcome",
|
|
22273
22339
|
"operator_account_index",
|
|
22274
22340
|
"settlement_cap",
|
package/package.json
CHANGED