added stake value to status as well
This commit is contained in:
parent
fd3dcea2b4
commit
3e21818ee0
@ -63,6 +63,7 @@ class RPC(object):
|
|||||||
"*Close Rate:* `{close_rate}`\n" \
|
"*Close Rate:* `{close_rate}`\n" \
|
||||||
"*Current Rate:* `{current_rate:.8f}`\n" \
|
"*Current Rate:* `{current_rate:.8f}`\n" \
|
||||||
"*Close Profit:* `{close_profit}`\n" \
|
"*Close Profit:* `{close_profit}`\n" \
|
||||||
|
"*Stake Value:* `{stake_value}`\n" \
|
||||||
"*Current Profit:* `{current_profit:.2f}%`\n" \
|
"*Current Profit:* `{current_profit:.2f}%`\n" \
|
||||||
"*Open Order:* `{open_order}`"\
|
"*Open Order:* `{open_order}`"\
|
||||||
.format(
|
.format(
|
||||||
@ -75,6 +76,7 @@ class RPC(object):
|
|||||||
current_rate=current_rate,
|
current_rate=current_rate,
|
||||||
amount=round(trade.amount, 8),
|
amount=round(trade.amount, 8),
|
||||||
close_profit=fmt_close_profit,
|
close_profit=fmt_close_profit,
|
||||||
|
stake_value=round(current_rate * trade.amount,6),
|
||||||
current_profit=round(current_profit * 100, 2),
|
current_profit=round(current_profit * 100, 2),
|
||||||
open_order='({} rem={:.8f})'.format(
|
open_order='({} rem={:.8f})'.format(
|
||||||
order['type'], order['remaining']
|
order['type'], order['remaining']
|
||||||
|
@ -66,6 +66,7 @@ def test_rpc_trade_status(default_conf, ticker, mocker) -> None:
|
|||||||
'*Close Rate:* `None`\n'
|
'*Close Rate:* `None`\n'
|
||||||
'*Current Rate:* `0.00001098`\n'
|
'*Current Rate:* `0.00001098`\n'
|
||||||
'*Close Profit:* `None`\n'
|
'*Close Profit:* `None`\n'
|
||||||
|
'*Stake Value:* `0.000999`\n'
|
||||||
'*Current Profit:* `-0.59%`\n'
|
'*Current Profit:* `-0.59%`\n'
|
||||||
'*Open Order:* `(LIMIT_BUY rem=0.00000000)`'
|
'*Open Order:* `(LIMIT_BUY rem=0.00000000)`'
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user