aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/collateral_calc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/collateral_calc.py b/python/collateral_calc.py
index c917926e..42093a9b 100644
--- a/python/collateral_calc.py
+++ b/python/collateral_calc.py
@@ -9,6 +9,7 @@ from pandas.tseries.offsets import BDay
DAILY_DIR = Path(os.environ["DAILY_DIR"])
def download_files():
+ DATA_DIR = DAILY_DIR / "SG_reports"
ftp = FTP('ftp.newedgegroup.com')
ftp.login('SerenitasGamma@USA', "SSqrrLL99")
ftp.cwd('OTC')
@@ -71,7 +72,7 @@ def send_email(account, df_ms, df_sg):
folder=account.sent,
subject='IAM booking',
body=content,
- to_recipients=[Mailbox(email_address='serenitas.otc@lmcg.com')]
+ to_recipients=[Mailbox(email_address='serenitas.otc@sscinc.com')]
)
m.send_and_save()
@@ -79,7 +80,7 @@ if __name__ == "__main__":
download_emails()
download_files()
d = (pd.Timestamp.today() - BDay()).normalize()
- df_ms = ms_collateral(d)
- df_sg = sg_collateral(d - BDay())
+ df_ms = ms_collateral(d - BDay())
+ df_sg = sg_collateral(d)
account = get_account('ghorel@lmcg.com')
send_email(account, df_ms, df_sg)