Address some comments made in the review
This commit is contained in:
parent
4c9295fe2d
commit
4d56e3b36e
@ -296,8 +296,11 @@ class FreqtradeBot:
|
|||||||
|
|
||||||
def create_trade(self, pair: str) -> bool:
|
def create_trade(self, pair: str) -> bool:
|
||||||
"""
|
"""
|
||||||
Check the implemented trading strategy for buy-signals.
|
Check the implemented trading strategy for buy signals.
|
||||||
If the pair triggers the buy_signal a new trade record gets created.
|
|
||||||
|
If the pair triggers the buy signal a new trade record gets created
|
||||||
|
and the buy-order opening the trade gets issued towards the exchange.
|
||||||
|
|
||||||
:return: True if a trade has been created.
|
:return: True if a trade has been created.
|
||||||
"""
|
"""
|
||||||
logger.debug(f"create_trade for pair {pair}")
|
logger.debug(f"create_trade for pair {pair}")
|
||||||
@ -467,7 +470,7 @@ class FreqtradeBot:
|
|||||||
if not whitelist:
|
if not whitelist:
|
||||||
logger.info("Active pair whitelist is empty.")
|
logger.info("Active pair whitelist is empty.")
|
||||||
else:
|
else:
|
||||||
# Remove currently opened and latest pairs from whitelist
|
# Remove pairs for currently opened trades from the whitelist
|
||||||
for trade in Trade.get_open_trades():
|
for trade in Trade.get_open_trades():
|
||||||
if trade.pair in whitelist:
|
if trade.pair in whitelist:
|
||||||
whitelist.remove(trade.pair)
|
whitelist.remove(trade.pair)
|
||||||
|
Loading…
Reference in New Issue
Block a user