aboutsummaryrefslogtreecommitdiffstats
path: root/python/bowdst.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/bowdst.py')
-rw-r--r--python/bowdst.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/bowdst.py b/python/bowdst.py
index 51ed0a2b..ee641b47 100644
--- a/python/bowdst.py
+++ b/python/bowdst.py
@@ -187,3 +187,12 @@ if __name__ == "__main__":
df_bonds, df_cds, df_tranches = get_positions(args.cob)
send_email(em, args.cob, df_bonds, df_cds, df_tranches)
# sftp = SftpClient.from_creds("gs")
+ # for f in sftp.client.listdir("outgoing"):
+ # rename_file = f.startswith("Account")
+ # local_file = DAILY_DIR / "BowdSt" / "GS_fcm_reports" / f
+ # if not local_file.exists():
+ # sftp.client.get(f"outgoing/{f}", local_file)
+ # if local_file.startswith("Account"):
+ # df = pd.read_csv(local_file)
+ # cob = df["COB Date"][0]
+ # local_file.rename(f.split(".")[0] + cob[4:] + ".csv")