@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.js
CHANGED
|
@@ -1962,7 +1962,10 @@ var useTPSLAdvanced = (props) => {
|
|
|
1962
1962
|
const slPriceError = hooks.useTpslPriceChecker({
|
|
1963
1963
|
slPrice: formattedOrder.sl_trigger_price,
|
|
1964
1964
|
liqPrice: state.estLiqPrice,
|
|
1965
|
-
side: formattedOrder.side
|
|
1965
|
+
side: formattedOrder.side,
|
|
1966
|
+
markPrice: state.markPrice,
|
|
1967
|
+
currentPosition: state.currentPosition,
|
|
1968
|
+
orderQuantity: Number(formattedOrder.order_quantity)
|
|
1966
1969
|
});
|
|
1967
1970
|
const onSubmit = () => {
|
|
1968
1971
|
const isSlPriceError = slPriceError?.sl_trigger_price?.type === hooks.ERROR_MSG_CODES.SL_PRICE_ERROR;
|