@orderly.network/ui-order-entry 2.0.7 → 2.0.8-alpha.0
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/dist/index.d.mts +4 -378
- package/dist/index.d.ts +4 -378
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +9 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _orderly_network_hooks from '@orderly.network/hooks';
|
|
2
3
|
import * as react from 'react';
|
|
3
4
|
import { FocusEvent } from 'react';
|
|
4
5
|
import * as _orderly_network_types from '@orderly.network/types';
|
|
@@ -63,390 +64,15 @@ declare const useOrderEntryScript: (inputs: OrderEntryScriptInputs) => {
|
|
|
63
64
|
estLiqPrice: number | null;
|
|
64
65
|
estLeverage: number | null;
|
|
65
66
|
helper: {
|
|
66
|
-
validator: () => Promise<
|
|
67
|
-
|
|
68
|
-
type: string;
|
|
69
|
-
message: string;
|
|
70
|
-
} | undefined;
|
|
71
|
-
order_type?: {
|
|
72
|
-
type: string;
|
|
73
|
-
message: string;
|
|
74
|
-
} | undefined;
|
|
75
|
-
order_type_ext?: {
|
|
76
|
-
type: string;
|
|
77
|
-
message: string;
|
|
78
|
-
} | undefined;
|
|
79
|
-
order_price?: {
|
|
80
|
-
type: string;
|
|
81
|
-
message: string;
|
|
82
|
-
} | undefined;
|
|
83
|
-
order_quantity?: {
|
|
84
|
-
type: string;
|
|
85
|
-
message: string;
|
|
86
|
-
} | undefined;
|
|
87
|
-
order_amount?: {
|
|
88
|
-
type: string;
|
|
89
|
-
message: string;
|
|
90
|
-
} | undefined;
|
|
91
|
-
visible_quantity?: {
|
|
92
|
-
type: string;
|
|
93
|
-
message: string;
|
|
94
|
-
} | undefined;
|
|
95
|
-
side?: {
|
|
96
|
-
type: string;
|
|
97
|
-
message: string;
|
|
98
|
-
} | undefined;
|
|
99
|
-
reduce_only?: {
|
|
100
|
-
type: string;
|
|
101
|
-
message: string;
|
|
102
|
-
} | undefined;
|
|
103
|
-
slippage?: {
|
|
104
|
-
type: string;
|
|
105
|
-
message: string;
|
|
106
|
-
} | undefined;
|
|
107
|
-
order_tag?: {
|
|
108
|
-
type: string;
|
|
109
|
-
message: string;
|
|
110
|
-
} | undefined;
|
|
111
|
-
level?: {
|
|
112
|
-
type: string;
|
|
113
|
-
message: string;
|
|
114
|
-
} | undefined;
|
|
115
|
-
post_only_adjust?: {
|
|
116
|
-
type: string;
|
|
117
|
-
message: string;
|
|
118
|
-
} | undefined;
|
|
119
|
-
total?: {
|
|
120
|
-
type: string;
|
|
121
|
-
message: string;
|
|
122
|
-
} | undefined;
|
|
123
|
-
quantity?: {
|
|
124
|
-
type: string;
|
|
125
|
-
message: string;
|
|
126
|
-
} | undefined;
|
|
127
|
-
type?: {
|
|
128
|
-
type: string;
|
|
129
|
-
message: string;
|
|
130
|
-
} | undefined;
|
|
131
|
-
price?: {
|
|
132
|
-
type: string;
|
|
133
|
-
message: string;
|
|
134
|
-
} | undefined;
|
|
135
|
-
algo_type?: {
|
|
136
|
-
type: string;
|
|
137
|
-
message: string;
|
|
138
|
-
} | undefined;
|
|
139
|
-
trigger_price_type?: {
|
|
140
|
-
type: string;
|
|
141
|
-
message: string;
|
|
142
|
-
} | undefined;
|
|
143
|
-
trigger_price?: {
|
|
144
|
-
type: string;
|
|
145
|
-
message: string;
|
|
146
|
-
} | undefined;
|
|
147
|
-
child_orders?: {
|
|
148
|
-
type: string;
|
|
149
|
-
message: string;
|
|
150
|
-
} | undefined;
|
|
151
|
-
tp_pnl?: {
|
|
152
|
-
type: string;
|
|
153
|
-
message: string;
|
|
154
|
-
} | undefined;
|
|
155
|
-
tp_offset?: {
|
|
156
|
-
type: string;
|
|
157
|
-
message: string;
|
|
158
|
-
} | undefined;
|
|
159
|
-
tp_offset_percentage?: {
|
|
160
|
-
type: string;
|
|
161
|
-
message: string;
|
|
162
|
-
} | undefined;
|
|
163
|
-
tp_ROI?: {
|
|
164
|
-
type: string;
|
|
165
|
-
message: string;
|
|
166
|
-
} | undefined;
|
|
167
|
-
tp_trigger_price?: {
|
|
168
|
-
type: string;
|
|
169
|
-
message: string;
|
|
170
|
-
} | undefined;
|
|
171
|
-
sl_pnl?: {
|
|
172
|
-
type: string;
|
|
173
|
-
message: string;
|
|
174
|
-
} | undefined;
|
|
175
|
-
sl_offset?: {
|
|
176
|
-
type: string;
|
|
177
|
-
message: string;
|
|
178
|
-
} | undefined;
|
|
179
|
-
sl_offset_percentage?: {
|
|
180
|
-
type: string;
|
|
181
|
-
message: string;
|
|
182
|
-
} | undefined;
|
|
183
|
-
sl_ROI?: {
|
|
184
|
-
type: string;
|
|
185
|
-
message: string;
|
|
186
|
-
} | undefined;
|
|
187
|
-
sl_trigger_price?: {
|
|
188
|
-
type: string;
|
|
189
|
-
message: string;
|
|
190
|
-
} | undefined;
|
|
191
|
-
} | null>;
|
|
192
|
-
validate: () => Promise<{
|
|
193
|
-
symbol?: {
|
|
194
|
-
type: string;
|
|
195
|
-
message: string;
|
|
196
|
-
} | undefined;
|
|
197
|
-
order_type?: {
|
|
198
|
-
type: string;
|
|
199
|
-
message: string;
|
|
200
|
-
} | undefined;
|
|
201
|
-
order_type_ext?: {
|
|
202
|
-
type: string;
|
|
203
|
-
message: string;
|
|
204
|
-
} | undefined;
|
|
205
|
-
order_price?: {
|
|
206
|
-
type: string;
|
|
207
|
-
message: string;
|
|
208
|
-
} | undefined;
|
|
209
|
-
order_quantity?: {
|
|
210
|
-
type: string;
|
|
211
|
-
message: string;
|
|
212
|
-
} | undefined;
|
|
213
|
-
order_amount?: {
|
|
214
|
-
type: string;
|
|
215
|
-
message: string;
|
|
216
|
-
} | undefined;
|
|
217
|
-
visible_quantity?: {
|
|
218
|
-
type: string;
|
|
219
|
-
message: string;
|
|
220
|
-
} | undefined;
|
|
221
|
-
side?: {
|
|
222
|
-
type: string;
|
|
223
|
-
message: string;
|
|
224
|
-
} | undefined;
|
|
225
|
-
reduce_only?: {
|
|
226
|
-
type: string;
|
|
227
|
-
message: string;
|
|
228
|
-
} | undefined;
|
|
229
|
-
slippage?: {
|
|
230
|
-
type: string;
|
|
231
|
-
message: string;
|
|
232
|
-
} | undefined;
|
|
233
|
-
order_tag?: {
|
|
234
|
-
type: string;
|
|
235
|
-
message: string;
|
|
236
|
-
} | undefined;
|
|
237
|
-
level?: {
|
|
238
|
-
type: string;
|
|
239
|
-
message: string;
|
|
240
|
-
} | undefined;
|
|
241
|
-
post_only_adjust?: {
|
|
242
|
-
type: string;
|
|
243
|
-
message: string;
|
|
244
|
-
} | undefined;
|
|
245
|
-
total?: {
|
|
246
|
-
type: string;
|
|
247
|
-
message: string;
|
|
248
|
-
} | undefined;
|
|
249
|
-
quantity?: {
|
|
250
|
-
type: string;
|
|
251
|
-
message: string;
|
|
252
|
-
} | undefined;
|
|
253
|
-
type?: {
|
|
254
|
-
type: string;
|
|
255
|
-
message: string;
|
|
256
|
-
} | undefined;
|
|
257
|
-
price?: {
|
|
258
|
-
type: string;
|
|
259
|
-
message: string;
|
|
260
|
-
} | undefined;
|
|
261
|
-
algo_type?: {
|
|
262
|
-
type: string;
|
|
263
|
-
message: string;
|
|
264
|
-
} | undefined;
|
|
265
|
-
trigger_price_type?: {
|
|
266
|
-
type: string;
|
|
267
|
-
message: string;
|
|
268
|
-
} | undefined;
|
|
269
|
-
trigger_price?: {
|
|
270
|
-
type: string;
|
|
271
|
-
message: string;
|
|
272
|
-
} | undefined;
|
|
273
|
-
child_orders?: {
|
|
274
|
-
type: string;
|
|
275
|
-
message: string;
|
|
276
|
-
} | undefined;
|
|
277
|
-
tp_pnl?: {
|
|
278
|
-
type: string;
|
|
279
|
-
message: string;
|
|
280
|
-
} | undefined;
|
|
281
|
-
tp_offset?: {
|
|
282
|
-
type: string;
|
|
283
|
-
message: string;
|
|
284
|
-
} | undefined;
|
|
285
|
-
tp_offset_percentage?: {
|
|
286
|
-
type: string;
|
|
287
|
-
message: string;
|
|
288
|
-
} | undefined;
|
|
289
|
-
tp_ROI?: {
|
|
290
|
-
type: string;
|
|
291
|
-
message: string;
|
|
292
|
-
} | undefined;
|
|
293
|
-
tp_trigger_price?: {
|
|
294
|
-
type: string;
|
|
295
|
-
message: string;
|
|
296
|
-
} | undefined;
|
|
297
|
-
sl_pnl?: {
|
|
298
|
-
type: string;
|
|
299
|
-
message: string;
|
|
300
|
-
} | undefined;
|
|
301
|
-
sl_offset?: {
|
|
302
|
-
type: string;
|
|
303
|
-
message: string;
|
|
304
|
-
} | undefined;
|
|
305
|
-
sl_offset_percentage?: {
|
|
306
|
-
type: string;
|
|
307
|
-
message: string;
|
|
308
|
-
} | undefined;
|
|
309
|
-
sl_ROI?: {
|
|
310
|
-
type: string;
|
|
311
|
-
message: string;
|
|
312
|
-
} | undefined;
|
|
313
|
-
sl_trigger_price?: {
|
|
314
|
-
type: string;
|
|
315
|
-
message: string;
|
|
316
|
-
} | undefined;
|
|
317
|
-
} | null>;
|
|
67
|
+
validator: () => Promise<_orderly_network_hooks.OrderValidationResult | null>;
|
|
68
|
+
validate: () => Promise<_orderly_network_hooks.OrderValidationResult | null>;
|
|
318
69
|
};
|
|
319
70
|
freeCollateral: number;
|
|
320
71
|
metaState: {
|
|
321
72
|
dirty: { [K in keyof _orderly_network_types.OrderlyOrder]?: boolean; };
|
|
322
73
|
submitted: boolean;
|
|
323
74
|
validated: boolean;
|
|
324
|
-
errors:
|
|
325
|
-
symbol?: {
|
|
326
|
-
type: string;
|
|
327
|
-
message: string;
|
|
328
|
-
} | undefined;
|
|
329
|
-
order_type?: {
|
|
330
|
-
type: string;
|
|
331
|
-
message: string;
|
|
332
|
-
} | undefined;
|
|
333
|
-
order_type_ext?: {
|
|
334
|
-
type: string;
|
|
335
|
-
message: string;
|
|
336
|
-
} | undefined;
|
|
337
|
-
order_price?: {
|
|
338
|
-
type: string;
|
|
339
|
-
message: string;
|
|
340
|
-
} | undefined;
|
|
341
|
-
order_quantity?: {
|
|
342
|
-
type: string;
|
|
343
|
-
message: string;
|
|
344
|
-
} | undefined;
|
|
345
|
-
order_amount?: {
|
|
346
|
-
type: string;
|
|
347
|
-
message: string;
|
|
348
|
-
} | undefined;
|
|
349
|
-
visible_quantity?: {
|
|
350
|
-
type: string;
|
|
351
|
-
message: string;
|
|
352
|
-
} | undefined;
|
|
353
|
-
side?: {
|
|
354
|
-
type: string;
|
|
355
|
-
message: string;
|
|
356
|
-
} | undefined;
|
|
357
|
-
reduce_only?: {
|
|
358
|
-
type: string;
|
|
359
|
-
message: string;
|
|
360
|
-
} | undefined;
|
|
361
|
-
slippage?: {
|
|
362
|
-
type: string;
|
|
363
|
-
message: string;
|
|
364
|
-
} | undefined;
|
|
365
|
-
order_tag?: {
|
|
366
|
-
type: string;
|
|
367
|
-
message: string;
|
|
368
|
-
} | undefined;
|
|
369
|
-
level?: {
|
|
370
|
-
type: string;
|
|
371
|
-
message: string;
|
|
372
|
-
} | undefined;
|
|
373
|
-
post_only_adjust?: {
|
|
374
|
-
type: string;
|
|
375
|
-
message: string;
|
|
376
|
-
} | undefined;
|
|
377
|
-
total?: {
|
|
378
|
-
type: string;
|
|
379
|
-
message: string;
|
|
380
|
-
} | undefined;
|
|
381
|
-
quantity?: {
|
|
382
|
-
type: string;
|
|
383
|
-
message: string;
|
|
384
|
-
} | undefined;
|
|
385
|
-
type?: {
|
|
386
|
-
type: string;
|
|
387
|
-
message: string;
|
|
388
|
-
} | undefined;
|
|
389
|
-
price?: {
|
|
390
|
-
type: string;
|
|
391
|
-
message: string;
|
|
392
|
-
} | undefined;
|
|
393
|
-
algo_type?: {
|
|
394
|
-
type: string;
|
|
395
|
-
message: string;
|
|
396
|
-
} | undefined;
|
|
397
|
-
trigger_price_type?: {
|
|
398
|
-
type: string;
|
|
399
|
-
message: string;
|
|
400
|
-
} | undefined;
|
|
401
|
-
trigger_price?: {
|
|
402
|
-
type: string;
|
|
403
|
-
message: string;
|
|
404
|
-
} | undefined;
|
|
405
|
-
child_orders?: {
|
|
406
|
-
type: string;
|
|
407
|
-
message: string;
|
|
408
|
-
} | undefined;
|
|
409
|
-
tp_pnl?: {
|
|
410
|
-
type: string;
|
|
411
|
-
message: string;
|
|
412
|
-
} | undefined;
|
|
413
|
-
tp_offset?: {
|
|
414
|
-
type: string;
|
|
415
|
-
message: string;
|
|
416
|
-
} | undefined;
|
|
417
|
-
tp_offset_percentage?: {
|
|
418
|
-
type: string;
|
|
419
|
-
message: string;
|
|
420
|
-
} | undefined;
|
|
421
|
-
tp_ROI?: {
|
|
422
|
-
type: string;
|
|
423
|
-
message: string;
|
|
424
|
-
} | undefined;
|
|
425
|
-
tp_trigger_price?: {
|
|
426
|
-
type: string;
|
|
427
|
-
message: string;
|
|
428
|
-
} | undefined;
|
|
429
|
-
sl_pnl?: {
|
|
430
|
-
type: string;
|
|
431
|
-
message: string;
|
|
432
|
-
} | undefined;
|
|
433
|
-
sl_offset?: {
|
|
434
|
-
type: string;
|
|
435
|
-
message: string;
|
|
436
|
-
} | undefined;
|
|
437
|
-
sl_offset_percentage?: {
|
|
438
|
-
type: string;
|
|
439
|
-
message: string;
|
|
440
|
-
} | undefined;
|
|
441
|
-
sl_ROI?: {
|
|
442
|
-
type: string;
|
|
443
|
-
message: string;
|
|
444
|
-
} | undefined;
|
|
445
|
-
sl_trigger_price?: {
|
|
446
|
-
type: string;
|
|
447
|
-
message: string;
|
|
448
|
-
} | undefined;
|
|
449
|
-
} | null;
|
|
75
|
+
errors: _orderly_network_hooks.OrderValidationResult | null;
|
|
450
76
|
};
|
|
451
77
|
isMutating: boolean;
|
|
452
78
|
markPrice: number | undefined;
|