flake8
This commit is contained in:
parent
da5617624c
commit
bbe8e4e494
@ -349,7 +349,8 @@ class Exchange(object):
|
||||
raise OperationalException(
|
||||
'In stoploss limit order, stop price should be more than limit price')
|
||||
|
||||
return self._api.create_order(pair, 'stop_loss', 'sell', amount, rate, {'stopPrice': stop_price})
|
||||
return self._api.create_order(pair, 'stop_loss', 'sell',
|
||||
amount, rate, {'stopPrice': stop_price})
|
||||
|
||||
@retrier
|
||||
def get_balance(self, currency: str) -> float:
|
||||
|
@ -492,8 +492,8 @@ class FreqtradeBot(object):
|
||||
# 0.98 is arbitrary here.
|
||||
limit_price = stop_price * 0.98
|
||||
|
||||
stoploss_order_id = self.exchange.stoploss_limit(pair=pair, amount=amount,
|
||||
stop_price=stop_price, rate=limit_price)['id']
|
||||
stoploss_order_id = self.exchange.stoploss_limit(
|
||||
pair=pair, amount=amount, stop_price=stop_price, rate=limit_price)['id']
|
||||
|
||||
self.rpc.send_msg({
|
||||
'type': RPCMessageType.BUY_NOTIFICATION,
|
||||
|
@ -231,8 +231,8 @@ class IStrategy(ABC):
|
||||
stoplossflag = False
|
||||
else:
|
||||
stoplossflag = self.stop_loss_reached(current_rate=current_rate, trade=trade,
|
||||
current_time=date, current_profit=current_profit,
|
||||
force_stoploss=force_stoploss)
|
||||
current_time=date, current_profit=current_profit,
|
||||
force_stoploss=force_stoploss)
|
||||
|
||||
if stoplossflag.sell_flag:
|
||||
return stoplossflag
|
||||
|
Loading…
Reference in New Issue
Block a user