aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/ops/funds.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/python/ops/funds.py b/python/ops/funds.py
index e9364404..e6312b36 100644
--- a/python/ops/funds.py
+++ b/python/ops/funds.py
@@ -123,5 +123,14 @@ class Selene(Fund, fund_name="ISOSEL"):
pass
@classmethod
- def stage(cls, trade, *, action="NEW", **kwargs):
- cls.staging_queue.append(trade.to_citco(action))
+ def stage(cls, trade, *, trade_type, action="NEW", **kwargs):
+ if (trade_type not in ("cds", "irs", "swaption", "trs")) or (
+ trade_type == "cds" and trade.attach is None
+ ):
+ cls.staging_queue.append(trade.to_citco(action))
+ else:
+ if trade.product.committed:
+ cls.staging_queue.append(trade.to_citco(action))
+ else:
+ # Push to product queue
+ pass