diff options
| -rw-r--r-- | python/Dawn/models.py | 9 | ||||
| -rw-r--r-- | python/Dawn/views.py | 1 | ||||
| -rw-r--r-- | python/process_queue.py | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/python/Dawn/models.py b/python/Dawn/models.py index deebf0d9..b246f44c 100644 --- a/python/Dawn/models.py +++ b/python/Dawn/models.py @@ -570,7 +570,14 @@ class SpotDeal(db.Model): cp_code = db.Column( db.String(12), db.ForeignKey("counterparties.code"), - info={"choices": [("IBKRNY", "Interactive Brokers")], "label": "counterparty"}, + info={ + "choices": [ + ("IBKRNY", "Interactive Brokers"), + ("BAMSNY", "BofA"), + ("WELFEI", "Wells Fargo"), + ], + "label": "counterparty", + }, nullable=False, ) trade_date = db.Column(db.Date, nullable=False, default=datetime.date.today) diff --git a/python/Dawn/views.py b/python/Dawn/views.py index 13bb8032..366a14cb 100644 --- a/python/Dawn/views.py +++ b/python/Dawn/views.py @@ -458,6 +458,7 @@ def trade_manage(tradeid, kind): if trade.swap_type != "CD_INDEX": trade.account_code = "BAC" trade.cashaccount = trade.fcm_account.cash_account + trade.custodian = trade.fcm_account.custodian try: session.commit() except IntegrityError as e: diff --git a/python/process_queue.py b/python/process_queue.py index 1735d26c..12026fa8 100644 --- a/python/process_queue.py +++ b/python/process_queue.py @@ -512,10 +512,8 @@ def build_line(obj, trade_type="bond", fund="SERCGMAST"): obj["Executing Broker"] = obj["Counterparty"] if obj["account_code"] == "BAML": obj["Counterparty"] = "BAMSNY" - obj["Custodian"] = "BOMLCM" elif obj["account_code"] == "WF": obj["Counterparty"] = "WELFEI" - obj["Custodian"] = "WELLSFCM" if obj["Clearing Facility"] is None: obj["Clearing Facility"] = "NOT CLEARED" |
