zklighter-perps 1.0.323 → 1.0.325
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/models/BinaryOptionMarketStats.ts +1 -2
- package/models/Order.ts +9 -0
- package/models/Trade.ts +9 -0
- package/openapi.json +11 -2
- package/package.json +1 -1
|
@@ -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
|
|
package/models/Order.ts
CHANGED
|
@@ -49,6 +49,12 @@ export interface Order {
|
|
|
49
49
|
* @memberof Order
|
|
50
50
|
*/
|
|
51
51
|
market_index: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Order
|
|
56
|
+
*/
|
|
57
|
+
market_symbol: string;
|
|
52
58
|
/**
|
|
53
59
|
*
|
|
54
60
|
* @type {string}
|
|
@@ -345,6 +351,7 @@ export function instanceOfOrder(value: object): value is Order {
|
|
|
345
351
|
if (!('order_id' in value) || value['order_id'] === undefined) return false;
|
|
346
352
|
if (!('client_order_id' in value) || value['client_order_id'] === undefined) return false;
|
|
347
353
|
if (!('market_index' in value) || value['market_index'] === undefined) return false;
|
|
354
|
+
if (!('market_symbol' in value) || value['market_symbol'] === undefined) return false;
|
|
348
355
|
if (!('market_kind' in value) || value['market_kind'] === undefined) return false;
|
|
349
356
|
if (!('owner_account_index' in value) || value['owner_account_index'] === undefined) return false;
|
|
350
357
|
if (!('initial_base_amount' in value) || value['initial_base_amount'] === undefined) return false;
|
|
@@ -398,6 +405,7 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|
|
398
405
|
'order_id': json['order_id'],
|
|
399
406
|
'client_order_id': json['client_order_id'],
|
|
400
407
|
'market_index': json['market_index'],
|
|
408
|
+
'market_symbol': json['market_symbol'],
|
|
401
409
|
'market_kind': json['market_kind'],
|
|
402
410
|
'owner_account_index': json['owner_account_index'],
|
|
403
411
|
'initial_base_amount': json['initial_base_amount'],
|
|
@@ -447,6 +455,7 @@ export function OrderToJSON(value?: Order | null): any {
|
|
|
447
455
|
'order_id': value['order_id'],
|
|
448
456
|
'client_order_id': value['client_order_id'],
|
|
449
457
|
'market_index': value['market_index'],
|
|
458
|
+
'market_symbol': value['market_symbol'],
|
|
450
459
|
'market_kind': value['market_kind'],
|
|
451
460
|
'owner_account_index': value['owner_account_index'],
|
|
452
461
|
'initial_base_amount': value['initial_base_amount'],
|
package/models/Trade.ts
CHANGED
|
@@ -49,6 +49,12 @@ export interface Trade {
|
|
|
49
49
|
* @memberof Trade
|
|
50
50
|
*/
|
|
51
51
|
market_id: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Trade
|
|
56
|
+
*/
|
|
57
|
+
market_symbol: string;
|
|
52
58
|
/**
|
|
53
59
|
*
|
|
54
60
|
* @type {string}
|
|
@@ -323,6 +329,7 @@ export function instanceOfTrade(value: object): value is Trade {
|
|
|
323
329
|
if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
|
|
324
330
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
325
331
|
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
332
|
+
if (!('market_symbol' in value) || value['market_symbol'] === undefined) return false;
|
|
326
333
|
if (!('market_kind' in value) || value['market_kind'] === undefined) return false;
|
|
327
334
|
if (!('size' in value) || value['size'] === undefined) return false;
|
|
328
335
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
@@ -377,6 +384,7 @@ export function TradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tra
|
|
|
377
384
|
'tx_hash': json['tx_hash'],
|
|
378
385
|
'type': json['type'],
|
|
379
386
|
'market_id': json['market_id'],
|
|
387
|
+
'market_symbol': json['market_symbol'],
|
|
380
388
|
'market_kind': json['market_kind'],
|
|
381
389
|
'size': json['size'],
|
|
382
390
|
'price': json['price'],
|
|
@@ -431,6 +439,7 @@ export function TradeToJSON(value?: Trade | null): any {
|
|
|
431
439
|
'tx_hash': value['tx_hash'],
|
|
432
440
|
'type': value['type'],
|
|
433
441
|
'market_id': value['market_id'],
|
|
442
|
+
'market_symbol': value['market_symbol'],
|
|
434
443
|
'market_kind': value['market_kind'],
|
|
435
444
|
'size': value['size'],
|
|
436
445
|
'price': value['price'],
|
package/openapi.json
CHANGED
|
@@ -8689,8 +8689,7 @@
|
|
|
8689
8689
|
"enum": [
|
|
8690
8690
|
"inactive",
|
|
8691
8691
|
"active",
|
|
8692
|
-
"in-settlement"
|
|
8693
|
-
"settled"
|
|
8692
|
+
"in-settlement"
|
|
8694
8693
|
],
|
|
8695
8694
|
"description": " inactive once the trading window closes"
|
|
8696
8695
|
},
|
|
@@ -11952,6 +11951,10 @@
|
|
|
11952
11951
|
"format": "int64",
|
|
11953
11952
|
"example": "1"
|
|
11954
11953
|
},
|
|
11954
|
+
"market_symbol": {
|
|
11955
|
+
"type": "string",
|
|
11956
|
+
"example": "ETH"
|
|
11957
|
+
},
|
|
11955
11958
|
"market_kind": {
|
|
11956
11959
|
"type": "string",
|
|
11957
11960
|
"enum": [
|
|
@@ -12162,6 +12165,7 @@
|
|
|
12162
12165
|
"order_id",
|
|
12163
12166
|
"client_order_id",
|
|
12164
12167
|
"market_index",
|
|
12168
|
+
"market_symbol",
|
|
12165
12169
|
"market_kind",
|
|
12166
12170
|
"owner_account_index",
|
|
12167
12171
|
"initial_base_amount",
|
|
@@ -20691,6 +20695,10 @@
|
|
|
20691
20695
|
"format": "int64",
|
|
20692
20696
|
"example": "1"
|
|
20693
20697
|
},
|
|
20698
|
+
"market_symbol": {
|
|
20699
|
+
"type": "string",
|
|
20700
|
+
"example": "ETH"
|
|
20701
|
+
},
|
|
20694
20702
|
"market_kind": {
|
|
20695
20703
|
"type": "string",
|
|
20696
20704
|
"enum": [
|
|
@@ -20889,6 +20897,7 @@
|
|
|
20889
20897
|
"tx_hash",
|
|
20890
20898
|
"type",
|
|
20891
20899
|
"market_id",
|
|
20900
|
+
"market_symbol",
|
|
20892
20901
|
"market_kind",
|
|
20893
20902
|
"size",
|
|
20894
20903
|
"price",
|