aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/book_bbg.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/book_bbg.py b/python/book_bbg.py
index 85e16d9d..14e7deb2 100644
--- a/python/book_bbg.py
+++ b/python/book_bbg.py
@@ -89,7 +89,10 @@ class Bbg:
for k, v in row.items():
if v == "":
row[k] = None
- if row.get("Block Status") != "Accepted":
+ if row.get("Block Status") in (
+ "Rejected",
+ "Covered",
+ ):
raise ValueError("Rejected trade")
line = {"bbg_ticket_id": bbg_id, **row}
orig_row = line.copy()