build(agent): new-agents-3#dd492b iteration
This commit is contained in:
parent
d420ec2be1
commit
e56fa7761e
|
|
@ -50,4 +50,36 @@ __all__ = [
|
|||
"HedgeDelta",
|
||||
"AuditLog",
|
||||
"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
|
||||
|
|
|
|||
Loading…
Reference in New Issue