Update Gateio stoploss adjust

This commit is contained in:
Matthias
2022-03-18 10:41:38 +01:00
parent f37038fb7d
commit 0c63c0bbb3
2 changed files with 9 additions and 4 deletions

View File

@@ -61,4 +61,5 @@ class Gateio(Exchange):
Verify stop_loss against stoploss-order value (limit or price)
Returns True if adjustment is necessary.
"""
return stop_loss > float(order['stopPrice'])
return ((side == "sell" and stop_loss > float(order['stopPrice'])) or
(side == "buy" and stop_loss < float(order['stopPrice'])))