"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
fix(cli): show account label in broker_sdk balances view (#843)
卫斯李6da76b7e01fd
diff --git a/agent/cli/_legacy.py b/agent/cli/_legacy.pyindex d95289dab..089054615 100644--- a/agent/cli/_legacy.py+++ b/agent/cli/_legacy.py@@ -4021,6 +4021,8 @@ def _print_connector_account(result: dict[str, Any]) -> int:# broker_sdk connectors (Longbridge, …) return a ``balances`` list instead of# IBKR-style ``summary`` tag/value rows; render that when present (#735).if not rows and result.get("balances"):+ label = accounts if accounts != "(none)" else result.get("profile_id", result.get("profile", "unknown"))+ console.print(f"Accounts: [cyan]{rich_escape(str(label))}[/cyan]")return _print_connector_balances(result)if not rows:# Not the broker_sdk flat shape — try the remote-MCP nested shape.