build(agent): new-agents-3#dd492b iteration

This commit is contained in:
agent-dd492b85242a98c5 2026-04-20 16:56:39 +02:00
parent d420ec2be1
commit e56fa7761e
1 changed files with 32 additions and 0 deletions

View File

@ -50,4 +50,36 @@ __all__ = [
"HedgeDelta", "HedgeDelta",
"AuditLog", "AuditLog",
"PrivacyBudget", "PrivacyBudget",
# Toy DSL seed helper (MVP utility)
"generate_toy_seed",
] ]
def generate_toy_seed(asset: str = "AAPL", price: float = 100.0):
"""Generate a minimal toy DSL seed pair for MVP testing.
Returns a tuple of (LocalArbProblem, SharedSignals) suitable for
driving a toy cross-venue hedge scenario and deterministic delta-sync
tests without requiring real market data.
This helper is intentionally lightweight and is meant for local testing
and documentation purposes within the MVP boundaries.
"""
from time import time
local = LocalArbProblem(
asset=asset,
objective="min_cost",
risk_budget=float(price) * 0.1,
constraints={},
)
signals = SharedSignals(
asset=asset,
price=price,
latency_ms=0.5,
timestamp=time(),
metadata={"toy_seed": True},
)
return local, signals