aboutsummaryrefslogtreecommitdiffstats
path: root/python/citco_ops/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/citco_ops/utils.py')
-rw-r--r--python/citco_ops/utils.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/python/citco_ops/utils.py b/python/citco_ops/utils.py
index ebe33abd..eaf7b5ae 100644
--- a/python/citco_ops/utils.py
+++ b/python/citco_ops/utils.py
@@ -6,6 +6,7 @@ import csv
from serenitas.ops.trade_dataclasses import Deal
from serenitas.utils.exchange import ExchangeMessage
from psycopg.errors import UniqueViolation
+from exchangelib import HTMLBody
logger = logging.getLogger(__name__)
@@ -135,6 +136,7 @@ _recipients = {
"SERENITAS.FA@sscinc.com",
"SERENITAS.ops@sscinc.com",
),
+ "BAML_FCM": ("fyu@lmcg.com",),
}
@@ -190,3 +192,17 @@ class GFSMonitor(Payment):
"Bowdoin-Ops@LMCG.com" if fund == "BOWDST" else "NYOps@lmcg.com",
),
)
+
+
+class BamlFcmNotify:
+ @classmethod
+ def email_fcm(cls, date, data):
+ em = ExchangeMessage()
+ em.send_email(
+ f"FX Details: 6MZ20049 {date}",
+ HTMLBody(
+ f"Hello,<br><br>Please see below details for an FX Spot Trade we did with the desk today for account 6MZ20049. Please let me know if you need more information<br><br>{data}"
+ ),
+ to_recipients=_recipients["BAML_FCM"],
+ cc_recipients=("nyops@lmcg.com",),
+ )