Пример #1
0
def main():
    logger.info("Combining all the data from external sources together")
    dt = DataTransformation()
    try:
        dt.us()
        dt.jpx()
        dt.cn()
        dt.euronext()
        dt.aastocks()
        dt.lse()
        dt.ca()
        dt.frankfurt()
        dt.krx()
        dt.asx()
        dt.twse()
        dt.bme()
        dt.sgx()
        dt.idx()
        dt.bm()
        dt.nasdaqnordic()
        dt.spotlight()
        dt.italy()
    except Exception as e:
        logger.error(e, exc_info=sys.exc_info())
        error_email(str(e))
    finally:
        dt.formatting_all()
        dt.save_all()
Пример #2
0
def main():
    try:
        rpd = RPDCreation()
        rpd.update_withdrawn_ipos()
        rpd.update_rpds()
        rpd.add_new_rpds()
        rpd.save_results()
    except Exception as e:
        logger.error(e, exc_info=sys.exc_info())
        error_email(str(e))
Пример #3
0
def main():
    logger.info("Comparing external data with data collected internally")
    dc = DataComparison()
    try:
        dc.concatenate_ticker_exchange()
        dc.file_for_rpds()
        return dc.compare()
    except Exception as e:
        logger.error(e, exc_info=sys.exc_info())
        error_email(str(e))
Пример #4
0
def main():
    logger.info("Checking Cordance API for entity IDs")
    em = EntityMatchBulk()
    try:
        em.create_csv()
        em.entity_mapping_api()
    except Exception as e:
        logger.error(e, exc_info=sys.exc_info())
        logger.info('-' * 100)
        error_email(str(e))
Пример #5
0
def main(file_attachment: str, addtl_message: str = ''):
    try:
        email_report(attach_file=file_attachment, addtl_message=addtl_message)
    except Exception as e:
        logger.error(e, exc_info=sys.exc_info())
        error_email(str(e))