aboutsummaryrefslogtreecommitdiffstats
path: root/python/manual_instrument_upload.py
blob: a2e6d2566dc1097d11dbb9e0ed30b53504bd0d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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()