keeping mypy happy

This commit is contained in:
misagh
2018-09-26 17:03:10 +02:00
parent 0594deafc6
commit 24364a56ea
2 changed files with 8 additions and 8 deletions

View File

@@ -338,11 +338,11 @@ class FreqtradeBot(object):
if avaliable_amount < stake_amount:
raise DependencyException(
'Available balance(%f %s) is lower than stake amount(%f %s)' % (
avaliable_amount, self.config['stake_currency'],
stake_amount, self.config['stake_currency'])
float(avaliable_amount), self.config['stake_currency'],
float(stake_amount), self.config['stake_currency'])
)
return stake_amount
return float(stake_amount)
def _get_min_pair_stake_amount(self, pair: str, price: float) -> Optional[float]:
markets = self.exchange.get_markets()