diff options
Diffstat (limited to 'python/report_ops/__main__.py')
| -rw-r--r-- | python/report_ops/__main__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/report_ops/__main__.py b/python/report_ops/__main__.py index d91e788c..487954dd 100644 --- a/python/report_ops/__main__.py +++ b/python/report_ops/__main__.py @@ -1,12 +1,13 @@ from serenitas.analytics.dates import prev_business_day from serenitas.utils.db import dbconn +from serenitas.utils.exchange import ExchangeMessage import logging import argparse import datetime from .sma import SMA from .cash import CashReport from .admin import CitcoReport -from .wires import Wire +from .wires import WireReport from .custodians import upload_to_custodian, get_custodian_download_fun from .utils import notify_payment_settlements, notify_fx_hedge from .misc import _fund_custodians @@ -78,10 +79,11 @@ if args.sma_positions: logger.warning(e) if args.cash_reports: + em = ExchangeMessage() for fund, custodians in _fund_custodians.items(): for custodian in custodians: try: - get_custodian_download_fun(custodian).download_reports(args.date, fund) + get_custodian_download_fun(custodian)(args.date, fund, em=em) cash_report = CashReport[custodian] cash_report.to_db(args.date, fund) except ValueError as e: |
