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.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/python/citco_ops/cash.py b/python/citco_ops/cash.py
index 8ed92db3..42e1f76d 100644
--- a/python/citco_ops/cash.py
+++ b/python/citco_ops/cash.py
@@ -42,12 +42,14 @@ class IAMDeal(Deal, deal_type=None, table_name="iam_tickets"):
@dataclass
class CashReport:
- fund: str = "ISOSEL"
+ fund: str
_conn: dbconn = dbconn("dawndb")
+ def __init_subclass__(cls, fund):
+ cls.fund = fund
+
def __init__(self, date):
self.date = date
- self.fund = "ISOSEL"
def download_report(self):
em = ExchangeMessage()
@@ -95,3 +97,7 @@ class CashReport:
)
self._conn.commit()
df.to_sql("cash_balances", index=False, if_exists="append", con=dawn_engine)
+
+
+class IsoselCashReport(CashReport, fund="ISOSEL"):
+ pass