Include transaction fees into balance check determination of being able to trade

This commit is contained in:
Ramon Bastiaans
2018-02-05 22:38:33 +01:00
parent 71636e8326
commit e99afe7597
2 changed files with 9 additions and 4 deletions

View File

@@ -220,7 +220,7 @@ def test_create_trade_no_stake_amount(default_conf, ticker, mocker):
get_ticker=ticker,
buy=MagicMock(return_value='mocked_limit_buy'),
get_balance=MagicMock(return_value=default_conf['stake_amount'] * 0.5))
with pytest.raises(DependencyException, match=r'.*stake amount.*'):
with pytest.raises(DependencyException, match=r'.*not enough funds.*'):
create_trade(default_conf['stake_amount'], int(default_conf['ticker_interval']))