1 2 3 4 5 6 7 8
from fastapi import APIRouter router = APIRouter() @router.get("/pnl") def get_pnl(): # TODO: Real logic return {"profit": 42.0}