From ada1b5f109ebaa6f3adb7cd87b007c6db891811c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 8 Mar 2018 02:04:50 +0100 Subject: Move Portfolio to store and cleanup methods Make report stored in portfolio class instead of market --- market.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'market.py') diff --git a/market.py b/market.py index 6c14ae2..388dea0 100644 --- a/market.py +++ b/market.py @@ -312,7 +312,7 @@ class Processor: import inspect if action == "wait_for_recent": - method = portfolio.Portfolio.wait_for_recent + method = Portfolio.wait_for_recent elif action == "prepare_trades": method = self.market.prepare_trades elif action == "prepare_orders": @@ -345,8 +345,4 @@ class Processor: def run_action(self, action, default_args, kwargs): method, args = self.parse_args(action, default_args, kwargs) - if action == "wait_for_recent": - method(self.market, **args) - else: - method(**args) - + method(**args) -- cgit v1.2.3