zklighter-perps 1.0.236 → 1.0.238
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/AccountApi.ts +21 -8
- package/models/AccountMetadatas.ts +8 -0
- package/models/DetailedAccount.ts +18 -0
- package/models/DetailedAccounts.ts +8 -0
- package/models/RFQEntry.ts +9 -0
- package/models/ReqGetAccount.ts +8 -0
- package/models/ReqGetAccountByL1Address.ts +8 -0
- package/models/ReqGetAccountMetadata.ts +8 -0
- package/models/RespCreateRFQ.ts +9 -0
- package/models/RespGetRFQ.ts +9 -0
- package/models/RespRespondToRFQ.ts +9 -0
- package/models/RespUpdateRFQ.ts +9 -0
- package/models/SubAccounts.ts +8 -0
- package/openapi.json +69 -1
- package/package.json +1 -1
package/apis/AccountApi.ts
CHANGED
|
@@ -107,6 +107,7 @@ export interface AccountRequest {
|
|
|
107
107
|
by: AccountByEnum;
|
|
108
108
|
value: string;
|
|
109
109
|
active_only?: boolean;
|
|
110
|
+
cursor?: string;
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
export interface AccountLimitsRequest {
|
|
@@ -120,10 +121,12 @@ export interface AccountMetadataRequest {
|
|
|
120
121
|
value: string;
|
|
121
122
|
authorization?: string;
|
|
122
123
|
auth?: string;
|
|
124
|
+
cursor?: string;
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
export interface AccountsByL1AddressRequest {
|
|
126
128
|
l1_address: string;
|
|
129
|
+
cursor?: string;
|
|
127
130
|
}
|
|
128
131
|
|
|
129
132
|
export interface AirdropRequest {
|
|
@@ -238,10 +241,11 @@ export interface PublicPoolsMetadataRequest {
|
|
|
238
241
|
|
|
239
242
|
export interface RfqCreateRequest {
|
|
240
243
|
market_index: number;
|
|
241
|
-
base_amount: string;
|
|
242
244
|
direction: number;
|
|
243
245
|
authorization?: string;
|
|
244
246
|
auth?: string;
|
|
247
|
+
base_amount?: string;
|
|
248
|
+
quote_amount?: string;
|
|
245
249
|
metadata?: string;
|
|
246
250
|
}
|
|
247
251
|
|
|
@@ -339,6 +343,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
339
343
|
queryParameters['active_only'] = requestParameters['active_only'];
|
|
340
344
|
}
|
|
341
345
|
|
|
346
|
+
if (requestParameters['cursor'] != null) {
|
|
347
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
348
|
+
}
|
|
349
|
+
|
|
342
350
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
343
351
|
|
|
344
352
|
const response = await this.request({
|
|
@@ -440,6 +448,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
440
448
|
queryParameters['auth'] = requestParameters['auth'];
|
|
441
449
|
}
|
|
442
450
|
|
|
451
|
+
if (requestParameters['cursor'] != null) {
|
|
452
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
453
|
+
}
|
|
454
|
+
|
|
443
455
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
444
456
|
|
|
445
457
|
if (requestParameters['authorization'] != null) {
|
|
@@ -483,6 +495,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
483
495
|
queryParameters['l1_address'] = requestParameters['l1_address'];
|
|
484
496
|
}
|
|
485
497
|
|
|
498
|
+
if (requestParameters['cursor'] != null) {
|
|
499
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
500
|
+
}
|
|
501
|
+
|
|
486
502
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
487
503
|
|
|
488
504
|
const response = await this.request({
|
|
@@ -1472,13 +1488,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1472
1488
|
);
|
|
1473
1489
|
}
|
|
1474
1490
|
|
|
1475
|
-
if (requestParameters['base_amount'] == null) {
|
|
1476
|
-
throw new runtime.RequiredError(
|
|
1477
|
-
'base_amount',
|
|
1478
|
-
'Required parameter "base_amount" was null or undefined when calling rfqCreate().'
|
|
1479
|
-
);
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
1491
|
if (requestParameters['direction'] == null) {
|
|
1483
1492
|
throw new runtime.RequiredError(
|
|
1484
1493
|
'direction',
|
|
@@ -1520,6 +1529,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1520
1529
|
formParams.append('base_amount', requestParameters['base_amount'] as any);
|
|
1521
1530
|
}
|
|
1522
1531
|
|
|
1532
|
+
if (requestParameters['quote_amount'] != null) {
|
|
1533
|
+
formParams.append('quote_amount', requestParameters['quote_amount'] as any);
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1523
1536
|
if (requestParameters['direction'] != null) {
|
|
1524
1537
|
formParams.append('direction', requestParameters['direction'] as any);
|
|
1525
1538
|
}
|
|
@@ -44,6 +44,12 @@ export interface AccountMetadatas {
|
|
|
44
44
|
* @memberof AccountMetadatas
|
|
45
45
|
*/
|
|
46
46
|
account_metadatas: Array<AccountMetadata>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof AccountMetadatas
|
|
51
|
+
*/
|
|
52
|
+
next_cursor?: string;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
/**
|
|
@@ -68,6 +74,7 @@ export function AccountMetadatasFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
68
74
|
'code': json['code'],
|
|
69
75
|
'message': json['message'] == null ? undefined : json['message'],
|
|
70
76
|
'account_metadatas': ((json['account_metadatas'] as Array<any>).map(AccountMetadataFromJSON)),
|
|
77
|
+
'next_cursor': json['next_cursor'] == null ? undefined : json['next_cursor'],
|
|
71
78
|
};
|
|
72
79
|
}
|
|
73
80
|
|
|
@@ -80,6 +87,7 @@ export function AccountMetadatasToJSON(value?: AccountMetadatas | null): any {
|
|
|
80
87
|
'code': value['code'],
|
|
81
88
|
'message': value['message'],
|
|
82
89
|
'account_metadatas': ((value['account_metadatas'] as Array<any>).map(AccountMetadataToJSON)),
|
|
90
|
+
'next_cursor': value['next_cursor'],
|
|
83
91
|
};
|
|
84
92
|
}
|
|
85
93
|
|
|
@@ -206,6 +206,18 @@ export interface DetailedAccount {
|
|
|
206
206
|
* @memberof DetailedAccount
|
|
207
207
|
*/
|
|
208
208
|
cross_asset_value: string;
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* @type {string}
|
|
212
|
+
* @memberof DetailedAccount
|
|
213
|
+
*/
|
|
214
|
+
cross_initial_margin_requirement: string;
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* @type {string}
|
|
218
|
+
* @memberof DetailedAccount
|
|
219
|
+
*/
|
|
220
|
+
cross_maintenance_margin_requirement: string;
|
|
209
221
|
/**
|
|
210
222
|
*
|
|
211
223
|
* @type {PublicPoolInfo}
|
|
@@ -259,6 +271,8 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
|
|
|
259
271
|
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
260
272
|
if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
|
|
261
273
|
if (!('cross_asset_value' in value) || value['cross_asset_value'] === undefined) return false;
|
|
274
|
+
if (!('cross_initial_margin_requirement' in value) || value['cross_initial_margin_requirement'] === undefined) return false;
|
|
275
|
+
if (!('cross_maintenance_margin_requirement' in value) || value['cross_maintenance_margin_requirement'] === undefined) return false;
|
|
262
276
|
if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
|
|
263
277
|
if (!('shares' in value) || value['shares'] === undefined) return false;
|
|
264
278
|
return true;
|
|
@@ -299,6 +313,8 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
299
313
|
'assets': ((json['assets'] as Array<any>).map(AccountAssetFromJSON)),
|
|
300
314
|
'total_asset_value': json['total_asset_value'],
|
|
301
315
|
'cross_asset_value': json['cross_asset_value'],
|
|
316
|
+
'cross_initial_margin_requirement': json['cross_initial_margin_requirement'],
|
|
317
|
+
'cross_maintenance_margin_requirement': json['cross_maintenance_margin_requirement'],
|
|
302
318
|
'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
|
|
303
319
|
'shares': ((json['shares'] as Array<any>).map(PublicPoolShareFromJSON)),
|
|
304
320
|
'pending_unlocks': json['pending_unlocks'] == null ? undefined : ((json['pending_unlocks'] as Array<any>).map(PendingUnlockFromJSON)),
|
|
@@ -337,6 +353,8 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
|
|
|
337
353
|
'assets': ((value['assets'] as Array<any>).map(AccountAssetToJSON)),
|
|
338
354
|
'total_asset_value': value['total_asset_value'],
|
|
339
355
|
'cross_asset_value': value['cross_asset_value'],
|
|
356
|
+
'cross_initial_margin_requirement': value['cross_initial_margin_requirement'],
|
|
357
|
+
'cross_maintenance_margin_requirement': value['cross_maintenance_margin_requirement'],
|
|
340
358
|
'pool_info': PublicPoolInfoToJSON(value['pool_info']),
|
|
341
359
|
'shares': ((value['shares'] as Array<any>).map(PublicPoolShareToJSON)),
|
|
342
360
|
'pending_unlocks': value['pending_unlocks'] == null ? undefined : ((value['pending_unlocks'] as Array<any>).map(PendingUnlockToJSON)),
|
|
@@ -50,6 +50,12 @@ export interface DetailedAccounts {
|
|
|
50
50
|
* @memberof DetailedAccounts
|
|
51
51
|
*/
|
|
52
52
|
accounts: Array<DetailedAccount>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof DetailedAccounts
|
|
57
|
+
*/
|
|
58
|
+
next_cursor?: string;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
/**
|
|
@@ -76,6 +82,7 @@ export function DetailedAccountsFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
76
82
|
'message': json['message'] == null ? undefined : json['message'],
|
|
77
83
|
'total': json['total'],
|
|
78
84
|
'accounts': ((json['accounts'] as Array<any>).map(DetailedAccountFromJSON)),
|
|
85
|
+
'next_cursor': json['next_cursor'] == null ? undefined : json['next_cursor'],
|
|
79
86
|
};
|
|
80
87
|
}
|
|
81
88
|
|
|
@@ -89,6 +96,7 @@ export function DetailedAccountsToJSON(value?: DetailedAccounts | null): any {
|
|
|
89
96
|
'message': value['message'],
|
|
90
97
|
'total': value['total'],
|
|
91
98
|
'accounts': ((value['accounts'] as Array<any>).map(DetailedAccountToJSON)),
|
|
99
|
+
'next_cursor': value['next_cursor'],
|
|
92
100
|
};
|
|
93
101
|
}
|
|
94
102
|
|
package/models/RFQEntry.ts
CHANGED
|
@@ -62,6 +62,12 @@ export interface RFQEntry {
|
|
|
62
62
|
* @memberof RFQEntry
|
|
63
63
|
*/
|
|
64
64
|
base_amount: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof RFQEntry
|
|
69
|
+
*/
|
|
70
|
+
quote_amount: string;
|
|
65
71
|
/**
|
|
66
72
|
*
|
|
67
73
|
* @type {string}
|
|
@@ -103,6 +109,7 @@ export function instanceOfRFQEntry(value: object): value is RFQEntry {
|
|
|
103
109
|
if (!('market_index' in value) || value['market_index'] === undefined) return false;
|
|
104
110
|
if (!('direction' in value) || value['direction'] === undefined) return false;
|
|
105
111
|
if (!('base_amount' in value) || value['base_amount'] === undefined) return false;
|
|
112
|
+
if (!('quote_amount' in value) || value['quote_amount'] === undefined) return false;
|
|
106
113
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
107
114
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
108
115
|
if (!('responses' in value) || value['responses'] === undefined) return false;
|
|
@@ -126,6 +133,7 @@ export function RFQEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
126
133
|
'market_index': json['market_index'],
|
|
127
134
|
'direction': json['direction'],
|
|
128
135
|
'base_amount': json['base_amount'],
|
|
136
|
+
'quote_amount': json['quote_amount'],
|
|
129
137
|
'status': json['status'],
|
|
130
138
|
'metadata': RFQMetadataFromJSON(json['metadata']),
|
|
131
139
|
'responses': ((json['responses'] as Array<any>).map(RFQResponseEntryFromJSON)),
|
|
@@ -145,6 +153,7 @@ export function RFQEntryToJSON(value?: RFQEntry | null): any {
|
|
|
145
153
|
'market_index': value['market_index'],
|
|
146
154
|
'direction': value['direction'],
|
|
147
155
|
'base_amount': value['base_amount'],
|
|
156
|
+
'quote_amount': value['quote_amount'],
|
|
148
157
|
'status': value['status'],
|
|
149
158
|
'metadata': RFQMetadataToJSON(value['metadata']),
|
|
150
159
|
'responses': ((value['responses'] as Array<any>).map(RFQResponseEntryToJSON)),
|
package/models/ReqGetAccount.ts
CHANGED
|
@@ -37,6 +37,12 @@ export interface ReqGetAccount {
|
|
|
37
37
|
* @memberof ReqGetAccount
|
|
38
38
|
*/
|
|
39
39
|
active_only?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ReqGetAccount
|
|
44
|
+
*/
|
|
45
|
+
cursor?: string;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
|
|
@@ -72,6 +78,7 @@ export function ReqGetAccountFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
72
78
|
'by': json['by'],
|
|
73
79
|
'value': json['value'],
|
|
74
80
|
'active_only': json['active_only'] == null ? undefined : json['active_only'],
|
|
81
|
+
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
75
82
|
};
|
|
76
83
|
}
|
|
77
84
|
|
|
@@ -84,6 +91,7 @@ export function ReqGetAccountToJSON(value?: ReqGetAccount | null): any {
|
|
|
84
91
|
'by': value['by'],
|
|
85
92
|
'value': value['value'],
|
|
86
93
|
'active_only': value['active_only'],
|
|
94
|
+
'cursor': value['cursor'],
|
|
87
95
|
};
|
|
88
96
|
}
|
|
89
97
|
|
|
@@ -25,6 +25,12 @@ export interface ReqGetAccountByL1Address {
|
|
|
25
25
|
* @memberof ReqGetAccountByL1Address
|
|
26
26
|
*/
|
|
27
27
|
l1_address: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ReqGetAccountByL1Address
|
|
32
|
+
*/
|
|
33
|
+
cursor?: string;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
@@ -46,6 +52,7 @@ export function ReqGetAccountByL1AddressFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
46
52
|
return {
|
|
47
53
|
|
|
48
54
|
'l1_address': json['l1_address'],
|
|
55
|
+
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
49
56
|
};
|
|
50
57
|
}
|
|
51
58
|
|
|
@@ -56,6 +63,7 @@ export function ReqGetAccountByL1AddressToJSON(value?: ReqGetAccountByL1Address
|
|
|
56
63
|
return {
|
|
57
64
|
|
|
58
65
|
'l1_address': value['l1_address'],
|
|
66
|
+
'cursor': value['cursor'],
|
|
59
67
|
};
|
|
60
68
|
}
|
|
61
69
|
|
|
@@ -37,6 +37,12 @@ export interface ReqGetAccountMetadata {
|
|
|
37
37
|
* @memberof ReqGetAccountMetadata
|
|
38
38
|
*/
|
|
39
39
|
auth?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ReqGetAccountMetadata
|
|
44
|
+
*/
|
|
45
|
+
cursor?: string;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
|
|
@@ -72,6 +78,7 @@ export function ReqGetAccountMetadataFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
72
78
|
'by': json['by'],
|
|
73
79
|
'value': json['value'],
|
|
74
80
|
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
81
|
+
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
75
82
|
};
|
|
76
83
|
}
|
|
77
84
|
|
|
@@ -84,6 +91,7 @@ export function ReqGetAccountMetadataToJSON(value?: ReqGetAccountMetadata | null
|
|
|
84
91
|
'by': value['by'],
|
|
85
92
|
'value': value['value'],
|
|
86
93
|
'auth': value['auth'],
|
|
94
|
+
'cursor': value['cursor'],
|
|
87
95
|
};
|
|
88
96
|
}
|
|
89
97
|
|
package/models/RespCreateRFQ.ts
CHANGED
|
@@ -74,6 +74,12 @@ export interface RespCreateRFQ {
|
|
|
74
74
|
* @memberof RespCreateRFQ
|
|
75
75
|
*/
|
|
76
76
|
base_amount: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof RespCreateRFQ
|
|
81
|
+
*/
|
|
82
|
+
quote_amount: string;
|
|
77
83
|
/**
|
|
78
84
|
*
|
|
79
85
|
* @type {string}
|
|
@@ -116,6 +122,7 @@ export function instanceOfRespCreateRFQ(value: object): value is RespCreateRFQ {
|
|
|
116
122
|
if (!('market_index' in value) || value['market_index'] === undefined) return false;
|
|
117
123
|
if (!('direction' in value) || value['direction'] === undefined) return false;
|
|
118
124
|
if (!('base_amount' in value) || value['base_amount'] === undefined) return false;
|
|
125
|
+
if (!('quote_amount' in value) || value['quote_amount'] === undefined) return false;
|
|
119
126
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
120
127
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
121
128
|
if (!('responses' in value) || value['responses'] === undefined) return false;
|
|
@@ -141,6 +148,7 @@ export function RespCreateRFQFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
141
148
|
'market_index': json['market_index'],
|
|
142
149
|
'direction': json['direction'],
|
|
143
150
|
'base_amount': json['base_amount'],
|
|
151
|
+
'quote_amount': json['quote_amount'],
|
|
144
152
|
'status': json['status'],
|
|
145
153
|
'metadata': RFQMetadataFromJSON(json['metadata']),
|
|
146
154
|
'responses': ((json['responses'] as Array<any>).map(RFQResponseEntryFromJSON)),
|
|
@@ -162,6 +170,7 @@ export function RespCreateRFQToJSON(value?: RespCreateRFQ | null): any {
|
|
|
162
170
|
'market_index': value['market_index'],
|
|
163
171
|
'direction': value['direction'],
|
|
164
172
|
'base_amount': value['base_amount'],
|
|
173
|
+
'quote_amount': value['quote_amount'],
|
|
165
174
|
'status': value['status'],
|
|
166
175
|
'metadata': RFQMetadataToJSON(value['metadata']),
|
|
167
176
|
'responses': ((value['responses'] as Array<any>).map(RFQResponseEntryToJSON)),
|
package/models/RespGetRFQ.ts
CHANGED
|
@@ -74,6 +74,12 @@ export interface RespGetRFQ {
|
|
|
74
74
|
* @memberof RespGetRFQ
|
|
75
75
|
*/
|
|
76
76
|
base_amount: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof RespGetRFQ
|
|
81
|
+
*/
|
|
82
|
+
quote_amount: string;
|
|
77
83
|
/**
|
|
78
84
|
*
|
|
79
85
|
* @type {string}
|
|
@@ -116,6 +122,7 @@ export function instanceOfRespGetRFQ(value: object): value is RespGetRFQ {
|
|
|
116
122
|
if (!('market_index' in value) || value['market_index'] === undefined) return false;
|
|
117
123
|
if (!('direction' in value) || value['direction'] === undefined) return false;
|
|
118
124
|
if (!('base_amount' in value) || value['base_amount'] === undefined) return false;
|
|
125
|
+
if (!('quote_amount' in value) || value['quote_amount'] === undefined) return false;
|
|
119
126
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
120
127
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
121
128
|
if (!('responses' in value) || value['responses'] === undefined) return false;
|
|
@@ -141,6 +148,7 @@ export function RespGetRFQFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
141
148
|
'market_index': json['market_index'],
|
|
142
149
|
'direction': json['direction'],
|
|
143
150
|
'base_amount': json['base_amount'],
|
|
151
|
+
'quote_amount': json['quote_amount'],
|
|
144
152
|
'status': json['status'],
|
|
145
153
|
'metadata': RFQMetadataFromJSON(json['metadata']),
|
|
146
154
|
'responses': ((json['responses'] as Array<any>).map(RFQResponseEntryFromJSON)),
|
|
@@ -162,6 +170,7 @@ export function RespGetRFQToJSON(value?: RespGetRFQ | null): any {
|
|
|
162
170
|
'market_index': value['market_index'],
|
|
163
171
|
'direction': value['direction'],
|
|
164
172
|
'base_amount': value['base_amount'],
|
|
173
|
+
'quote_amount': value['quote_amount'],
|
|
165
174
|
'status': value['status'],
|
|
166
175
|
'metadata': RFQMetadataToJSON(value['metadata']),
|
|
167
176
|
'responses': ((value['responses'] as Array<any>).map(RFQResponseEntryToJSON)),
|
|
@@ -74,6 +74,12 @@ export interface RespRespondToRFQ {
|
|
|
74
74
|
* @memberof RespRespondToRFQ
|
|
75
75
|
*/
|
|
76
76
|
base_amount: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof RespRespondToRFQ
|
|
81
|
+
*/
|
|
82
|
+
quote_amount: string;
|
|
77
83
|
/**
|
|
78
84
|
*
|
|
79
85
|
* @type {string}
|
|
@@ -116,6 +122,7 @@ export function instanceOfRespRespondToRFQ(value: object): value is RespRespondT
|
|
|
116
122
|
if (!('market_index' in value) || value['market_index'] === undefined) return false;
|
|
117
123
|
if (!('direction' in value) || value['direction'] === undefined) return false;
|
|
118
124
|
if (!('base_amount' in value) || value['base_amount'] === undefined) return false;
|
|
125
|
+
if (!('quote_amount' in value) || value['quote_amount'] === undefined) return false;
|
|
119
126
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
120
127
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
121
128
|
if (!('responses' in value) || value['responses'] === undefined) return false;
|
|
@@ -141,6 +148,7 @@ export function RespRespondToRFQFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
141
148
|
'market_index': json['market_index'],
|
|
142
149
|
'direction': json['direction'],
|
|
143
150
|
'base_amount': json['base_amount'],
|
|
151
|
+
'quote_amount': json['quote_amount'],
|
|
144
152
|
'status': json['status'],
|
|
145
153
|
'metadata': RFQMetadataFromJSON(json['metadata']),
|
|
146
154
|
'responses': ((json['responses'] as Array<any>).map(RFQResponseEntryFromJSON)),
|
|
@@ -162,6 +170,7 @@ export function RespRespondToRFQToJSON(value?: RespRespondToRFQ | null): any {
|
|
|
162
170
|
'market_index': value['market_index'],
|
|
163
171
|
'direction': value['direction'],
|
|
164
172
|
'base_amount': value['base_amount'],
|
|
173
|
+
'quote_amount': value['quote_amount'],
|
|
165
174
|
'status': value['status'],
|
|
166
175
|
'metadata': RFQMetadataToJSON(value['metadata']),
|
|
167
176
|
'responses': ((value['responses'] as Array<any>).map(RFQResponseEntryToJSON)),
|
package/models/RespUpdateRFQ.ts
CHANGED
|
@@ -74,6 +74,12 @@ export interface RespUpdateRFQ {
|
|
|
74
74
|
* @memberof RespUpdateRFQ
|
|
75
75
|
*/
|
|
76
76
|
base_amount: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof RespUpdateRFQ
|
|
81
|
+
*/
|
|
82
|
+
quote_amount: string;
|
|
77
83
|
/**
|
|
78
84
|
*
|
|
79
85
|
* @type {string}
|
|
@@ -116,6 +122,7 @@ export function instanceOfRespUpdateRFQ(value: object): value is RespUpdateRFQ {
|
|
|
116
122
|
if (!('market_index' in value) || value['market_index'] === undefined) return false;
|
|
117
123
|
if (!('direction' in value) || value['direction'] === undefined) return false;
|
|
118
124
|
if (!('base_amount' in value) || value['base_amount'] === undefined) return false;
|
|
125
|
+
if (!('quote_amount' in value) || value['quote_amount'] === undefined) return false;
|
|
119
126
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
120
127
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
121
128
|
if (!('responses' in value) || value['responses'] === undefined) return false;
|
|
@@ -141,6 +148,7 @@ export function RespUpdateRFQFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
141
148
|
'market_index': json['market_index'],
|
|
142
149
|
'direction': json['direction'],
|
|
143
150
|
'base_amount': json['base_amount'],
|
|
151
|
+
'quote_amount': json['quote_amount'],
|
|
144
152
|
'status': json['status'],
|
|
145
153
|
'metadata': RFQMetadataFromJSON(json['metadata']),
|
|
146
154
|
'responses': ((json['responses'] as Array<any>).map(RFQResponseEntryFromJSON)),
|
|
@@ -162,6 +170,7 @@ export function RespUpdateRFQToJSON(value?: RespUpdateRFQ | null): any {
|
|
|
162
170
|
'market_index': value['market_index'],
|
|
163
171
|
'direction': value['direction'],
|
|
164
172
|
'base_amount': value['base_amount'],
|
|
173
|
+
'quote_amount': value['quote_amount'],
|
|
165
174
|
'status': value['status'],
|
|
166
175
|
'metadata': RFQMetadataToJSON(value['metadata']),
|
|
167
176
|
'responses': ((value['responses'] as Array<any>).map(RFQResponseEntryToJSON)),
|
package/models/SubAccounts.ts
CHANGED
|
@@ -50,6 +50,12 @@ export interface SubAccounts {
|
|
|
50
50
|
* @memberof SubAccounts
|
|
51
51
|
*/
|
|
52
52
|
sub_accounts: Array<Account>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof SubAccounts
|
|
57
|
+
*/
|
|
58
|
+
next_cursor?: string;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
/**
|
|
@@ -76,6 +82,7 @@ export function SubAccountsFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
76
82
|
'message': json['message'] == null ? undefined : json['message'],
|
|
77
83
|
'l1_address': json['l1_address'],
|
|
78
84
|
'sub_accounts': ((json['sub_accounts'] as Array<any>).map(AccountFromJSON)),
|
|
85
|
+
'next_cursor': json['next_cursor'] == null ? undefined : json['next_cursor'],
|
|
79
86
|
};
|
|
80
87
|
}
|
|
81
88
|
|
|
@@ -89,6 +96,7 @@ export function SubAccountsToJSON(value?: SubAccounts | null): any {
|
|
|
89
96
|
'message': value['message'],
|
|
90
97
|
'l1_address': value['l1_address'],
|
|
91
98
|
'sub_accounts': ((value['sub_accounts'] as Array<any>).map(AccountToJSON)),
|
|
99
|
+
'next_cursor': value['next_cursor'],
|
|
92
100
|
};
|
|
93
101
|
}
|
|
94
102
|
|
package/openapi.json
CHANGED
|
@@ -81,6 +81,12 @@
|
|
|
81
81
|
"type": "boolean",
|
|
82
82
|
"format": "boolean",
|
|
83
83
|
"default": "false"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "cursor",
|
|
87
|
+
"in": "query",
|
|
88
|
+
"required": false,
|
|
89
|
+
"type": "string"
|
|
84
90
|
}
|
|
85
91
|
],
|
|
86
92
|
"tags": [
|
|
@@ -357,6 +363,12 @@
|
|
|
357
363
|
"in": "query",
|
|
358
364
|
"required": false,
|
|
359
365
|
"type": "string"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "cursor",
|
|
369
|
+
"in": "query",
|
|
370
|
+
"required": false,
|
|
371
|
+
"type": "string"
|
|
360
372
|
}
|
|
361
373
|
],
|
|
362
374
|
"tags": [
|
|
@@ -476,6 +488,12 @@
|
|
|
476
488
|
"in": "query",
|
|
477
489
|
"required": true,
|
|
478
490
|
"type": "string"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "cursor",
|
|
494
|
+
"in": "query",
|
|
495
|
+
"required": false,
|
|
496
|
+
"type": "string"
|
|
479
497
|
}
|
|
480
498
|
],
|
|
481
499
|
"tags": [
|
|
@@ -4955,6 +4973,9 @@
|
|
|
4955
4973
|
"items": {
|
|
4956
4974
|
"$ref": "#/definitions/AccountMetadata"
|
|
4957
4975
|
}
|
|
4976
|
+
},
|
|
4977
|
+
"next_cursor": {
|
|
4978
|
+
"type": "string"
|
|
4958
4979
|
}
|
|
4959
4980
|
},
|
|
4960
4981
|
"title": "AccountMetadatas",
|
|
@@ -6340,6 +6361,14 @@
|
|
|
6340
6361
|
"type": "string",
|
|
6341
6362
|
"example": "19995"
|
|
6342
6363
|
},
|
|
6364
|
+
"cross_initial_margin_requirement": {
|
|
6365
|
+
"type": "string",
|
|
6366
|
+
"example": "5998.500000"
|
|
6367
|
+
},
|
|
6368
|
+
"cross_maintenance_margin_requirement": {
|
|
6369
|
+
"type": "string",
|
|
6370
|
+
"example": "2999.250000"
|
|
6371
|
+
},
|
|
6343
6372
|
"pool_info": {
|
|
6344
6373
|
"$ref": "#/definitions/PublicPoolInfo"
|
|
6345
6374
|
},
|
|
@@ -6387,6 +6416,8 @@
|
|
|
6387
6416
|
"assets",
|
|
6388
6417
|
"total_asset_value",
|
|
6389
6418
|
"cross_asset_value",
|
|
6419
|
+
"cross_initial_margin_requirement",
|
|
6420
|
+
"cross_maintenance_margin_requirement",
|
|
6390
6421
|
"pool_info",
|
|
6391
6422
|
"shares"
|
|
6392
6423
|
]
|
|
@@ -6412,6 +6443,9 @@
|
|
|
6412
6443
|
"items": {
|
|
6413
6444
|
"$ref": "#/definitions/DetailedAccount"
|
|
6414
6445
|
}
|
|
6446
|
+
},
|
|
6447
|
+
"next_cursor": {
|
|
6448
|
+
"type": "string"
|
|
6415
6449
|
}
|
|
6416
6450
|
},
|
|
6417
6451
|
"title": "DetailedAccounts",
|
|
@@ -8950,6 +8984,9 @@
|
|
|
8950
8984
|
"base_amount": {
|
|
8951
8985
|
"type": "string"
|
|
8952
8986
|
},
|
|
8987
|
+
"quote_amount": {
|
|
8988
|
+
"type": "string"
|
|
8989
|
+
},
|
|
8953
8990
|
"status": {
|
|
8954
8991
|
"type": "string"
|
|
8955
8992
|
},
|
|
@@ -8984,6 +9021,7 @@
|
|
|
8984
9021
|
"market_index",
|
|
8985
9022
|
"direction",
|
|
8986
9023
|
"base_amount",
|
|
9024
|
+
"quote_amount",
|
|
8987
9025
|
"status",
|
|
8988
9026
|
"metadata",
|
|
8989
9027
|
"responses",
|
|
@@ -9292,6 +9330,9 @@
|
|
|
9292
9330
|
"base_amount": {
|
|
9293
9331
|
"type": "string"
|
|
9294
9332
|
},
|
|
9333
|
+
"quote_amount": {
|
|
9334
|
+
"type": "string"
|
|
9335
|
+
},
|
|
9295
9336
|
"direction": {
|
|
9296
9337
|
"type": "integer",
|
|
9297
9338
|
"format": "int16",
|
|
@@ -9307,7 +9348,6 @@
|
|
|
9307
9348
|
"title": "ReqCreateRFQ",
|
|
9308
9349
|
"required": [
|
|
9309
9350
|
"market_index",
|
|
9310
|
-
"base_amount",
|
|
9311
9351
|
"direction"
|
|
9312
9352
|
]
|
|
9313
9353
|
},
|
|
@@ -9454,6 +9494,9 @@
|
|
|
9454
9494
|
"type": "boolean",
|
|
9455
9495
|
"format": "boolean",
|
|
9456
9496
|
"default": "false"
|
|
9497
|
+
},
|
|
9498
|
+
"cursor": {
|
|
9499
|
+
"type": "string"
|
|
9457
9500
|
}
|
|
9458
9501
|
},
|
|
9459
9502
|
"title": "ReqGetAccount",
|
|
@@ -9516,6 +9559,9 @@
|
|
|
9516
9559
|
"properties": {
|
|
9517
9560
|
"l1_address": {
|
|
9518
9561
|
"type": "string"
|
|
9562
|
+
},
|
|
9563
|
+
"cursor": {
|
|
9564
|
+
"type": "string"
|
|
9519
9565
|
}
|
|
9520
9566
|
},
|
|
9521
9567
|
"title": "ReqGetAccountByL1Address",
|
|
@@ -9604,6 +9650,9 @@
|
|
|
9604
9650
|
},
|
|
9605
9651
|
"auth": {
|
|
9606
9652
|
"type": "string"
|
|
9653
|
+
},
|
|
9654
|
+
"cursor": {
|
|
9655
|
+
"type": "string"
|
|
9607
9656
|
}
|
|
9608
9657
|
},
|
|
9609
9658
|
"title": "ReqGetAccountMetadata",
|
|
@@ -11226,6 +11275,9 @@
|
|
|
11226
11275
|
"base_amount": {
|
|
11227
11276
|
"type": "string"
|
|
11228
11277
|
},
|
|
11278
|
+
"quote_amount": {
|
|
11279
|
+
"type": "string"
|
|
11280
|
+
},
|
|
11229
11281
|
"status": {
|
|
11230
11282
|
"type": "string"
|
|
11231
11283
|
},
|
|
@@ -11261,6 +11313,7 @@
|
|
|
11261
11313
|
"market_index",
|
|
11262
11314
|
"direction",
|
|
11263
11315
|
"base_amount",
|
|
11316
|
+
"quote_amount",
|
|
11264
11317
|
"status",
|
|
11265
11318
|
"metadata",
|
|
11266
11319
|
"responses",
|
|
@@ -11578,6 +11631,9 @@
|
|
|
11578
11631
|
"base_amount": {
|
|
11579
11632
|
"type": "string"
|
|
11580
11633
|
},
|
|
11634
|
+
"quote_amount": {
|
|
11635
|
+
"type": "string"
|
|
11636
|
+
},
|
|
11581
11637
|
"status": {
|
|
11582
11638
|
"type": "string"
|
|
11583
11639
|
},
|
|
@@ -11613,6 +11669,7 @@
|
|
|
11613
11669
|
"market_index",
|
|
11614
11670
|
"direction",
|
|
11615
11671
|
"base_amount",
|
|
11672
|
+
"quote_amount",
|
|
11616
11673
|
"status",
|
|
11617
11674
|
"metadata",
|
|
11618
11675
|
"responses",
|
|
@@ -11755,6 +11812,9 @@
|
|
|
11755
11812
|
"base_amount": {
|
|
11756
11813
|
"type": "string"
|
|
11757
11814
|
},
|
|
11815
|
+
"quote_amount": {
|
|
11816
|
+
"type": "string"
|
|
11817
|
+
},
|
|
11758
11818
|
"status": {
|
|
11759
11819
|
"type": "string"
|
|
11760
11820
|
},
|
|
@@ -11790,6 +11850,7 @@
|
|
|
11790
11850
|
"market_index",
|
|
11791
11851
|
"direction",
|
|
11792
11852
|
"base_amount",
|
|
11853
|
+
"quote_amount",
|
|
11793
11854
|
"status",
|
|
11794
11855
|
"metadata",
|
|
11795
11856
|
"responses",
|
|
@@ -11962,6 +12023,9 @@
|
|
|
11962
12023
|
"base_amount": {
|
|
11963
12024
|
"type": "string"
|
|
11964
12025
|
},
|
|
12026
|
+
"quote_amount": {
|
|
12027
|
+
"type": "string"
|
|
12028
|
+
},
|
|
11965
12029
|
"status": {
|
|
11966
12030
|
"type": "string"
|
|
11967
12031
|
},
|
|
@@ -11997,6 +12061,7 @@
|
|
|
11997
12061
|
"market_index",
|
|
11998
12062
|
"direction",
|
|
11999
12063
|
"base_amount",
|
|
12064
|
+
"quote_amount",
|
|
12000
12065
|
"status",
|
|
12001
12066
|
"metadata",
|
|
12002
12067
|
"responses",
|
|
@@ -12528,6 +12593,9 @@
|
|
|
12528
12593
|
"items": {
|
|
12529
12594
|
"$ref": "#/definitions/Account"
|
|
12530
12595
|
}
|
|
12596
|
+
},
|
|
12597
|
+
"next_cursor": {
|
|
12598
|
+
"type": "string"
|
|
12531
12599
|
}
|
|
12532
12600
|
},
|
|
12533
12601
|
"title": "SubAccounts",
|