aboutsummaryrefslogtreecommitdiffstats
path: root/python/book_bbg.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/book_bbg.py')
-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 33851193..e850d260 100644
--- a/python/book_bbg.py
+++ b/python/book_bbg.py
@@ -9,7 +9,7 @@ def get_bbg_id(s):
if m := re.match("(CDX|BOND)-[^_]*_([^$]*)", s):
return m.groups()
if "DEAL" in s:
- return "FXSWAP", s.split("_")[3]
+ return "SPOT", s.split("_")[3]
def run():
@@ -22,6 +22,7 @@ def run():
deal_type, bbg_id = get_bbg_id(f.filename)
except TypeError:
continue
+ print(BbgDeal._cache)
if bbg_id not in BbgDeal._cache:
with sftp.client.open(f.filename) as fh:
Deal[DealType(deal_type)].process(fh, bbg_id)