Add real-time market truth layer
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user