feat: strategy builder

This commit is contained in:
OpenSquared
2026-07-31 12:12:24 +02:00
parent 49ebd75522
commit cc22cbd3e0
6 changed files with 316 additions and 246 deletions

View File

@@ -118,6 +118,10 @@ def replay_position(
"date": d, "spot": chain.get("spot"),
"position_value": round(value, 2),
"pnl": round(value - entry_value, 2),
# Every day's real per-leg quote/IV/greeks, not just entry/exit — lets the
# "Analyse période historique" day-scrubber show the real leg detail for
# whichever day is currently scrubbed to, not only the window's endpoints.
"legs": day_legs,
})
if not points: