fix flake8 code review

This commit is contained in:
Jean-Baptiste LE STANG 2017-12-30 00:18:29 +01:00
parent c252ea4d14
commit 585681c8ae
3 changed files with 15 additions and 15 deletions

View File

@ -78,7 +78,7 @@ def _process(dynamic_whitelist: Optional[int] = 0) -> bool:
# Numbers of trading slots available
nb_trades_left = float(_CONF['max_open_trades'] - len (trades))
print("nb_trades_left "+str(nb_trades_left))
#stake_amount in the conf is being used as the max value authorized
# Stake_amount in the conf is being used as the max value authorized
stake_amount = min(_CONF['stake_amount'], balance / nb_trades_left)
print("stake amount "+str(_CONF['stake_amount'])+" "+str(balance))
# Create entity and execute trade