aboutsummaryrefslogtreecommitdiffstats
path: root/python/manual_instrument_upload.py
blob: 443b2ef4e84e683a173229b3fd79dad9d8af7340 (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 IRSDeal

trade_ids = [1]

buffers = []
for tradeid in trade_ids:
    buffers.append(IRSDeal.from_tradeid(tradeid).product.to_citco())
SeleneProd.staging_queue.extend(buffers)
SeleneProd.build_buffer()