zklighter-perps 1.0.14 → 1.0.16

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.
@@ -7,10 +7,12 @@ apis/RootApi.ts
7
7
  apis/TransactionApi.ts
8
8
  apis/index.ts
9
9
  index.ts
10
+ models/Account.ts
10
11
  models/AccountMarketStats.ts
11
12
  models/AccountPnL.ts
12
13
  models/AccountPosition.ts
13
14
  models/AccountStats.ts
15
+ models/Accounts.ts
14
16
  models/Block.ts
15
17
  models/Blocks.ts
16
18
  models/Candlestick.ts
@@ -27,8 +29,6 @@ models/Fundings.ts
27
29
  models/L1ProviderInfo.ts
28
30
  models/Layer1BasicInfo.ts
29
31
  models/Layer2BasicInfo.ts
30
- models/MainAccount.ts
31
- models/MainAccounts.ts
32
32
  models/MarketInfo.ts
33
33
  models/NextNonce.ts
34
34
  models/Order.ts
@@ -68,7 +68,6 @@ models/ReqGetRangeWithIndex.ts
68
68
  models/ReqGetRangeWithIndexSortable.ts
69
69
  models/ReqGetRecentTrades.ts
70
70
  models/ReqGetRollbacks.ts
71
- models/ReqGetSubAccount.ts
72
71
  models/ReqGetTrades.ts
73
72
  models/ReqGetTx.ts
74
73
  models/ReqSearch.ts
@@ -79,7 +78,6 @@ models/Search.ts
79
78
  models/SignBody.ts
80
79
  models/SimpleOrder.ts
81
80
  models/Status.ts
82
- models/SubAccount.ts
83
81
  models/SubAccounts.ts
84
82
  models/Trade.ts
85
83
  models/Trades.ts
@@ -16,8 +16,8 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  AccountPnL,
19
+ Accounts,
19
20
  DetailedAccounts,
20
- MainAccounts,
21
21
  Permission,
22
22
  ResultCode,
23
23
  SubAccounts,
@@ -25,10 +25,10 @@ import type {
25
25
  import {
26
26
  AccountPnLFromJSON,
27
27
  AccountPnLToJSON,
28
+ AccountsFromJSON,
29
+ AccountsToJSON,
28
30
  DetailedAccountsFromJSON,
29
31
  DetailedAccountsToJSON,
30
- MainAccountsFromJSON,
31
- MainAccountsToJSON,
32
32
  PermissionFromJSON,
33
33
  PermissionToJSON,
34
34
  ResultCodeFromJSON,
@@ -44,7 +44,6 @@ export interface DoFaucetRequest {
44
44
  export interface GetAccountRequest {
45
45
  by: GetAccountByEnum;
46
46
  value: string;
47
- sub_account_index: number;
48
47
  }
49
48
 
50
49
  export interface GetAccountPnlRequest {
@@ -117,7 +116,7 @@ export class AccountApi extends runtime.BaseAPI {
117
116
  }
118
117
 
119
118
  /**
120
- * Get account by main account\'s l1_address or index and sub account\'s index. Returns detailed account info
119
+ * Get account by account\'s l1_address or index. Returns detailed account info
121
120
  * GetAccount
122
121
  */
123
122
  async getAccountRaw(requestParameters: GetAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DetailedAccounts>> {
@@ -135,13 +134,6 @@ export class AccountApi extends runtime.BaseAPI {
135
134
  );
136
135
  }
137
136
 
138
- if (requestParameters['sub_account_index'] == null) {
139
- throw new runtime.RequiredError(
140
- 'sub_account_index',
141
- 'Required parameter "sub_account_index" was null or undefined when calling getAccount().'
142
- );
143
- }
144
-
145
137
  const queryParameters: any = {};
146
138
 
147
139
  if (requestParameters['by'] != null) {
@@ -152,10 +144,6 @@ export class AccountApi extends runtime.BaseAPI {
152
144
  queryParameters['value'] = requestParameters['value'];
153
145
  }
154
146
 
155
- if (requestParameters['sub_account_index'] != null) {
156
- queryParameters['sub_account_index'] = requestParameters['sub_account_index'];
157
- }
158
-
159
147
  const headerParameters: runtime.HTTPHeaders = {};
160
148
 
161
149
  const response = await this.request({
@@ -169,7 +157,7 @@ export class AccountApi extends runtime.BaseAPI {
169
157
  }
170
158
 
171
159
  /**
172
- * Get account by main account\'s l1_address or index and sub account\'s index. Returns detailed account info
160
+ * Get account by account\'s l1_address or index. Returns detailed account info
173
161
  * GetAccount
174
162
  */
175
163
  async getAccount(requestParameters: GetAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DetailedAccounts> {
@@ -272,10 +260,10 @@ export class AccountApi extends runtime.BaseAPI {
272
260
  }
273
261
 
274
262
  /**
275
- * Get accounts returns main accounts by account index
263
+ * Get accounts returns accounts by account index
276
264
  * GetAccounts
277
265
  */
278
- async getAccountsRaw(requestParameters: GetAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MainAccounts>> {
266
+ async getAccountsRaw(requestParameters: GetAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Accounts>> {
279
267
  if (requestParameters['limit'] == null) {
280
268
  throw new runtime.RequiredError(
281
269
  'limit',
@@ -306,20 +294,20 @@ export class AccountApi extends runtime.BaseAPI {
306
294
  query: queryParameters,
307
295
  }, initOverrides);
308
296
 
309
- return new runtime.JSONApiResponse(response, (jsonValue) => MainAccountsFromJSON(jsonValue));
297
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccountsFromJSON(jsonValue));
310
298
  }
311
299
 
312
300
  /**
313
- * Get accounts returns main accounts by account index
301
+ * Get accounts returns accounts by account index
314
302
  * GetAccounts
315
303
  */
316
- async getAccounts(requestParameters: GetAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MainAccounts> {
304
+ async getAccounts(requestParameters: GetAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Accounts> {
317
305
  const response = await this.getAccountsRaw(requestParameters, initOverrides);
318
306
  return await response.value();
319
307
  }
320
308
 
321
309
  /**
322
- * Get accounts by l1_address returns main account and its sub accounts
310
+ * Get accounts by l1_address returns all accounts associated with the given L1 address
323
311
  * GetAccountsByL1Address
324
312
  */
325
313
  async getAccountsByL1AddressRaw(requestParameters: GetAccountsByL1AddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SubAccounts>> {
@@ -349,7 +337,7 @@ export class AccountApi extends runtime.BaseAPI {
349
337
  }
350
338
 
351
339
  /**
352
- * Get accounts by l1_address returns main account and its sub accounts
340
+ * Get accounts by l1_address returns all accounts associated with the given L1 address
353
341
  * GetAccountsByL1Address
354
342
  */
355
343
  async getAccountsByL1Address(requestParameters: GetAccountsByL1AddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubAccounts> {
package/apis/OrderApi.ts CHANGED
@@ -42,13 +42,11 @@ import {
42
42
 
43
43
  export interface GetAccountActiveOrdersRequest {
44
44
  account_index: number;
45
- sub_account_index: number;
46
45
  market_id: number;
47
46
  }
48
47
 
49
48
  export interface GetAccountInactiveOrdersRequest {
50
49
  account_index: number;
51
- sub_account_index: number;
52
50
  filter: GetAccountInactiveOrdersFilterEnum;
53
51
  limit: number;
54
52
  market_id?: number;
@@ -107,13 +105,6 @@ export class OrderApi extends runtime.BaseAPI {
107
105
  );
108
106
  }
109
107
 
110
- if (requestParameters['sub_account_index'] == null) {
111
- throw new runtime.RequiredError(
112
- 'sub_account_index',
113
- 'Required parameter "sub_account_index" was null or undefined when calling getAccountActiveOrders().'
114
- );
115
- }
116
-
117
108
  if (requestParameters['market_id'] == null) {
118
109
  throw new runtime.RequiredError(
119
110
  'market_id',
@@ -127,10 +118,6 @@ export class OrderApi extends runtime.BaseAPI {
127
118
  queryParameters['account_index'] = requestParameters['account_index'];
128
119
  }
129
120
 
130
- if (requestParameters['sub_account_index'] != null) {
131
- queryParameters['sub_account_index'] = requestParameters['sub_account_index'];
132
- }
133
-
134
121
  if (requestParameters['market_id'] != null) {
135
122
  queryParameters['market_id'] = requestParameters['market_id'];
136
123
  }
@@ -168,13 +155,6 @@ export class OrderApi extends runtime.BaseAPI {
168
155
  );
169
156
  }
170
157
 
171
- if (requestParameters['sub_account_index'] == null) {
172
- throw new runtime.RequiredError(
173
- 'sub_account_index',
174
- 'Required parameter "sub_account_index" was null or undefined when calling getAccountInactiveOrders().'
175
- );
176
- }
177
-
178
158
  if (requestParameters['filter'] == null) {
179
159
  throw new runtime.RequiredError(
180
160
  'filter',
@@ -195,10 +175,6 @@ export class OrderApi extends runtime.BaseAPI {
195
175
  queryParameters['account_index'] = requestParameters['account_index'];
196
176
  }
197
177
 
198
- if (requestParameters['sub_account_index'] != null) {
199
- queryParameters['sub_account_index'] = requestParameters['sub_account_index'];
200
- }
201
-
202
178
  if (requestParameters['filter'] != null) {
203
179
  queryParameters['filter'] = requestParameters['filter'];
204
180
  }
@@ -66,7 +66,7 @@ export interface GetL2SignatureBodyRequest {
66
66
 
67
67
  export interface GetNextNonceRequest {
68
68
  account_index: number;
69
- sub_account_index: number;
69
+ api_key_index: number;
70
70
  }
71
71
 
72
72
  export interface GetPendingTxsRequest {
@@ -353,10 +353,10 @@ export class TransactionApi extends runtime.BaseAPI {
353
353
  );
354
354
  }
355
355
 
356
- if (requestParameters['sub_account_index'] == null) {
356
+ if (requestParameters['api_key_index'] == null) {
357
357
  throw new runtime.RequiredError(
358
- 'sub_account_index',
359
- 'Required parameter "sub_account_index" was null or undefined when calling getNextNonce().'
358
+ 'api_key_index',
359
+ 'Required parameter "api_key_index" was null or undefined when calling getNextNonce().'
360
360
  );
361
361
  }
362
362
 
@@ -366,8 +366,8 @@ export class TransactionApi extends runtime.BaseAPI {
366
366
  queryParameters['account_index'] = requestParameters['account_index'];
367
367
  }
368
368
 
369
- if (requestParameters['sub_account_index'] != null) {
370
- queryParameters['sub_account_index'] = requestParameters['sub_account_index'];
369
+ if (requestParameters['api_key_index'] != null) {
370
+ queryParameters['api_key_index'] = requestParameters['api_key_index'];
371
371
  }
372
372
 
373
373
  const headerParameters: runtime.HTTPHeaders = {};
@@ -0,0 +1,104 @@
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 Account
20
+ */
21
+ export interface Account {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof Account
26
+ */
27
+ code?: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Account
32
+ */
33
+ message?: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof Account
38
+ */
39
+ index: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Account
44
+ */
45
+ l1_address: string;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof Account
50
+ */
51
+ status: number;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof Account
56
+ */
57
+ collateral: string;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the Account interface.
62
+ */
63
+ export function instanceOfAccount(value: object): value is Account {
64
+ if (!('index' in value) || value['index'] === undefined) return false;
65
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
66
+ if (!('status' in value) || value['status'] === undefined) return false;
67
+ if (!('collateral' in value) || value['collateral'] === undefined) return false;
68
+ return true;
69
+ }
70
+
71
+ export function AccountFromJSON(json: any): Account {
72
+ return AccountFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'code': json['code'] == null ? undefined : json['code'],
82
+ 'message': json['message'] == null ? undefined : json['message'],
83
+ 'index': json['index'],
84
+ 'l1_address': json['l1_address'],
85
+ 'status': json['status'],
86
+ 'collateral': json['collateral'],
87
+ };
88
+ }
89
+
90
+ export function AccountToJSON(value?: Account | null): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+ return {
95
+
96
+ 'code': value['code'],
97
+ 'message': value['message'],
98
+ 'index': value['index'],
99
+ 'l1_address': value['l1_address'],
100
+ 'status': value['status'],
101
+ 'collateral': value['collateral'],
102
+ };
103
+ }
104
+
@@ -0,0 +1,93 @@
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 { Account } from './Account';
17
+ import {
18
+ AccountFromJSON,
19
+ AccountFromJSONTyped,
20
+ AccountToJSON,
21
+ } from './Account';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface Accounts
27
+ */
28
+ export interface Accounts {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof Accounts
33
+ */
34
+ code?: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof Accounts
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof Accounts
45
+ */
46
+ total: number;
47
+ /**
48
+ *
49
+ * @type {Array<Account>}
50
+ * @memberof Accounts
51
+ */
52
+ accounts: Array<Account>;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the Accounts interface.
57
+ */
58
+ export function instanceOfAccounts(value: object): value is Accounts {
59
+ if (!('total' in value) || value['total'] === undefined) return false;
60
+ if (!('accounts' in value) || value['accounts'] === undefined) return false;
61
+ return true;
62
+ }
63
+
64
+ export function AccountsFromJSON(json: any): Accounts {
65
+ return AccountsFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function AccountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Accounts {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'code': json['code'] == null ? undefined : json['code'],
75
+ 'message': json['message'] == null ? undefined : json['message'],
76
+ 'total': json['total'],
77
+ 'accounts': ((json['accounts'] as Array<any>).map(AccountFromJSON)),
78
+ };
79
+ }
80
+
81
+ export function AccountsToJSON(value?: Accounts | null): any {
82
+ if (value == null) {
83
+ return value;
84
+ }
85
+ return {
86
+
87
+ 'code': value['code'],
88
+ 'message': value['message'],
89
+ 'total': value['total'],
90
+ 'accounts': ((value['accounts'] as Array<any>).map(AccountToJSON)),
91
+ };
92
+ }
93
+
@@ -50,30 +50,12 @@ export interface DetailedAccount {
50
50
  * @memberof DetailedAccount
51
51
  */
52
52
  index?: number;
53
- /**
54
- *
55
- * @type {number}
56
- * @memberof DetailedAccount
57
- */
58
- sub_account_index?: number;
59
53
  /**
60
54
  *
61
55
  * @type {string}
62
56
  * @memberof DetailedAccount
63
57
  */
64
58
  l1_address?: string;
65
- /**
66
- *
67
- * @type {string}
68
- * @memberof DetailedAccount
69
- */
70
- pk?: string;
71
- /**
72
- *
73
- * @type {number}
74
- * @memberof DetailedAccount
75
- */
76
- nonce?: number;
77
59
  /**
78
60
  *
79
61
  * @type {number}
@@ -86,12 +68,6 @@ export interface DetailedAccount {
86
68
  * @memberof DetailedAccount
87
69
  */
88
70
  collateral?: string;
89
- /**
90
- *
91
- * @type {number}
92
- * @memberof DetailedAccount
93
- */
94
- collateral_type?: number;
95
71
  /**
96
72
  *
97
73
  * @type {Array<AccountPosition>}
@@ -135,13 +111,9 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
135
111
  'code': json['code'] == null ? undefined : json['code'],
136
112
  'message': json['message'] == null ? undefined : json['message'],
137
113
  'index': json['index'] == null ? undefined : json['index'],
138
- 'sub_account_index': json['sub_account_index'] == null ? undefined : json['sub_account_index'],
139
114
  'l1_address': json['l1_address'] == null ? undefined : json['l1_address'],
140
- 'pk': json['pk'] == null ? undefined : json['pk'],
141
- 'nonce': json['nonce'] == null ? undefined : json['nonce'],
142
115
  'status': json['status'] == null ? undefined : json['status'],
143
116
  'collateral': json['collateral'] == null ? undefined : json['collateral'],
144
- 'collateral_type': json['collateral_type'] == null ? undefined : json['collateral_type'],
145
117
  'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
146
118
  'total_asset_value': json['total_asset_value'],
147
119
  'market_stats': ((json['market_stats'] as Array<any>).map(AccountMarketStatsFromJSON)),
@@ -157,13 +129,9 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
157
129
  'code': value['code'],
158
130
  'message': value['message'],
159
131
  'index': value['index'],
160
- 'sub_account_index': value['sub_account_index'],
161
132
  'l1_address': value['l1_address'],
162
- 'pk': value['pk'],
163
- 'nonce': value['nonce'],
164
133
  'status': value['status'],
165
134
  'collateral': value['collateral'],
166
- 'collateral_type': value['collateral_type'],
167
135
  'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
168
136
  'total_asset_value': value['total_asset_value'],
169
137
  'market_stats': ((value['market_stats'] as Array<any>).map(AccountMarketStatsToJSON)),
@@ -67,7 +67,7 @@ export interface Layer1BasicInfo {
67
67
  * @type {Array<ValidatorInfo>}
68
68
  * @memberof Layer1BasicInfo
69
69
  */
70
- validator_Info: Array<ValidatorInfo>;
70
+ validator_info: Array<ValidatorInfo>;
71
71
  /**
72
72
  *
73
73
  * @type {Array<ContractAddress>}
@@ -100,7 +100,7 @@ export interface Layer1BasicInfo {
100
100
  export function instanceOfLayer1BasicInfo(value: object): value is Layer1BasicInfo {
101
101
  if (!('l1_providers' in value) || value['l1_providers'] === undefined) return false;
102
102
  if (!('l1_providers_health' in value) || value['l1_providers_health'] === undefined) return false;
103
- if (!('validator_Info' in value) || value['validator_Info'] === undefined) return false;
103
+ if (!('validator_info' in value) || value['validator_info'] === undefined) return false;
104
104
  if (!('contract_addresses' in value) || value['contract_addresses'] === undefined) return false;
105
105
  if (!('latest_l1_generic_block' in value) || value['latest_l1_generic_block'] === undefined) return false;
106
106
  if (!('latest_l1_governance_block' in value) || value['latest_l1_governance_block'] === undefined) return false;
@@ -122,7 +122,7 @@ export function Layer1BasicInfoFromJSONTyped(json: any, ignoreDiscriminator: boo
122
122
  'message': json['message'] == null ? undefined : json['message'],
123
123
  'l1_providers': ((json['l1_providers'] as Array<any>).map(L1ProviderInfoFromJSON)),
124
124
  'l1_providers_health': json['l1_providers_health'],
125
- 'validator_Info': ((json['validator_Info'] as Array<any>).map(ValidatorInfoFromJSON)),
125
+ 'validator_info': ((json['validator_info'] as Array<any>).map(ValidatorInfoFromJSON)),
126
126
  'contract_addresses': ((json['contract_addresses'] as Array<any>).map(ContractAddressFromJSON)),
127
127
  'latest_l1_generic_block': json['latest_l1_generic_block'],
128
128
  'latest_l1_governance_block': json['latest_l1_governance_block'],
@@ -140,7 +140,7 @@ export function Layer1BasicInfoToJSON(value?: Layer1BasicInfo | null): any {
140
140
  'message': value['message'],
141
141
  'l1_providers': ((value['l1_providers'] as Array<any>).map(L1ProviderInfoToJSON)),
142
142
  'l1_providers_health': value['l1_providers_health'],
143
- 'validator_Info': ((value['validator_Info'] as Array<any>).map(ValidatorInfoToJSON)),
143
+ 'validator_info': ((value['validator_info'] as Array<any>).map(ValidatorInfoToJSON)),
144
144
  'contract_addresses': ((value['contract_addresses'] as Array<any>).map(ContractAddressToJSON)),
145
145
  'latest_l1_generic_block': value['latest_l1_generic_block'],
146
146
  'latest_l1_governance_block': value['latest_l1_governance_block'],
package/models/Order.ts CHANGED
@@ -25,12 +25,6 @@ export interface Order {
25
25
  * @memberof Order
26
26
  */
27
27
  market_index: number;
28
- /**
29
- * TODO: should we return this?
30
- * @type {number}
31
- * @memberof Order
32
- */
33
- ownerMainAccountIndex?: number;
34
28
  /**
35
29
  *
36
30
  * @type {number}
@@ -178,7 +172,6 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
178
172
  return {
179
173
 
180
174
  'market_index': json['market_index'],
181
- 'ownerMainAccountIndex': json['ownerMainAccountIndex'] == null ? undefined : json['ownerMainAccountIndex'],
182
175
  'owner_account_index': json['owner_account_index'],
183
176
  'initial_base_amount': json['initial_base_amount'],
184
177
  'remaining_base_amount': json['remaining_base_amount'],
@@ -204,7 +197,6 @@ export function OrderToJSON(value?: Order | null): any {
204
197
  return {
205
198
 
206
199
  'market_index': value['market_index'],
207
- 'ownerMainAccountIndex': value['ownerMainAccountIndex'],
208
200
  'owner_account_index': value['owner_account_index'],
209
201
  'initial_base_amount': value['initial_base_amount'],
210
202
  'remaining_base_amount': value['remaining_base_amount'],
@@ -25,12 +25,6 @@ export interface ReqGetAccountActiveOrders {
25
25
  * @memberof ReqGetAccountActiveOrders
26
26
  */
27
27
  account_index: number;
28
- /**
29
- * NilSubAccountIndex
30
- * @type {number}
31
- * @memberof ReqGetAccountActiveOrders
32
- */
33
- sub_account_index: number;
34
28
  /**
35
29
  *
36
30
  * @type {number}
@@ -44,7 +38,6 @@ export interface ReqGetAccountActiveOrders {
44
38
  */
45
39
  export function instanceOfReqGetAccountActiveOrders(value: object): value is ReqGetAccountActiveOrders {
46
40
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
47
- if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
48
41
  if (!('market_id' in value) || value['market_id'] === undefined) return false;
49
42
  return true;
50
43
  }
@@ -60,7 +53,6 @@ export function ReqGetAccountActiveOrdersFromJSONTyped(json: any, ignoreDiscrimi
60
53
  return {
61
54
 
62
55
  'account_index': json['account_index'],
63
- 'sub_account_index': json['sub_account_index'],
64
56
  'market_id': json['market_id'],
65
57
  };
66
58
  }
@@ -72,7 +64,6 @@ export function ReqGetAccountActiveOrdersToJSON(value?: ReqGetAccountActiveOrder
72
64
  return {
73
65
 
74
66
  'account_index': value['account_index'],
75
- 'sub_account_index': value['sub_account_index'],
76
67
  'market_id': value['market_id'],
77
68
  };
78
69
  }
@@ -25,12 +25,6 @@ export interface ReqGetAccountInactiveOrders {
25
25
  * @memberof ReqGetAccountInactiveOrders
26
26
  */
27
27
  account_index: number;
28
- /**
29
- * NilSubAccountIndex
30
- * @type {number}
31
- * @memberof ReqGetAccountInactiveOrders
32
- */
33
- sub_account_index: number;
34
28
  /**
35
29
  *
36
30
  * @type {string}
@@ -73,7 +67,6 @@ export type ReqGetAccountInactiveOrdersFilterEnum = typeof ReqGetAccountInactive
73
67
  */
74
68
  export function instanceOfReqGetAccountInactiveOrders(value: object): value is ReqGetAccountInactiveOrders {
75
69
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
76
- if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
77
70
  if (!('filter' in value) || value['filter'] === undefined) return false;
78
71
  if (!('limit' in value) || value['limit'] === undefined) return false;
79
72
  return true;
@@ -90,7 +83,6 @@ export function ReqGetAccountInactiveOrdersFromJSONTyped(json: any, ignoreDiscri
90
83
  return {
91
84
 
92
85
  'account_index': json['account_index'],
93
- 'sub_account_index': json['sub_account_index'],
94
86
  'filter': json['filter'],
95
87
  'market_id': json['market_id'] == null ? undefined : json['market_id'],
96
88
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
@@ -105,7 +97,6 @@ export function ReqGetAccountInactiveOrdersToJSON(value?: ReqGetAccountInactiveO
105
97
  return {
106
98
 
107
99
  'account_index': value['account_index'],
108
- 'sub_account_index': value['sub_account_index'],
109
100
  'filter': value['filter'],
110
101
  'market_id': value['market_id'],
111
102
  'cursor': value['cursor'],