Finish AMS tests
This commit is contained in:
@@ -79,7 +79,11 @@ class ActiveManagement(object):
|
||||
|
||||
def bulk_close_trades(self, trade_ids):
|
||||
for trade_id in trade_ids:
|
||||
self.close_trade(trade_id)
|
||||
if trade_id is not None:
|
||||
self.close_trade(trade_id)
|
||||
else:
|
||||
self.strategy.account.client.close_all_positions()
|
||||
return
|
||||
|
||||
def bulk_notify(self, action, action_cast_list):
|
||||
msg = ""
|
||||
@@ -461,6 +465,7 @@ class ActiveManagement(object):
|
||||
converted_trades = convert_trades(self.get_trades())
|
||||
trades_copy = self.get_sorted_trades_copy(converted_trades, reverse=False)
|
||||
market.convert_trades_to_usd(self.strategy.account, trades_copy)
|
||||
|
||||
for trade in reversed(trades_copy):
|
||||
try:
|
||||
self.check_trading_time(trade)
|
||||
|
||||
Reference in New Issue
Block a user