aboutsummaryrefslogtreecommitdiffstats
path: root/python/collateral
diff options
context:
space:
mode:
Diffstat (limited to 'python/collateral')
-rw-r--r--python/collateral/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/collateral/common.py b/python/collateral/common.py
index 8e6ec4ab..96f673c2 100644
--- a/python/collateral/common.py
+++ b/python/collateral/common.py
@@ -57,7 +57,7 @@ def get_bilateral_trades(d: datetime.date, fund: str, engine: Engine) -> pd.Data
df_cds = pd.read_sql_query(
"SELECT cpty_id, folder, initial_margin_percentage * abs(notional) / 100 as IA "
"FROM list_cds(%s::date, %s) "
- "WHERE orig_attach IS NOT NULL",
+ "WHERE cp_code IS NOT NULL", # that way we get all tranches + the ABS_CDS
engine,
params=(d, fund),
)