From f4f164dd9f68efc079f6960cd1ffeca9fc494833 Mon Sep 17 00:00:00 2001 From: scottsanderson Date: Wed, 20 Jun 2012 11:57:19 -0400 Subject: [PATCH] update to pass along the new log socket address --- zipline/lines.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zipline/lines.py b/zipline/lines.py index 070931c5..8aace760 100644 --- a/zipline/lines.py +++ b/zipline/lines.py @@ -99,7 +99,7 @@ class SimulatedTrading(object): :param config: a dict with the following required properties:: - algorithm: a class that follows the algorithm protocol. See - :py:meth:`zipline.finance.trading.TradingSimulationClient.add_algorithm + :py:meth:`zipline.finance.trading.TradeSimulationClient.add_algorithm for details. - trading_environment: an instance of :py:class:`zipline.trading.TradingEnvironment` @@ -127,7 +127,7 @@ class SimulatedTrading(object): 'feed_address' : sockets[2], 'merge_address' : sockets[3], 'result_address' : sockets[4], - 'order_address' : sockets[5] + 'order_address' : sockets[5] } self.con = Controller( @@ -150,7 +150,8 @@ class SimulatedTrading(object): self.clients = {} self.trading_client = TradeSimulationClient( self.trading_environment, - self.sim_style + self.sim_style, + config.log_socket ) self.add_client(self.trading_client)