aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/strat_cash_realloc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/strat_cash_realloc.py b/python/strat_cash_realloc.py
index 29baf7dc..95e05e2d 100644
--- a/python/strat_cash_realloc.py
+++ b/python/strat_cash_realloc.py
@@ -27,7 +27,9 @@ def generate_csv(date, fund="BOWDST"):
for row in c:
if row.folder not in CASH_STRATEGY_MAPPING:
obj = WireDeal(**row._asdict())
- offset = replace(obj, folder=STRATEGY_CASH_MAPPING[obj.folder])
+ offset = replace(
+ obj, folder=STRATEGY_CASH_MAPPING[obj.folder], amount=-obj.amount
+ )
obj.stage()
offset.stage()
for wire in WireDeal.commit(returning=True):