zklighter-perps 1.0.171 → 1.0.173
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/MarketConfig.ts +27 -0
- package/openapi.json +17 -3
- package/package.json +1 -1
package/models/MarketConfig.ts
CHANGED
|
@@ -31,6 +31,24 @@ export interface MarketConfig {
|
|
|
31
31
|
* @memberof MarketConfig
|
|
32
32
|
*/
|
|
33
33
|
insurance_fund_account_index: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof MarketConfig
|
|
38
|
+
*/
|
|
39
|
+
liquidation_mode: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof MarketConfig
|
|
44
|
+
*/
|
|
45
|
+
force_reduce_only: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof MarketConfig
|
|
50
|
+
*/
|
|
51
|
+
trading_hours: string;
|
|
34
52
|
}
|
|
35
53
|
|
|
36
54
|
/**
|
|
@@ -39,6 +57,9 @@ export interface MarketConfig {
|
|
|
39
57
|
export function instanceOfMarketConfig(value: object): value is MarketConfig {
|
|
40
58
|
if (!('market_margin_mode' in value) || value['market_margin_mode'] === undefined) return false;
|
|
41
59
|
if (!('insurance_fund_account_index' in value) || value['insurance_fund_account_index'] === undefined) return false;
|
|
60
|
+
if (!('liquidation_mode' in value) || value['liquidation_mode'] === undefined) return false;
|
|
61
|
+
if (!('force_reduce_only' in value) || value['force_reduce_only'] === undefined) return false;
|
|
62
|
+
if (!('trading_hours' in value) || value['trading_hours'] === undefined) return false;
|
|
42
63
|
return true;
|
|
43
64
|
}
|
|
44
65
|
|
|
@@ -54,6 +75,9 @@ export function MarketConfigFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
54
75
|
|
|
55
76
|
'market_margin_mode': json['market_margin_mode'],
|
|
56
77
|
'insurance_fund_account_index': json['insurance_fund_account_index'],
|
|
78
|
+
'liquidation_mode': json['liquidation_mode'],
|
|
79
|
+
'force_reduce_only': json['force_reduce_only'],
|
|
80
|
+
'trading_hours': json['trading_hours'],
|
|
57
81
|
};
|
|
58
82
|
}
|
|
59
83
|
|
|
@@ -65,6 +89,9 @@ export function MarketConfigToJSON(value?: MarketConfig | null): any {
|
|
|
65
89
|
|
|
66
90
|
'market_margin_mode': value['market_margin_mode'],
|
|
67
91
|
'insurance_fund_account_index': value['insurance_fund_account_index'],
|
|
92
|
+
'liquidation_mode': value['liquidation_mode'],
|
|
93
|
+
'force_reduce_only': value['force_reduce_only'],
|
|
94
|
+
'trading_hours': value['trading_hours'],
|
|
68
95
|
};
|
|
69
96
|
}
|
|
70
97
|
|
package/openapi.json
CHANGED
|
@@ -1873,7 +1873,7 @@
|
|
|
1873
1873
|
"type": "integer",
|
|
1874
1874
|
"format": "int64",
|
|
1875
1875
|
"minimum": 1,
|
|
1876
|
-
"maximum":
|
|
1876
|
+
"maximum": 250
|
|
1877
1877
|
}
|
|
1878
1878
|
],
|
|
1879
1879
|
"tags": [
|
|
@@ -5196,12 +5196,26 @@
|
|
|
5196
5196
|
"insurance_fund_account_index": {
|
|
5197
5197
|
"type": "integer",
|
|
5198
5198
|
"format": "int64"
|
|
5199
|
+
},
|
|
5200
|
+
"liquidation_mode": {
|
|
5201
|
+
"type": "integer",
|
|
5202
|
+
"format": "int32"
|
|
5203
|
+
},
|
|
5204
|
+
"force_reduce_only": {
|
|
5205
|
+
"type": "boolean",
|
|
5206
|
+
"format": "boolean"
|
|
5207
|
+
},
|
|
5208
|
+
"trading_hours": {
|
|
5209
|
+
"type": "string"
|
|
5199
5210
|
}
|
|
5200
5211
|
},
|
|
5201
5212
|
"title": "MarketConfig",
|
|
5202
5213
|
"required": [
|
|
5203
5214
|
"market_margin_mode",
|
|
5204
|
-
"insurance_fund_account_index"
|
|
5215
|
+
"insurance_fund_account_index",
|
|
5216
|
+
"liquidation_mode",
|
|
5217
|
+
"force_reduce_only",
|
|
5218
|
+
"trading_hours"
|
|
5205
5219
|
]
|
|
5206
5220
|
},
|
|
5207
5221
|
"MarketInfo": {
|
|
@@ -7181,7 +7195,7 @@
|
|
|
7181
7195
|
"limit": {
|
|
7182
7196
|
"type": "integer",
|
|
7183
7197
|
"format": "int64",
|
|
7184
|
-
"maximum":
|
|
7198
|
+
"maximum": 250,
|
|
7185
7199
|
"minimum": 1
|
|
7186
7200
|
}
|
|
7187
7201
|
},
|