removing close profit is trade is open
This commit is contained in:
parent
6045f07a9c
commit
1678a039ae
@ -203,7 +203,7 @@ class Telegram(RPC):
|
|||||||
"*Open Rate:* `{open_rate:.8f}`",
|
"*Open Rate:* `{open_rate:.8f}`",
|
||||||
"*Close Rate:* `{close_rate}`" if r['close_rate'] else "",
|
"*Close Rate:* `{close_rate}`" if r['close_rate'] else "",
|
||||||
"*Current Rate:* `{current_rate:.8f}`",
|
"*Current Rate:* `{current_rate:.8f}`",
|
||||||
"*Close Profit:* `{close_profit}`",
|
"*Close Profit:* `{close_profit}`" if r['close_profit'] else "",
|
||||||
"*Current Profit:* `{current_profit:.2f}%`",
|
"*Current Profit:* `{current_profit:.2f}%`",
|
||||||
"*Open Order:* `{open_order}`"
|
"*Open Order:* `{open_order}`"
|
||||||
]
|
]
|
||||||
|
@ -272,6 +272,7 @@ def test_status_handle(default_conf, update, ticker, fee, markets, mocker) -> No
|
|||||||
lines = msg_mock.call_args_list[0][0][0].split('\n')
|
lines = msg_mock.call_args_list[0][0][0].split('\n')
|
||||||
assert '' not in lines
|
assert '' not in lines
|
||||||
assert 'Close Rate' not in ''.join(lines)
|
assert 'Close Rate' not in ''.join(lines)
|
||||||
|
assert 'Close Profit' not in ''.join(lines)
|
||||||
|
|
||||||
assert msg_mock.call_count == 1
|
assert msg_mock.call_count == 1
|
||||||
assert 'ETH/BTC' in msg_mock.call_args_list[0][0][0]
|
assert 'ETH/BTC' in msg_mock.call_args_list[0][0][0]
|
||||||
|
Loading…
Reference in New Issue
Block a user