aboutsummaryrefslogtreecommitdiffstats
path: root/python/citco_ops/cash.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/citco_ops/cash.py')
-rw-r--r--python/citco_ops/cash.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/citco_ops/cash.py b/python/citco_ops/cash.py
index 21b693c2..650d507f 100644
--- a/python/citco_ops/cash.py
+++ b/python/citco_ops/cash.py
@@ -23,4 +23,12 @@ class IAMDeal(Deal, deal_type=None, table_name="iam_tickets"):
obj["Deal Type"] = "IamDeal"
obj["ExpirationDate"] = self.trade_date if self.action == "UPDATE" else None
obj["CallNoticeIndicator"] = "24H" if self.action == "NEW" else None
+ obj["TransactionIndicator"] = ("DEPOSIT" if obj["StartMoney"] > 0 else "LOAN",)
+ obj["StartMoney"] = abs(obj["StartMoney"])
+ obj["Folder"] = (
+ "M_CSH_CASH" if obj["strategy"] == "CSH_CASH" else obj["strategy"]
+ )
+ obj["DealFunction"] = "OTC"
+ obj["MarginType"] = "Variation"
+ obj["Basis"] = "ACT/360"
return obj