ui: 持仓监控 SimNow 标签去掉「模拟」
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -45,4 +45,4 @@ def get_account_capital(conn, get_setting: Callable[[str, str], str]) -> float:
|
|||||||
|
|
||||||
|
|
||||||
def trading_mode_label(get_setting: Callable[[str, str], str]) -> str:
|
def trading_mode_label(get_setting: Callable[[str, str], str]) -> str:
|
||||||
return "SimNow 模拟" if get_trading_mode(get_setting) == TRADING_MODE_SIM else "期货公司实盘"
|
return "SimNow" if get_trading_mode(get_setting) == TRADING_MODE_SIM else "期货公司实盘"
|
||||||
|
|||||||
+1
-1
@@ -57,7 +57,7 @@ def _setting_for_mode(mode: str) -> dict[str, str]:
|
|||||||
|
|
||||||
|
|
||||||
def _mode_label(mode: str) -> str:
|
def _mode_label(mode: str) -> str:
|
||||||
return "SimNow 模拟" if mode == "simulation" else "期货公司实盘"
|
return "SimNow" if mode == "simulation" else "期货公司实盘"
|
||||||
|
|
||||||
|
|
||||||
def _format_ctp_failure(ctp_logs: list[str]) -> str:
|
def _format_ctp_failure(ctp_logs: list[str]) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user