zklighter-perps 1.0.263 → 1.0.264

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.
@@ -55,6 +55,12 @@ export interface AccountAsset {
55
55
  * @memberof AccountAsset
56
56
  */
57
57
  margin_balance: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof AccountAsset
62
+ */
63
+ multiplier: string;
58
64
  }
59
65
 
60
66
 
@@ -78,6 +84,7 @@ export function instanceOfAccountAsset(value: object): value is AccountAsset {
78
84
  if (!('locked_balance' in value) || value['locked_balance'] === undefined) return false;
79
85
  if (!('margin_mode' in value) || value['margin_mode'] === undefined) return false;
80
86
  if (!('margin_balance' in value) || value['margin_balance'] === undefined) return false;
87
+ if (!('multiplier' in value) || value['multiplier'] === undefined) return false;
81
88
  return true;
82
89
  }
83
90
 
@@ -97,6 +104,7 @@ export function AccountAssetFromJSONTyped(json: any, ignoreDiscriminator: boolea
97
104
  'locked_balance': json['locked_balance'],
98
105
  'margin_mode': json['margin_mode'],
99
106
  'margin_balance': json['margin_balance'],
107
+ 'multiplier': json['multiplier'],
100
108
  };
101
109
  }
102
110
 
@@ -112,6 +120,7 @@ export function AccountAssetToJSON(value?: AccountAsset | null): any {
112
120
  'locked_balance': value['locked_balance'],
113
121
  'margin_mode': value['margin_mode'],
114
122
  'margin_balance': value['margin_balance'],
123
+ 'multiplier': value['multiplier'],
115
124
  };
116
125
  }
117
126
 
package/models/Asset.ts CHANGED
@@ -121,6 +121,12 @@ export interface Asset {
121
121
  * @memberof Asset
122
122
  */
123
123
  total_supplied: string;
124
+ /**
125
+ *
126
+ * @type {string}
127
+ * @memberof Asset
128
+ */
129
+ multiplier: string;
124
130
  }
125
131
 
126
132
 
@@ -155,6 +161,7 @@ export function instanceOfAsset(value: object): value is Asset {
155
161
  if (!('global_supply_cap' in value) || value['global_supply_cap'] === undefined) return false;
156
162
  if (!('user_supply_cap' in value) || value['user_supply_cap'] === undefined) return false;
157
163
  if (!('total_supplied' in value) || value['total_supplied'] === undefined) return false;
164
+ if (!('multiplier' in value) || value['multiplier'] === undefined) return false;
158
165
  return true;
159
166
  }
160
167
 
@@ -185,6 +192,7 @@ export function AssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ass
185
192
  'global_supply_cap': json['global_supply_cap'],
186
193
  'user_supply_cap': json['user_supply_cap'],
187
194
  'total_supplied': json['total_supplied'],
195
+ 'multiplier': json['multiplier'],
188
196
  };
189
197
  }
190
198
 
@@ -211,6 +219,7 @@ export function AssetToJSON(value?: Asset | null): any {
211
219
  'global_supply_cap': value['global_supply_cap'],
212
220
  'user_supply_cap': value['user_supply_cap'],
213
221
  'total_supplied': value['total_supplied'],
222
+ 'multiplier': value['multiplier'],
214
223
  };
215
224
  }
216
225
 
@@ -127,6 +127,12 @@ export interface OrderBook {
127
127
  * @memberof OrderBook
128
128
  */
129
129
  created_at: string;
130
+ /**
131
+ *
132
+ * @type {string}
133
+ * @memberof OrderBook
134
+ */
135
+ multiplier: string;
130
136
  }
131
137
 
132
138
 
@@ -171,6 +177,7 @@ export function instanceOfOrderBook(value: object): value is OrderBook {
171
177
  if (!('supported_price_decimals' in value) || value['supported_price_decimals'] === undefined) return false;
172
178
  if (!('supported_quote_decimals' in value) || value['supported_quote_decimals'] === undefined) return false;
173
179
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
180
+ if (!('multiplier' in value) || value['multiplier'] === undefined) return false;
174
181
  return true;
175
182
  }
176
183
 
@@ -202,6 +209,7 @@ export function OrderBookFromJSONTyped(json: any, ignoreDiscriminator: boolean):
202
209
  'supported_price_decimals': json['supported_price_decimals'],
203
210
  'supported_quote_decimals': json['supported_quote_decimals'],
204
211
  'created_at': json['created_at'],
212
+ 'multiplier': json['multiplier'],
205
213
  };
206
214
  }
207
215
 
@@ -229,6 +237,7 @@ export function OrderBookToJSON(value?: OrderBook | null): any {
229
237
  'supported_price_decimals': value['supported_price_decimals'],
230
238
  'supported_quote_decimals': value['supported_quote_decimals'],
231
239
  'created_at': value['created_at'],
240
+ 'multiplier': value['multiplier'],
232
241
  };
233
242
  }
234
243
 
@@ -134,6 +134,12 @@ export interface PerpsOrderBookDetail {
134
134
  * @memberof PerpsOrderBookDetail
135
135
  */
136
136
  created_at: string;
137
+ /**
138
+ *
139
+ * @type {string}
140
+ * @memberof PerpsOrderBookDetail
141
+ */
142
+ multiplier: string;
137
143
  /**
138
144
  *
139
145
  * @type {number}
@@ -176,6 +182,18 @@ export interface PerpsOrderBookDetail {
176
182
  * @memberof PerpsOrderBookDetail
177
183
  */
178
184
  closeout_margin_fraction: number;
185
+ /**
186
+ *
187
+ * @type {string}
188
+ * @memberof PerpsOrderBookDetail
189
+ */
190
+ mark_price: string;
191
+ /**
192
+ *
193
+ * @type {string}
194
+ * @memberof PerpsOrderBookDetail
195
+ */
196
+ index_price: string;
179
197
  /**
180
198
  *
181
199
  * @type {number}
@@ -304,6 +322,7 @@ export function instanceOfPerpsOrderBookDetail(value: object): value is PerpsOrd
304
322
  if (!('supported_price_decimals' in value) || value['supported_price_decimals'] === undefined) return false;
305
323
  if (!('supported_quote_decimals' in value) || value['supported_quote_decimals'] === undefined) return false;
306
324
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
325
+ if (!('multiplier' in value) || value['multiplier'] === undefined) return false;
307
326
  if (!('size_decimals' in value) || value['size_decimals'] === undefined) return false;
308
327
  if (!('price_decimals' in value) || value['price_decimals'] === undefined) return false;
309
328
  if (!('quote_multiplier' in value) || value['quote_multiplier'] === undefined) return false;
@@ -311,6 +330,8 @@ export function instanceOfPerpsOrderBookDetail(value: object): value is PerpsOrd
311
330
  if (!('min_initial_margin_fraction' in value) || value['min_initial_margin_fraction'] === undefined) return false;
312
331
  if (!('maintenance_margin_fraction' in value) || value['maintenance_margin_fraction'] === undefined) return false;
313
332
  if (!('closeout_margin_fraction' in value) || value['closeout_margin_fraction'] === undefined) return false;
333
+ if (!('mark_price' in value) || value['mark_price'] === undefined) return false;
334
+ if (!('index_price' in value) || value['index_price'] === undefined) return false;
314
335
  if (!('last_trade_price' in value) || value['last_trade_price'] === undefined) return false;
315
336
  if (!('daily_trades_count' in value) || value['daily_trades_count'] === undefined) return false;
316
337
  if (!('daily_base_token_volume' in value) || value['daily_base_token_volume'] === undefined) return false;
@@ -356,6 +377,7 @@ export function PerpsOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator
356
377
  'supported_price_decimals': json['supported_price_decimals'],
357
378
  'supported_quote_decimals': json['supported_quote_decimals'],
358
379
  'created_at': json['created_at'],
380
+ 'multiplier': json['multiplier'],
359
381
  'size_decimals': json['size_decimals'],
360
382
  'price_decimals': json['price_decimals'],
361
383
  'quote_multiplier': json['quote_multiplier'],
@@ -363,6 +385,8 @@ export function PerpsOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator
363
385
  'min_initial_margin_fraction': json['min_initial_margin_fraction'],
364
386
  'maintenance_margin_fraction': json['maintenance_margin_fraction'],
365
387
  'closeout_margin_fraction': json['closeout_margin_fraction'],
388
+ 'mark_price': json['mark_price'],
389
+ 'index_price': json['index_price'],
366
390
  'last_trade_price': json['last_trade_price'],
367
391
  'daily_trades_count': json['daily_trades_count'],
368
392
  'daily_base_token_volume': json['daily_base_token_volume'],
@@ -404,6 +428,7 @@ export function PerpsOrderBookDetailToJSON(value?: PerpsOrderBookDetail | null):
404
428
  'supported_price_decimals': value['supported_price_decimals'],
405
429
  'supported_quote_decimals': value['supported_quote_decimals'],
406
430
  'created_at': value['created_at'],
431
+ 'multiplier': value['multiplier'],
407
432
  'size_decimals': value['size_decimals'],
408
433
  'price_decimals': value['price_decimals'],
409
434
  'quote_multiplier': value['quote_multiplier'],
@@ -411,6 +436,8 @@ export function PerpsOrderBookDetailToJSON(value?: PerpsOrderBookDetail | null):
411
436
  'min_initial_margin_fraction': value['min_initial_margin_fraction'],
412
437
  'maintenance_margin_fraction': value['maintenance_margin_fraction'],
413
438
  'closeout_margin_fraction': value['closeout_margin_fraction'],
439
+ 'mark_price': value['mark_price'],
440
+ 'index_price': value['index_price'],
414
441
  'last_trade_price': value['last_trade_price'],
415
442
  'daily_trades_count': value['daily_trades_count'],
416
443
  'daily_base_token_volume': value['daily_base_token_volume'],
@@ -127,6 +127,12 @@ export interface SpotOrderBookDetail {
127
127
  * @memberof SpotOrderBookDetail
128
128
  */
129
129
  created_at: string;
130
+ /**
131
+ *
132
+ * @type {string}
133
+ * @memberof SpotOrderBookDetail
134
+ */
135
+ multiplier: string;
130
136
  /**
131
137
  *
132
138
  * @type {number}
@@ -231,6 +237,7 @@ export function instanceOfSpotOrderBookDetail(value: object): value is SpotOrder
231
237
  if (!('supported_price_decimals' in value) || value['supported_price_decimals'] === undefined) return false;
232
238
  if (!('supported_quote_decimals' in value) || value['supported_quote_decimals'] === undefined) return false;
233
239
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
240
+ if (!('multiplier' in value) || value['multiplier'] === undefined) return false;
234
241
  if (!('size_decimals' in value) || value['size_decimals'] === undefined) return false;
235
242
  if (!('price_decimals' in value) || value['price_decimals'] === undefined) return false;
236
243
  if (!('last_trade_price' in value) || value['last_trade_price'] === undefined) return false;
@@ -272,6 +279,7 @@ export function SpotOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator:
272
279
  'supported_price_decimals': json['supported_price_decimals'],
273
280
  'supported_quote_decimals': json['supported_quote_decimals'],
274
281
  'created_at': json['created_at'],
282
+ 'multiplier': json['multiplier'],
275
283
  'size_decimals': json['size_decimals'],
276
284
  'price_decimals': json['price_decimals'],
277
285
  'last_trade_price': json['last_trade_price'],
@@ -309,6 +317,7 @@ export function SpotOrderBookDetailToJSON(value?: SpotOrderBookDetail | null): a
309
317
  'supported_price_decimals': value['supported_price_decimals'],
310
318
  'supported_quote_decimals': value['supported_quote_decimals'],
311
319
  'created_at': value['created_at'],
320
+ 'multiplier': value['multiplier'],
312
321
  'size_decimals': value['size_decimals'],
313
322
  'price_decimals': value['price_decimals'],
314
323
  'last_trade_price': value['last_trade_price'],
package/openapi.json CHANGED
@@ -5315,6 +5315,10 @@
5315
5315
  "margin_balance": {
5316
5316
  "type": "string",
5317
5317
  "example": "1000"
5318
+ },
5319
+ "multiplier": {
5320
+ "type": "string",
5321
+ "example": "1.000000000000000000"
5318
5322
  }
5319
5323
  },
5320
5324
  "title": "AccountAsset",
@@ -5324,7 +5328,8 @@
5324
5328
  "balance",
5325
5329
  "locked_balance",
5326
5330
  "margin_mode",
5327
- "margin_balance"
5331
+ "margin_balance",
5332
+ "multiplier"
5328
5333
  ]
5329
5334
  },
5330
5335
  "AccountLimits": {
@@ -6147,6 +6152,10 @@
6147
6152
  "total_supplied": {
6148
6153
  "type": "string",
6149
6154
  "example": "100"
6155
+ },
6156
+ "multiplier": {
6157
+ "type": "string",
6158
+ "example": "1.000000000000000000"
6150
6159
  }
6151
6160
  },
6152
6161
  "title": "Asset",
@@ -6167,7 +6176,8 @@
6167
6176
  "liquidation_fee",
6168
6177
  "global_supply_cap",
6169
6178
  "user_supply_cap",
6170
- "total_supplied"
6179
+ "total_supplied",
6180
+ "multiplier"
6171
6181
  ]
6172
6182
  },
6173
6183
  "AssetDetails": {
@@ -8910,6 +8920,10 @@
8910
8920
  "created_at": {
8911
8921
  "type": "string",
8912
8922
  "example": "1640995200000"
8923
+ },
8924
+ "multiplier": {
8925
+ "type": "string",
8926
+ "example": "1.000000000000000000"
8913
8927
  }
8914
8928
  },
8915
8929
  "title": "OrderBook",
@@ -8931,7 +8945,8 @@
8931
8945
  "supported_size_decimals",
8932
8946
  "supported_price_decimals",
8933
8947
  "supported_quote_decimals",
8934
- "created_at"
8948
+ "created_at",
8949
+ "multiplier"
8935
8950
  ]
8936
8951
  },
8937
8952
  "OrderBookDepth": {
@@ -9501,6 +9516,10 @@
9501
9516
  "type": "string",
9502
9517
  "example": "1640995200000"
9503
9518
  },
9519
+ "multiplier": {
9520
+ "type": "string",
9521
+ "example": "1.000000000000000000"
9522
+ },
9504
9523
  "size_decimals": {
9505
9524
  "type": "integer",
9506
9525
  "format": "uint8",
@@ -9536,6 +9555,14 @@
9536
9555
  "format": "uin16",
9537
9556
  "example": "100"
9538
9557
  },
9558
+ "mark_price": {
9559
+ "type": "string",
9560
+ "example": "3024.66"
9561
+ },
9562
+ "index_price": {
9563
+ "type": "string",
9564
+ "example": "3024.66"
9565
+ },
9539
9566
  "last_trade_price": {
9540
9567
  "type": "number",
9541
9568
  "format": "double",
@@ -9624,6 +9651,7 @@
9624
9651
  "supported_price_decimals",
9625
9652
  "supported_quote_decimals",
9626
9653
  "created_at",
9654
+ "multiplier",
9627
9655
  "size_decimals",
9628
9656
  "price_decimals",
9629
9657
  "quote_multiplier",
@@ -9631,6 +9659,8 @@
9631
9659
  "min_initial_margin_fraction",
9632
9660
  "maintenance_margin_fraction",
9633
9661
  "closeout_margin_fraction",
9662
+ "mark_price",
9663
+ "index_price",
9634
9664
  "last_trade_price",
9635
9665
  "daily_trades_count",
9636
9666
  "daily_base_token_volume",
@@ -14082,6 +14112,10 @@
14082
14112
  "type": "string",
14083
14113
  "example": "1640995200000"
14084
14114
  },
14115
+ "multiplier": {
14116
+ "type": "string",
14117
+ "example": "1.000000000000000000"
14118
+ },
14085
14119
  "size_decimals": {
14086
14120
  "type": "integer",
14087
14121
  "format": "uint8",
@@ -14156,6 +14190,7 @@
14156
14190
  "supported_price_decimals",
14157
14191
  "supported_quote_decimals",
14158
14192
  "created_at",
14193
+ "multiplier",
14159
14194
  "size_decimals",
14160
14195
  "price_decimals",
14161
14196
  "last_trade_price",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.263",
3
+ "version": "1.0.264",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {