aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops')
-rw-r--r--python/report_ops/services.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/python/report_ops/services.py b/python/report_ops/services.py
index 20c39d9d..d451d40d 100644
--- a/python/report_ops/services.py
+++ b/python/report_ops/services.py
@@ -1,5 +1,6 @@
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
@@ -17,13 +18,16 @@ class BNY(Service, service_name="BNY"):
cls.staging_queue.append(trade.to_bny(action))
@classmethod
- def upload(cls, buf, dest):
- super().upload(buf, dest)
+ def upload(cls, buf, dest, upload_type):
+ super().upload(buf, dest, confirm=False)
em = ExchangeMessage()
em.send_email(
- "BNY Upload Receipt",
+ f"BNY Upload Receipt {upload_type}",
"",
- to_recipients="NYOPs@lmcg.com",
+ to_recipients=(
+ "NYOPs@lmcg.com",
+ "Prim-ops@lmcg.com",
+ ),
attach=(FileAttachment(name=dest, content=buf),),
)