diff options
Diffstat (limited to 'python/mtm_upload.py')
| -rw-r--r-- | python/mtm_upload.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/python/mtm_upload.py b/python/mtm_upload.py index 58244b81..225cddcf 100644 --- a/python/mtm_upload.py +++ b/python/mtm_upload.py @@ -192,13 +192,15 @@ def process_upload(trades, asset_type, upload): dest.write_bytes(buf) -def upload_mtm_trades(trade_type, tradeids, conn): +def upload_mtm_trades(trade_type, tradeid): _funs = { - "swaption": (swaption_trades, "swaption"), - "cds": (tranche_trades, "tranche"), + "swaption": (SwaptionDeal, "swaption"), + "cds": (CDSDeal, "tranche"), } process_upload( - _funs[trade_type][0](tradeids, conn), _funs[trade_type][1], upload=False + (_funs[trade_type][0].from_tradeid(tradeid).to_markit(),), + _funs[trade_type][1], + upload=True, ) |
