Skip to content

Commit

Permalink
improve docstring for create_trades
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Aug 14, 2019
1 parent a76136c commit a4ab425
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions freqtrade/freqtradebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,10 @@ def _get_min_pair_stake_amount(self, pair: str, price: float) -> Optional[float]

def create_trades(self) -> bool:
"""
Checks the implemented trading indicator(s) for a randomly picked pair,
if one pair triggers the buy_signal a new trade record gets created
:return: True if a trade object has been created and persisted, False otherwise
Checks the implemented trading strategy for buy-signals, using the active pair whitelist.
If a pair triggers the buy_signal a new trade record gets created.
Checks pairs as long as the open trade count is below `max_open_trades`.
:return: True if at least one trade has been created.
"""
interval = self.strategy.ticker_interval
whitelist = copy.deepcopy(self.active_pair_whitelist)
Expand Down

0 comments on commit a4ab425

Please sign in to comment.