zklighter-perps 1.0.54 → 1.0.55
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/models/Account.ts +13 -4
- package/models/AccountPosition.ts +9 -0
- package/models/DetailedAccount.ts +13 -4
- package/models/Order.ts +60 -36
- package/models/PublicPool.ts +13 -4
- package/openapi.json +80 -39
- package/package.json +1 -1
package/models/Account.ts
CHANGED
|
@@ -60,7 +60,13 @@ export interface Account {
|
|
|
60
60
|
* @type {number}
|
|
61
61
|
* @memberof Account
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
total_order_count: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof Account
|
|
68
|
+
*/
|
|
69
|
+
pending_order_count: number;
|
|
64
70
|
/**
|
|
65
71
|
*
|
|
66
72
|
* @type {number}
|
|
@@ -84,7 +90,8 @@ export function instanceOfAccount(value: object): value is Account {
|
|
|
84
90
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
85
91
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
86
92
|
if (!('cancel_all_time' in value) || value['cancel_all_time'] === undefined) return false;
|
|
87
|
-
if (!('
|
|
93
|
+
if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
|
|
94
|
+
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
88
95
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
89
96
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
90
97
|
return true;
|
|
@@ -106,7 +113,8 @@ export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): A
|
|
|
106
113
|
'index': json['index'],
|
|
107
114
|
'l1_address': json['l1_address'],
|
|
108
115
|
'cancel_all_time': json['cancel_all_time'],
|
|
109
|
-
'
|
|
116
|
+
'total_order_count': json['total_order_count'],
|
|
117
|
+
'pending_order_count': json['pending_order_count'],
|
|
110
118
|
'status': json['status'],
|
|
111
119
|
'collateral': json['collateral'],
|
|
112
120
|
};
|
|
@@ -124,7 +132,8 @@ export function AccountToJSON(value?: Account | null): any {
|
|
|
124
132
|
'index': value['index'],
|
|
125
133
|
'l1_address': value['l1_address'],
|
|
126
134
|
'cancel_all_time': value['cancel_all_time'],
|
|
127
|
-
'
|
|
135
|
+
'total_order_count': value['total_order_count'],
|
|
136
|
+
'pending_order_count': value['pending_order_count'],
|
|
128
137
|
'status': value['status'],
|
|
129
138
|
'collateral': value['collateral'],
|
|
130
139
|
};
|
|
@@ -31,6 +31,12 @@ export interface AccountPosition {
|
|
|
31
31
|
* @memberof AccountPosition
|
|
32
32
|
*/
|
|
33
33
|
open_order_count: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof AccountPosition
|
|
38
|
+
*/
|
|
39
|
+
pending_order_count: number;
|
|
34
40
|
/**
|
|
35
41
|
*
|
|
36
42
|
* @type {string}
|
|
@@ -81,6 +87,7 @@ export interface AccountPosition {
|
|
|
81
87
|
export function instanceOfAccountPosition(value: object): value is AccountPosition {
|
|
82
88
|
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
83
89
|
if (!('open_order_count' in value) || value['open_order_count'] === undefined) return false;
|
|
90
|
+
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
84
91
|
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
85
92
|
if (!('sign' in value) || value['sign'] === undefined) return false;
|
|
86
93
|
if (!('position' in value) || value['position'] === undefined) return false;
|
|
@@ -103,6 +110,7 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
103
110
|
|
|
104
111
|
'market_id': json['market_id'],
|
|
105
112
|
'open_order_count': json['open_order_count'],
|
|
113
|
+
'pending_order_count': json['pending_order_count'],
|
|
106
114
|
'symbol': json['symbol'],
|
|
107
115
|
'sign': json['sign'],
|
|
108
116
|
'position': json['position'],
|
|
@@ -121,6 +129,7 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
|
|
|
121
129
|
|
|
122
130
|
'market_id': value['market_id'],
|
|
123
131
|
'open_order_count': value['open_order_count'],
|
|
132
|
+
'pending_order_count': value['pending_order_count'],
|
|
124
133
|
'symbol': value['symbol'],
|
|
125
134
|
'sign': value['sign'],
|
|
126
135
|
'position': value['position'],
|
|
@@ -85,7 +85,13 @@ export interface DetailedAccount {
|
|
|
85
85
|
* @type {number}
|
|
86
86
|
* @memberof DetailedAccount
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
total_order_count: number;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof DetailedAccount
|
|
93
|
+
*/
|
|
94
|
+
pending_order_count: number;
|
|
89
95
|
/**
|
|
90
96
|
*
|
|
91
97
|
* @type {number}
|
|
@@ -151,7 +157,8 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
|
|
|
151
157
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
152
158
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
153
159
|
if (!('cancel_all_time' in value) || value['cancel_all_time'] === undefined) return false;
|
|
154
|
-
if (!('
|
|
160
|
+
if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
|
|
161
|
+
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
155
162
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
156
163
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
157
164
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
@@ -180,7 +187,8 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
180
187
|
'index': json['index'],
|
|
181
188
|
'l1_address': json['l1_address'],
|
|
182
189
|
'cancel_all_time': json['cancel_all_time'],
|
|
183
|
-
'
|
|
190
|
+
'total_order_count': json['total_order_count'],
|
|
191
|
+
'pending_order_count': json['pending_order_count'],
|
|
184
192
|
'status': json['status'],
|
|
185
193
|
'collateral': json['collateral'],
|
|
186
194
|
'name': json['name'],
|
|
@@ -205,7 +213,8 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
|
|
|
205
213
|
'index': value['index'],
|
|
206
214
|
'l1_address': value['l1_address'],
|
|
207
215
|
'cancel_all_time': value['cancel_all_time'],
|
|
208
|
-
'
|
|
216
|
+
'total_order_count': value['total_order_count'],
|
|
217
|
+
'pending_order_count': value['pending_order_count'],
|
|
209
218
|
'status': value['status'],
|
|
210
219
|
'collateral': value['collateral'],
|
|
211
220
|
'name': value['name'],
|
package/models/Order.ts
CHANGED
|
@@ -24,25 +24,25 @@ export interface Order {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof Order
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
order_index: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof Order
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
client_order_index: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof Order
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
market_index: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof Order
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
owner_account_index: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -54,25 +54,25 @@ export interface Order {
|
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof Order
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
price: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
|
-
* @type {
|
|
60
|
+
* @type {number}
|
|
61
61
|
* @memberof Order
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
nonce: number;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
67
|
* @memberof Order
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
remaining_base_amount: string;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
|
-
* @type {
|
|
72
|
+
* @type {boolean}
|
|
73
73
|
* @memberof Order
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
is_ask: boolean;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {number}
|
|
@@ -87,16 +87,16 @@ export interface Order {
|
|
|
87
87
|
base_price: number;
|
|
88
88
|
/**
|
|
89
89
|
*
|
|
90
|
-
* @type {
|
|
90
|
+
* @type {string}
|
|
91
91
|
* @memberof Order
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
filled_base_amount: string;
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
|
-
* @type {
|
|
96
|
+
* @type {string}
|
|
97
97
|
* @memberof Order
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
filled_quote_amount: string;
|
|
100
100
|
/**
|
|
101
101
|
* TODO: remove this
|
|
102
102
|
* @type {string}
|
|
@@ -115,6 +115,18 @@ export interface Order {
|
|
|
115
115
|
* @memberof Order
|
|
116
116
|
*/
|
|
117
117
|
time_in_force: OrderTimeInForceEnum;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {boolean}
|
|
121
|
+
* @memberof Order
|
|
122
|
+
*/
|
|
123
|
+
reduce_only: boolean;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof Order
|
|
128
|
+
*/
|
|
129
|
+
trigger_price: string;
|
|
118
130
|
/**
|
|
119
131
|
*
|
|
120
132
|
* @type {number}
|
|
@@ -147,7 +159,13 @@ export interface Order {
|
|
|
147
159
|
*/
|
|
148
160
|
export const OrderTypeEnum = {
|
|
149
161
|
Limit: 'limit',
|
|
150
|
-
Market: 'market'
|
|
162
|
+
Market: 'market',
|
|
163
|
+
StopLoss: 'stop-loss',
|
|
164
|
+
StopLossLimit: 'stop-loss-limit',
|
|
165
|
+
TakeProfit: 'take-profit',
|
|
166
|
+
TakeProfitLimit: 'take-profit-limit',
|
|
167
|
+
Twap: 'twap',
|
|
168
|
+
TwapSub: 'twap-sub'
|
|
151
169
|
} as const;
|
|
152
170
|
export type OrderTypeEnum = typeof OrderTypeEnum[keyof typeof OrderTypeEnum];
|
|
153
171
|
|
|
@@ -177,22 +195,24 @@ export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnu
|
|
|
177
195
|
* Check if a given object implements the Order interface.
|
|
178
196
|
*/
|
|
179
197
|
export function instanceOfOrder(value: object): value is Order {
|
|
180
|
-
if (!('market_index' in value) || value['market_index'] === undefined) return false;
|
|
181
|
-
if (!('owner_account_index' in value) || value['owner_account_index'] === undefined) return false;
|
|
182
198
|
if (!('order_index' in value) || value['order_index'] === undefined) return false;
|
|
183
199
|
if (!('client_order_index' in value) || value['client_order_index'] === undefined) return false;
|
|
200
|
+
if (!('market_index' in value) || value['market_index'] === undefined) return false;
|
|
201
|
+
if (!('owner_account_index' in value) || value['owner_account_index'] === undefined) return false;
|
|
184
202
|
if (!('initial_base_amount' in value) || value['initial_base_amount'] === undefined) return false;
|
|
185
|
-
if (!('remaining_base_amount' in value) || value['remaining_base_amount'] === undefined) return false;
|
|
186
|
-
if (!('filled_base_amount' in value) || value['filled_base_amount'] === undefined) return false;
|
|
187
|
-
if (!('filled_quote_amount' in value) || value['filled_quote_amount'] === undefined) return false;
|
|
188
203
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
189
|
-
if (!('base_size' in value) || value['base_size'] === undefined) return false;
|
|
190
|
-
if (!('base_price' in value) || value['base_price'] === undefined) return false;
|
|
191
204
|
if (!('nonce' in value) || value['nonce'] === undefined) return false;
|
|
205
|
+
if (!('remaining_base_amount' in value) || value['remaining_base_amount'] === undefined) return false;
|
|
192
206
|
if (!('is_ask' in value) || value['is_ask'] === undefined) return false;
|
|
207
|
+
if (!('base_size' in value) || value['base_size'] === undefined) return false;
|
|
208
|
+
if (!('base_price' in value) || value['base_price'] === undefined) return false;
|
|
209
|
+
if (!('filled_base_amount' in value) || value['filled_base_amount'] === undefined) return false;
|
|
210
|
+
if (!('filled_quote_amount' in value) || value['filled_quote_amount'] === undefined) return false;
|
|
193
211
|
if (!('side' in value) || value['side'] === undefined) return false;
|
|
194
212
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
195
213
|
if (!('time_in_force' in value) || value['time_in_force'] === undefined) return false;
|
|
214
|
+
if (!('reduce_only' in value) || value['reduce_only'] === undefined) return false;
|
|
215
|
+
if (!('trigger_price' in value) || value['trigger_price'] === undefined) return false;
|
|
196
216
|
if (!('order_expiry' in value) || value['order_expiry'] === undefined) return false;
|
|
197
217
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
198
218
|
if (!('block_height' in value) || value['block_height'] === undefined) return false;
|
|
@@ -210,22 +230,24 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|
|
210
230
|
}
|
|
211
231
|
return {
|
|
212
232
|
|
|
213
|
-
'market_index': json['market_index'],
|
|
214
|
-
'owner_account_index': json['owner_account_index'],
|
|
215
233
|
'order_index': json['order_index'],
|
|
216
234
|
'client_order_index': json['client_order_index'],
|
|
235
|
+
'market_index': json['market_index'],
|
|
236
|
+
'owner_account_index': json['owner_account_index'],
|
|
217
237
|
'initial_base_amount': json['initial_base_amount'],
|
|
218
|
-
'remaining_base_amount': json['remaining_base_amount'],
|
|
219
|
-
'filled_base_amount': json['filled_base_amount'],
|
|
220
|
-
'filled_quote_amount': json['filled_quote_amount'],
|
|
221
238
|
'price': json['price'],
|
|
222
|
-
'base_size': json['base_size'],
|
|
223
|
-
'base_price': json['base_price'],
|
|
224
239
|
'nonce': json['nonce'],
|
|
240
|
+
'remaining_base_amount': json['remaining_base_amount'],
|
|
225
241
|
'is_ask': json['is_ask'],
|
|
242
|
+
'base_size': json['base_size'],
|
|
243
|
+
'base_price': json['base_price'],
|
|
244
|
+
'filled_base_amount': json['filled_base_amount'],
|
|
245
|
+
'filled_quote_amount': json['filled_quote_amount'],
|
|
226
246
|
'side': json['side'],
|
|
227
247
|
'type': json['type'],
|
|
228
248
|
'time_in_force': json['time_in_force'],
|
|
249
|
+
'reduce_only': json['reduce_only'],
|
|
250
|
+
'trigger_price': json['trigger_price'],
|
|
229
251
|
'order_expiry': json['order_expiry'],
|
|
230
252
|
'status': json['status'],
|
|
231
253
|
'block_height': json['block_height'],
|
|
@@ -239,22 +261,24 @@ export function OrderToJSON(value?: Order | null): any {
|
|
|
239
261
|
}
|
|
240
262
|
return {
|
|
241
263
|
|
|
242
|
-
'market_index': value['market_index'],
|
|
243
|
-
'owner_account_index': value['owner_account_index'],
|
|
244
264
|
'order_index': value['order_index'],
|
|
245
265
|
'client_order_index': value['client_order_index'],
|
|
266
|
+
'market_index': value['market_index'],
|
|
267
|
+
'owner_account_index': value['owner_account_index'],
|
|
246
268
|
'initial_base_amount': value['initial_base_amount'],
|
|
247
|
-
'remaining_base_amount': value['remaining_base_amount'],
|
|
248
|
-
'filled_base_amount': value['filled_base_amount'],
|
|
249
|
-
'filled_quote_amount': value['filled_quote_amount'],
|
|
250
269
|
'price': value['price'],
|
|
251
|
-
'base_size': value['base_size'],
|
|
252
|
-
'base_price': value['base_price'],
|
|
253
270
|
'nonce': value['nonce'],
|
|
271
|
+
'remaining_base_amount': value['remaining_base_amount'],
|
|
254
272
|
'is_ask': value['is_ask'],
|
|
273
|
+
'base_size': value['base_size'],
|
|
274
|
+
'base_price': value['base_price'],
|
|
275
|
+
'filled_base_amount': value['filled_base_amount'],
|
|
276
|
+
'filled_quote_amount': value['filled_quote_amount'],
|
|
255
277
|
'side': value['side'],
|
|
256
278
|
'type': value['type'],
|
|
257
279
|
'time_in_force': value['time_in_force'],
|
|
280
|
+
'reduce_only': value['reduce_only'],
|
|
281
|
+
'trigger_price': value['trigger_price'],
|
|
258
282
|
'order_expiry': value['order_expiry'],
|
|
259
283
|
'status': value['status'],
|
|
260
284
|
'block_height': value['block_height'],
|
package/models/PublicPool.ts
CHANGED
|
@@ -67,7 +67,13 @@ export interface PublicPool {
|
|
|
67
67
|
* @type {number}
|
|
68
68
|
* @memberof PublicPool
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
total_order_count: number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof PublicPool
|
|
75
|
+
*/
|
|
76
|
+
pending_order_count: number;
|
|
71
77
|
/**
|
|
72
78
|
*
|
|
73
79
|
* @type {number}
|
|
@@ -115,7 +121,8 @@ export function instanceOfPublicPool(value: object): value is PublicPool {
|
|
|
115
121
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
116
122
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
117
123
|
if (!('cancel_all_time' in value) || value['cancel_all_time'] === undefined) return false;
|
|
118
|
-
if (!('
|
|
124
|
+
if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
|
|
125
|
+
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
119
126
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
120
127
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
121
128
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
@@ -141,7 +148,8 @@ export function PublicPoolFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
141
148
|
'index': json['index'],
|
|
142
149
|
'l1_address': json['l1_address'],
|
|
143
150
|
'cancel_all_time': json['cancel_all_time'],
|
|
144
|
-
'
|
|
151
|
+
'total_order_count': json['total_order_count'],
|
|
152
|
+
'pending_order_count': json['pending_order_count'],
|
|
145
153
|
'status': json['status'],
|
|
146
154
|
'collateral': json['collateral'],
|
|
147
155
|
'name': json['name'],
|
|
@@ -163,7 +171,8 @@ export function PublicPoolToJSON(value?: PublicPool | null): any {
|
|
|
163
171
|
'index': value['index'],
|
|
164
172
|
'l1_address': value['l1_address'],
|
|
165
173
|
'cancel_all_time': value['cancel_all_time'],
|
|
166
|
-
'
|
|
174
|
+
'total_order_count': value['total_order_count'],
|
|
175
|
+
'pending_order_count': value['pending_order_count'],
|
|
167
176
|
'status': value['status'],
|
|
168
177
|
'collateral': value['collateral'],
|
|
169
178
|
'name': value['name'],
|
package/openapi.json
CHANGED
|
@@ -1777,7 +1777,12 @@
|
|
|
1777
1777
|
"format": "int64",
|
|
1778
1778
|
"example": "1640995200"
|
|
1779
1779
|
},
|
|
1780
|
-
"
|
|
1780
|
+
"total_order_count": {
|
|
1781
|
+
"type": "integer",
|
|
1782
|
+
"format": "int64",
|
|
1783
|
+
"example": "100"
|
|
1784
|
+
},
|
|
1785
|
+
"pending_order_count": {
|
|
1781
1786
|
"type": "integer",
|
|
1782
1787
|
"format": "int64",
|
|
1783
1788
|
"example": "100"
|
|
@@ -1799,7 +1804,8 @@
|
|
|
1799
1804
|
"index",
|
|
1800
1805
|
"l1_address",
|
|
1801
1806
|
"cancel_all_time",
|
|
1802
|
-
"
|
|
1807
|
+
"total_order_count",
|
|
1808
|
+
"pending_order_count",
|
|
1803
1809
|
"status",
|
|
1804
1810
|
"collateral"
|
|
1805
1811
|
]
|
|
@@ -1918,6 +1924,11 @@
|
|
|
1918
1924
|
"format": "int64",
|
|
1919
1925
|
"example": "3"
|
|
1920
1926
|
},
|
|
1927
|
+
"pending_order_count": {
|
|
1928
|
+
"type": "integer",
|
|
1929
|
+
"format": "int64",
|
|
1930
|
+
"example": "3"
|
|
1931
|
+
},
|
|
1921
1932
|
"symbol": {
|
|
1922
1933
|
"type": "string",
|
|
1923
1934
|
"example": "ETH"
|
|
@@ -1952,6 +1963,7 @@
|
|
|
1952
1963
|
"required": [
|
|
1953
1964
|
"market_id",
|
|
1954
1965
|
"open_order_count",
|
|
1966
|
+
"pending_order_count",
|
|
1955
1967
|
"symbol",
|
|
1956
1968
|
"sign",
|
|
1957
1969
|
"position",
|
|
@@ -2314,7 +2326,12 @@
|
|
|
2314
2326
|
"format": "int64",
|
|
2315
2327
|
"example": "1640995200"
|
|
2316
2328
|
},
|
|
2317
|
-
"
|
|
2329
|
+
"total_order_count": {
|
|
2330
|
+
"type": "integer",
|
|
2331
|
+
"format": "int64",
|
|
2332
|
+
"example": "100"
|
|
2333
|
+
},
|
|
2334
|
+
"pending_order_count": {
|
|
2318
2335
|
"type": "integer",
|
|
2319
2336
|
"format": "int64",
|
|
2320
2337
|
"example": "100"
|
|
@@ -2367,7 +2384,8 @@
|
|
|
2367
2384
|
"index",
|
|
2368
2385
|
"l1_address",
|
|
2369
2386
|
"cancel_all_time",
|
|
2370
|
-
"
|
|
2387
|
+
"total_order_count",
|
|
2388
|
+
"pending_order_count",
|
|
2371
2389
|
"status",
|
|
2372
2390
|
"collateral",
|
|
2373
2391
|
"name",
|
|
@@ -2930,45 +2948,47 @@
|
|
|
2930
2948
|
"Order": {
|
|
2931
2949
|
"type": "object",
|
|
2932
2950
|
"properties": {
|
|
2933
|
-
"
|
|
2951
|
+
"order_index": {
|
|
2934
2952
|
"type": "integer",
|
|
2935
|
-
"format": "
|
|
2953
|
+
"format": "int64",
|
|
2936
2954
|
"example": "1"
|
|
2937
2955
|
},
|
|
2938
|
-
"
|
|
2956
|
+
"client_order_index": {
|
|
2939
2957
|
"type": "integer",
|
|
2940
2958
|
"format": "int64",
|
|
2941
|
-
"example": "
|
|
2959
|
+
"example": "234"
|
|
2942
2960
|
},
|
|
2943
|
-
"
|
|
2961
|
+
"market_index": {
|
|
2944
2962
|
"type": "integer",
|
|
2945
|
-
"format": "
|
|
2963
|
+
"format": "uint8",
|
|
2946
2964
|
"example": "1"
|
|
2947
2965
|
},
|
|
2948
|
-
"
|
|
2966
|
+
"owner_account_index": {
|
|
2949
2967
|
"type": "integer",
|
|
2950
2968
|
"format": "int64",
|
|
2951
|
-
"example": "
|
|
2969
|
+
"example": "1"
|
|
2952
2970
|
},
|
|
2953
2971
|
"initial_base_amount": {
|
|
2954
2972
|
"type": "string",
|
|
2955
2973
|
"example": "0.1"
|
|
2956
2974
|
},
|
|
2957
|
-
"
|
|
2975
|
+
"price": {
|
|
2958
2976
|
"type": "string",
|
|
2959
|
-
"example": "
|
|
2977
|
+
"example": "3024.66"
|
|
2960
2978
|
},
|
|
2961
|
-
"
|
|
2962
|
-
"type": "
|
|
2963
|
-
"
|
|
2979
|
+
"nonce": {
|
|
2980
|
+
"type": "integer",
|
|
2981
|
+
"format": "int64",
|
|
2982
|
+
"example": "722"
|
|
2964
2983
|
},
|
|
2965
|
-
"
|
|
2984
|
+
"remaining_base_amount": {
|
|
2966
2985
|
"type": "string",
|
|
2967
2986
|
"example": "0.1"
|
|
2968
2987
|
},
|
|
2969
|
-
"
|
|
2970
|
-
"type": "
|
|
2971
|
-
"
|
|
2988
|
+
"is_ask": {
|
|
2989
|
+
"type": "boolean",
|
|
2990
|
+
"format": "boolean",
|
|
2991
|
+
"example": "true"
|
|
2972
2992
|
},
|
|
2973
2993
|
"base_size": {
|
|
2974
2994
|
"type": "integer",
|
|
@@ -2980,15 +3000,13 @@
|
|
|
2980
3000
|
"format": "int32",
|
|
2981
3001
|
"example": "3024"
|
|
2982
3002
|
},
|
|
2983
|
-
"
|
|
2984
|
-
"type": "
|
|
2985
|
-
"
|
|
2986
|
-
"example": "722"
|
|
3003
|
+
"filled_base_amount": {
|
|
3004
|
+
"type": "string",
|
|
3005
|
+
"example": "0.1"
|
|
2987
3006
|
},
|
|
2988
|
-
"
|
|
2989
|
-
"type": "
|
|
2990
|
-
"
|
|
2991
|
-
"example": "true"
|
|
3007
|
+
"filled_quote_amount": {
|
|
3008
|
+
"type": "string",
|
|
3009
|
+
"example": "0.1"
|
|
2992
3010
|
},
|
|
2993
3011
|
"side": {
|
|
2994
3012
|
"type": "string",
|
|
@@ -3001,7 +3019,13 @@
|
|
|
3001
3019
|
"example": "limit",
|
|
3002
3020
|
"enum": [
|
|
3003
3021
|
"limit",
|
|
3004
|
-
"market"
|
|
3022
|
+
"market",
|
|
3023
|
+
"stop-loss",
|
|
3024
|
+
"stop-loss-limit",
|
|
3025
|
+
"take-profit",
|
|
3026
|
+
"take-profit-limit",
|
|
3027
|
+
"twap",
|
|
3028
|
+
"twap-sub"
|
|
3005
3029
|
]
|
|
3006
3030
|
},
|
|
3007
3031
|
"time_in_force": {
|
|
@@ -3014,6 +3038,15 @@
|
|
|
3014
3038
|
],
|
|
3015
3039
|
"default": "good-till-time"
|
|
3016
3040
|
},
|
|
3041
|
+
"reduce_only": {
|
|
3042
|
+
"type": "boolean",
|
|
3043
|
+
"format": "boolean",
|
|
3044
|
+
"example": "true"
|
|
3045
|
+
},
|
|
3046
|
+
"trigger_price": {
|
|
3047
|
+
"type": "string",
|
|
3048
|
+
"example": "3024.66"
|
|
3049
|
+
},
|
|
3017
3050
|
"order_expiry": {
|
|
3018
3051
|
"type": "integer",
|
|
3019
3052
|
"format": "int64",
|
|
@@ -3041,22 +3074,24 @@
|
|
|
3041
3074
|
},
|
|
3042
3075
|
"title": "Order",
|
|
3043
3076
|
"required": [
|
|
3044
|
-
"market_index",
|
|
3045
|
-
"owner_account_index",
|
|
3046
3077
|
"order_index",
|
|
3047
3078
|
"client_order_index",
|
|
3079
|
+
"market_index",
|
|
3080
|
+
"owner_account_index",
|
|
3048
3081
|
"initial_base_amount",
|
|
3049
|
-
"remaining_base_amount",
|
|
3050
|
-
"filled_base_amount",
|
|
3051
|
-
"filled_quote_amount",
|
|
3052
3082
|
"price",
|
|
3053
|
-
"base_size",
|
|
3054
|
-
"base_price",
|
|
3055
3083
|
"nonce",
|
|
3084
|
+
"remaining_base_amount",
|
|
3056
3085
|
"is_ask",
|
|
3086
|
+
"base_size",
|
|
3087
|
+
"base_price",
|
|
3088
|
+
"filled_base_amount",
|
|
3089
|
+
"filled_quote_amount",
|
|
3057
3090
|
"side",
|
|
3058
3091
|
"type",
|
|
3059
3092
|
"time_in_force",
|
|
3093
|
+
"reduce_only",
|
|
3094
|
+
"trigger_price",
|
|
3060
3095
|
"order_expiry",
|
|
3061
3096
|
"status",
|
|
3062
3097
|
"block_height",
|
|
@@ -3634,7 +3669,12 @@
|
|
|
3634
3669
|
"format": "int64",
|
|
3635
3670
|
"example": "1640995200"
|
|
3636
3671
|
},
|
|
3637
|
-
"
|
|
3672
|
+
"total_order_count": {
|
|
3673
|
+
"type": "integer",
|
|
3674
|
+
"format": "int64",
|
|
3675
|
+
"example": "100"
|
|
3676
|
+
},
|
|
3677
|
+
"pending_order_count": {
|
|
3638
3678
|
"type": "integer",
|
|
3639
3679
|
"format": "int64",
|
|
3640
3680
|
"example": "100"
|
|
@@ -3669,7 +3709,8 @@
|
|
|
3669
3709
|
"index",
|
|
3670
3710
|
"l1_address",
|
|
3671
3711
|
"cancel_all_time",
|
|
3672
|
-
"
|
|
3712
|
+
"total_order_count",
|
|
3713
|
+
"pending_order_count",
|
|
3673
3714
|
"status",
|
|
3674
3715
|
"collateral",
|
|
3675
3716
|
"name",
|