aboutsummaryrefslogtreecommitdiffstats
path: root/python/collateral/gs.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/collateral/gs.py')
-rw-r--r--python/collateral/gs.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/collateral/gs.py b/python/collateral/gs.py
index 5d69dc14..3a6ee5be 100644
--- a/python/collateral/gs.py
+++ b/python/collateral/gs.py
@@ -2,10 +2,7 @@ import pandas as pd
from . import DAILY_DIR
-def download_files(count=20):
- from exchange import ExchangeMessage
-
- em = ExchangeMessage()
+def download_files(em, count=20):
emails = em.get_msgs(
path=["NYops", "Margin calls"], count=count, subject__contains="Margin"
)