feat: strategy builder
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user