def __init__(self, market_type, frequence, start, end, code_list, commission_fee): super().__init__(market_type, frequence, start, end, code_list, commission_fee) self.user = QA_User() mastrategy = MAStrategy() maminstrategy = MAMINStrategy() # maminstrategy.reset_assets(1000) self.portfolio, self.account = self.user.register_account(mastrategy)
def __init__(self, market_type, frequence, start, end, code_list, commission_fee): super().__init__(market_type, frequence, start, end, code_list, commission_fee) self.user = QA_User() mastrategy = MAStrategy() maminstrategy = MAMINStrategy() # maminstrategy.reset_assets(1000) # self.portfolio, self.account = self.user.register_account(mastrategy) self.user = QA_User(user_cookie='user_admin') self.portfolio = self.user.new_portfolio('folio_admin') self.portfolio, self.account = self.user.register_account(mastrategy) print(self.user) print(self.portfolio) print(self.account) print(self.account.message)