Add real-time market truth layer

This commit is contained in:
Codex
2026-05-07 00:12:12 +08:00
parent 057c1debd0
commit 82c1f20879
27 changed files with 2398 additions and 39 deletions
+2
View File
@@ -48,6 +48,7 @@ from src.api.training import (
submit_training_attempt,
)
from src.services.execution import ExecutionService
from src.services.market_state import start_market_truth_runtime
def build_api_dependencies() -> dict:
@@ -409,6 +410,7 @@ class APIRequestHandler(BaseHTTPRequestHandler):
def serve_api(host: str = "127.0.0.1", port: int = 8000) -> None:
start_market_truth_runtime()
server = ThreadingHTTPServer((host, port), APIRequestHandler)
print(f"AI ICT API listening on http://{host}:{port}")
server.serve_forever()