reconcile: live-realized field fix; first reconcile.csv row + replica book committed

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jaxperro
2026-07-24 13:42:45 -04:00
parent cca2a66129
commit b9e2abd7c9
5 changed files with 7 additions and 3 deletions
+2 -3
View File
@@ -171,10 +171,9 @@ def main():
rep = json.load(open(os.path.join(ROOT, "live",
"portfolio_live_replica.json")))
lv = json.load(open(os.path.join(ROOT, "live",
"copybot_live_real_full.json")))
"copybot_live_real.json")))
row["replica_pnl"] = round(rep.get("pnl") or 0, 2)
row["live_realized"] = round(lv.get("pnl_realized")
or lv.get("realized") or 0, 2)
row["live_realized"] = round(lv.get("realized") or 0, 2)
print(f"REPLICA: model-at-live-bank 30d P&L {row['replica_pnl']:+.2f}"
f" vs live book realized {row['live_realized']:+.2f} "
f"(residual {row['replica_pnl'] - row['live_realized']:+.2f})",