diff options
Diffstat (limited to 'python/trade_dataclasses.py')
| -rw-r--r-- | python/trade_dataclasses.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/trade_dataclasses.py b/python/trade_dataclasses.py index 43c59ade..db4bbb29 100644 --- a/python/trade_dataclasses.py +++ b/python/trade_dataclasses.py @@ -417,7 +417,7 @@ class CDSDeal( @classmethod def from_bbg_line(cls, line: dict): if "SEQ#" in line and line["Brkr"] != "BSEF": - raise AttributeError(f"Ignoring file, we have an allocation file") + raise ValueError("Ignoring file, we have an allocation file") if line["Coupon"] == "": with cls._conn.cursor() as c: c.execute( @@ -434,7 +434,7 @@ class CDSDeal( if line["Brkr"] == "BSEF": # BSEF means CDX BLOCK line["Price (Dec)"] = line["Price"] line["Quantity"] = line["Qty (M)"] * 1000 - values = [list(line.values())[0]] + [None] * 21 + values = [line["bbg_ticket_id"]] + [None] * 21 values[14] = _funds[_fcms[line["Client FCM"]]] values[15] = _fcms[line["Client FCM"]] else: |
