zklighter-perps 1.0.244 → 1.0.246

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/apis/OrderApi.ts CHANGED
@@ -144,6 +144,8 @@ export interface TradesRequest {
144
144
  role?: TradesRoleEnum;
145
145
  type?: TradesTypeEnum;
146
146
  aggregate?: boolean;
147
+ skip_ask_order_id?: string;
148
+ skip_bid_order_id?: string;
147
149
  }
148
150
 
149
151
  /**
@@ -819,6 +821,14 @@ export class OrderApi extends runtime.BaseAPI {
819
821
  queryParameters['aggregate'] = requestParameters['aggregate'];
820
822
  }
821
823
 
824
+ if (requestParameters['skip_ask_order_id'] != null) {
825
+ queryParameters['skip_ask_order_id'] = requestParameters['skip_ask_order_id'];
826
+ }
827
+
828
+ if (requestParameters['skip_bid_order_id'] != null) {
829
+ queryParameters['skip_bid_order_id'] = requestParameters['skip_bid_order_id'];
830
+ }
831
+
822
832
  const headerParameters: runtime.HTTPHeaders = {};
823
833
 
824
834
  const response = await this.request({
@@ -55,6 +55,12 @@ export interface AccountMetadata {
55
55
  * @memberof AccountMetadata
56
56
  */
57
57
  can_rfq: boolean;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof AccountMetadata
62
+ */
63
+ can_rfq_market_ids: Array<string>;
58
64
  /**
59
65
  *
60
66
  * @type {number}
@@ -73,6 +79,7 @@ export function instanceOfAccountMetadata(value: object): value is AccountMetada
73
79
  if (!('can_invite' in value) || value['can_invite'] === undefined) return false;
74
80
  if (!('referral_points_percentage' in value) || value['referral_points_percentage'] === undefined) return false;
75
81
  if (!('can_rfq' in value) || value['can_rfq'] === undefined) return false;
82
+ if (!('can_rfq_market_ids' in value) || value['can_rfq_market_ids'] === undefined) return false;
76
83
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
77
84
  return true;
78
85
  }
@@ -93,6 +100,7 @@ export function AccountMetadataFromJSONTyped(json: any, ignoreDiscriminator: boo
93
100
  'can_invite': json['can_invite'],
94
101
  'referral_points_percentage': json['referral_points_percentage'],
95
102
  'can_rfq': json['can_rfq'],
103
+ 'can_rfq_market_ids': json['can_rfq_market_ids'],
96
104
  'created_at': json['created_at'],
97
105
  };
98
106
  }
@@ -109,6 +117,7 @@ export function AccountMetadataToJSON(value?: AccountMetadata | null): any {
109
117
  'can_invite': value['can_invite'],
110
118
  'referral_points_percentage': value['referral_points_percentage'],
111
119
  'can_rfq': value['can_rfq'],
120
+ 'can_rfq_market_ids': value['can_rfq_market_ids'],
112
121
  'created_at': value['created_at'],
113
122
  };
114
123
  }
@@ -176,6 +176,12 @@ export interface DetailedAccount {
176
176
  * @memberof DetailedAccount
177
177
  */
178
178
  can_rfq: boolean;
179
+ /**
180
+ *
181
+ * @type {Array<string>}
182
+ * @memberof DetailedAccount
183
+ */
184
+ can_rfq_market_ids: Array<string>;
179
185
  /**
180
186
  *
181
187
  * @type {number}
@@ -266,6 +272,7 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
266
272
  if (!('can_invite' in value) || value['can_invite'] === undefined) return false;
267
273
  if (!('referral_points_percentage' in value) || value['referral_points_percentage'] === undefined) return false;
268
274
  if (!('can_rfq' in value) || value['can_rfq'] === undefined) return false;
275
+ if (!('can_rfq_market_ids' in value) || value['can_rfq_market_ids'] === undefined) return false;
269
276
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
270
277
  if (!('positions' in value) || value['positions'] === undefined) return false;
271
278
  if (!('assets' in value) || value['assets'] === undefined) return false;
@@ -308,6 +315,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
308
315
  'can_invite': json['can_invite'],
309
316
  'referral_points_percentage': json['referral_points_percentage'],
310
317
  'can_rfq': json['can_rfq'],
318
+ 'can_rfq_market_ids': json['can_rfq_market_ids'],
311
319
  'created_at': json['created_at'],
312
320
  'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
313
321
  'assets': ((json['assets'] as Array<any>).map(AccountAssetFromJSON)),
@@ -348,6 +356,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
348
356
  'can_invite': value['can_invite'],
349
357
  'referral_points_percentage': value['referral_points_percentage'],
350
358
  'can_rfq': value['can_rfq'],
359
+ 'can_rfq_market_ids': value['can_rfq_market_ids'],
351
360
  'created_at': value['created_at'],
352
361
  'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
353
362
  'assets': ((value['assets'] as Array<any>).map(AccountAssetToJSON)),
@@ -103,6 +103,18 @@ export interface ReqGetTrades {
103
103
  * @memberof ReqGetTrades
104
104
  */
105
105
  aggregate?: boolean;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof ReqGetTrades
110
+ */
111
+ skip_ask_order_id?: string;
112
+ /**
113
+ *
114
+ * @type {string}
115
+ * @memberof ReqGetTrades
116
+ */
117
+ skip_bid_order_id?: string;
106
118
  }
107
119
 
108
120
 
@@ -190,6 +202,8 @@ export function ReqGetTradesFromJSONTyped(json: any, ignoreDiscriminator: boolea
190
202
  'type': json['type'] == null ? undefined : json['type'],
191
203
  'limit': json['limit'],
192
204
  'aggregate': json['aggregate'] == null ? undefined : json['aggregate'],
205
+ 'skip_ask_order_id': json['skip_ask_order_id'] == null ? undefined : json['skip_ask_order_id'],
206
+ 'skip_bid_order_id': json['skip_bid_order_id'] == null ? undefined : json['skip_bid_order_id'],
193
207
  };
194
208
  }
195
209
 
@@ -213,6 +227,8 @@ export function ReqGetTradesToJSON(value?: ReqGetTrades | null): any {
213
227
  'type': value['type'],
214
228
  'limit': value['limit'],
215
229
  'aggregate': value['aggregate'],
230
+ 'skip_ask_order_id': value['skip_ask_order_id'],
231
+ 'skip_bid_order_id': value['skip_bid_order_id'],
216
232
  };
217
233
  }
218
234
 
package/openapi.json CHANGED
@@ -4299,6 +4299,18 @@
4299
4299
  "type": "boolean",
4300
4300
  "format": "boolean",
4301
4301
  "default": "false"
4302
+ },
4303
+ {
4304
+ "name": "skip_ask_order_id",
4305
+ "in": "query",
4306
+ "required": false,
4307
+ "type": "string"
4308
+ },
4309
+ {
4310
+ "name": "skip_bid_order_id",
4311
+ "in": "query",
4312
+ "required": false,
4313
+ "type": "string"
4302
4314
  }
4303
4315
  ],
4304
4316
  "tags": [
@@ -5049,6 +5061,12 @@
5049
5061
  "type": "boolean",
5050
5062
  "format": "boolean"
5051
5063
  },
5064
+ "can_rfq_market_ids": {
5065
+ "type": "array",
5066
+ "items": {
5067
+ "type": "string"
5068
+ }
5069
+ },
5052
5070
  "created_at": {
5053
5071
  "type": "integer",
5054
5072
  "format": "int64"
@@ -5062,6 +5080,7 @@
5062
5080
  "can_invite",
5063
5081
  "referral_points_percentage",
5064
5082
  "can_rfq",
5083
+ "can_rfq_market_ids",
5065
5084
  "created_at"
5066
5085
  ]
5067
5086
  },
@@ -6510,6 +6529,12 @@
6510
6529
  "type": "boolean",
6511
6530
  "format": "boolean"
6512
6531
  },
6532
+ "can_rfq_market_ids": {
6533
+ "type": "array",
6534
+ "items": {
6535
+ "type": "string"
6536
+ }
6537
+ },
6513
6538
  "created_at": {
6514
6539
  "type": "integer",
6515
6540
  "format": "int64"
@@ -6584,6 +6609,7 @@
6584
6609
  "can_invite",
6585
6610
  "referral_points_percentage",
6586
6611
  "can_rfq",
6612
+ "can_rfq_market_ids",
6587
6613
  "created_at",
6588
6614
  "positions",
6589
6615
  "assets",
@@ -11017,6 +11043,12 @@
11017
11043
  "type": "boolean",
11018
11044
  "format": "boolean",
11019
11045
  "default": "false"
11046
+ },
11047
+ "skip_ask_order_id": {
11048
+ "type": "string"
11049
+ },
11050
+ "skip_bid_order_id": {
11051
+ "type": "string"
11020
11052
  }
11021
11053
  },
11022
11054
  "title": "ReqGetTrades",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.244",
3
+ "version": "1.0.246",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {