diff options
Diffstat (limited to 'python/report_ops')
| -rw-r--r-- | python/report_ops/utils.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/python/report_ops/utils.py b/python/report_ops/utils.py index b624b1f8..1eadde96 100644 --- a/python/report_ops/utils.py +++ b/python/report_ops/utils.py @@ -275,6 +275,31 @@ class GFSMonitor(Payment): ) +class BamlFcmNotify: + @classmethod + def email_fcm(cls, date, cash_account, data): + em = ExchangeMessage() + em.send_email( + f"FX Details: {cash_account} {date}", + HTMLBody( + f""" +<html> + <head> + <style> + table, th, td {{ border: 1px solid black; border-collapse: collapse;}} + th, td {{ padding: 5px; }} + </style> + </head> + <body> + Hello,<br><br>Please see below details for an FX Spot Trade we did with the desk today for account {cash_account} Please let me know if you need more information.<br><br>{data} + </body> +</html>""" + ), + to_recipients=_recipients["BAML_FCM"], + cc_recipients=("nyops@lmcg.com",), + ) + + @dataclass class EmailOps: _em = ExchangeMessage() |
