aboutsummaryrefslogtreecommitdiffstats
path: root/python/process_queue.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/process_queue.py')
-rw-r--r--python/process_queue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/process_queue.py b/python/process_queue.py
index 14c82dfd..51f22f59 100644
--- a/python/process_queue.py
+++ b/python/process_queue.py
@@ -404,7 +404,8 @@ def cds_trade_process(conn, session, trade):
factor = bbg_data['MTG_FACTOR_SET_DT']
if is_tranche_trade(trade):
- tranche_factor = (trade['attach'] - trade['detach'])/(trade['orig_attach'] - trade['orig_detach']) * factor
+ tranche_factor = ((trade['attach'] - trade['detach']) /
+ (trade['orig_attach'] - trade['orig_detach']) * factor)
trade['curr_notional'] = trade['notional'] * tranche_factor
else:
trade['curr_notional'] = trade['notional'] * factor