from fastapi import APIRouter router = APIRouter() @router.get("/pnl") def get_pnl(): # TODO: Real logic return {"profit": 42.0}