@kodiak-finance/orderly-ui-tpsl 2.8.18-rc.1 → 2.8.19-rc.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 +14 -9
- package/dist/index.d.ts +14 -9
- package/dist/index.js +3584 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3561 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -64,6 +64,8 @@ declare const useTPSLBuilder: (options: TPSLBuilderOptions$1 & PropsWithTriggerP
|
|
|
64
64
|
readonly setPnL: (type: string, value: number | string) => void;
|
|
65
65
|
readonly setOrderPrice: (name: "tp_trigger_price" | "sl_trigger_price", value: number | string) => void;
|
|
66
66
|
readonly onSubmit: () => Promise<boolean | undefined>;
|
|
67
|
+
readonly slPriceError: _kodiak_finance_orderly_hooks.OrderValidationResult | null;
|
|
68
|
+
readonly estLiqPrice: number | undefined;
|
|
67
69
|
readonly metaState: {
|
|
68
70
|
dirty: { [K in keyof _kodiak_finance_orderly_types.OrderlyOrder]?: boolean; };
|
|
69
71
|
submitted: boolean;
|
|
@@ -95,8 +97,6 @@ declare const useTPSLBuilder: (options: TPSLBuilderOptions$1 & PropsWithTriggerP
|
|
|
95
97
|
trigger_price_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
96
98
|
child_orders?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
97
99
|
position_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
98
|
-
tp_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
99
|
-
sl_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
100
100
|
tp_trigger_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
101
101
|
tp_order_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
102
102
|
tp_order_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
@@ -146,8 +146,6 @@ declare const useTPSLBuilder: (options: TPSLBuilderOptions$1 & PropsWithTriggerP
|
|
|
146
146
|
trigger_price_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
147
147
|
child_orders?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
148
148
|
position_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
149
|
-
tp_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
150
|
-
sl_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
151
149
|
tp_trigger_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
152
150
|
tp_order_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
153
151
|
tp_order_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
@@ -180,7 +178,6 @@ type TPSLBuilderState = ReturnType<typeof useTPSLBuilder>;
|
|
|
180
178
|
|
|
181
179
|
type TPSLProps = {
|
|
182
180
|
close?: () => void;
|
|
183
|
-
onClose?: () => void;
|
|
184
181
|
onCancel?: () => void;
|
|
185
182
|
onComplete?: () => void;
|
|
186
183
|
withTriggerPrice?: boolean;
|
|
@@ -236,7 +233,9 @@ declare const useTPSLAdvanced: (props: Props$3) => {
|
|
|
236
233
|
order: OrderlyOrder;
|
|
237
234
|
formattedOrder: Partial<OrderlyOrder>;
|
|
238
235
|
symbolInfo: _kodiak_finance_orderly_types.API.SymbolExt;
|
|
239
|
-
|
|
236
|
+
slPriceError: OrderValidationResult | null;
|
|
237
|
+
estLiqPrice: number | null;
|
|
238
|
+
setValue: (key: "symbol" | "type" | "order_type" | "order_type_ext" | "order_price" | "order_quantity" | "order_amount" | "visible_quantity" | "side" | "reduce_only" | "slippage" | "order_tag" | "level" | "post_only_adjust" | "client_order_id" | "total" | "start_price" | "end_price" | "total_orders" | "distribution_type" | "skew" | "activated_price" | "callback_value" | "callback_rate" | "quantity" | "price" | "algo_type" | "trigger_price_type" | "trigger_price" | "child_orders" | "position_type" | "tp_pnl" | "tp_offset" | "tp_offset_percentage" | "tp_ROI" | "tp_trigger_price" | "tp_order_price" | "tp_order_type" | "sl_pnl" | "sl_offset" | "sl_offset_percentage" | "sl_ROI" | "sl_trigger_price" | "sl_order_price" | "sl_order_type", value: any, options?: {
|
|
240
239
|
shouldUpdateLastChangedField?: boolean;
|
|
241
240
|
}) => void;
|
|
242
241
|
setValues: (values: Partial<OrderlyOrder>) => void;
|
|
@@ -337,8 +336,6 @@ declare const useTPSLSimpleDialog: (options: TPSLBuilderOptions) => {
|
|
|
337
336
|
trigger_price_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
338
337
|
child_orders?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
339
338
|
position_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
340
|
-
tp_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
341
|
-
sl_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
342
339
|
tp_trigger_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
343
340
|
tp_order_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
344
341
|
tp_order_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
@@ -386,4 +383,12 @@ declare const EditBracketOrderWidget: (props: {
|
|
|
386
383
|
declare const EditBracketOrderSheetId = "EditBracketOrderSheetId";
|
|
387
384
|
declare const EditBracketOrderDialogId = "EditBracketOrderDialogId";
|
|
388
385
|
|
|
389
|
-
|
|
386
|
+
declare const CloseToLiqPriceIcon: {
|
|
387
|
+
({ slPriceError, className, }: {
|
|
388
|
+
slPriceError: OrderValidationResult | null;
|
|
389
|
+
className?: string;
|
|
390
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
391
|
+
displayName: string;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
export { ArrowRightIcon, CloseToLiqPriceIcon, EditBracketOrderDialogId, EditBracketOrderSheetId, EditBracketOrderWidget, PositionTPSLConfirm, PositionTPSLPopover, PositionTPSLSheet, TPSL, TPSLAdvancedDialogId, TPSLAdvancedSheetId, TPSLAdvancedUI, TPSLAdvancedWidget, type TPSLBuilderOptions$1 as TPSLBuilderOptions, type TPSLBuilderState, TPSLDetailDialogId, type TPSLDetailProps, TPSLDetailSheetId, TPSLDetailWidget, TPSLDialogId, TPSLPositionTypeWidget, type TPSLProps, TPSLSheetId, TPSLSimpleDialogId, TPSLSimpleDialogUI, TPSLSimpleDialogWidget, TPSLSimpleSheetId, TPSLWidget, type TPSLWidgetProps, useTPSLAdvanced, useTPSLBuilder, useTPSLSimpleDialog };
|
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ declare const useTPSLBuilder: (options: TPSLBuilderOptions$1 & PropsWithTriggerP
|
|
|
64
64
|
readonly setPnL: (type: string, value: number | string) => void;
|
|
65
65
|
readonly setOrderPrice: (name: "tp_trigger_price" | "sl_trigger_price", value: number | string) => void;
|
|
66
66
|
readonly onSubmit: () => Promise<boolean | undefined>;
|
|
67
|
+
readonly slPriceError: _kodiak_finance_orderly_hooks.OrderValidationResult | null;
|
|
68
|
+
readonly estLiqPrice: number | undefined;
|
|
67
69
|
readonly metaState: {
|
|
68
70
|
dirty: { [K in keyof _kodiak_finance_orderly_types.OrderlyOrder]?: boolean; };
|
|
69
71
|
submitted: boolean;
|
|
@@ -95,8 +97,6 @@ declare const useTPSLBuilder: (options: TPSLBuilderOptions$1 & PropsWithTriggerP
|
|
|
95
97
|
trigger_price_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
96
98
|
child_orders?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
97
99
|
position_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
98
|
-
tp_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
99
|
-
sl_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
100
100
|
tp_trigger_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
101
101
|
tp_order_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
102
102
|
tp_order_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
@@ -146,8 +146,6 @@ declare const useTPSLBuilder: (options: TPSLBuilderOptions$1 & PropsWithTriggerP
|
|
|
146
146
|
trigger_price_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
147
147
|
child_orders?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
148
148
|
position_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
149
|
-
tp_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
150
|
-
sl_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
151
149
|
tp_trigger_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
152
150
|
tp_order_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
153
151
|
tp_order_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
@@ -180,7 +178,6 @@ type TPSLBuilderState = ReturnType<typeof useTPSLBuilder>;
|
|
|
180
178
|
|
|
181
179
|
type TPSLProps = {
|
|
182
180
|
close?: () => void;
|
|
183
|
-
onClose?: () => void;
|
|
184
181
|
onCancel?: () => void;
|
|
185
182
|
onComplete?: () => void;
|
|
186
183
|
withTriggerPrice?: boolean;
|
|
@@ -236,7 +233,9 @@ declare const useTPSLAdvanced: (props: Props$3) => {
|
|
|
236
233
|
order: OrderlyOrder;
|
|
237
234
|
formattedOrder: Partial<OrderlyOrder>;
|
|
238
235
|
symbolInfo: _kodiak_finance_orderly_types.API.SymbolExt;
|
|
239
|
-
|
|
236
|
+
slPriceError: OrderValidationResult | null;
|
|
237
|
+
estLiqPrice: number | null;
|
|
238
|
+
setValue: (key: "symbol" | "type" | "order_type" | "order_type_ext" | "order_price" | "order_quantity" | "order_amount" | "visible_quantity" | "side" | "reduce_only" | "slippage" | "order_tag" | "level" | "post_only_adjust" | "client_order_id" | "total" | "start_price" | "end_price" | "total_orders" | "distribution_type" | "skew" | "activated_price" | "callback_value" | "callback_rate" | "quantity" | "price" | "algo_type" | "trigger_price_type" | "trigger_price" | "child_orders" | "position_type" | "tp_pnl" | "tp_offset" | "tp_offset_percentage" | "tp_ROI" | "tp_trigger_price" | "tp_order_price" | "tp_order_type" | "sl_pnl" | "sl_offset" | "sl_offset_percentage" | "sl_ROI" | "sl_trigger_price" | "sl_order_price" | "sl_order_type", value: any, options?: {
|
|
240
239
|
shouldUpdateLastChangedField?: boolean;
|
|
241
240
|
}) => void;
|
|
242
241
|
setValues: (values: Partial<OrderlyOrder>) => void;
|
|
@@ -337,8 +336,6 @@ declare const useTPSLSimpleDialog: (options: TPSLBuilderOptions) => {
|
|
|
337
336
|
trigger_price_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
338
337
|
child_orders?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
339
338
|
position_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
340
|
-
tp_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
341
|
-
sl_enable?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
342
339
|
tp_trigger_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
343
340
|
tp_order_price?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
344
341
|
tp_order_type?: _kodiak_finance_orderly_hooks.OrderValidationItem | undefined;
|
|
@@ -386,4 +383,12 @@ declare const EditBracketOrderWidget: (props: {
|
|
|
386
383
|
declare const EditBracketOrderSheetId = "EditBracketOrderSheetId";
|
|
387
384
|
declare const EditBracketOrderDialogId = "EditBracketOrderDialogId";
|
|
388
385
|
|
|
389
|
-
|
|
386
|
+
declare const CloseToLiqPriceIcon: {
|
|
387
|
+
({ slPriceError, className, }: {
|
|
388
|
+
slPriceError: OrderValidationResult | null;
|
|
389
|
+
className?: string;
|
|
390
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
391
|
+
displayName: string;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
export { ArrowRightIcon, CloseToLiqPriceIcon, EditBracketOrderDialogId, EditBracketOrderSheetId, EditBracketOrderWidget, PositionTPSLConfirm, PositionTPSLPopover, PositionTPSLSheet, TPSL, TPSLAdvancedDialogId, TPSLAdvancedSheetId, TPSLAdvancedUI, TPSLAdvancedWidget, type TPSLBuilderOptions$1 as TPSLBuilderOptions, type TPSLBuilderState, TPSLDetailDialogId, type TPSLDetailProps, TPSLDetailSheetId, TPSLDetailWidget, TPSLDialogId, TPSLPositionTypeWidget, type TPSLProps, TPSLSheetId, TPSLSimpleDialogId, TPSLSimpleDialogUI, TPSLSimpleDialogWidget, TPSLSimpleSheetId, TPSLWidget, type TPSLWidgetProps, useTPSLAdvanced, useTPSLBuilder, useTPSLSimpleDialog };
|