feat: add Super Alpha research, management and MCP workflows
Deploy production / deploy (push) Successful in 56s
Deploy production / deploy (push) Successful in 56s
This commit is contained in:
+5
-3
@@ -6,7 +6,7 @@ import io
|
||||
import time
|
||||
from collections import defaultdict
|
||||
from contextlib import AsyncExitStack, asynccontextmanager
|
||||
from typing import Annotated
|
||||
from typing import Annotated, Literal
|
||||
|
||||
from fastapi import APIRouter, Depends, FastAPI, HTTPException, Query, Request, Response
|
||||
from fastapi.exceptions import RequestValidationError
|
||||
@@ -56,6 +56,7 @@ from .schemas import (
|
||||
)
|
||||
from .security import bootstrap, cipher, issue_session, require_auth, token_hash, valid_password
|
||||
from .submission import router as submission_router
|
||||
from .superalpha.routes import router as superalpha_router
|
||||
|
||||
|
||||
def account_output(account, client, settings):
|
||||
@@ -344,9 +345,9 @@ def create_app(settings=None, wq_client=None, ai_model_factory=None):
|
||||
return await Business(db).search_alphas(filters)
|
||||
|
||||
@api.get("/alphas/facets", response_model=FacetsOutput, tags=["alphas"])
|
||||
async def facets():
|
||||
async def facets(management_scope: Literal["super", "non_super"] | None = None):
|
||||
async with sessions() as db:
|
||||
return await Business(db).get_alpha_facets()
|
||||
return await Business(db).get_alpha_facets(management_scope)
|
||||
|
||||
@api.get(
|
||||
"/alphas/export",
|
||||
@@ -487,6 +488,7 @@ def create_app(settings=None, wq_client=None, ai_model_factory=None):
|
||||
app.include_router(dashboard_router)
|
||||
app.include_router(home_information_router)
|
||||
app.include_router(backtest_router)
|
||||
app.include_router(superalpha_router)
|
||||
app.include_router(api)
|
||||
app.include_router(catalog_router)
|
||||
app.include_router(preparations_router)
|
||||
|
||||
Reference in New Issue
Block a user