diff options
Diffstat (limited to 'python/book_bbg2.py')
| -rw-r--r-- | python/book_bbg2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/book_bbg2.py b/python/book_bbg2.py index 5ca558b8..ee7ed33a 100644 --- a/python/book_bbg2.py +++ b/python/book_bbg2.py @@ -103,7 +103,7 @@ def bond_booking_process(path, conn): trade = BondDeal( faceamount=Decimal(line["Quantity"]), price=Decimal(line["Price (Dec)"]), - cp_code=_bond_cp[line["cp_code"]], + cp_code=_bond_cp[line["Brkr"]], cusip=line["Cusip"], identifier=line["Cusip"], trade_date=datetime.datetime.strptime(line["Trade Dt"], "%m/%d/%Y"), @@ -114,7 +114,7 @@ def bond_booking_process(path, conn): buysell=line["Side"] == "B", ) trade.stage() - CDSDeal.commit() + BondDeal.commit() def book_trades(conn, date=datetime.date.today()): |
