aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn')
-rw-r--r--python/Dawn/models.py9
-rw-r--r--python/Dawn/views.py1
2 files changed, 9 insertions, 1 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: