@orderly.network/ui-tpsl 2.12.1 → 2.12.2-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.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.mjs
CHANGED
|
@@ -1960,7 +1960,10 @@ var useTPSLAdvanced = (props) => {
|
|
|
1960
1960
|
const slPriceError = useTpslPriceChecker({
|
|
1961
1961
|
slPrice: formattedOrder.sl_trigger_price,
|
|
1962
1962
|
liqPrice: state.estLiqPrice,
|
|
1963
|
-
side: formattedOrder.side
|
|
1963
|
+
side: formattedOrder.side,
|
|
1964
|
+
markPrice: state.markPrice,
|
|
1965
|
+
currentPosition: state.currentPosition,
|
|
1966
|
+
orderQuantity: Number(formattedOrder.order_quantity)
|
|
1964
1967
|
});
|
|
1965
1968
|
const onSubmit = () => {
|
|
1966
1969
|
const isSlPriceError = slPriceError?.sl_trigger_price?.type === ERROR_MSG_CODES.SL_PRICE_ERROR;
|