def __init__(self, props, working_path, output_dir, asofdate, lib_path, java_path, reports_url): datetoday = datetime.date.today() self.asofdate = asofdate self.reports_url = reports_url self.working_path = os.path.join(working_path, datetoday.strftime("%Y%m%d"), "flashpnl") self.output_dir = output_dir try: os.makedirs(self.working_path) except: pass self.log_file = os.path.join(self.working_path, "%s_daily_flash_v2.log" % self.asofdate) self.input_file = os.path.join(self.working_path, "%s_daily_flash_v2_input.txt" % self.asofdate) self.output_file = os.path.join(self.working_path, "%s_daily_flash_v2_output.csv" % self.asofdate) IOService.__init__(self, service="printPortfolio", props=props, input_file=self.input_file, output_file=self.output_file, log_file=self.log_file, outDelim=",", columms=None, lib_path=lib_path, java_path=java_path, trans='ioservice.ReportTranslator', aggreg=False)
def __init__(self, props, working_path, asofdate, lib_path, java_path): datetoday = datetime.date.today() self.asofdate = asofdate working_path = os.path.join(working_path, datetoday.strftime("%Y%m%d"), "tradeextract") try: os.makedirs(working_path) except: pass self.log_file = os.path.join(working_path, "%s_trade_extract.log" % self.asofdate) self.input_file = os.path.join(working_path, "%s_trade_extract_input.txt" % self.asofdate) self.output_file = os.path.join(working_path, "%s_trade_extract_output.txt" % self.asofdate) columns = os.path.join(os.path.abspath(os.path.dirname(__file__)), "columns", "tradeExtractColumns.txt") IOService.__init__( self, service="downloadTrades", props=props, input_file=self.input_file, output_file=self.output_file, log_file=self.log_file, outDelim="|", columms=columns, lib_path=lib_path, java_path=java_path, trans="ioservice.GenericTradeTranslator", aggreg=True, )
def __init__(self, props, working_path, asofdate, lib_path, java_path): datetoday = datetime.date.today() self.asofdate = asofdate working_path = os.path.join(working_path, datetoday.strftime("%Y%m%d"), "dailyarchive") try: os.makedirs(working_path) except: pass self.log_file = os.path.join(working_path, "%s_daily_archive.log" % self.asofdate) self.input_file = os.path.join(working_path, "%s_daily_archive_input.txt" % self.asofdate) self.output_file = os.path.join(working_path, "%s_daily_archive_output.csv" % self.asofdate) IOService.__init__(self, service="runBatchCmd", props=props, input_file=self.input_file, output_file=self.output_file, log_file=self.log_file, outDelim="|", columms=None, lib_path=lib_path, java_path=java_path, trans=None, aggreg=False)
def __init__(self, props, working_path, asofdate, lib_path, java_path): datetoday = datetime.date.today() self.asofdate = asofdate working_path = os.path.join(working_path, datetoday.strftime("%Y%m%d"), "creditspread") try: os.makedirs(working_path) except: pass self.log_file = os.path.join(working_path, "%s_credit_spread.log" % self.asofdate) self.pp_input_file = os.path.join(working_path, "%s_credit_spread_pp_input.txt" % self.asofdate) self.pp_output_file = os.path.join(working_path, "%s_credit_spread_pp_output.csv" % self.asofdate) self.use_input_file = os.path.join(working_path, "%s_credit_spread_use_input.txt" % self.asofdate) self.use_output_file = os.path.join(working_path, "%s_credit_spread_use_output.txt" % self.asofdate) self.props = props IOService.__init__( self, service="printPortfolio", props=self.props, input_file=self.pp_input_file, output_file=self.pp_output_file, log_file=self.log_file, outDelim=",", columms=None, lib_path=lib_path, java_path=java_path, trans="ioservice.ReportTranslator", aggreg=False, )