zklighter-perps 1.0.246 → 1.0.247

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.
@@ -85,6 +85,7 @@ export interface ReferralUserReferralsRequest {
85
85
  authorization?: string;
86
86
  auth?: string;
87
87
  cursor?: string;
88
+ limit?: number;
88
89
  stats_start_timestamp?: number;
89
90
  stats_end_timestamp?: number;
90
91
  }
@@ -518,6 +519,10 @@ export class ReferralApi extends runtime.BaseAPI {
518
519
  queryParameters['cursor'] = requestParameters['cursor'];
519
520
  }
520
521
 
522
+ if (requestParameters['limit'] != null) {
523
+ queryParameters['limit'] = requestParameters['limit'];
524
+ }
525
+
521
526
  if (requestParameters['stats_start_timestamp'] != null) {
522
527
  queryParameters['stats_start_timestamp'] = requestParameters['stats_start_timestamp'];
523
528
  }
@@ -127,6 +127,12 @@ export interface PerpsMarketStats {
127
127
  * @memberof PerpsMarketStats
128
128
  */
129
129
  daily_price_change: number;
130
+ /**
131
+ *
132
+ * @type {string}
133
+ * @memberof PerpsMarketStats
134
+ */
135
+ base_interest_rate: string;
130
136
  }
131
137
 
132
138
  /**
@@ -151,6 +157,7 @@ export function instanceOfPerpsMarketStats(value: object): value is PerpsMarketS
151
157
  if (!('daily_price_low' in value) || value['daily_price_low'] === undefined) return false;
152
158
  if (!('daily_price_high' in value) || value['daily_price_high'] === undefined) return false;
153
159
  if (!('daily_price_change' in value) || value['daily_price_change'] === undefined) return false;
160
+ if (!('base_interest_rate' in value) || value['base_interest_rate'] === undefined) return false;
154
161
  return true;
155
162
  }
156
163
 
@@ -182,6 +189,7 @@ export function PerpsMarketStatsFromJSONTyped(json: any, ignoreDiscriminator: bo
182
189
  'daily_price_low': json['daily_price_low'],
183
190
  'daily_price_high': json['daily_price_high'],
184
191
  'daily_price_change': json['daily_price_change'],
192
+ 'base_interest_rate': json['base_interest_rate'],
185
193
  };
186
194
  }
187
195
 
@@ -209,6 +217,7 @@ export function PerpsMarketStatsToJSON(value?: PerpsMarketStats | null): any {
209
217
  'daily_price_low': value['daily_price_low'],
210
218
  'daily_price_high': value['daily_price_high'],
211
219
  'daily_price_change': value['daily_price_change'],
220
+ 'base_interest_rate': value['base_interest_rate'],
212
221
  };
213
222
  }
214
223
 
@@ -236,6 +236,24 @@ export interface PerpsOrderBookDetail {
236
236
  * @memberof PerpsOrderBookDetail
237
237
  */
238
238
  strategy_index: number;
239
+ /**
240
+ *
241
+ * @type {string}
242
+ * @memberof PerpsOrderBookDetail
243
+ */
244
+ funding_clamp_small: string;
245
+ /**
246
+ *
247
+ * @type {string}
248
+ * @memberof PerpsOrderBookDetail
249
+ */
250
+ funding_clamp_big: string;
251
+ /**
252
+ *
253
+ * @type {string}
254
+ * @memberof PerpsOrderBookDetail
255
+ */
256
+ base_interest_rate: string;
239
257
  }
240
258
 
241
259
 
@@ -297,6 +315,9 @@ export function instanceOfPerpsOrderBookDetail(value: object): value is PerpsOrd
297
315
  if (!('daily_chart' in value) || value['daily_chart'] === undefined) return false;
298
316
  if (!('market_config' in value) || value['market_config'] === undefined) return false;
299
317
  if (!('strategy_index' in value) || value['strategy_index'] === undefined) return false;
318
+ if (!('funding_clamp_small' in value) || value['funding_clamp_small'] === undefined) return false;
319
+ if (!('funding_clamp_big' in value) || value['funding_clamp_big'] === undefined) return false;
320
+ if (!('base_interest_rate' in value) || value['base_interest_rate'] === undefined) return false;
300
321
  return true;
301
322
  }
302
323
 
@@ -345,6 +366,9 @@ export function PerpsOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator
345
366
  'daily_chart': json['daily_chart'],
346
367
  'market_config': MarketConfigFromJSON(json['market_config']),
347
368
  'strategy_index': json['strategy_index'],
369
+ 'funding_clamp_small': json['funding_clamp_small'],
370
+ 'funding_clamp_big': json['funding_clamp_big'],
371
+ 'base_interest_rate': json['base_interest_rate'],
348
372
  };
349
373
  }
350
374
 
@@ -389,6 +413,9 @@ export function PerpsOrderBookDetailToJSON(value?: PerpsOrderBookDetail | null):
389
413
  'daily_chart': value['daily_chart'],
390
414
  'market_config': MarketConfigToJSON(value['market_config']),
391
415
  'strategy_index': value['strategy_index'],
416
+ 'funding_clamp_small': value['funding_clamp_small'],
417
+ 'funding_clamp_big': value['funding_clamp_big'],
418
+ 'base_interest_rate': value['base_interest_rate'],
392
419
  };
393
420
  }
394
421
 
@@ -37,6 +37,12 @@ export interface ReqGetUserReferrals {
37
37
  * @memberof ReqGetUserReferrals
38
38
  */
39
39
  cursor?: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ReqGetUserReferrals
44
+ */
45
+ limit?: number;
40
46
  /**
41
47
  *
42
48
  * @type {number}
@@ -72,6 +78,7 @@ export function ReqGetUserReferralsFromJSONTyped(json: any, ignoreDiscriminator:
72
78
  'auth': json['auth'] == null ? undefined : json['auth'],
73
79
  'l1_address': json['l1_address'],
74
80
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
81
+ 'limit': json['limit'] == null ? undefined : json['limit'],
75
82
  'stats_start_timestamp': json['stats_start_timestamp'] == null ? undefined : json['stats_start_timestamp'],
76
83
  'stats_end_timestamp': json['stats_end_timestamp'] == null ? undefined : json['stats_end_timestamp'],
77
84
  };
@@ -86,6 +93,7 @@ export function ReqGetUserReferralsToJSON(value?: ReqGetUserReferrals | null): a
86
93
  'auth': value['auth'],
87
94
  'l1_address': value['l1_address'],
88
95
  'cursor': value['cursor'],
96
+ 'limit': value['limit'],
89
97
  'stats_start_timestamp': value['stats_start_timestamp'],
90
98
  'stats_end_timestamp': value['stats_end_timestamp'],
91
99
  };
package/openapi.json CHANGED
@@ -3533,6 +3533,15 @@
3533
3533
  "required": false,
3534
3534
  "type": "string"
3535
3535
  },
3536
+ {
3537
+ "name": "limit",
3538
+ "in": "query",
3539
+ "required": false,
3540
+ "type": "integer",
3541
+ "format": "int64",
3542
+ "minimum": 1,
3543
+ "maximum": 300
3544
+ },
3536
3545
  {
3537
3546
  "name": "stats_start_timestamp",
3538
3547
  "in": "query",
@@ -8608,6 +8617,10 @@
8608
8617
  "type": "number",
8609
8618
  "format": "double",
8610
8619
  "example": "3.66"
8620
+ },
8621
+ "base_interest_rate": {
8622
+ "type": "string",
8623
+ "example": "0.0001"
8611
8624
  }
8612
8625
  },
8613
8626
  "title": "PerpsMarketStats",
@@ -8629,7 +8642,8 @@
8629
8642
  "daily_quote_token_volume",
8630
8643
  "daily_price_low",
8631
8644
  "daily_price_high",
8632
- "daily_price_change"
8645
+ "daily_price_change",
8646
+ "base_interest_rate"
8633
8647
  ]
8634
8648
  },
8635
8649
  "PerpsOrderBookDetail": {
@@ -8808,6 +8822,18 @@
8808
8822
  "strategy_index": {
8809
8823
  "type": "integer",
8810
8824
  "format": "uint8"
8825
+ },
8826
+ "funding_clamp_small": {
8827
+ "type": "string",
8828
+ "example": "0.005"
8829
+ },
8830
+ "funding_clamp_big": {
8831
+ "type": "string",
8832
+ "example": "0.4"
8833
+ },
8834
+ "base_interest_rate": {
8835
+ "type": "string",
8836
+ "example": "0.0001"
8811
8837
  }
8812
8838
  },
8813
8839
  "title": "PerpsOrderBookDetail",
@@ -8846,7 +8872,10 @@
8846
8872
  "open_interest",
8847
8873
  "daily_chart",
8848
8874
  "market_config",
8849
- "strategy_index"
8875
+ "strategy_index",
8876
+ "funding_clamp_small",
8877
+ "funding_clamp_big",
8878
+ "base_interest_rate"
8850
8879
  ]
8851
8880
  },
8852
8881
  "PnLEntry": {
@@ -11145,6 +11174,12 @@
11145
11174
  "cursor": {
11146
11175
  "type": "string"
11147
11176
  },
11177
+ "limit": {
11178
+ "type": "integer",
11179
+ "format": "int64",
11180
+ "maximum": 300,
11181
+ "minimum": 1
11182
+ },
11148
11183
  "stats_start_timestamp": {
11149
11184
  "type": "integer",
11150
11185
  "format": "int64"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.246",
3
+ "version": "1.0.247",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {