fix and improve #365
fix and improve #365

mahiso/poloniexlendingbot,BitBotFactory/poloniexlendingbot,mahiso/poloniexlendingbot,Mikadily/poloniexlendingbot,BitBotFactory/poloniexlendingbot,Mikadily/poloniexlendingbot,mahiso/poloniexlendingbot,BitBotFactory/poloniexlendingbot,Mikadily/poloniexlendingbot,mahiso/poloniexlendingbot,BitBotFactory/poloniexlendingbot