zklighter-perps 1.0.34 → 1.0.36
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/AccountStats.ts +4 -4
- package/models/Liquidation.ts +18 -0
- package/openapi.json +25 -15
- package/package.json +1 -1
package/models/AccountStats.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface AccountStats {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AccountStats
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
available_balance: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -57,7 +57,7 @@ export interface AccountStats {
|
|
|
57
57
|
export function instanceOfAccountStats(value: object): value is AccountStats {
|
|
58
58
|
if (!('portfolio_value' in value) || value['portfolio_value'] === undefined) return false;
|
|
59
59
|
if (!('leverage' in value) || value['leverage'] === undefined) return false;
|
|
60
|
-
if (!('
|
|
60
|
+
if (!('available_balance' in value) || value['available_balance'] === undefined) return false;
|
|
61
61
|
if (!('margin_usage' in value) || value['margin_usage'] === undefined) return false;
|
|
62
62
|
if (!('buying_power' in value) || value['buying_power'] === undefined) return false;
|
|
63
63
|
return true;
|
|
@@ -75,7 +75,7 @@ export function AccountStatsFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
75
75
|
|
|
76
76
|
'portfolio_value': json['portfolio_value'],
|
|
77
77
|
'leverage': json['leverage'],
|
|
78
|
-
'
|
|
78
|
+
'available_balance': json['available_balance'],
|
|
79
79
|
'margin_usage': json['margin_usage'],
|
|
80
80
|
'buying_power': json['buying_power'],
|
|
81
81
|
};
|
|
@@ -89,7 +89,7 @@ export function AccountStatsToJSON(value?: AccountStats | null): any {
|
|
|
89
89
|
|
|
90
90
|
'portfolio_value': value['portfolio_value'],
|
|
91
91
|
'leverage': value['leverage'],
|
|
92
|
-
'
|
|
92
|
+
'available_balance': value['available_balance'],
|
|
93
93
|
'margin_usage': value['margin_usage'],
|
|
94
94
|
'buying_power': value['buying_power'],
|
|
95
95
|
};
|
package/models/Liquidation.ts
CHANGED
|
@@ -37,6 +37,18 @@ export interface Liquidation {
|
|
|
37
37
|
* @memberof Liquidation
|
|
38
38
|
*/
|
|
39
39
|
liquidation_type: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Liquidation
|
|
44
|
+
*/
|
|
45
|
+
portfolio_value: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Liquidation
|
|
50
|
+
*/
|
|
51
|
+
margin_requirement: string;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
@@ -46,6 +58,8 @@ export function instanceOfLiquidation(value: object): value is Liquidation {
|
|
|
46
58
|
if (!('liquidation_id' in value) || value['liquidation_id'] === undefined) return false;
|
|
47
59
|
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
48
60
|
if (!('liquidation_type' in value) || value['liquidation_type'] === undefined) return false;
|
|
61
|
+
if (!('portfolio_value' in value) || value['portfolio_value'] === undefined) return false;
|
|
62
|
+
if (!('margin_requirement' in value) || value['margin_requirement'] === undefined) return false;
|
|
49
63
|
return true;
|
|
50
64
|
}
|
|
51
65
|
|
|
@@ -62,6 +76,8 @@ export function LiquidationFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
62
76
|
'liquidation_id': json['liquidation_id'],
|
|
63
77
|
'account_index': json['account_index'],
|
|
64
78
|
'liquidation_type': json['liquidation_type'],
|
|
79
|
+
'portfolio_value': json['portfolio_value'],
|
|
80
|
+
'margin_requirement': json['margin_requirement'],
|
|
65
81
|
};
|
|
66
82
|
}
|
|
67
83
|
|
|
@@ -74,6 +90,8 @@ export function LiquidationToJSON(value?: Liquidation | null): any {
|
|
|
74
90
|
'liquidation_id': value['liquidation_id'],
|
|
75
91
|
'account_index': value['account_index'],
|
|
76
92
|
'liquidation_type': value['liquidation_type'],
|
|
93
|
+
'portfolio_value': value['portfolio_value'],
|
|
94
|
+
'margin_requirement': value['margin_requirement'],
|
|
77
95
|
};
|
|
78
96
|
}
|
|
79
97
|
|
package/openapi.json
CHANGED
|
@@ -1773,7 +1773,7 @@
|
|
|
1773
1773
|
},
|
|
1774
1774
|
"status": {
|
|
1775
1775
|
"type": "integer",
|
|
1776
|
-
"format": "
|
|
1776
|
+
"format": "uint8",
|
|
1777
1777
|
"example": "1"
|
|
1778
1778
|
},
|
|
1779
1779
|
"collateral": {
|
|
@@ -1973,7 +1973,7 @@
|
|
|
1973
1973
|
"type": "string",
|
|
1974
1974
|
"example": "1.0"
|
|
1975
1975
|
},
|
|
1976
|
-
"
|
|
1976
|
+
"available_balance": {
|
|
1977
1977
|
"type": "string",
|
|
1978
1978
|
"example": "199955"
|
|
1979
1979
|
},
|
|
@@ -1990,7 +1990,7 @@
|
|
|
1990
1990
|
"required": [
|
|
1991
1991
|
"portfolio_value",
|
|
1992
1992
|
"leverage",
|
|
1993
|
-
"
|
|
1993
|
+
"available_balance",
|
|
1994
1994
|
"margin_usage",
|
|
1995
1995
|
"buying_power"
|
|
1996
1996
|
]
|
|
@@ -2070,11 +2070,11 @@
|
|
|
2070
2070
|
},
|
|
2071
2071
|
"priority_operations": {
|
|
2072
2072
|
"type": "integer",
|
|
2073
|
-
"format": "
|
|
2073
|
+
"format": "int32"
|
|
2074
2074
|
},
|
|
2075
2075
|
"on_chain_l2_operations": {
|
|
2076
2076
|
"type": "integer",
|
|
2077
|
-
"format": "
|
|
2077
|
+
"format": "int32"
|
|
2078
2078
|
},
|
|
2079
2079
|
"pending_on_chain_operations_pub_data": {
|
|
2080
2080
|
"type": "string"
|
|
@@ -2319,7 +2319,7 @@
|
|
|
2319
2319
|
},
|
|
2320
2320
|
"status": {
|
|
2321
2321
|
"type": "integer",
|
|
2322
|
-
"format": "
|
|
2322
|
+
"format": "uint8",
|
|
2323
2323
|
"example": "1"
|
|
2324
2324
|
},
|
|
2325
2325
|
"collateral": {
|
|
@@ -2763,13 +2763,23 @@
|
|
|
2763
2763
|
"type": "integer",
|
|
2764
2764
|
"format": "uint8",
|
|
2765
2765
|
"example": "1"
|
|
2766
|
+
},
|
|
2767
|
+
"portfolio_value": {
|
|
2768
|
+
"type": "string",
|
|
2769
|
+
"example": "1"
|
|
2770
|
+
},
|
|
2771
|
+
"margin_requirement": {
|
|
2772
|
+
"type": "string",
|
|
2773
|
+
"example": "1"
|
|
2766
2774
|
}
|
|
2767
2775
|
},
|
|
2768
2776
|
"title": "Liquidation",
|
|
2769
2777
|
"required": [
|
|
2770
2778
|
"liquidation_id",
|
|
2771
2779
|
"account_index",
|
|
2772
|
-
"liquidation_type"
|
|
2780
|
+
"liquidation_type",
|
|
2781
|
+
"portfolio_value",
|
|
2782
|
+
"margin_requirement"
|
|
2773
2783
|
]
|
|
2774
2784
|
},
|
|
2775
2785
|
"MarketInfo": {
|
|
@@ -2920,7 +2930,7 @@
|
|
|
2920
2930
|
},
|
|
2921
2931
|
"base_price": {
|
|
2922
2932
|
"type": "integer",
|
|
2923
|
-
"format": "
|
|
2933
|
+
"format": "int32",
|
|
2924
2934
|
"example": "3024"
|
|
2925
2935
|
},
|
|
2926
2936
|
"nonce": {
|
|
@@ -3048,17 +3058,17 @@
|
|
|
3048
3058
|
},
|
|
3049
3059
|
"supported_size_decimals": {
|
|
3050
3060
|
"type": "integer",
|
|
3051
|
-
"format": "
|
|
3061
|
+
"format": "uint8",
|
|
3052
3062
|
"example": "4"
|
|
3053
3063
|
},
|
|
3054
3064
|
"supported_price_decimals": {
|
|
3055
3065
|
"type": "integer",
|
|
3056
|
-
"format": "
|
|
3066
|
+
"format": "uint8",
|
|
3057
3067
|
"example": "4"
|
|
3058
3068
|
},
|
|
3059
3069
|
"supported_quote_decimals": {
|
|
3060
3070
|
"type": "integer",
|
|
3061
|
-
"format": "
|
|
3071
|
+
"format": "uint8",
|
|
3062
3072
|
"example": "4"
|
|
3063
3073
|
}
|
|
3064
3074
|
},
|
|
@@ -3156,17 +3166,17 @@
|
|
|
3156
3166
|
},
|
|
3157
3167
|
"supported_size_decimals": {
|
|
3158
3168
|
"type": "integer",
|
|
3159
|
-
"format": "
|
|
3169
|
+
"format": "uint8",
|
|
3160
3170
|
"example": "4"
|
|
3161
3171
|
},
|
|
3162
3172
|
"supported_price_decimals": {
|
|
3163
3173
|
"type": "integer",
|
|
3164
|
-
"format": "
|
|
3174
|
+
"format": "uint8",
|
|
3165
3175
|
"example": "4"
|
|
3166
3176
|
},
|
|
3167
3177
|
"supported_quote_decimals": {
|
|
3168
3178
|
"type": "integer",
|
|
3169
|
-
"format": "
|
|
3179
|
+
"format": "uint8",
|
|
3170
3180
|
"example": "4"
|
|
3171
3181
|
},
|
|
3172
3182
|
"size_decimals": {
|
|
@@ -3543,7 +3553,7 @@
|
|
|
3543
3553
|
},
|
|
3544
3554
|
"status": {
|
|
3545
3555
|
"type": "integer",
|
|
3546
|
-
"format": "
|
|
3556
|
+
"format": "uint8",
|
|
3547
3557
|
"example": "1"
|
|
3548
3558
|
},
|
|
3549
3559
|
"collateral": {
|