test exchange added

This commit is contained in:
misagh
2018-11-22 20:30:31 +01:00
parent ecb2c4dca3
commit 07ac902451
3 changed files with 39 additions and 3 deletions

View File

@@ -345,7 +345,7 @@ class Exchange(object):
stop_price = self.symbol_price_prec(pair, stop_price)
# Ensure rate is less than stop price
if stop_price >= rate:
if stop_price <= rate:
raise OperationalException(
'In stoploss limit order, stop price should be more than limit price')