Cache open_trade_price

This commit is contained in:
Matthias
2019-12-17 07:02:02 +01:00
parent 0b5354f13d
commit 307ade6251
2 changed files with 18 additions and 7 deletions

View File

@@ -498,6 +498,7 @@ def test_migrate_old(mocker, default_conf, fee):
assert trade.max_rate == 0.0
assert trade.stop_loss == 0.0
assert trade.initial_stop_loss == 0.0
assert trade.open_trade_price == 0.26758131848350003
def test_migrate_new(mocker, default_conf, fee, caplog):
@@ -580,6 +581,7 @@ def test_migrate_new(mocker, default_conf, fee, caplog):
assert log_has("trying trades_bak1", caplog)
assert log_has("trying trades_bak2", caplog)
assert log_has("Running database migration - backup available as trades_bak2", caplog)
assert trade.open_trade_price == 0.26758131848350003
def test_migrate_mid_state(mocker, default_conf, fee, caplog):