aboutsummaryrefslogtreecommitdiffstats
path: root/python/ops
diff options
context:
space:
mode:
Diffstat (limited to 'python/ops')
-rw-r--r--python/ops/funds.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/python/ops/funds.py b/python/ops/funds.py
index 1d467f14..12de1110 100644
--- a/python/ops/funds.py
+++ b/python/ops/funds.py
@@ -124,13 +124,18 @@ class Selene(Fund, fund_name="ISOSEL"):
def set_headers(cls, trade_type):
pass
+ @staticmethod
+ def upload(buf, dest):
+ sftp = SftpClient.from_creds("citco", folder="incoming")
+ sftp.put(buf, dest)
+
@classmethod
def stage(cls, trade, *, trade_type, action="NEW", **kwargs):
obj = DealKind[trade_type].from_dict(**trade)
if (
(trade_type not in ("cds", "irs", "swaption", "trs"))
- or (trade_type == "cds" and trade.attach is None)
- or obj.product.commited
+ or (trade_type == "cds" and obj.attach is None)
+ or obj.product.committed
):
cls.staging_queue.append(obj.to_citco(action))
else: