def __init__(self, date, statement, file_data): """ :param date: str :param statement: Statement :param file_data: str, raw file read """ SaveAppModel.__init__(self, date, statement, file_data) acc_data = OpenAcc(data=self.file_data).read() self.cash_balance = acc_data['cash_balance'] self.profit_loss = acc_data['profit_loss'] self.order_history = acc_data['order_history'] self.trade_history = acc_data['trade_history'] self.holding_equity = acc_data['holding_equity'] self.holding_option = acc_data['holding_option'] self.holding_future = acc_data['holding_future'] self.holding_forex = acc_data['holding_forex'] self.future_statement = acc_data['future_statement'] self.forex_statement = acc_data['forex_statement'] self.forex_summary = acc_data['forex_summary'] self.account_summary = acc_data['account_summary'] self.account_statement = None
def __init__(self, date, statement, file_data): """ :param date: str :param statement: Statement :param file_data: str, raw file read """ SaveAppModel.__init__(self, date, statement, file_data) pos_data = OpenPos(data=self.file_data).read() self.equity_option_position = pos_data['equity_option_position'] self.future_position = pos_data['future_position'] self.forex_position = pos_data['forex_position'] self.position_summary = pos_data['position_summary'] self.position_statement = None
def __init__(self, date, statement, file_data): """ :param date: str :param statement: Statement :param file_data: str, raw file read """ SaveAppModel.__init__(self, date, statement, file_data) ta_data = OpenTA(data=self.file_data).read() self.working_order = ta_data['working_order'] self.filled_order = ta_data['filled_order'] self.cancelled_order = ta_data['cancelled_order'] self.rolling_strategy = ta_data['rolling_strategy'] self.trade_activity = None