aboutsummaryrefslogtreecommitdiffstats
path: root/python/manual_instrument_upload.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/manual_instrument_upload.py')
-rw-r--r--python/manual_instrument_upload.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/python/manual_instrument_upload.py b/python/manual_instrument_upload.py
new file mode 100644
index 00000000..a2e6d256
--- /dev/null
+++ b/python/manual_instrument_upload.py
@@ -0,0 +1,13 @@
+import sys
+
+sys.path.append("/home/flint/projects/ops/serenitas/")
+from ops.funds import SeleneProd
+from ops.trade_dataclasses import SwaptionDeal
+
+trade_ids = [322, 324]
+
+buffers = []
+for tradeid in trade_ids:
+ buffers.append(SwaptionDeal.from_tradeid(tradeid).product.to_citco())
+SeleneProd.staging_queue.extend(buffers)
+SeleneProd.build_buffer()