Skip to content

Commit

Permalink
fixed one more occurence of executed buy, and test
Browse files Browse the repository at this point in the history
  • Loading branch information
yazeed committed Feb 11, 2020
1 parent 4fedf1e commit 5f4c209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion freqtrade/freqtradebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def create_trade(self, pair: str) -> bool:
else:
return False

logger.info(f'Executed Buy for {pair}')
logger.info(f'Executing Buy for {pair}')
return self.execute_buy(pair, stake_amount)
else:
return False
Expand Down
2 changes: 1 addition & 1 deletion tests/test_freqtradebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def test_edge_overrides_stoploss(limit_buy_order, fee, caplog, mocker, edge_conf

# stoploss shoud be hit
assert freqtrade.handle_trade(trade) is True
assert log_has('Executed Sell for NEO/BTC. Reason: SellType.STOP_LOSS', caplog)
assert log_has('Executing Sell for NEO/BTC. Reason: SellType.STOP_LOSS', caplog)
assert trade.sell_reason == SellType.STOP_LOSS.value


Expand Down

0 comments on commit 5f4c209

Please sign in to comment.