aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/trade_dataclasses.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/trade_dataclasses.py b/python/trade_dataclasses.py
index a624494a..82ead0fc 100644
--- a/python/trade_dataclasses.py
+++ b/python/trade_dataclasses.py
@@ -481,7 +481,7 @@ class SwaptionDeal(
obj["Trade ID"] = obj["Swap ID"]
obj["Product Type"] = "CDISW"
obj["Transaction Type"] = "NEW"
- obj["Transaction Code"] = "Pay" if obj["Buysell"] else "Receive"
+ obj["Transaction Code"] = "Pay" if obj["buysell"] else "Receive"
obj["Protection"] = (
("Buy" if obj["option_type"] == "PAYER" else "Sell")
if obj["buysell"]