X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git;a=blobdiff_plain;f=market.py;h=388dea0cadb1265f966c1aa4afe2c66b85f93c26;hp=6c14ae208af3add2eb1bf65ab6627696945e8b22;hb=ada1b5f109ebaa6f3adb7cd87b007c6db891811c;hpb=a18ce2f16973155c81f983643aba675f62dea7af 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)