aboutsummaryrefslogtreecommitdiffstats
path: root/python/strat_cash_realloc.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/strat_cash_realloc.py')
-rw-r--r--python/strat_cash_realloc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/strat_cash_realloc.py b/python/strat_cash_realloc.py
index f639b654..29f5037f 100644
--- a/python/strat_cash_realloc.py
+++ b/python/strat_cash_realloc.py
@@ -70,7 +70,7 @@ dawndb = dbconn("dawndb")
with dawndb.cursor() as c, dawndb.cursor() as d:
date = datetime.date(2022, 5, 18)
c.execute(
- "SELECT endqty, port, strat, custacctname, invid, custodian, cp_code FROM valuation_reports vr LEFT JOIN accounts2 ON custacctname=cash_account WHERE periodenddate =%s AND vr.fund='BOWDST' AND invid IN ('USD','EUR') AND port NOT IN ('CASH', 'GFS_HELPER_BUSINESS_UNIT') and endqty !=0;",
+ "SELECT endqty, port, strat, custacctname, invid, custodian, cp_code, pfm.folder AS dirty_strat FROM valuation_reports vr LEFT JOIN accounts2 ON custacctname=cash_account LEFT JOIN portfolio_folder_mapping pfm ON vr.strat::text=pfm.clean_folder WHERE periodenddate =%s AND vr.fund='BOWDST' AND invid IN ('USD','EUR') AND port NOT IN ('CASH', 'GFS_HELPER_BUSINESS_UNIT') and endqty !=0 and pfm.folder is not NULL;",
(date,),
)
trades = []
@@ -97,7 +97,7 @@ with dawndb.cursor() as c, dawndb.cursor() as d:
"custacctname": "Cash Account",
"custodian": "Custodian",
"cp_code": "Counterparty",
- "strat": "Folder",
+ "dirty_strat": "Folder",
},
)
obj["Deal Type"] = "CashFlowDeal"