feat: cockpit
This commit is contained in:
@@ -225,3 +225,26 @@ def catalog(
|
||||
@router.get("/catalog/summary")
|
||||
def catalog_summary():
|
||||
return get_saxo_catalog_summary()
|
||||
|
||||
|
||||
# ── Saxo-only options analytics (Options Lab "Saxo" section) ─────────────────
|
||||
# Computed exclusively from our own accumulated saxo_option_snapshots history — never
|
||||
# blended with the yfinance-based /api/options-vol/* endpoints. Symbols come from the
|
||||
# Saxo watchlist above (the same ones already being snapshotted every ~5 min).
|
||||
|
||||
@router.get("/iv-watchlist")
|
||||
def saxo_iv_watchlist():
|
||||
from services.saxo_iv_engine import get_saxo_iv_watchlist
|
||||
return get_saxo_iv_watchlist()
|
||||
|
||||
|
||||
@router.get("/iv-snapshot/{symbol}")
|
||||
def saxo_iv_snapshot(symbol: str):
|
||||
from services.saxo_iv_engine import get_saxo_iv_snapshot
|
||||
return get_saxo_iv_snapshot(symbol)
|
||||
|
||||
|
||||
@router.get("/iv-history/{symbol}")
|
||||
def saxo_iv_history(symbol: str, days: int = Query(90, ge=1, le=730)):
|
||||
from services.saxo_iv_engine import get_saxo_iv_history
|
||||
return get_saxo_iv_history(symbol, days)
|
||||
|
||||
Reference in New Issue
Block a user