aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/reallocate_cash.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/reallocate_cash.py b/python/reallocate_cash.py
index 2b15794c..fd0b22d9 100644
--- a/python/reallocate_cash.py
+++ b/python/reallocate_cash.py
@@ -10,7 +10,7 @@ from psycopg2.errors import UniqueViolation
from serenitas.analytics.dates import bus_day
from csv_headers.globeop_upload import HEADERS
-_brokers = {
+_iam_brokers = {
"BAML_ISDA": "BOANNY",
"CS": "CSITLN",
"GS": "GOLINY",
@@ -83,7 +83,7 @@ def gen_strat_alloc(conn, trade_date):
trade_date,
"NEW",
row.strategy,
- _brokers[row.broker],
+ _iam_brokers[row.broker],
None,
row.amount,
row.currency,
@@ -91,7 +91,7 @@ def gen_strat_alloc(conn, trade_date):
)
)
if row.broker != "GOLDNY": # HM doesn't book FCM, no need to offset
- totals[_brokers[row.broker]] += row.amount
+ totals[_iam_brokers[row.broker]] += row.amount
new_iam += gen_offset(totals, trade_date)
return new_iam