blob: 88af30d8eebcb6f4f090b4c4966d942122031bcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import sys
sys.path.append("/home/flint/projects/ops/serenitas/")
from ops.funds import Fund
from ops.trade_dataclasses import DealKind
asset_class = "cds"
trade_ids = [
4208,
4184,
4187,
4205,
4182,
4190,
4221,
4230,
4213,
4209,
4231,
4219,
4207,
]
buffers = []
for tradeid in trade_ids:
buffers.append(DealKind[asset_class].from_tradeid(tradeid).to_citco("NEW"))
Fund["ISOSEL"].staging_queue.extend(buffers)
Fund["ISOSEL"].build_buffer(asset_class)
|