diff options
Diffstat (limited to 'python/report_ops')
| -rw-r--r-- | python/report_ops/utils.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/python/report_ops/utils.py b/python/report_ops/utils.py index fef8083b..eec23d98 100644 --- a/python/report_ops/utils.py +++ b/python/report_ops/utils.py @@ -156,6 +156,41 @@ class GFSMonitor( ) +class BondMarkMonitor( + Monitor, + headers=( + "periodenddate", + "invid", + "geneva_identifier", + "pricelist", + ), + num_format=[], +): + @classmethod + def email(cls, fund): + if not cls._staging_queue: + return + cls._em.send_email( + f"Incorrectly marked trades: {fund}", + HTMLBody( + f""" +<html> + <head> + <style> + table, th, td {{ border: 1px solid black; border-collapse: collapse;}} + th, td {{ padding: 5px; }} + </style> + </head> + <body> + Good morning,<br><br>Could you please use Manager marks for the below trades:<br><br>{cls.to_tabulate()} + </body> +</html>""" + ), + to_recipients=_valuation_recipients[fund], + cc_recipients=_cc_recipients[fund], + ) + + class CDXQuoteMonitor( Monitor, headers=( |
