zklighter-perps 1.0.337 → 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/ReqExportData.ts +1 -1
- 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 +119 -59
- 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'],
|
package/models/ReqExportData.ts
CHANGED
|
@@ -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",
|
|
@@ -2020,21 +2024,18 @@
|
|
|
2020
2024
|
},
|
|
2021
2025
|
{
|
|
2022
2026
|
"name": "start_timestamp",
|
|
2027
|
+
"description": " Milliseconds; omit both timestamps to export all available history.",
|
|
2023
2028
|
"in": "query",
|
|
2024
2029
|
"required": false,
|
|
2025
2030
|
"type": "integer",
|
|
2026
|
-
"format": "int64"
|
|
2027
|
-
"minimum": 1735689600000,
|
|
2028
|
-
"maximum": 1830297600000
|
|
2031
|
+
"format": "int64"
|
|
2029
2032
|
},
|
|
2030
2033
|
{
|
|
2031
2034
|
"name": "end_timestamp",
|
|
2032
2035
|
"in": "query",
|
|
2033
2036
|
"required": false,
|
|
2034
2037
|
"type": "integer",
|
|
2035
|
-
"format": "int64"
|
|
2036
|
-
"minimum": 1735689600000,
|
|
2037
|
-
"maximum": 1830297600000
|
|
2038
|
+
"format": "int64"
|
|
2038
2039
|
},
|
|
2039
2040
|
{
|
|
2040
2041
|
"name": "side",
|
|
@@ -7063,14 +7064,16 @@
|
|
|
7063
7064
|
"name": "market_type",
|
|
7064
7065
|
"in": "query",
|
|
7065
7066
|
"required": false,
|
|
7066
|
-
"type": "
|
|
7067
|
-
"
|
|
7068
|
-
"
|
|
7069
|
-
"
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7067
|
+
"type": "array",
|
|
7068
|
+
"items": {
|
|
7069
|
+
"type": "string",
|
|
7070
|
+
"enum": [
|
|
7071
|
+
"all",
|
|
7072
|
+
"spot",
|
|
7073
|
+
"perp",
|
|
7074
|
+
"bo"
|
|
7075
|
+
]
|
|
7076
|
+
}
|
|
7074
7077
|
},
|
|
7075
7078
|
{
|
|
7076
7079
|
"name": "account_index",
|
|
@@ -11031,6 +11034,16 @@
|
|
|
11031
11034
|
"type": "string",
|
|
11032
11035
|
"example": "93.0"
|
|
11033
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
|
+
},
|
|
11034
11047
|
"outcome": {
|
|
11035
11048
|
"type": "integer",
|
|
11036
11049
|
"format": "int32",
|
|
@@ -11125,6 +11138,8 @@
|
|
|
11125
11138
|
"start_timestamp",
|
|
11126
11139
|
"end_timestamp",
|
|
11127
11140
|
"open_interest",
|
|
11141
|
+
"open_interest_limit",
|
|
11142
|
+
"open_interest_usd",
|
|
11128
11143
|
"outcome",
|
|
11129
11144
|
"operator_account_index",
|
|
11130
11145
|
"settlement_cap",
|
|
@@ -13683,6 +13698,16 @@
|
|
|
13683
13698
|
"type": "string",
|
|
13684
13699
|
"example": "93.0"
|
|
13685
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
|
+
},
|
|
13686
13711
|
"outcome": {
|
|
13687
13712
|
"type": "integer",
|
|
13688
13713
|
"format": "int32",
|
|
@@ -13764,6 +13789,8 @@
|
|
|
13764
13789
|
"start_timestamp",
|
|
13765
13790
|
"end_timestamp",
|
|
13766
13791
|
"open_interest",
|
|
13792
|
+
"open_interest_limit",
|
|
13793
|
+
"open_interest_usd",
|
|
13767
13794
|
"outcome",
|
|
13768
13795
|
"operator_account_index",
|
|
13769
13796
|
"settlement_cap",
|
|
@@ -14365,6 +14392,11 @@
|
|
|
14365
14392
|
"type": "string",
|
|
14366
14393
|
"example": "235.25"
|
|
14367
14394
|
},
|
|
14395
|
+
"open_interest_usd": {
|
|
14396
|
+
"type": "string",
|
|
14397
|
+
"example": "711521.25",
|
|
14398
|
+
"description": " both sides, in USDC at the mark price"
|
|
14399
|
+
},
|
|
14368
14400
|
"funding_clamp_small": {
|
|
14369
14401
|
"type": "string",
|
|
14370
14402
|
"example": "0.005"
|
|
@@ -14435,6 +14467,7 @@
|
|
|
14435
14467
|
"best_bid_price",
|
|
14436
14468
|
"open_interest",
|
|
14437
14469
|
"open_interest_limit",
|
|
14470
|
+
"open_interest_usd",
|
|
14438
14471
|
"funding_clamp_small",
|
|
14439
14472
|
"funding_clamp_big",
|
|
14440
14473
|
"last_trade_price",
|
|
@@ -14568,6 +14601,16 @@
|
|
|
14568
14601
|
"format": "double",
|
|
14569
14602
|
"example": "93.0"
|
|
14570
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
|
+
},
|
|
14571
14614
|
"outcome": {
|
|
14572
14615
|
"type": "integer",
|
|
14573
14616
|
"format": "int32",
|
|
@@ -14763,6 +14806,8 @@
|
|
|
14763
14806
|
"start_timestamp",
|
|
14764
14807
|
"end_timestamp",
|
|
14765
14808
|
"open_interest",
|
|
14809
|
+
"open_interest_limit",
|
|
14810
|
+
"open_interest_usd",
|
|
14766
14811
|
"outcome",
|
|
14767
14812
|
"operator_account_index",
|
|
14768
14813
|
"settlement_cap",
|
|
@@ -16494,14 +16539,11 @@
|
|
|
16494
16539
|
"start_timestamp": {
|
|
16495
16540
|
"type": "integer",
|
|
16496
16541
|
"format": "int64",
|
|
16497
|
-
"
|
|
16498
|
-
"minimum": 1735689600000
|
|
16542
|
+
"description": " Milliseconds; omit both timestamps to export all available history."
|
|
16499
16543
|
},
|
|
16500
16544
|
"end_timestamp": {
|
|
16501
16545
|
"type": "integer",
|
|
16502
|
-
"format": "int64"
|
|
16503
|
-
"maximum": 1830297600000,
|
|
16504
|
-
"minimum": 1735689600000
|
|
16546
|
+
"format": "int64"
|
|
16505
16547
|
},
|
|
16506
16548
|
"side": {
|
|
16507
16549
|
"type": "string",
|
|
@@ -16687,14 +16729,16 @@
|
|
|
16687
16729
|
"default": "255"
|
|
16688
16730
|
},
|
|
16689
16731
|
"market_type": {
|
|
16690
|
-
"type": "
|
|
16691
|
-
"
|
|
16692
|
-
"
|
|
16693
|
-
"
|
|
16694
|
-
|
|
16695
|
-
|
|
16696
|
-
|
|
16697
|
-
|
|
16732
|
+
"type": "array",
|
|
16733
|
+
"items": {
|
|
16734
|
+
"type": "string",
|
|
16735
|
+
"enum": [
|
|
16736
|
+
"all",
|
|
16737
|
+
"spot",
|
|
16738
|
+
"perp",
|
|
16739
|
+
"bo"
|
|
16740
|
+
]
|
|
16741
|
+
}
|
|
16698
16742
|
}
|
|
16699
16743
|
},
|
|
16700
16744
|
"title": "ReqGetAccountActiveOrders",
|
|
@@ -16752,14 +16796,16 @@
|
|
|
16752
16796
|
"default": "255"
|
|
16753
16797
|
},
|
|
16754
16798
|
"market_type": {
|
|
16755
|
-
"type": "
|
|
16756
|
-
"
|
|
16757
|
-
"
|
|
16758
|
-
"
|
|
16759
|
-
|
|
16760
|
-
|
|
16761
|
-
|
|
16762
|
-
|
|
16799
|
+
"type": "array",
|
|
16800
|
+
"items": {
|
|
16801
|
+
"type": "string",
|
|
16802
|
+
"enum": [
|
|
16803
|
+
"all",
|
|
16804
|
+
"spot",
|
|
16805
|
+
"perp",
|
|
16806
|
+
"bo"
|
|
16807
|
+
]
|
|
16808
|
+
}
|
|
16763
16809
|
},
|
|
16764
16810
|
"ask_filter": {
|
|
16765
16811
|
"type": "integer",
|
|
@@ -18431,14 +18477,16 @@
|
|
|
18431
18477
|
"default": "255"
|
|
18432
18478
|
},
|
|
18433
18479
|
"market_type": {
|
|
18434
|
-
"type": "
|
|
18435
|
-
"
|
|
18436
|
-
"
|
|
18437
|
-
"
|
|
18438
|
-
|
|
18439
|
-
|
|
18440
|
-
|
|
18441
|
-
|
|
18480
|
+
"type": "array",
|
|
18481
|
+
"items": {
|
|
18482
|
+
"type": "string",
|
|
18483
|
+
"enum": [
|
|
18484
|
+
"all",
|
|
18485
|
+
"spot",
|
|
18486
|
+
"perp",
|
|
18487
|
+
"bo"
|
|
18488
|
+
]
|
|
18489
|
+
}
|
|
18442
18490
|
},
|
|
18443
18491
|
"account_index": {
|
|
18444
18492
|
"type": "integer",
|
|
@@ -22141,6 +22189,16 @@
|
|
|
22141
22189
|
"type": "string",
|
|
22142
22190
|
"example": "93.0"
|
|
22143
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
|
+
},
|
|
22144
22202
|
"outcome": {
|
|
22145
22203
|
"type": "integer",
|
|
22146
22204
|
"format": "int32",
|
|
@@ -22275,6 +22333,8 @@
|
|
|
22275
22333
|
"start_timestamp",
|
|
22276
22334
|
"end_timestamp",
|
|
22277
22335
|
"open_interest",
|
|
22336
|
+
"open_interest_limit",
|
|
22337
|
+
"open_interest_usd",
|
|
22278
22338
|
"outcome",
|
|
22279
22339
|
"operator_account_index",
|
|
22280
22340
|
"settlement_cap",
|
package/package.json
CHANGED