aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/recon_bowdst.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/recon_bowdst.py b/python/recon_bowdst.py
index b06427d0..8afa2ade 100644
--- a/python/recon_bowdst.py
+++ b/python/recon_bowdst.py
@@ -54,7 +54,7 @@ def recon(hierarchy_file, date):
"usd_market_value",
]
]
- bond_trades["db_notional"] = bond_trades["Shares/Par"] * bond_trades["factor"]
+ bond_trades["db_notional"] = bond_trades["notional"] * bond_trades["factor"]
bond_trades.rename(
columns={
"usd_market_value": "db_mv",
@@ -92,7 +92,7 @@ def recon(hierarchy_file, date):
for kind, name in zip(kinds, names):
# difference(kind).to_csv(f"/home/serenitas/flint/{name}_{date}.csv")
buf = StringIO()
- difference(kind).to_csv(buf)
+ difference(kind.round(decimals=2)).to_csv(buf)
attachments.append(
FileAttachment(name=f"{name}_{date}.csv", content=buf.getvalue().encode())
)