diff options
Diffstat (limited to 'python/ops/funds.py')
| -rw-r--r-- | python/ops/funds.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/ops/funds.py b/python/ops/funds.py index bf8ab290..1b06ec35 100644 --- a/python/ops/funds.py +++ b/python/ops/funds.py @@ -67,13 +67,14 @@ class Fund: "iam": "IamDeal", "trs": "TRSDeal", "irs": "IRSDeal", - "mtm": cls.product_type.capitalize(), } - trade_tag: str - if isinstance(trade_type, tuple): - trade_tag = d[trade_type[0]] + trade_type[1] + if cls is MTM: + trade_tag = "TRN" if trade_type == "cds" else "CDISW" else: - trade_tag = d[trade_type] + if isinstance(trade_type, tuple): + trade_tag = d[trade_type[0]] + trade_type[1] + else: + trade_tag = d[trade_type] timestamp = datetime.datetime.now() return ( @@ -149,7 +150,6 @@ class Selene(Fund, fund_name="ISOSEL"): class MTM(Fund, fund_name="MTM"): filepath_pattern = "MTM.{timestamp:%Y%m%d.%H%M%S}.{trade_tag}.csv" - product_type: str @classmethod def set_headers(cls, trade_type): |
