diff options
Diffstat (limited to 'python/report_ops/services.py')
| -rw-r--r-- | python/report_ops/services.py | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/python/report_ops/services.py b/python/report_ops/services.py index 7cb87047..6e7f37d5 100644 --- a/python/report_ops/services.py +++ b/python/report_ops/services.py @@ -1,34 +1,5 @@ from serenitas.ops.funds import Service from serenitas.ops.headers import HEADERS -from serenitas.utils.exchange import ExchangeMessage, FileAttachment - -from .headers import get_bny_headers -from .misc import _settlement_recipients, _cc_recipients - - -class BNY(Service, service_name="BNY"): - filepath_pattern = "BNY.{timestamp:%Y%m%d.%H%M%S}.{trade_tag}.csv" - credential = "bny_upload" - - @classmethod - def set_headers(cls, trade_type): - cls.headers = get_bny_headers(trade_type) - - @classmethod - def push_trade(cls, trade, action): - cls.staging_queue.append(trade.to_bny(action)) - - @classmethod - def upload(cls, buf, dest, fund, upload_type): - super().upload(buf, dest, confirm=False) - em = ExchangeMessage() - em.send_email( - f"BNY Upload Receipt {upload_type}", - "", - to_recipients=_settlement_recipients[fund], - cc_recipients=_cc_recipients[fund], - attach=(FileAttachment(name=dest, content=buf),), - ) class UMB(Service, service_name="UMB"): @@ -54,7 +25,7 @@ def get_service(account_counterparty): case "UMB": return UMB case "BONY": - return BNY + return Service[account_counterparty] case "BBH": return Service["BRINKER"] case _: |
