mirror of
https://github.com/jaxperro/winning-wallet-finder.git
synced 2026-07-27 15:57:47 +00:00
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:
@@ -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})",
|
||||
|
||||
Reference in New Issue
Block a user