@orderly.network/ui-tpsl 2.6.0 → 2.6.1
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 +111 -7
- package/dist/index.d.ts +111 -7
- package/dist/index.js +19 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _orderly_network_types from '@orderly.network/types';
|
|
2
3
|
import { API, AlgoOrderRootType, PositionType, OrderSide, OrderlyOrder, AlgoOrder } from '@orderly.network/types';
|
|
4
|
+
import * as _orderly_network_hooks from '@orderly.network/hooks';
|
|
3
5
|
import { ComputedAlgoOrder } from '@orderly.network/hooks';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
6
|
+
import React, { ReactNode } from 'react';
|
|
5
7
|
import { ButtonProps } from '@orderly.network/ui';
|
|
6
8
|
|
|
7
|
-
type TPSLBuilderOptions = {
|
|
8
|
-
|
|
9
|
+
type TPSLBuilderOptions$1 = {
|
|
10
|
+
symbol: string;
|
|
11
|
+
position?: API.Position;
|
|
9
12
|
order?: API.AlgoOrder;
|
|
10
13
|
onTPSLTypeChange?: (type: AlgoOrderRootType) => void;
|
|
11
14
|
isEditing?: boolean;
|
|
@@ -29,6 +32,7 @@ type TPSLProps = {
|
|
|
29
32
|
onClose?: () => void;
|
|
30
33
|
onCancel?: () => void;
|
|
31
34
|
onComplete?: () => void;
|
|
35
|
+
withTriggerPrice?: boolean;
|
|
32
36
|
};
|
|
33
37
|
type PositionTPSLConfirmProps = {
|
|
34
38
|
symbol: string;
|
|
@@ -47,7 +51,7 @@ declare const PositionTPSLConfirm: (props: PositionTPSLConfirmProps) => react_js
|
|
|
47
51
|
|
|
48
52
|
type TPSLWidgetProps = {
|
|
49
53
|
onTPSLTypeChange?: (type: AlgoOrderRootType) => void;
|
|
50
|
-
} & TPSLBuilderOptions & TPSLProps;
|
|
54
|
+
} & TPSLBuilderOptions$1 & TPSLProps;
|
|
51
55
|
declare const TPSLWidget: (props: TPSLWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
52
56
|
declare const TPSLSheetId = "TPSLSheetId";
|
|
53
57
|
declare const TPSLDialogId = "TPSLDialogId";
|
|
@@ -83,13 +87,13 @@ type PositionTypeProps = {
|
|
|
83
87
|
|
|
84
88
|
declare const TPSLPositionTypeWidget: (props: PositionTypeProps) => react_jsx_runtime.JSX.Element;
|
|
85
89
|
|
|
86
|
-
type Props = {
|
|
90
|
+
type Props$1 = {
|
|
87
91
|
order: OrderlyOrder;
|
|
88
92
|
setOrderValue: (key: string, value: any) => void;
|
|
89
93
|
onSubmit: (formattedOrder: OrderlyOrder) => void;
|
|
90
94
|
onClose: () => void;
|
|
91
95
|
};
|
|
92
|
-
declare const TPSLAdvancedWidget: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
96
|
+
declare const TPSLAdvancedWidget: (props: Props$1) => react_jsx_runtime.JSX.Element;
|
|
93
97
|
declare const TPSLAdvancedSheetId = "TPSLAdvancedSheetId";
|
|
94
98
|
declare const TPSLAdvancedDialogId = "TPSLAdvancedDialogId";
|
|
95
99
|
|
|
@@ -103,4 +107,104 @@ declare const TPSLDetailWidget: (props: TPSLDetailProps) => react_jsx_runtime.JS
|
|
|
103
107
|
declare const TPSLDetailDialogId = "TPSLDetailDialogId ";
|
|
104
108
|
declare const TPSLDetailSheetId = "TPSLDetailSheetId";
|
|
105
109
|
|
|
106
|
-
|
|
110
|
+
declare const TPSLSimpleDialogWidget: React.FC<{
|
|
111
|
+
type: "tp" | "sl";
|
|
112
|
+
triggerPrice?: number;
|
|
113
|
+
symbol: string;
|
|
114
|
+
close?: () => void;
|
|
115
|
+
onComplete?: () => void;
|
|
116
|
+
showAdvancedTPSLDialog?: () => void;
|
|
117
|
+
}>;
|
|
118
|
+
declare const TPSLSimpleSheetId = "TPSLSimpleSheetId";
|
|
119
|
+
declare const TPSLSimpleDialogId = "TPSLSimpleDialogId";
|
|
120
|
+
|
|
121
|
+
type TPSLBuilderOptions = {
|
|
122
|
+
type: "tp" | "sl";
|
|
123
|
+
triggerPrice?: number;
|
|
124
|
+
symbol: string;
|
|
125
|
+
};
|
|
126
|
+
declare const useTPSLSimpleDialog: (options: TPSLBuilderOptions) => {
|
|
127
|
+
readonly symbolInfo: (<Key extends keyof API.SymbolExt>(key: Key, defaultValue?: API.SymbolExt[Key] | undefined) => API.SymbolExt[Key]) & (() => API.SymbolExt);
|
|
128
|
+
readonly maxQty: number;
|
|
129
|
+
readonly setQuantity: (value: number | string) => void;
|
|
130
|
+
readonly orderQuantity: string | number | undefined;
|
|
131
|
+
readonly isPosition: false;
|
|
132
|
+
readonly TPSL_OrderEntity: Partial<Omit<_orderly_network_types.BaseAlgoOrderEntity<AlgoOrderRootType.TP_SL>, "type" | "order_type" | "side" | "trigger_price"> & Partial<Pick<_orderly_network_types.BaseAlgoOrderEntity<AlgoOrderRootType.TP_SL>, "type" | "order_type" | "side" | "trigger_price">> & {
|
|
133
|
+
tp_pnl: number;
|
|
134
|
+
tp_offset: number;
|
|
135
|
+
tp_offset_percentage: number;
|
|
136
|
+
sl_pnl: number;
|
|
137
|
+
sl_offset: number;
|
|
138
|
+
sl_offset_percentage: number;
|
|
139
|
+
}>;
|
|
140
|
+
readonly setOrderValue: (key: string, value: number | string | boolean) => void;
|
|
141
|
+
readonly setPnL: (type: string, value: number | string) => void;
|
|
142
|
+
readonly setOrderPrice: (name: "tp_trigger_price" | "sl_trigger_price", value: number | string) => void;
|
|
143
|
+
readonly onSubmit: () => Promise<boolean | undefined>;
|
|
144
|
+
readonly errors: {
|
|
145
|
+
symbol?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
146
|
+
order_type_ext?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
147
|
+
order_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
148
|
+
order_quantity?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
149
|
+
order_amount?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
150
|
+
visible_quantity?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
151
|
+
reduce_only?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
152
|
+
slippage?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
153
|
+
order_tag?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
154
|
+
level?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
155
|
+
client_order_id?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
156
|
+
total?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
157
|
+
start_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
158
|
+
end_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
159
|
+
total_orders?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
160
|
+
distribution_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
161
|
+
skew?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
162
|
+
quantity?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
163
|
+
price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
164
|
+
algo_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
165
|
+
trigger_price_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
166
|
+
child_orders?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
167
|
+
position_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
168
|
+
tp_enable?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
169
|
+
sl_enable?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
170
|
+
tp_trigger_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
171
|
+
tp_order_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
172
|
+
tp_order_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
173
|
+
sl_trigger_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
174
|
+
sl_order_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
175
|
+
sl_order_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
176
|
+
algo_order_id?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
177
|
+
is_activated?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
178
|
+
broker_id?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
179
|
+
isStopOrder?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
180
|
+
type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
181
|
+
order_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
182
|
+
side?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
183
|
+
trigger_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
184
|
+
tp_pnl?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
185
|
+
tp_offset?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
186
|
+
tp_offset_percentage?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
187
|
+
sl_pnl?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
188
|
+
sl_offset?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
189
|
+
sl_offset_percentage?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
190
|
+
} | null;
|
|
191
|
+
readonly status: {
|
|
192
|
+
readonly isCreateMutating: boolean;
|
|
193
|
+
readonly isUpdateMutating: boolean;
|
|
194
|
+
};
|
|
195
|
+
readonly position: API.PositionTPSLExt;
|
|
196
|
+
readonly setValues: (values: Partial<ComputedAlgoOrder>) => void;
|
|
197
|
+
readonly type: "tp" | "sl";
|
|
198
|
+
readonly triggerPrice: number | undefined;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
type Props = ReturnType<typeof useTPSLSimpleDialog> & {
|
|
202
|
+
close?: () => void;
|
|
203
|
+
onComplete?: () => void;
|
|
204
|
+
showAdvancedTPSLDialog?: (options: {
|
|
205
|
+
qty: number;
|
|
206
|
+
}) => void;
|
|
207
|
+
};
|
|
208
|
+
declare const TPSLSimpleDialogUI: React.FC<Props>;
|
|
209
|
+
|
|
210
|
+
export { PositionTPSLConfirm, PositionTPSLPopover, PositionTPSLSheet, TPSLAdvancedDialogId, TPSLAdvancedSheetId, TPSLAdvancedWidget, TPSLDetailDialogId, type TPSLDetailProps, TPSLDetailSheetId, TPSLDetailWidget, TPSLDialogId, TPSLPositionTypeWidget, TPSLSheetId, TPSLSimpleDialogId, TPSLSimpleDialogUI, TPSLSimpleDialogWidget, TPSLSimpleSheetId, TPSLWidget, type TPSLWidgetProps, useTPSLSimpleDialog };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _orderly_network_types from '@orderly.network/types';
|
|
2
3
|
import { API, AlgoOrderRootType, PositionType, OrderSide, OrderlyOrder, AlgoOrder } from '@orderly.network/types';
|
|
4
|
+
import * as _orderly_network_hooks from '@orderly.network/hooks';
|
|
3
5
|
import { ComputedAlgoOrder } from '@orderly.network/hooks';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
6
|
+
import React, { ReactNode } from 'react';
|
|
5
7
|
import { ButtonProps } from '@orderly.network/ui';
|
|
6
8
|
|
|
7
|
-
type TPSLBuilderOptions = {
|
|
8
|
-
|
|
9
|
+
type TPSLBuilderOptions$1 = {
|
|
10
|
+
symbol: string;
|
|
11
|
+
position?: API.Position;
|
|
9
12
|
order?: API.AlgoOrder;
|
|
10
13
|
onTPSLTypeChange?: (type: AlgoOrderRootType) => void;
|
|
11
14
|
isEditing?: boolean;
|
|
@@ -29,6 +32,7 @@ type TPSLProps = {
|
|
|
29
32
|
onClose?: () => void;
|
|
30
33
|
onCancel?: () => void;
|
|
31
34
|
onComplete?: () => void;
|
|
35
|
+
withTriggerPrice?: boolean;
|
|
32
36
|
};
|
|
33
37
|
type PositionTPSLConfirmProps = {
|
|
34
38
|
symbol: string;
|
|
@@ -47,7 +51,7 @@ declare const PositionTPSLConfirm: (props: PositionTPSLConfirmProps) => react_js
|
|
|
47
51
|
|
|
48
52
|
type TPSLWidgetProps = {
|
|
49
53
|
onTPSLTypeChange?: (type: AlgoOrderRootType) => void;
|
|
50
|
-
} & TPSLBuilderOptions & TPSLProps;
|
|
54
|
+
} & TPSLBuilderOptions$1 & TPSLProps;
|
|
51
55
|
declare const TPSLWidget: (props: TPSLWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
52
56
|
declare const TPSLSheetId = "TPSLSheetId";
|
|
53
57
|
declare const TPSLDialogId = "TPSLDialogId";
|
|
@@ -83,13 +87,13 @@ type PositionTypeProps = {
|
|
|
83
87
|
|
|
84
88
|
declare const TPSLPositionTypeWidget: (props: PositionTypeProps) => react_jsx_runtime.JSX.Element;
|
|
85
89
|
|
|
86
|
-
type Props = {
|
|
90
|
+
type Props$1 = {
|
|
87
91
|
order: OrderlyOrder;
|
|
88
92
|
setOrderValue: (key: string, value: any) => void;
|
|
89
93
|
onSubmit: (formattedOrder: OrderlyOrder) => void;
|
|
90
94
|
onClose: () => void;
|
|
91
95
|
};
|
|
92
|
-
declare const TPSLAdvancedWidget: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
96
|
+
declare const TPSLAdvancedWidget: (props: Props$1) => react_jsx_runtime.JSX.Element;
|
|
93
97
|
declare const TPSLAdvancedSheetId = "TPSLAdvancedSheetId";
|
|
94
98
|
declare const TPSLAdvancedDialogId = "TPSLAdvancedDialogId";
|
|
95
99
|
|
|
@@ -103,4 +107,104 @@ declare const TPSLDetailWidget: (props: TPSLDetailProps) => react_jsx_runtime.JS
|
|
|
103
107
|
declare const TPSLDetailDialogId = "TPSLDetailDialogId ";
|
|
104
108
|
declare const TPSLDetailSheetId = "TPSLDetailSheetId";
|
|
105
109
|
|
|
106
|
-
|
|
110
|
+
declare const TPSLSimpleDialogWidget: React.FC<{
|
|
111
|
+
type: "tp" | "sl";
|
|
112
|
+
triggerPrice?: number;
|
|
113
|
+
symbol: string;
|
|
114
|
+
close?: () => void;
|
|
115
|
+
onComplete?: () => void;
|
|
116
|
+
showAdvancedTPSLDialog?: () => void;
|
|
117
|
+
}>;
|
|
118
|
+
declare const TPSLSimpleSheetId = "TPSLSimpleSheetId";
|
|
119
|
+
declare const TPSLSimpleDialogId = "TPSLSimpleDialogId";
|
|
120
|
+
|
|
121
|
+
type TPSLBuilderOptions = {
|
|
122
|
+
type: "tp" | "sl";
|
|
123
|
+
triggerPrice?: number;
|
|
124
|
+
symbol: string;
|
|
125
|
+
};
|
|
126
|
+
declare const useTPSLSimpleDialog: (options: TPSLBuilderOptions) => {
|
|
127
|
+
readonly symbolInfo: (<Key extends keyof API.SymbolExt>(key: Key, defaultValue?: API.SymbolExt[Key] | undefined) => API.SymbolExt[Key]) & (() => API.SymbolExt);
|
|
128
|
+
readonly maxQty: number;
|
|
129
|
+
readonly setQuantity: (value: number | string) => void;
|
|
130
|
+
readonly orderQuantity: string | number | undefined;
|
|
131
|
+
readonly isPosition: false;
|
|
132
|
+
readonly TPSL_OrderEntity: Partial<Omit<_orderly_network_types.BaseAlgoOrderEntity<AlgoOrderRootType.TP_SL>, "type" | "order_type" | "side" | "trigger_price"> & Partial<Pick<_orderly_network_types.BaseAlgoOrderEntity<AlgoOrderRootType.TP_SL>, "type" | "order_type" | "side" | "trigger_price">> & {
|
|
133
|
+
tp_pnl: number;
|
|
134
|
+
tp_offset: number;
|
|
135
|
+
tp_offset_percentage: number;
|
|
136
|
+
sl_pnl: number;
|
|
137
|
+
sl_offset: number;
|
|
138
|
+
sl_offset_percentage: number;
|
|
139
|
+
}>;
|
|
140
|
+
readonly setOrderValue: (key: string, value: number | string | boolean) => void;
|
|
141
|
+
readonly setPnL: (type: string, value: number | string) => void;
|
|
142
|
+
readonly setOrderPrice: (name: "tp_trigger_price" | "sl_trigger_price", value: number | string) => void;
|
|
143
|
+
readonly onSubmit: () => Promise<boolean | undefined>;
|
|
144
|
+
readonly errors: {
|
|
145
|
+
symbol?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
146
|
+
order_type_ext?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
147
|
+
order_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
148
|
+
order_quantity?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
149
|
+
order_amount?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
150
|
+
visible_quantity?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
151
|
+
reduce_only?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
152
|
+
slippage?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
153
|
+
order_tag?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
154
|
+
level?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
155
|
+
client_order_id?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
156
|
+
total?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
157
|
+
start_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
158
|
+
end_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
159
|
+
total_orders?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
160
|
+
distribution_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
161
|
+
skew?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
162
|
+
quantity?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
163
|
+
price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
164
|
+
algo_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
165
|
+
trigger_price_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
166
|
+
child_orders?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
167
|
+
position_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
168
|
+
tp_enable?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
169
|
+
sl_enable?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
170
|
+
tp_trigger_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
171
|
+
tp_order_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
172
|
+
tp_order_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
173
|
+
sl_trigger_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
174
|
+
sl_order_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
175
|
+
sl_order_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
176
|
+
algo_order_id?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
177
|
+
is_activated?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
178
|
+
broker_id?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
179
|
+
isStopOrder?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
180
|
+
type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
181
|
+
order_type?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
182
|
+
side?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
183
|
+
trigger_price?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
184
|
+
tp_pnl?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
185
|
+
tp_offset?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
186
|
+
tp_offset_percentage?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
187
|
+
sl_pnl?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
188
|
+
sl_offset?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
189
|
+
sl_offset_percentage?: _orderly_network_hooks.OrderValidationItem | undefined;
|
|
190
|
+
} | null;
|
|
191
|
+
readonly status: {
|
|
192
|
+
readonly isCreateMutating: boolean;
|
|
193
|
+
readonly isUpdateMutating: boolean;
|
|
194
|
+
};
|
|
195
|
+
readonly position: API.PositionTPSLExt;
|
|
196
|
+
readonly setValues: (values: Partial<ComputedAlgoOrder>) => void;
|
|
197
|
+
readonly type: "tp" | "sl";
|
|
198
|
+
readonly triggerPrice: number | undefined;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
type Props = ReturnType<typeof useTPSLSimpleDialog> & {
|
|
202
|
+
close?: () => void;
|
|
203
|
+
onComplete?: () => void;
|
|
204
|
+
showAdvancedTPSLDialog?: (options: {
|
|
205
|
+
qty: number;
|
|
206
|
+
}) => void;
|
|
207
|
+
};
|
|
208
|
+
declare const TPSLSimpleDialogUI: React.FC<Props>;
|
|
209
|
+
|
|
210
|
+
export { PositionTPSLConfirm, PositionTPSLPopover, PositionTPSLSheet, TPSLAdvancedDialogId, TPSLAdvancedSheetId, TPSLAdvancedWidget, TPSLDetailDialogId, type TPSLDetailProps, TPSLDetailSheetId, TPSLDetailWidget, TPSLDialogId, TPSLPositionTypeWidget, TPSLSheetId, TPSLSimpleDialogId, TPSLSimpleDialogUI, TPSLSimpleDialogWidget, TPSLSimpleSheetId, TPSLWidget, type TPSLWidgetProps, useTPSLSimpleDialog };
|