diff options
Diffstat (limited to 'python/collateral/citi.py')
| -rw-r--r-- | python/collateral/citi.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/collateral/citi.py b/python/collateral/citi.py index bf3cee16..ce4356af 100644 --- a/python/collateral/citi.py +++ b/python/collateral/citi.py @@ -16,7 +16,7 @@ def load_file(d): return pd.read_excel(fname, skiprows=6, skipfooter=2) -def download_files(em, count=20): +def download_files(em, count=20, **kwargs): emails = em.get_msgs( path=["NYops", "Margin Calls Citi"], count=count, subject__startswith="262966" ) @@ -75,12 +75,13 @@ def get_total_collateral(d): ) -def collateral(d, dawn_trades, *args): +def collateral(d, dawn_trades, **kwargs): df = load_file(d + BDay()) collat = get_total_collateral(d) df = df[["Operations File", "Market Value", "BasicAmt"]].dropna( subset=["Operations File"] ) # missing Operations File means assignment usually + # but could be a fee df = df.merge( dawn_trades, how="left", left_on="Operations File", right_on="cpty_id" ) |
