tests fixed
This commit is contained in:
parent
d5498c8712
commit
9ee1dd99eb
@ -111,11 +111,13 @@ class RPC(object):
|
||||
close_profit=fmt_close_profit,
|
||||
current_profit=round(current_profit * 100, 2),
|
||||
stop_loss=trade.stop_loss,
|
||||
stop_loss_pct=(trade.stop_loss_pct * 100),
|
||||
stop_loss_pct=(trade.stop_loss_pct * 100) \
|
||||
if trade.stop_loss_pct else None,
|
||||
initial_stop_loss=trade.initial_stop_loss,
|
||||
initial_stop_loss_pct=(trade.initial_stop_loss_pct * 100),
|
||||
initial_stop_loss_pct=(trade.initial_stop_loss_pct * 100) \
|
||||
if trade.initial_stop_loss_pct else None,
|
||||
open_order='({} {} rem={:.8f})'.format(
|
||||
order['type'], order['side'], order['remaining']
|
||||
order['type'], order['side'], order['remaining']
|
||||
) if order else None,
|
||||
))
|
||||
return results
|
||||
|
Loading…
Reference in New Issue
Block a user