diff options
Diffstat (limited to 'python/collateral/cs.py')
| -rw-r--r-- | python/collateral/cs.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/python/collateral/cs.py b/python/collateral/cs.py index 22cb6d3b..24bceb2f 100644 --- a/python/collateral/cs.py +++ b/python/collateral/cs.py @@ -4,11 +4,8 @@ from pandas.tseries.offsets import BDay from .common import load_pdf -def download_files(count=20): - from exchange import ExchangeMessage - +def download_files(em, count=20): DATA_DIR = DAILY_DIR / "CS_reports" - em = ExchangeMessage() emails = em.get_msgs( path=["NYops", "Margin Calls CS"], count=count, subject__contains="DERV048829" ) @@ -42,8 +39,6 @@ def download_files(count=20): def get_collateral(d): DATA_DIR = DAILY_DIR / "CS_reports" - # get most recent file before current date - pdf_file = DATA_DIR / f"CollateralCptyStatement161SerenitasCGMFRVM_{d:%m%d%Y}.pdf" collat = 0 for collat_type in ("RVM", "IM"): pdf_file = ( |
