模块以 service.py 作为统一入口,对外暴露 check_connection/get_account/get_positions/get_open_orders/get_quote/get_history/place_order/cancel_order/close_position 等操作函数;每个操作内部根据 TradingProfile.transport 分派到三种实现路径:local_tws(直连本地 TWS/IB Gateway,走 connectors/ibkr/local.py)、broker_sdk(通过 _SDK_CONNECTOR_MODULES 映射表动态 importlib.import_module 加载对应 connectors/<broker>/sdk.py,要求该模块实现 build_config/check_status/get_account_snapshot/get_positions/get_open_orders/get_quote/get_historical_bars 等统一接口)、remote_mcp(通过 MCPServerAdapter 调用远端 MCP server 的命名工具)。写操作在 live 环境统一经 src.live.sdk_order_gate.execute_live_order / execute_live_action 进行 mandate 校验、kill switch 检查与审计记录。profiles.py 汇总各 connector 子包的 *_PROFILES 常量生成内置 profile 列表,并通过 trading-connections.json 持久化 selected_profile。types.py 定义 TradingProfile dataclass 及 Transport = Literal["local_tws","remote_mcp","broker_sdk"] 类型约束。tap_forward.py 为可选的 TAP 代理转发通道,使 Alpaca 等 connector 可在不持有密钥的情况下将读写请求经人工审批后转发至券商 API。eToro 因具备 copy-trading、close_position、edit_position_stops 等特有操作,在 service 中单独实现并复用 _route_sdk_write 通用写网关。