Standardize trade api outputs

there should be no difference between current_profit and close_profit
 it's always profit, and the information if it's a closed trade is available elsewhere
This commit is contained in:
Matthias
2020-11-03 07:34:21 +01:00
parent 887d78171c
commit cf89a773da
5 changed files with 36 additions and 9 deletions

View File

@@ -816,7 +816,11 @@ def test_to_json(default_conf, fee):
'amount_requested': 123.0,
'stake_amount': 0.001,
'close_profit': None,
'close_profit_pct': None,
'close_profit_abs': None,
'profit_ratio': None,
'profit_pct': None,
'profit_abs': None,
'sell_reason': None,
'sell_order_status': None,
'stop_loss': None,
@@ -880,7 +884,11 @@ def test_to_json(default_conf, fee):
'initial_stop_loss_pct': None,
'initial_stop_loss_ratio': None,
'close_profit': None,
'close_profit_pct': None,
'close_profit_abs': None,
'profit_ratio': None,
'profit_pct': None,
'profit_abs': None,
'close_rate_requested': None,
'fee_close': 0.0025,
'fee_close_cost': None,