Interface.routes module
FastAPI routes for stock analysis.
-
async Interface.routes.analyze_stock(ticker: UserInputSchema, request: Request, api_key: str = Depends(dependency=<function verify_api_key>, use_cache=True, scope=None))[source]
Analyze a stock based on ticker symbol.
-
Interface.routes.get_health()[source]
returns api status
-
Interface.routes.health_check_model() → dict[source]
Health check for model service.
-
async Interface.routes.health_check_runner(request: Request) → dict[source]
Health check for runner service.
-
Interface.routes.verify_api_key(x_api_key: str = Header(PydanticUndefined))[source]
Verify the API key from request headers.