aboutsummaryrefslogtreecommitdiffstats
path: root/python/collateral/baml_fcm.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/collateral/baml_fcm.py')
-rw-r--r--python/collateral/baml_fcm.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/python/collateral/baml_fcm.py b/python/collateral/baml_fcm.py
index b6bfddfb..65ab758d 100644
--- a/python/collateral/baml_fcm.py
+++ b/python/collateral/baml_fcm.py
@@ -1,13 +1,12 @@
from . import DAILY_DIR, SftpClient
from .common import compare_notionals, STRATEGY_CASH_MAPPING
-from functools import partial
import pandas as pd
from sqlalchemy.exc import IntegrityError
-sftp = SftpClient.from_creds("baml_fcm")
-
-download_files = partial(sftp.download_files, "outgoing", DAILY_DIR / "BAML_reports")
+def download_files(**args):
+ sftp = SftpClient.from_creds("baml_fcm")
+ sftp.download_files("outgoing", DAILY_DIR / "BAML_reports")
def collateral(d, positions, engine):