16 lines
417 B
Python
16 lines
417 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import Dict
|
|
|
|
from ..schema import HedgePlan
|
|
|
|
|
|
@dataclass
|
|
class SimulatedVenueAdapter:
|
|
venue_name: str = "SimVenue"
|
|
|
|
def submit_plan(self, plan: HedgePlan) -> Dict[str, str]:
|
|
# Tiny stub that pretends order is always accepted
|
|
return {"venue": self.venue_name, "order_id": f"ORD-{plan.id}", "status": "accepted"}
|