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":
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)