aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/book_bbg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/book_bbg.py b/python/book_bbg.py
index 14e7deb2..ea2a2e5b 100644
--- a/python/book_bbg.py
+++ b/python/book_bbg.py
@@ -98,7 +98,8 @@ class Bbg:
orig_row = line.copy()
for trade in cls.trade_class(row).from_bbg_line(line):
trade.stage()
- cls._insert_queue.append(list(orig_row.values()))
+ if "trade" in locals():
+ cls._insert_queue.append(list(orig_row.values()))
return trade