Revert "moved binance.stoploss_adjust to exchange class"

This reverts commit 6bb93bdc25.
This commit is contained in:
Sam Germain
2022-03-12 20:07:50 -06:00
parent bf5afbcdbd
commit 7e7e596372
3 changed files with 8 additions and 13 deletions

View File

@@ -795,7 +795,7 @@ class Exchange:
Verify stop_loss against stoploss-order value (limit or price)
Returns True if adjustment is necessary.
"""
return stop_loss > float(order['stopPrice'])
raise OperationalException(f"stoploss is not implemented for {self.name}.")
def _get_stop_params(self, ordertype: str, stop_price: float) -> Dict:
params = self._params.copy()