Add trade_duration to to_json

This commit is contained in:
Matthias
2021-01-23 12:43:27 +01:00
parent 9a3c425cf4
commit 3b51545d23
3 changed files with 7 additions and 0 deletions

View File

@@ -815,6 +815,7 @@ def test_to_json(default_conf, fee):
'amount': 123.0,
'amount_requested': 123.0,
'stake_amount': 0.001,
'trade_duration': None,
'close_profit': None,
'close_profit_pct': None,
'close_profit_abs': None,
@@ -869,6 +870,7 @@ def test_to_json(default_conf, fee):
'amount': 100.0,
'amount_requested': 101.0,
'stake_amount': 0.001,
'trade_duration': 60,
'stop_loss_abs': None,
'stop_loss_pct': None,
'stop_loss_ratio': None,