zklighter-perps 1.0.246 → 1.0.248

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.
@@ -35,14 +35,12 @@ export interface PushnotifRegisterRequest {
35
35
 
36
36
  export interface PushnotifSettingsGetRequest {
37
37
  account_index: number;
38
- expo_token: string;
39
38
  authorization?: string;
40
39
  auth?: string;
41
40
  }
42
41
 
43
42
  export interface PushnotifSettingsPostRequest {
44
43
  account_index: number;
45
- expo_token: string;
46
44
  enabled: boolean;
47
45
  auth?: string;
48
46
  }
@@ -154,13 +152,6 @@ export class PushnotifApi extends runtime.BaseAPI {
154
152
  );
155
153
  }
156
154
 
157
- if (requestParameters['expo_token'] == null) {
158
- throw new runtime.RequiredError(
159
- 'expo_token',
160
- 'Required parameter "expo_token" was null or undefined when calling pushnotifSettingsGet().'
161
- );
162
- }
163
-
164
155
  const queryParameters: any = {};
165
156
 
166
157
  if (requestParameters['authorization'] != null) {
@@ -175,10 +166,6 @@ export class PushnotifApi extends runtime.BaseAPI {
175
166
  queryParameters['account_index'] = requestParameters['account_index'];
176
167
  }
177
168
 
178
- if (requestParameters['expo_token'] != null) {
179
- queryParameters['expo_token'] = requestParameters['expo_token'];
180
- }
181
-
182
169
  const headerParameters: runtime.HTTPHeaders = {};
183
170
 
184
171
  const response = await this.request({
@@ -212,13 +199,6 @@ export class PushnotifApi extends runtime.BaseAPI {
212
199
  );
213
200
  }
214
201
 
215
- if (requestParameters['expo_token'] == null) {
216
- throw new runtime.RequiredError(
217
- 'expo_token',
218
- 'Required parameter "expo_token" was null or undefined when calling pushnotifSettingsPost().'
219
- );
220
- }
221
-
222
202
  if (requestParameters['enabled'] == null) {
223
203
  throw new runtime.RequiredError(
224
204
  'enabled',
@@ -252,10 +232,6 @@ export class PushnotifApi extends runtime.BaseAPI {
252
232
  formParams.append('account_index', requestParameters['account_index'] as any);
253
233
  }
254
234
 
255
- if (requestParameters['expo_token'] != null) {
256
- formParams.append('expo_token', requestParameters['expo_token'] as any);
257
- }
258
-
259
235
  if (requestParameters['enabled'] != null) {
260
236
  formParams.append('enabled', requestParameters['enabled'] as any);
261
237
  }
@@ -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
 
@@ -31,12 +31,6 @@ export interface ReqGetPushNotifSettings {
31
31
  * @memberof ReqGetPushNotifSettings
32
32
  */
33
33
  account_index: number;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof ReqGetPushNotifSettings
38
- */
39
- expo_token: string;
40
34
  }
41
35
 
42
36
  /**
@@ -44,7 +38,6 @@ export interface ReqGetPushNotifSettings {
44
38
  */
45
39
  export function instanceOfReqGetPushNotifSettings(value: object): value is ReqGetPushNotifSettings {
46
40
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
47
- if (!('expo_token' in value) || value['expo_token'] === undefined) return false;
48
41
  return true;
49
42
  }
50
43
 
@@ -60,7 +53,6 @@ export function ReqGetPushNotifSettingsFromJSONTyped(json: any, ignoreDiscrimina
60
53
 
61
54
  'auth': json['auth'] == null ? undefined : json['auth'],
62
55
  'account_index': json['account_index'],
63
- 'expo_token': json['expo_token'],
64
56
  };
65
57
  }
66
58
 
@@ -72,7 +64,6 @@ export function ReqGetPushNotifSettingsToJSON(value?: ReqGetPushNotifSettings |
72
64
 
73
65
  'auth': value['auth'],
74
66
  'account_index': value['account_index'],
75
- 'expo_token': value['expo_token'],
76
67
  };
77
68
  }
78
69
 
@@ -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
  };
@@ -31,12 +31,6 @@ export interface RespGetPushNotifSettings {
31
31
  * @memberof RespGetPushNotifSettings
32
32
  */
33
33
  message?: string;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof RespGetPushNotifSettings
38
- */
39
- account_index: number;
40
34
  /**
41
35
  *
42
36
  * @type {boolean}
@@ -50,7 +44,6 @@ export interface RespGetPushNotifSettings {
50
44
  */
51
45
  export function instanceOfRespGetPushNotifSettings(value: object): value is RespGetPushNotifSettings {
52
46
  if (!('code' in value) || value['code'] === undefined) return false;
53
- if (!('account_index' in value) || value['account_index'] === undefined) return false;
54
47
  if (!('enabled' in value) || value['enabled'] === undefined) return false;
55
48
  return true;
56
49
  }
@@ -67,7 +60,6 @@ export function RespGetPushNotifSettingsFromJSONTyped(json: any, ignoreDiscrimin
67
60
 
68
61
  'code': json['code'],
69
62
  'message': json['message'] == null ? undefined : json['message'],
70
- 'account_index': json['account_index'],
71
63
  'enabled': json['enabled'],
72
64
  };
73
65
  }
@@ -80,7 +72,6 @@ export function RespGetPushNotifSettingsToJSON(value?: RespGetPushNotifSettings
80
72
 
81
73
  'code': value['code'],
82
74
  'message': value['message'],
83
- 'account_index': value['account_index'],
84
75
  'enabled': value['enabled'],
85
76
  };
86
77
  }
package/openapi.json CHANGED
@@ -3080,12 +3080,6 @@
3080
3080
  "required": true,
3081
3081
  "type": "integer",
3082
3082
  "format": "int64"
3083
- },
3084
- {
3085
- "name": "expo_token",
3086
- "in": "query",
3087
- "required": true,
3088
- "type": "string"
3089
3083
  }
3090
3084
  ],
3091
3085
  "tags": [
@@ -3533,6 +3527,15 @@
3533
3527
  "required": false,
3534
3528
  "type": "string"
3535
3529
  },
3530
+ {
3531
+ "name": "limit",
3532
+ "in": "query",
3533
+ "required": false,
3534
+ "type": "integer",
3535
+ "format": "int64",
3536
+ "minimum": 1,
3537
+ "maximum": 300
3538
+ },
3536
3539
  {
3537
3540
  "name": "stats_start_timestamp",
3538
3541
  "in": "query",
@@ -8608,6 +8611,10 @@
8608
8611
  "type": "number",
8609
8612
  "format": "double",
8610
8613
  "example": "3.66"
8614
+ },
8615
+ "base_interest_rate": {
8616
+ "type": "string",
8617
+ "example": "0.0001"
8611
8618
  }
8612
8619
  },
8613
8620
  "title": "PerpsMarketStats",
@@ -8629,7 +8636,8 @@
8629
8636
  "daily_quote_token_volume",
8630
8637
  "daily_price_low",
8631
8638
  "daily_price_high",
8632
- "daily_price_change"
8639
+ "daily_price_change",
8640
+ "base_interest_rate"
8633
8641
  ]
8634
8642
  },
8635
8643
  "PerpsOrderBookDetail": {
@@ -8808,6 +8816,18 @@
8808
8816
  "strategy_index": {
8809
8817
  "type": "integer",
8810
8818
  "format": "uint8"
8819
+ },
8820
+ "funding_clamp_small": {
8821
+ "type": "string",
8822
+ "example": "0.005"
8823
+ },
8824
+ "funding_clamp_big": {
8825
+ "type": "string",
8826
+ "example": "0.4"
8827
+ },
8828
+ "base_interest_rate": {
8829
+ "type": "string",
8830
+ "example": "0.0001"
8811
8831
  }
8812
8832
  },
8813
8833
  "title": "PerpsOrderBookDetail",
@@ -8846,7 +8866,10 @@
8846
8866
  "open_interest",
8847
8867
  "daily_chart",
8848
8868
  "market_config",
8849
- "strategy_index"
8869
+ "strategy_index",
8870
+ "funding_clamp_small",
8871
+ "funding_clamp_big",
8872
+ "base_interest_rate"
8850
8873
  ]
8851
8874
  },
8852
8875
  "PnLEntry": {
@@ -10813,15 +10836,11 @@
10813
10836
  "account_index": {
10814
10837
  "type": "integer",
10815
10838
  "format": "int64"
10816
- },
10817
- "expo_token": {
10818
- "type": "string"
10819
10839
  }
10820
10840
  },
10821
10841
  "title": "ReqGetPushNotifSettings",
10822
10842
  "required": [
10823
- "account_index",
10824
- "expo_token"
10843
+ "account_index"
10825
10844
  ]
10826
10845
  },
10827
10846
  "ReqGetRFQ": {
@@ -11145,6 +11164,12 @@
11145
11164
  "cursor": {
11146
11165
  "type": "string"
11147
11166
  },
11167
+ "limit": {
11168
+ "type": "integer",
11169
+ "format": "int64",
11170
+ "maximum": 300,
11171
+ "minimum": 1
11172
+ },
11148
11173
  "stats_start_timestamp": {
11149
11174
  "type": "integer",
11150
11175
  "format": "int64"
@@ -11501,9 +11526,6 @@
11501
11526
  "type": "integer",
11502
11527
  "format": "int64"
11503
11528
  },
11504
- "expo_token": {
11505
- "type": "string"
11506
- },
11507
11529
  "enabled": {
11508
11530
  "type": "boolean",
11509
11531
  "format": "boolean"
@@ -11512,7 +11534,6 @@
11512
11534
  "title": "ReqUpdatePushNotifSettings",
11513
11535
  "required": [
11514
11536
  "account_index",
11515
- "expo_token",
11516
11537
  "enabled"
11517
11538
  ]
11518
11539
  },
@@ -11975,10 +11996,6 @@
11975
11996
  "message": {
11976
11997
  "type": "string"
11977
11998
  },
11978
- "account_index": {
11979
- "type": "integer",
11980
- "format": "int64"
11981
- },
11982
11999
  "enabled": {
11983
12000
  "type": "boolean",
11984
12001
  "format": "boolean"
@@ -11987,7 +12004,6 @@
11987
12004
  "title": "RespGetPushNotifSettings",
11988
12005
  "required": [
11989
12006
  "code",
11990
- "account_index",
11991
12007
  "enabled"
11992
12008
  ]
11993
12009
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.246",
3
+ "version": "1.0.248",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {