aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/manual_instrument_upload.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/python/manual_instrument_upload.py b/python/manual_instrument_upload.py
index 443b2ef4..7091b5fb 100644
--- a/python/manual_instrument_upload.py
+++ b/python/manual_instrument_upload.py
@@ -1,13 +1,10 @@
-import sys
+from serenitas.ops.funds import SeleneProd
+from serenitas.ops.trade_dataclasses import CDSDeal
-sys.path.append("/home/flint/projects/ops/serenitas/")
-from ops.funds import SeleneProd
-from ops.trade_dataclasses import IRSDeal
-
-trade_ids = [1]
+trade_ids = [4919]
buffers = []
for tradeid in trade_ids:
- buffers.append(IRSDeal.from_tradeid(tradeid).product.to_citco())
+ buffers.append(CDSDeal.from_tradeid(tradeid).product.to_citco())
SeleneProd.staging_queue.extend(buffers)
SeleneProd.build_buffer()