Update Exception to contain more info

part of #8300
This commit is contained in:
Matthias 2023-03-13 19:40:48 +01:00
parent d723979c42
commit 3d31eca365

View File

@ -1138,7 +1138,10 @@ class Exchange:
# Ensure rate is less than stop price
if bad_stop_price:
raise OperationalException(
'In stoploss limit order, stop price should be more than limit price')
"In stoploss limit order, stop price should be more than limit price. "
f"Stop price: {stop_price}, Limit price: {limit_rate}, "
f"Limit Price pct: {limit_price_pct}"
)
return limit_rate
def _get_stop_params(self, side: BuySell, ordertype: str, stop_price: float) -> Dict: