add fee to sqlalchemy model and respecting it in calc_profit

This commit is contained in:
gcarq
2017-11-01 02:20:55 +01:00
parent 41510fdb32
commit cd18629433
4 changed files with 14 additions and 13 deletions

View File

@@ -128,7 +128,7 @@ def test_handle_trade(conf, mocker):
})
assert trade.close_rate == 0.17256061
assert trade.close_profit == 1.3748724900565639
assert trade.close_profit == 1.369872490056564
assert trade.close_date is not None