zklighter-perps 1.0.119 → 1.0.121

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.
@@ -26,11 +26,11 @@ export interface ReqGetFastWithdrawInfo {
26
26
  */
27
27
  account_index: number;
28
28
  /**
29
- *
29
+ * made optional to support header auth clients
30
30
  * @type {string}
31
31
  * @memberof ReqGetFastWithdrawInfo
32
32
  */
33
- auth: string;
33
+ auth?: string;
34
34
  }
35
35
 
36
36
  /**
@@ -38,7 +38,6 @@ export interface ReqGetFastWithdrawInfo {
38
38
  */
39
39
  export function instanceOfReqGetFastWithdrawInfo(value: object): value is ReqGetFastWithdrawInfo {
40
40
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
41
- if (!('auth' in value) || value['auth'] === undefined) return false;
42
41
  return true;
43
42
  }
44
43
 
@@ -53,7 +52,7 @@ export function ReqGetFastWithdrawInfoFromJSONTyped(json: any, ignoreDiscriminat
53
52
  return {
54
53
 
55
54
  'account_index': json['account_index'],
56
- 'auth': json['auth'],
55
+ 'auth': json['auth'] == null ? undefined : json['auth'],
57
56
  };
58
57
  }
59
58
 
@@ -0,0 +1,69 @@
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 ReqGetL1Metadata
20
+ */
21
+ export interface ReqGetL1Metadata {
22
+ /**
23
+ * made optional to support header auth clients
24
+ * @type {string}
25
+ * @memberof ReqGetL1Metadata
26
+ */
27
+ auth?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReqGetL1Metadata
32
+ */
33
+ l1_address: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ReqGetL1Metadata interface.
38
+ */
39
+ export function instanceOfReqGetL1Metadata(value: object): value is ReqGetL1Metadata {
40
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function ReqGetL1MetadataFromJSON(json: any): ReqGetL1Metadata {
45
+ return ReqGetL1MetadataFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function ReqGetL1MetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetL1Metadata {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'auth': json['auth'] == null ? undefined : json['auth'],
55
+ 'l1_address': json['l1_address'],
56
+ };
57
+ }
58
+
59
+ export function ReqGetL1MetadataToJSON(value?: ReqGetL1Metadata | null): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+
65
+ 'auth': value['auth'],
66
+ 'l1_address': value['l1_address'],
67
+ };
68
+ }
69
+
@@ -20,11 +20,11 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface ReqGetReferralCode {
22
22
  /**
23
- *
23
+ * made optional to support header auth clients
24
24
  * @type {string}
25
25
  * @memberof ReqGetReferralCode
26
26
  */
27
- auth: string;
27
+ auth?: string;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -37,7 +37,6 @@ export interface ReqGetReferralCode {
37
37
  * Check if a given object implements the ReqGetReferralCode interface.
38
38
  */
39
39
  export function instanceOfReqGetReferralCode(value: object): value is ReqGetReferralCode {
40
- if (!('auth' in value) || value['auth'] === undefined) return false;
41
40
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
42
41
  return true;
43
42
  }
@@ -52,7 +51,7 @@ export function ReqGetReferralCodeFromJSONTyped(json: any, ignoreDiscriminator:
52
51
  }
53
52
  return {
54
53
 
55
- 'auth': json['auth'],
54
+ 'auth': json['auth'] == null ? undefined : json['auth'],
56
55
  'account_index': json['account_index'],
57
56
  };
58
57
  }
@@ -20,11 +20,11 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface ReqGetReferralPoints {
22
22
  /**
23
- *
23
+ * made optional to support header auth clients
24
24
  * @type {string}
25
25
  * @memberof ReqGetReferralPoints
26
26
  */
27
- auth: string;
27
+ auth?: string;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -37,7 +37,6 @@ export interface ReqGetReferralPoints {
37
37
  * Check if a given object implements the ReqGetReferralPoints interface.
38
38
  */
39
39
  export function instanceOfReqGetReferralPoints(value: object): value is ReqGetReferralPoints {
40
- if (!('auth' in value) || value['auth'] === undefined) return false;
41
40
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
42
41
  return true;
43
42
  }
@@ -52,7 +51,7 @@ export function ReqGetReferralPointsFromJSONTyped(json: any, ignoreDiscriminator
52
51
  }
53
52
  return {
54
53
 
55
- 'auth': json['auth'],
54
+ 'auth': json['auth'] == null ? undefined : json['auth'],
56
55
  'account_index': json['account_index'],
57
56
  };
58
57
  }
@@ -96,7 +96,6 @@ export type ReqGetTradesSortByEnum = typeof ReqGetTradesSortByEnum[keyof typeof
96
96
  * @export
97
97
  */
98
98
  export const ReqGetTradesSortDirEnum = {
99
- Asc: 'asc',
100
99
  Desc: 'desc'
101
100
  } as const;
102
101
  export type ReqGetTradesSortDirEnum = typeof ReqGetTradesSortDirEnum[keyof typeof ReqGetTradesSortDirEnum];
@@ -26,11 +26,11 @@ export interface ReqGetWithdrawHistory {
26
26
  */
27
27
  account_index: number;
28
28
  /**
29
- *
29
+ * made optional to support header auth clients
30
30
  * @type {string}
31
31
  * @memberof ReqGetWithdrawHistory
32
32
  */
33
- auth: string;
33
+ auth?: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -62,7 +62,6 @@ export type ReqGetWithdrawHistoryFilterEnum = typeof ReqGetWithdrawHistoryFilter
62
62
  */
63
63
  export function instanceOfReqGetWithdrawHistory(value: object): value is ReqGetWithdrawHistory {
64
64
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
65
- if (!('auth' in value) || value['auth'] === undefined) return false;
66
65
  return true;
67
66
  }
68
67
 
@@ -77,7 +76,7 @@ export function ReqGetWithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminato
77
76
  return {
78
77
 
79
78
  'account_index': json['account_index'],
80
- 'auth': json['auth'],
79
+ 'auth': json['auth'] == null ? undefined : json['auth'],
81
80
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
82
81
  'filter': json['filter'] == null ? undefined : json['filter'],
83
82
  };
@@ -43,6 +43,12 @@ export interface RespGetFastwithdrawalInfo {
43
43
  * @memberof RespGetFastwithdrawalInfo
44
44
  */
45
45
  withdraw_limit: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof RespGetFastwithdrawalInfo
50
+ */
51
+ max_withdrawal_amount: string;
46
52
  }
47
53
 
48
54
  /**
@@ -52,6 +58,7 @@ export function instanceOfRespGetFastwithdrawalInfo(value: object): value is Res
52
58
  if (!('code' in value) || value['code'] === undefined) return false;
53
59
  if (!('to_account_index' in value) || value['to_account_index'] === undefined) return false;
54
60
  if (!('withdraw_limit' in value) || value['withdraw_limit'] === undefined) return false;
61
+ if (!('max_withdrawal_amount' in value) || value['max_withdrawal_amount'] === undefined) return false;
55
62
  return true;
56
63
  }
57
64
 
@@ -69,6 +76,7 @@ export function RespGetFastwithdrawalInfoFromJSONTyped(json: any, ignoreDiscrimi
69
76
  'message': json['message'] == null ? undefined : json['message'],
70
77
  'to_account_index': json['to_account_index'],
71
78
  'withdraw_limit': json['withdraw_limit'],
79
+ 'max_withdrawal_amount': json['max_withdrawal_amount'],
72
80
  };
73
81
  }
74
82
 
@@ -82,6 +90,7 @@ export function RespGetFastwithdrawalInfoToJSON(value?: RespGetFastwithdrawalInf
82
90
  'message': value['message'],
83
91
  'to_account_index': value['to_account_index'],
84
92
  'withdraw_limit': value['withdraw_limit'],
93
+ 'max_withdrawal_amount': value['max_withdrawal_amount'],
85
94
  };
86
95
  }
87
96
 
package/models/Trade.ts CHANGED
@@ -111,16 +111,22 @@ export interface Trade {
111
111
  taker_fee: number;
112
112
  /**
113
113
  *
114
- * @type {number}
114
+ * @type {string}
115
+ * @memberof Trade
116
+ */
117
+ taker_position_size_before: string;
118
+ /**
119
+ *
120
+ * @type {string}
115
121
  * @memberof Trade
116
122
  */
117
- taker_position_size_before: number;
123
+ taker_entry_quote_before: string;
118
124
  /**
119
125
  *
120
126
  * @type {number}
121
127
  * @memberof Trade
122
128
  */
123
- taker_entry_quote_before: number;
129
+ taker_initial_margin_fraction_before: number;
124
130
  /**
125
131
  *
126
132
  * @type {boolean}
@@ -135,16 +141,22 @@ export interface Trade {
135
141
  maker_fee: number;
136
142
  /**
137
143
  *
138
- * @type {number}
144
+ * @type {string}
145
+ * @memberof Trade
146
+ */
147
+ maker_position_size_before: string;
148
+ /**
149
+ *
150
+ * @type {string}
139
151
  * @memberof Trade
140
152
  */
141
- maker_position_size_before: number;
153
+ maker_entry_quote_before: string;
142
154
  /**
143
155
  *
144
156
  * @type {number}
145
157
  * @memberof Trade
146
158
  */
147
- maker_entry_quote_before: number;
159
+ maker_initial_margin_fraction_before: number;
148
160
  /**
149
161
  *
150
162
  * @type {boolean}
@@ -186,10 +198,12 @@ export function instanceOfTrade(value: object): value is Trade {
186
198
  if (!('taker_fee' in value) || value['taker_fee'] === undefined) return false;
187
199
  if (!('taker_position_size_before' in value) || value['taker_position_size_before'] === undefined) return false;
188
200
  if (!('taker_entry_quote_before' in value) || value['taker_entry_quote_before'] === undefined) return false;
201
+ if (!('taker_initial_margin_fraction_before' in value) || value['taker_initial_margin_fraction_before'] === undefined) return false;
189
202
  if (!('taker_position_sign_changed' in value) || value['taker_position_sign_changed'] === undefined) return false;
190
203
  if (!('maker_fee' in value) || value['maker_fee'] === undefined) return false;
191
204
  if (!('maker_position_size_before' in value) || value['maker_position_size_before'] === undefined) return false;
192
205
  if (!('maker_entry_quote_before' in value) || value['maker_entry_quote_before'] === undefined) return false;
206
+ if (!('maker_initial_margin_fraction_before' in value) || value['maker_initial_margin_fraction_before'] === undefined) return false;
193
207
  if (!('maker_position_sign_changed' in value) || value['maker_position_sign_changed'] === undefined) return false;
194
208
  return true;
195
209
  }
@@ -221,10 +235,12 @@ export function TradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tra
221
235
  'taker_fee': json['taker_fee'],
222
236
  'taker_position_size_before': json['taker_position_size_before'],
223
237
  'taker_entry_quote_before': json['taker_entry_quote_before'],
238
+ 'taker_initial_margin_fraction_before': json['taker_initial_margin_fraction_before'],
224
239
  'taker_position_sign_changed': json['taker_position_sign_changed'],
225
240
  'maker_fee': json['maker_fee'],
226
241
  'maker_position_size_before': json['maker_position_size_before'],
227
242
  'maker_entry_quote_before': json['maker_entry_quote_before'],
243
+ 'maker_initial_margin_fraction_before': json['maker_initial_margin_fraction_before'],
228
244
  'maker_position_sign_changed': json['maker_position_sign_changed'],
229
245
  };
230
246
  }
@@ -252,10 +268,12 @@ export function TradeToJSON(value?: Trade | null): any {
252
268
  'taker_fee': value['taker_fee'],
253
269
  'taker_position_size_before': value['taker_position_size_before'],
254
270
  'taker_entry_quote_before': value['taker_entry_quote_before'],
271
+ 'taker_initial_margin_fraction_before': value['taker_initial_margin_fraction_before'],
255
272
  'taker_position_sign_changed': value['taker_position_sign_changed'],
256
273
  'maker_fee': value['maker_fee'],
257
274
  'maker_position_size_before': value['maker_position_size_before'],
258
275
  'maker_entry_quote_before': value['maker_entry_quote_before'],
276
+ 'maker_initial_margin_fraction_before': value['maker_initial_margin_fraction_before'],
259
277
  'maker_position_sign_changed': value['maker_position_sign_changed'],
260
278
  };
261
279
  }
package/models/index.ts CHANGED
@@ -5,6 +5,7 @@ export * from './AccountApiKeys';
5
5
  export * from './AccountLimits';
6
6
  export * from './AccountMarketStats';
7
7
  export * from './AccountMetadata';
8
+ export * from './AccountMetadatas';
8
9
  export * from './AccountPnL';
9
10
  export * from './AccountPosition';
10
11
  export * from './AccountStats';
@@ -31,12 +32,12 @@ export * from './DetailedAccounts';
31
32
  export * from './DetailedCandlestick';
32
33
  export * from './EnrichedTx';
33
34
  export * from './ExchangeStats';
34
- export * from './FeeBucket';
35
35
  export * from './Funding';
36
36
  export * from './FundingRate';
37
37
  export * from './FundingRates';
38
38
  export * from './Fundings';
39
39
  export * from './IsWhitelisted';
40
+ export * from './L1Metadata';
40
41
  export * from './L1ProviderInfo';
41
42
  export * from './Layer1BasicInfo';
42
43
  export * from './Leaderboard';
@@ -70,7 +71,7 @@ export * from './ReqGetAccountApiKeys';
70
71
  export * from './ReqGetAccountByL1Address';
71
72
  export * from './ReqGetAccountInactiveOrders';
72
73
  export * from './ReqGetAccountLimits';
73
- export * from './ReqGetAccountOrders';
74
+ export * from './ReqGetAccountMetadata';
74
75
  export * from './ReqGetAccountPendingTxs';
75
76
  export * from './ReqGetAccountPnL';
76
77
  export * from './ReqGetAccountTxs';
@@ -80,8 +81,8 @@ export * from './ReqGetByAccount';
80
81
  export * from './ReqGetCandlesticks';
81
82
  export * from './ReqGetDepositHistory';
82
83
  export * from './ReqGetFastWithdrawInfo';
83
- export * from './ReqGetFeeBucket';
84
84
  export * from './ReqGetFundings';
85
+ export * from './ReqGetL1Metadata';
85
86
  export * from './ReqGetL1Tx';
86
87
  export * from './ReqGetLatestDeposit';
87
88
  export * from './ReqGetLeaderboard';