Add fee_cost and currency columns

This commit is contained in:
Matthias
2020-04-30 06:51:42 +02:00
parent 25d9001f88
commit dec1b10743
2 changed files with 23 additions and 3 deletions

View File

@@ -465,6 +465,10 @@ def test_migrate_old(mocker, default_conf, fee):
assert trade.initial_stop_loss == 0.0
assert trade.open_trade_price == trade._calc_open_trade_price()
assert trade.close_profit_abs is None
assert trade.fee_open_cost is None
assert trade.fee_open_currency is None
assert trade.fee_close_cost is None
assert trade.fee_close_currency is None
trade = Trade.query.filter(Trade.id == 2).first()
assert trade.close_rate is not None