BLD: working on unit tests.

This commit is contained in:
Frederic Fortier
2018-01-09 01:08:57 -05:00
parent 55d1fee82d
commit 141ee65c91
8 changed files with 404 additions and 17 deletions
+2 -1
View File
@@ -587,7 +587,8 @@ class ExchangeTradingAlgorithmLive(ExchangeTradingAlgorithmBase):
orders = []
for asset in self.blotter.open_orders:
asset_orders = self.blotter.open_orders[asset]
orders += asset_orders
if asset_orders:
orders += asset_orders
required_cash = self.portfolio.cash if not orders else None
cash, positions_value = exchange.sync_positions(