s-ttp commited on
Commit
8aaff2e
·
verified ·
1 Parent(s): 7ec49f5

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -91,6 +91,14 @@ async def nav():
91
  raise HTTPException(503, str(e))
92
 
93
 
 
 
 
 
 
 
 
 
94
  @app.get("/api/quotes")
95
  async def quotes(symbols: str):
96
  syms = [s for s in symbols.split(",") if s.strip()][:60]
 
91
  raise HTTPException(503, str(e))
92
 
93
 
94
+ @app.get("/api/supervisor")
95
+ def api_supervisor(force: int = 0):
96
+ """Daily health & drift monitor (flag-only, never trades) — tracking vs SPY,
97
+ guardrails (paper/margin/exposure/caps), data & rebalance freshness."""
98
+ from services import supervisor
99
+ return supervisor.report(force=bool(force))
100
+
101
+
102
  @app.get("/api/quotes")
103
  async def quotes(symbols: str):
104
  syms = [s for s in symbols.split(",") if s.strip()][:60]