zklighter-perps 1.0.264 → 1.0.265

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.
@@ -109,6 +109,12 @@ export interface AccountPosition {
109
109
  * @memberof AccountPosition
110
110
  */
111
111
  margin_mode: number;
112
+ /**
113
+ *
114
+ * @type {number}
115
+ * @memberof AccountPosition
116
+ */
117
+ margin_set_flag: number;
112
118
  /**
113
119
  *
114
120
  * @type {string}
@@ -141,6 +147,7 @@ export function instanceOfAccountPosition(value: object): value is AccountPositi
141
147
  if (!('realized_pnl' in value) || value['realized_pnl'] === undefined) return false;
142
148
  if (!('liquidation_price' in value) || value['liquidation_price'] === undefined) return false;
143
149
  if (!('margin_mode' in value) || value['margin_mode'] === undefined) return false;
150
+ if (!('margin_set_flag' in value) || value['margin_set_flag'] === undefined) return false;
144
151
  if (!('allocated_margin' in value) || value['allocated_margin'] === undefined) return false;
145
152
  if (!('total_discount' in value) || value['total_discount'] === undefined) return false;
146
153
  return true;
@@ -171,6 +178,7 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
171
178
  'liquidation_price': json['liquidation_price'],
172
179
  'total_funding_paid_out': json['total_funding_paid_out'] == null ? undefined : json['total_funding_paid_out'],
173
180
  'margin_mode': json['margin_mode'],
181
+ 'margin_set_flag': json['margin_set_flag'],
174
182
  'allocated_margin': json['allocated_margin'],
175
183
  'total_discount': json['total_discount'],
176
184
  };
@@ -197,6 +205,7 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
197
205
  'liquidation_price': value['liquidation_price'],
198
206
  'total_funding_paid_out': value['total_funding_paid_out'],
199
207
  'margin_mode': value['margin_mode'],
208
+ 'margin_set_flag': value['margin_set_flag'],
200
209
  'allocated_margin': value['allocated_margin'],
201
210
  'total_discount': value['total_discount'],
202
211
  };
@@ -260,6 +260,12 @@ export interface PerpsOrderBookDetail {
260
260
  * @memberof PerpsOrderBookDetail
261
261
  */
262
262
  strategy_index: number;
263
+ /**
264
+ *
265
+ * @type {number}
266
+ * @memberof PerpsOrderBookDetail
267
+ */
268
+ market_flags: number;
263
269
  /**
264
270
  *
265
271
  * @type {string}
@@ -343,6 +349,7 @@ export function instanceOfPerpsOrderBookDetail(value: object): value is PerpsOrd
343
349
  if (!('daily_chart' in value) || value['daily_chart'] === undefined) return false;
344
350
  if (!('market_config' in value) || value['market_config'] === undefined) return false;
345
351
  if (!('strategy_index' in value) || value['strategy_index'] === undefined) return false;
352
+ if (!('market_flags' in value) || value['market_flags'] === undefined) return false;
346
353
  if (!('funding_clamp_small' in value) || value['funding_clamp_small'] === undefined) return false;
347
354
  if (!('funding_clamp_big' in value) || value['funding_clamp_big'] === undefined) return false;
348
355
  if (!('base_interest_rate' in value) || value['base_interest_rate'] === undefined) return false;
@@ -398,6 +405,7 @@ export function PerpsOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator
398
405
  'daily_chart': json['daily_chart'],
399
406
  'market_config': MarketConfigFromJSON(json['market_config']),
400
407
  'strategy_index': json['strategy_index'],
408
+ 'market_flags': json['market_flags'],
401
409
  'funding_clamp_small': json['funding_clamp_small'],
402
410
  'funding_clamp_big': json['funding_clamp_big'],
403
411
  'base_interest_rate': json['base_interest_rate'],
@@ -449,6 +457,7 @@ export function PerpsOrderBookDetailToJSON(value?: PerpsOrderBookDetail | null):
449
457
  'daily_chart': value['daily_chart'],
450
458
  'market_config': MarketConfigToJSON(value['market_config']),
451
459
  'strategy_index': value['strategy_index'],
460
+ 'market_flags': value['market_flags'],
452
461
  'funding_clamp_small': value['funding_clamp_small'],
453
462
  'funding_clamp_big': value['funding_clamp_big'],
454
463
  'base_interest_rate': value['base_interest_rate'],
@@ -73,6 +73,12 @@ export interface RiskParameters {
73
73
  * @memberof RiskParameters
74
74
  */
75
75
  usdc_portfolio_value: string;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof RiskParameters
80
+ */
81
+ total_portfolio_value: string;
76
82
  }
77
83
 
78
84
  /**
@@ -88,6 +94,7 @@ export function instanceOfRiskParameters(value: object): value is RiskParameters
88
94
  if (!('collateral' in value) || value['collateral'] === undefined) return false;
89
95
  if (!('usdc_collateral_with_funding' in value) || value['usdc_collateral_with_funding'] === undefined) return false;
90
96
  if (!('usdc_portfolio_value' in value) || value['usdc_portfolio_value'] === undefined) return false;
97
+ if (!('total_portfolio_value' in value) || value['total_portfolio_value'] === undefined) return false;
91
98
  return true;
92
99
  }
93
100
 
@@ -110,6 +117,7 @@ export function RiskParametersFromJSONTyped(json: any, ignoreDiscriminator: bool
110
117
  'collateral': json['collateral'],
111
118
  'usdc_collateral_with_funding': json['usdc_collateral_with_funding'],
112
119
  'usdc_portfolio_value': json['usdc_portfolio_value'],
120
+ 'total_portfolio_value': json['total_portfolio_value'],
113
121
  };
114
122
  }
115
123
 
@@ -128,6 +136,7 @@ export function RiskParametersToJSON(value?: RiskParameters | null): any {
128
136
  'collateral': value['collateral'],
129
137
  'usdc_collateral_with_funding': value['usdc_collateral_with_funding'],
130
138
  'usdc_portfolio_value': value['usdc_portfolio_value'],
139
+ 'total_portfolio_value': value['total_portfolio_value'],
131
140
  };
132
141
  }
133
142
 
package/openapi.json CHANGED
@@ -5702,6 +5702,11 @@
5702
5702
  "format": "int32",
5703
5703
  "example": "1"
5704
5704
  },
5705
+ "margin_set_flag": {
5706
+ "type": "integer",
5707
+ "format": "int32",
5708
+ "example": "1"
5709
+ },
5705
5710
  "allocated_margin": {
5706
5711
  "type": "string",
5707
5712
  "example": "46342"
@@ -5727,6 +5732,7 @@
5727
5732
  "realized_pnl",
5728
5733
  "liquidation_price",
5729
5734
  "margin_mode",
5735
+ "margin_set_flag",
5730
5736
  "allocated_margin",
5731
5737
  "total_discount"
5732
5738
  ]
@@ -9618,6 +9624,10 @@
9618
9624
  "type": "integer",
9619
9625
  "format": "uint8"
9620
9626
  },
9627
+ "market_flags": {
9628
+ "type": "integer",
9629
+ "format": "int64"
9630
+ },
9621
9631
  "funding_clamp_small": {
9622
9632
  "type": "string",
9623
9633
  "example": "0.005"
@@ -9672,6 +9682,7 @@
9672
9682
  "daily_chart",
9673
9683
  "market_config",
9674
9684
  "strategy_index",
9685
+ "market_flags",
9675
9686
  "funding_clamp_small",
9676
9687
  "funding_clamp_big",
9677
9688
  "base_interest_rate"
@@ -13777,6 +13788,9 @@
13777
13788
  },
13778
13789
  "usdc_portfolio_value": {
13779
13790
  "type": "string"
13791
+ },
13792
+ "total_portfolio_value": {
13793
+ "type": "string"
13780
13794
  }
13781
13795
  },
13782
13796
  "title": "RiskParameters",
@@ -13789,7 +13803,8 @@
13789
13803
  "total_account_liquidation_threshold",
13790
13804
  "collateral",
13791
13805
  "usdc_collateral_with_funding",
13792
- "usdc_portfolio_value"
13806
+ "usdc_portfolio_value",
13807
+ "total_portfolio_value"
13793
13808
  ]
13794
13809
  },
13795
13810
  "RollingContractResp": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.264",
3
+ "version": "1.0.265",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {