feat(CORE-002B): roll out hedge quote unit conversion

This commit is contained in:
Bu5hm4nn
2026-03-25 15:46:44 +01:00
parent f00b58bba0
commit 829c0b5da2
7 changed files with 223 additions and 30 deletions

View File

@@ -33,8 +33,12 @@ def demo_spot_price() -> float:
return 215.0
def portfolio_snapshot(config: PortfolioConfig | None = None) -> dict[str, float]:
return portfolio_snapshot_from_config(config)
def portfolio_snapshot(
config: PortfolioConfig | None = None,
*,
runtime_spot_price: float | None = None,
) -> dict[str, float]:
return portfolio_snapshot_from_config(config, runtime_spot_price=runtime_spot_price)
def strategy_catalog() -> list[dict[str, Any]]:
@@ -151,7 +155,9 @@ def dashboard_page(title: str, subtitle: str, current: str, workspace_id: str |
def render_workspace_recovery(title: str = "Workspace not found", message: str | None = None) -> None:
resolved_message = message or "The requested workspace is unavailable. Start a new workspace or return to the welcome page."
resolved_message = (
message or "The requested workspace is unavailable. Start a new workspace or return to the welcome page."
)
with ui.column().classes("mx-auto mt-24 w-full max-w-2xl gap-6 px-6 text-center"):
ui.icon("folder_off").classes("mx-auto text-6xl text-slate-400")
ui.label(title).classes("text-3xl font-bold text-slate-900 dark:text-slate-50")