feat: API gateway trading endpoints, controls, backtest, WebSocket
This commit is contained in:
parent
e0d138c457
commit
6fe586f722
11 changed files with 1304 additions and 0 deletions
|
|
@ -69,6 +69,28 @@ def create_app(config: ApiGatewayConfig | None = None) -> FastAPI:
|
|||
# Auth routes (unauthenticated)
|
||||
app.include_router(auth_router)
|
||||
|
||||
# Trading routes (authenticated) — imported lazily to avoid circular deps
|
||||
from services.api_gateway.routes.portfolio import router as portfolio_router
|
||||
from services.api_gateway.routes.trades import router as trades_router
|
||||
from services.api_gateway.routes.signals import router as signals_router
|
||||
from services.api_gateway.routes.strategies import router as strategies_router
|
||||
from services.api_gateway.routes.news import router as news_router
|
||||
from services.api_gateway.routes.controls import router as controls_router
|
||||
from services.api_gateway.routes.backtest import router as backtest_router
|
||||
|
||||
app.include_router(portfolio_router)
|
||||
app.include_router(trades_router)
|
||||
app.include_router(signals_router)
|
||||
app.include_router(strategies_router)
|
||||
app.include_router(news_router)
|
||||
app.include_router(controls_router)
|
||||
app.include_router(backtest_router)
|
||||
|
||||
# WebSocket
|
||||
from services.api_gateway.ws import router as ws_router
|
||||
|
||||
app.include_router(ws_router)
|
||||
|
||||
# Health check
|
||||
@app.get("/health", tags=["health"])
|
||||
async def health() -> dict:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue