aboutsummaryrefslogtreecommitdiffstats
path: root/python/risk/tranches.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/risk/tranches.py')
-rw-r--r--python/risk/tranches.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/risk/tranches.py b/python/risk/tranches.py
index 3bf72e50..93c433f4 100644
--- a/python/risk/tranches.py
+++ b/python/risk/tranches.py
@@ -79,7 +79,8 @@ def insert_tranche_portfolio(portf, conn):
logger.info(f"marking tranche {trade_id} in {strat}")
try:
theta = trade.theta(method="TLP")
- except (ValueError, RuntimeError):
+ except (ValueError, RuntimeError) as e:
+ logger.info(str(e))
theta = (
trade.clean_pv / trade.notional / trade.duration
+ trade.tranche_running * 1e-4