20 lines
492 B
Python
20 lines
492 B
Python
from __future__ import annotations
|
|
from typing import Any
|
|
import time
|
|
|
|
from deltaforge_mvp.core import PlanDelta
|
|
|
|
|
|
class Backtester:
|
|
def __init__(self, seed: int | None = None):
|
|
self.seed = seed
|
|
|
|
def replay(self, plan: PlanDelta) -> Any:
|
|
# Minimal deterministic replay: just echo basic info
|
|
return {
|
|
"status": "replayed",
|
|
"venue": plan.venue,
|
|
"delta_count": len(plan.deltas),
|
|
"timestamp": time.time(),
|
|
}
|