aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/trade_dataclasses.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/python/trade_dataclasses.py b/python/trade_dataclasses.py
index 55e82e2d..f15f53ae 100644
--- a/python/trade_dataclasses.py
+++ b/python/trade_dataclasses.py
@@ -23,6 +23,7 @@ from lru import LRU
from psycopg.errors import UniqueViolation
import logging
+import warnings
logger = logging.getLogger(__name__)
@@ -441,9 +442,9 @@ class Citco:
buf = StringIO()
csvwriter = csv.writer(buf)
csvwriter.writerow(cls._citco_headers)
- ###### Static Values for Now
for h in cls._citco_queue:
_citco_to_action = {"R": "UPDATE", "D": "CANCEL", "N": "NEW"}
+ warnings.warn("we will get rid of overwriting")
h["Fund"] = "ISOSEL"
identifier = (
"instrument" if cls.file_tag == "i.innocap_serenitas." else "trade"
@@ -460,8 +461,6 @@ class Citco:
identifier,
]
)
-
- ######
csvwriter.writerows(
[row.get(h, None) for h in cls._citco_headers] for row in cls._citco_queue
)
@@ -677,6 +676,7 @@ class CDSDeal(
else "BSEONY"
)
# We need to query DB via accounts table here
+ warnings.warn("we will get rid of overwriting")
obj["ClearingAgent"] = "BOA_FC"
obj["SecurityID"] = self.redcode
@@ -826,6 +826,7 @@ class BondDeal(
def to_citco(self, action):
obj = super().to_citco(action)
obj["SecurityType"] = "CMO"
+ warnings.warn("Hardcoded")
obj["ClearingAgent"] = "NT"
obj["FXRate"] = 1
obj["BuySellShortCover"] = "B" if obj["buysell"] else "S"
@@ -1534,6 +1535,7 @@ class IRSDeal(
obj["BuySellShortCover"] = "B" if obj["payreceive"] else "S"
obj["IDSource"] = "USERID"
obj["SecurityID"] = self.product.dealid
+ warnings.warn("Query DB")
obj["ClearingAgent"] = "BOA_FC"
return obj