fixed flake

This commit is contained in:
hroff-1902 2019-02-10 22:28:40 +03:00 committed by GitHub
parent 08d35f3e15
commit 5e741a0f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,8 +267,8 @@ class FreqtradeBot(object):
# Check if stake_amount is fulfilled # Check if stake_amount is fulfilled
if avaliable_amount < stake_amount: if avaliable_amount < stake_amount:
raise DependencyException( raise DependencyException(
f"Available balance({avaliable_amount} {self.config['stake_currency']}) is lower than " f"Available balance({avaliable_amount} {self.config['stake_currency']}) is "
f"stake amount({stake_amount} {self.config['stake_currency']})" f"lower than stake amount({stake_amount} {self.config['stake_currency']})"
) )
return stake_amount return stake_amount
@ -332,7 +332,8 @@ class FreqtradeBot(object):
if not stake_amount: if not stake_amount:
return False return False
logger.info(f'Buy signal found: about create a new trade with stake_amount: {stake_amount} ...') logger.info(f"Buy signal found: about create a new trade with stake_amount: "
f"{stake_amount} ...")
bidstrat_check_depth_of_market = self.config.get('bid_strategy', {}).\ bidstrat_check_depth_of_market = self.config.get('bid_strategy', {}).\
get('check_depth_of_market', {}) get('check_depth_of_market', {})