zklighter-perps 1.0.180 → 1.0.182

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.
@@ -0,0 +1,367 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { MarketConfig } from './MarketConfig';
17
+ import {
18
+ MarketConfigFromJSON,
19
+ MarketConfigFromJSONTyped,
20
+ MarketConfigToJSON,
21
+ } from './MarketConfig';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface PerpsOrderBookDetail
27
+ */
28
+ export interface PerpsOrderBookDetail {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof PerpsOrderBookDetail
33
+ */
34
+ symbol: string;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof PerpsOrderBookDetail
39
+ */
40
+ market_id: number;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof PerpsOrderBookDetail
45
+ */
46
+ market_type: PerpsOrderBookDetailMarketTypeEnum;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof PerpsOrderBookDetail
51
+ */
52
+ base_asset_id: number;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof PerpsOrderBookDetail
57
+ */
58
+ quote_asset_id: number;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof PerpsOrderBookDetail
63
+ */
64
+ status: PerpsOrderBookDetailStatusEnum;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof PerpsOrderBookDetail
69
+ */
70
+ taker_fee: string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof PerpsOrderBookDetail
75
+ */
76
+ maker_fee: string;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof PerpsOrderBookDetail
81
+ */
82
+ liquidation_fee: string;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof PerpsOrderBookDetail
87
+ */
88
+ min_base_amount: string;
89
+ /**
90
+ *
91
+ * @type {string}
92
+ * @memberof PerpsOrderBookDetail
93
+ */
94
+ min_quote_amount: string;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof PerpsOrderBookDetail
99
+ */
100
+ order_quote_limit: string;
101
+ /**
102
+ *
103
+ * @type {number}
104
+ * @memberof PerpsOrderBookDetail
105
+ */
106
+ supported_size_decimals: number;
107
+ /**
108
+ *
109
+ * @type {number}
110
+ * @memberof PerpsOrderBookDetail
111
+ */
112
+ supported_price_decimals: number;
113
+ /**
114
+ *
115
+ * @type {number}
116
+ * @memberof PerpsOrderBookDetail
117
+ */
118
+ supported_quote_decimals: number;
119
+ /**
120
+ *
121
+ * @type {number}
122
+ * @memberof PerpsOrderBookDetail
123
+ */
124
+ size_decimals: number;
125
+ /**
126
+ *
127
+ * @type {number}
128
+ * @memberof PerpsOrderBookDetail
129
+ */
130
+ price_decimals: number;
131
+ /**
132
+ *
133
+ * @type {number}
134
+ * @memberof PerpsOrderBookDetail
135
+ */
136
+ quote_multiplier: number;
137
+ /**
138
+ *
139
+ * @type {number}
140
+ * @memberof PerpsOrderBookDetail
141
+ */
142
+ default_initial_margin_fraction: number;
143
+ /**
144
+ *
145
+ * @type {number}
146
+ * @memberof PerpsOrderBookDetail
147
+ */
148
+ min_initial_margin_fraction: number;
149
+ /**
150
+ *
151
+ * @type {number}
152
+ * @memberof PerpsOrderBookDetail
153
+ */
154
+ maintenance_margin_fraction: number;
155
+ /**
156
+ *
157
+ * @type {number}
158
+ * @memberof PerpsOrderBookDetail
159
+ */
160
+ closeout_margin_fraction: number;
161
+ /**
162
+ *
163
+ * @type {number}
164
+ * @memberof PerpsOrderBookDetail
165
+ */
166
+ last_trade_price: number;
167
+ /**
168
+ *
169
+ * @type {number}
170
+ * @memberof PerpsOrderBookDetail
171
+ */
172
+ daily_trades_count: number;
173
+ /**
174
+ *
175
+ * @type {number}
176
+ * @memberof PerpsOrderBookDetail
177
+ */
178
+ daily_base_token_volume: number;
179
+ /**
180
+ *
181
+ * @type {number}
182
+ * @memberof PerpsOrderBookDetail
183
+ */
184
+ daily_quote_token_volume: number;
185
+ /**
186
+ *
187
+ * @type {number}
188
+ * @memberof PerpsOrderBookDetail
189
+ */
190
+ daily_price_low: number;
191
+ /**
192
+ *
193
+ * @type {number}
194
+ * @memberof PerpsOrderBookDetail
195
+ */
196
+ daily_price_high: number;
197
+ /**
198
+ *
199
+ * @type {number}
200
+ * @memberof PerpsOrderBookDetail
201
+ */
202
+ daily_price_change: number;
203
+ /**
204
+ *
205
+ * @type {number}
206
+ * @memberof PerpsOrderBookDetail
207
+ */
208
+ open_interest: number;
209
+ /**
210
+ *
211
+ * @type {{ [key: string]: number; }}
212
+ * @memberof PerpsOrderBookDetail
213
+ */
214
+ daily_chart: { [key: string]: number; };
215
+ /**
216
+ *
217
+ * @type {MarketConfig}
218
+ * @memberof PerpsOrderBookDetail
219
+ */
220
+ market_config: MarketConfig;
221
+ }
222
+
223
+
224
+ /**
225
+ * @export
226
+ */
227
+ export const PerpsOrderBookDetailMarketTypeEnum = {
228
+ Perp: 'perp',
229
+ Spot: 'spot'
230
+ } as const;
231
+ export type PerpsOrderBookDetailMarketTypeEnum = typeof PerpsOrderBookDetailMarketTypeEnum[keyof typeof PerpsOrderBookDetailMarketTypeEnum];
232
+
233
+ /**
234
+ * @export
235
+ */
236
+ export const PerpsOrderBookDetailStatusEnum = {
237
+ Inactive: 'inactive',
238
+ Active: 'active'
239
+ } as const;
240
+ export type PerpsOrderBookDetailStatusEnum = typeof PerpsOrderBookDetailStatusEnum[keyof typeof PerpsOrderBookDetailStatusEnum];
241
+
242
+
243
+ /**
244
+ * Check if a given object implements the PerpsOrderBookDetail interface.
245
+ */
246
+ export function instanceOfPerpsOrderBookDetail(value: object): value is PerpsOrderBookDetail {
247
+ if (!('symbol' in value) || value['symbol'] === undefined) return false;
248
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
249
+ if (!('market_type' in value) || value['market_type'] === undefined) return false;
250
+ if (!('base_asset_id' in value) || value['base_asset_id'] === undefined) return false;
251
+ if (!('quote_asset_id' in value) || value['quote_asset_id'] === undefined) return false;
252
+ if (!('status' in value) || value['status'] === undefined) return false;
253
+ if (!('taker_fee' in value) || value['taker_fee'] === undefined) return false;
254
+ if (!('maker_fee' in value) || value['maker_fee'] === undefined) return false;
255
+ if (!('liquidation_fee' in value) || value['liquidation_fee'] === undefined) return false;
256
+ if (!('min_base_amount' in value) || value['min_base_amount'] === undefined) return false;
257
+ if (!('min_quote_amount' in value) || value['min_quote_amount'] === undefined) return false;
258
+ if (!('order_quote_limit' in value) || value['order_quote_limit'] === undefined) return false;
259
+ if (!('supported_size_decimals' in value) || value['supported_size_decimals'] === undefined) return false;
260
+ if (!('supported_price_decimals' in value) || value['supported_price_decimals'] === undefined) return false;
261
+ if (!('supported_quote_decimals' in value) || value['supported_quote_decimals'] === undefined) return false;
262
+ if (!('size_decimals' in value) || value['size_decimals'] === undefined) return false;
263
+ if (!('price_decimals' in value) || value['price_decimals'] === undefined) return false;
264
+ if (!('quote_multiplier' in value) || value['quote_multiplier'] === undefined) return false;
265
+ if (!('default_initial_margin_fraction' in value) || value['default_initial_margin_fraction'] === undefined) return false;
266
+ if (!('min_initial_margin_fraction' in value) || value['min_initial_margin_fraction'] === undefined) return false;
267
+ if (!('maintenance_margin_fraction' in value) || value['maintenance_margin_fraction'] === undefined) return false;
268
+ if (!('closeout_margin_fraction' in value) || value['closeout_margin_fraction'] === undefined) return false;
269
+ if (!('last_trade_price' in value) || value['last_trade_price'] === undefined) return false;
270
+ if (!('daily_trades_count' in value) || value['daily_trades_count'] === undefined) return false;
271
+ if (!('daily_base_token_volume' in value) || value['daily_base_token_volume'] === undefined) return false;
272
+ if (!('daily_quote_token_volume' in value) || value['daily_quote_token_volume'] === undefined) return false;
273
+ if (!('daily_price_low' in value) || value['daily_price_low'] === undefined) return false;
274
+ if (!('daily_price_high' in value) || value['daily_price_high'] === undefined) return false;
275
+ if (!('daily_price_change' in value) || value['daily_price_change'] === undefined) return false;
276
+ if (!('open_interest' in value) || value['open_interest'] === undefined) return false;
277
+ if (!('daily_chart' in value) || value['daily_chart'] === undefined) return false;
278
+ if (!('market_config' in value) || value['market_config'] === undefined) return false;
279
+ return true;
280
+ }
281
+
282
+ export function PerpsOrderBookDetailFromJSON(json: any): PerpsOrderBookDetail {
283
+ return PerpsOrderBookDetailFromJSONTyped(json, false);
284
+ }
285
+
286
+ export function PerpsOrderBookDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): PerpsOrderBookDetail {
287
+ if (json == null) {
288
+ return json;
289
+ }
290
+ return {
291
+
292
+ 'symbol': json['symbol'],
293
+ 'market_id': json['market_id'],
294
+ 'market_type': json['market_type'],
295
+ 'base_asset_id': json['base_asset_id'],
296
+ 'quote_asset_id': json['quote_asset_id'],
297
+ 'status': json['status'],
298
+ 'taker_fee': json['taker_fee'],
299
+ 'maker_fee': json['maker_fee'],
300
+ 'liquidation_fee': json['liquidation_fee'],
301
+ 'min_base_amount': json['min_base_amount'],
302
+ 'min_quote_amount': json['min_quote_amount'],
303
+ 'order_quote_limit': json['order_quote_limit'],
304
+ 'supported_size_decimals': json['supported_size_decimals'],
305
+ 'supported_price_decimals': json['supported_price_decimals'],
306
+ 'supported_quote_decimals': json['supported_quote_decimals'],
307
+ 'size_decimals': json['size_decimals'],
308
+ 'price_decimals': json['price_decimals'],
309
+ 'quote_multiplier': json['quote_multiplier'],
310
+ 'default_initial_margin_fraction': json['default_initial_margin_fraction'],
311
+ 'min_initial_margin_fraction': json['min_initial_margin_fraction'],
312
+ 'maintenance_margin_fraction': json['maintenance_margin_fraction'],
313
+ 'closeout_margin_fraction': json['closeout_margin_fraction'],
314
+ 'last_trade_price': json['last_trade_price'],
315
+ 'daily_trades_count': json['daily_trades_count'],
316
+ 'daily_base_token_volume': json['daily_base_token_volume'],
317
+ 'daily_quote_token_volume': json['daily_quote_token_volume'],
318
+ 'daily_price_low': json['daily_price_low'],
319
+ 'daily_price_high': json['daily_price_high'],
320
+ 'daily_price_change': json['daily_price_change'],
321
+ 'open_interest': json['open_interest'],
322
+ 'daily_chart': json['daily_chart'],
323
+ 'market_config': MarketConfigFromJSON(json['market_config']),
324
+ };
325
+ }
326
+
327
+ export function PerpsOrderBookDetailToJSON(value?: PerpsOrderBookDetail | null): any {
328
+ if (value == null) {
329
+ return value;
330
+ }
331
+ return {
332
+
333
+ 'symbol': value['symbol'],
334
+ 'market_id': value['market_id'],
335
+ 'market_type': value['market_type'],
336
+ 'base_asset_id': value['base_asset_id'],
337
+ 'quote_asset_id': value['quote_asset_id'],
338
+ 'status': value['status'],
339
+ 'taker_fee': value['taker_fee'],
340
+ 'maker_fee': value['maker_fee'],
341
+ 'liquidation_fee': value['liquidation_fee'],
342
+ 'min_base_amount': value['min_base_amount'],
343
+ 'min_quote_amount': value['min_quote_amount'],
344
+ 'order_quote_limit': value['order_quote_limit'],
345
+ 'supported_size_decimals': value['supported_size_decimals'],
346
+ 'supported_price_decimals': value['supported_price_decimals'],
347
+ 'supported_quote_decimals': value['supported_quote_decimals'],
348
+ 'size_decimals': value['size_decimals'],
349
+ 'price_decimals': value['price_decimals'],
350
+ 'quote_multiplier': value['quote_multiplier'],
351
+ 'default_initial_margin_fraction': value['default_initial_margin_fraction'],
352
+ 'min_initial_margin_fraction': value['min_initial_margin_fraction'],
353
+ 'maintenance_margin_fraction': value['maintenance_margin_fraction'],
354
+ 'closeout_margin_fraction': value['closeout_margin_fraction'],
355
+ 'last_trade_price': value['last_trade_price'],
356
+ 'daily_trades_count': value['daily_trades_count'],
357
+ 'daily_base_token_volume': value['daily_base_token_volume'],
358
+ 'daily_quote_token_volume': value['daily_quote_token_volume'],
359
+ 'daily_price_low': value['daily_price_low'],
360
+ 'daily_price_high': value['daily_price_high'],
361
+ 'daily_price_change': value['daily_price_change'],
362
+ 'open_interest': value['open_interest'],
363
+ 'daily_chart': value['daily_chart'],
364
+ 'market_config': MarketConfigToJSON(value['market_config']),
365
+ };
366
+ }
367
+
@@ -31,6 +31,12 @@ export interface PnLEntry {
31
31
  * @memberof PnLEntry
32
32
  */
33
33
  trade_pnl: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof PnLEntry
38
+ */
39
+ trade_spot_pnl: number;
34
40
  /**
35
41
  *
36
42
  * @type {number}
@@ -43,6 +49,18 @@ export interface PnLEntry {
43
49
  * @memberof PnLEntry
44
50
  */
45
51
  outflow: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof PnLEntry
56
+ */
57
+ spot_outflow: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof PnLEntry
62
+ */
63
+ spot_inflow: number;
46
64
  /**
47
65
  *
48
66
  * @type {number}
@@ -75,8 +93,11 @@ export interface PnLEntry {
75
93
  export function instanceOfPnLEntry(value: object): value is PnLEntry {
76
94
  if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
77
95
  if (!('trade_pnl' in value) || value['trade_pnl'] === undefined) return false;
96
+ if (!('trade_spot_pnl' in value) || value['trade_spot_pnl'] === undefined) return false;
78
97
  if (!('inflow' in value) || value['inflow'] === undefined) return false;
79
98
  if (!('outflow' in value) || value['outflow'] === undefined) return false;
99
+ if (!('spot_outflow' in value) || value['spot_outflow'] === undefined) return false;
100
+ if (!('spot_inflow' in value) || value['spot_inflow'] === undefined) return false;
80
101
  if (!('pool_pnl' in value) || value['pool_pnl'] === undefined) return false;
81
102
  if (!('pool_inflow' in value) || value['pool_inflow'] === undefined) return false;
82
103
  if (!('pool_outflow' in value) || value['pool_outflow'] === undefined) return false;
@@ -96,8 +117,11 @@ export function PnLEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
96
117
 
97
118
  'timestamp': json['timestamp'],
98
119
  'trade_pnl': json['trade_pnl'],
120
+ 'trade_spot_pnl': json['trade_spot_pnl'],
99
121
  'inflow': json['inflow'],
100
122
  'outflow': json['outflow'],
123
+ 'spot_outflow': json['spot_outflow'],
124
+ 'spot_inflow': json['spot_inflow'],
101
125
  'pool_pnl': json['pool_pnl'],
102
126
  'pool_inflow': json['pool_inflow'],
103
127
  'pool_outflow': json['pool_outflow'],
@@ -113,8 +137,11 @@ export function PnLEntryToJSON(value?: PnLEntry | null): any {
113
137
 
114
138
  'timestamp': value['timestamp'],
115
139
  'trade_pnl': value['trade_pnl'],
140
+ 'trade_spot_pnl': value['trade_spot_pnl'],
116
141
  'inflow': value['inflow'],
117
142
  'outflow': value['outflow'],
143
+ 'spot_outflow': value['spot_outflow'],
144
+ 'spot_inflow': value['spot_inflow'],
118
145
  'pool_pnl': value['pool_pnl'],
119
146
  'pool_inflow': value['pool_inflow'],
120
147
  'pool_outflow': value['pool_outflow'],
@@ -68,12 +68,6 @@ export interface PublicPoolInfo {
68
68
  * @memberof PublicPoolInfo
69
69
  */
70
70
  annual_percentage_yield: number;
71
- /**
72
- *
73
- * @type {number}
74
- * @memberof PublicPoolInfo
75
- */
76
- sharpe_ratio: number;
77
71
  /**
78
72
  *
79
73
  * @type {Array<DailyReturn>}
@@ -98,7 +92,6 @@ export function instanceOfPublicPoolInfo(value: object): value is PublicPoolInfo
98
92
  if (!('total_shares' in value) || value['total_shares'] === undefined) return false;
99
93
  if (!('operator_shares' in value) || value['operator_shares'] === undefined) return false;
100
94
  if (!('annual_percentage_yield' in value) || value['annual_percentage_yield'] === undefined) return false;
101
- if (!('sharpe_ratio' in value) || value['sharpe_ratio'] === undefined) return false;
102
95
  if (!('daily_returns' in value) || value['daily_returns'] === undefined) return false;
103
96
  if (!('share_prices' in value) || value['share_prices'] === undefined) return false;
104
97
  return true;
@@ -120,7 +113,6 @@ export function PublicPoolInfoFromJSONTyped(json: any, ignoreDiscriminator: bool
120
113
  'total_shares': json['total_shares'],
121
114
  'operator_shares': json['operator_shares'],
122
115
  'annual_percentage_yield': json['annual_percentage_yield'],
123
- 'sharpe_ratio': json['sharpe_ratio'],
124
116
  'daily_returns': ((json['daily_returns'] as Array<any>).map(DailyReturnFromJSON)),
125
117
  'share_prices': ((json['share_prices'] as Array<any>).map(SharePriceFromJSON)),
126
118
  };
@@ -138,7 +130,6 @@ export function PublicPoolInfoToJSON(value?: PublicPoolInfo | null): any {
138
130
  'total_shares': value['total_shares'],
139
131
  'operator_shares': value['operator_shares'],
140
132
  'annual_percentage_yield': value['annual_percentage_yield'],
141
- 'sharpe_ratio': value['sharpe_ratio'],
142
133
  'daily_returns': ((value['daily_returns'] as Array<any>).map(DailyReturnToJSON)),
143
134
  'share_prices': ((value['share_prices'] as Array<any>).map(SharePriceToJSON)),
144
135
  };
@@ -44,12 +44,6 @@ export interface PublicPoolMetadata {
44
44
  * @memberof PublicPoolMetadata
45
45
  */
46
46
  account_index: number;
47
- /**
48
- *
49
- * @type {number}
50
- * @memberof PublicPoolMetadata
51
- */
52
- created_at: number;
53
47
  /**
54
48
  *
55
49
  * @type {number}
@@ -80,12 +74,6 @@ export interface PublicPoolMetadata {
80
74
  * @memberof PublicPoolMetadata
81
75
  */
82
76
  annual_percentage_yield: number;
83
- /**
84
- *
85
- * @type {number}
86
- * @memberof PublicPoolMetadata
87
- */
88
- sharpe_ratio: number;
89
77
  /**
90
78
  *
91
79
  * @type {number}
@@ -124,13 +112,11 @@ export interface PublicPoolMetadata {
124
112
  export function instanceOfPublicPoolMetadata(value: object): value is PublicPoolMetadata {
125
113
  if (!('code' in value) || value['code'] === undefined) return false;
126
114
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
127
- if (!('created_at' in value) || value['created_at'] === undefined) return false;
128
115
  if (!('master_account_index' in value) || value['master_account_index'] === undefined) return false;
129
116
  if (!('account_type' in value) || value['account_type'] === undefined) return false;
130
117
  if (!('name' in value) || value['name'] === undefined) return false;
131
118
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
132
119
  if (!('annual_percentage_yield' in value) || value['annual_percentage_yield'] === undefined) return false;
133
- if (!('sharpe_ratio' in value) || value['sharpe_ratio'] === undefined) return false;
134
120
  if (!('status' in value) || value['status'] === undefined) return false;
135
121
  if (!('operator_fee' in value) || value['operator_fee'] === undefined) return false;
136
122
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
@@ -151,13 +137,11 @@ export function PublicPoolMetadataFromJSONTyped(json: any, ignoreDiscriminator:
151
137
  'code': json['code'],
152
138
  'message': json['message'] == null ? undefined : json['message'],
153
139
  'account_index': json['account_index'],
154
- 'created_at': json['created_at'],
155
140
  'master_account_index': json['master_account_index'],
156
141
  'account_type': json['account_type'],
157
142
  'name': json['name'],
158
143
  'l1_address': json['l1_address'],
159
144
  'annual_percentage_yield': json['annual_percentage_yield'],
160
- 'sharpe_ratio': json['sharpe_ratio'],
161
145
  'status': json['status'],
162
146
  'operator_fee': json['operator_fee'],
163
147
  'total_asset_value': json['total_asset_value'],
@@ -175,13 +159,11 @@ export function PublicPoolMetadataToJSON(value?: PublicPoolMetadata | null): any
175
159
  'code': value['code'],
176
160
  'message': value['message'],
177
161
  'account_index': value['account_index'],
178
- 'created_at': value['created_at'],
179
162
  'master_account_index': value['master_account_index'],
180
163
  'account_type': value['account_type'],
181
164
  'name': value['name'],
182
165
  'l1_address': value['l1_address'],
183
166
  'annual_percentage_yield': value['annual_percentage_yield'],
184
- 'sharpe_ratio': value['sharpe_ratio'],
185
167
  'status': value['status'],
186
168
  'operator_fee': value['operator_fee'],
187
169
  'total_asset_value': value['total_asset_value'],
@@ -25,6 +25,12 @@ export interface ReqDoFaucet {
25
25
  * @memberof ReqDoFaucet
26
26
  */
27
27
  l1_address: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof ReqDoFaucet
32
+ */
33
+ do_l1_transfer: boolean;
28
34
  }
29
35
 
30
36
  /**
@@ -32,6 +38,7 @@ export interface ReqDoFaucet {
32
38
  */
33
39
  export function instanceOfReqDoFaucet(value: object): value is ReqDoFaucet {
34
40
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
41
+ if (!('do_l1_transfer' in value) || value['do_l1_transfer'] === undefined) return false;
35
42
  return true;
36
43
  }
37
44
 
@@ -46,6 +53,7 @@ export function ReqDoFaucetFromJSONTyped(json: any, ignoreDiscriminator: boolean
46
53
  return {
47
54
 
48
55
  'l1_address': json['l1_address'],
56
+ 'do_l1_transfer': json['do_l1_transfer'],
49
57
  };
50
58
  }
51
59
 
@@ -56,6 +64,7 @@ export function ReqDoFaucetToJSON(value?: ReqDoFaucet | null): any {
56
64
  return {
57
65
 
58
66
  'l1_address': value['l1_address'],
67
+ 'do_l1_transfer': value['do_l1_transfer'],
59
68
  };
60
69
  }
61
70
 
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ReqGetAssetDetails
20
+ */
21
+ export interface ReqGetAssetDetails {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ReqGetAssetDetails
26
+ */
27
+ asset_id?: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ReqGetAssetDetails interface.
32
+ */
33
+ export function instanceOfReqGetAssetDetails(value: object): value is ReqGetAssetDetails {
34
+ return true;
35
+ }
36
+
37
+ export function ReqGetAssetDetailsFromJSON(json: any): ReqGetAssetDetails {
38
+ return ReqGetAssetDetailsFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ReqGetAssetDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetAssetDetails {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'asset_id': json['asset_id'] == null ? undefined : json['asset_id'],
48
+ };
49
+ }
50
+
51
+ export function ReqGetAssetDetailsToJSON(value?: ReqGetAssetDetails | null): any {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+
57
+ 'asset_id': value['asset_id'],
58
+ };
59
+ }
60
+
@@ -25,8 +25,26 @@ export interface ReqGetOrderBookDetails {
25
25
  * @memberof ReqGetOrderBookDetails
26
26
  */
27
27
  market_id?: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReqGetOrderBookDetails
32
+ */
33
+ filter?: ReqGetOrderBookDetailsFilterEnum;
28
34
  }
29
35
 
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const ReqGetOrderBookDetailsFilterEnum = {
41
+ All: 'all',
42
+ Spot: 'spot',
43
+ Perp: 'perp'
44
+ } as const;
45
+ export type ReqGetOrderBookDetailsFilterEnum = typeof ReqGetOrderBookDetailsFilterEnum[keyof typeof ReqGetOrderBookDetailsFilterEnum];
46
+
47
+
30
48
  /**
31
49
  * Check if a given object implements the ReqGetOrderBookDetails interface.
32
50
  */
@@ -45,6 +63,7 @@ export function ReqGetOrderBookDetailsFromJSONTyped(json: any, ignoreDiscriminat
45
63
  return {
46
64
 
47
65
  'market_id': json['market_id'] == null ? undefined : json['market_id'],
66
+ 'filter': json['filter'] == null ? undefined : json['filter'],
48
67
  };
49
68
  }
50
69
 
@@ -55,6 +74,7 @@ export function ReqGetOrderBookDetailsToJSON(value?: ReqGetOrderBookDetails | nu
55
74
  return {
56
75
 
57
76
  'market_id': value['market_id'],
77
+ 'filter': value['filter'],
58
78
  };
59
79
  }
60
80