fix(HEL-356): support Beijing exchange realtime quotes

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
总管
2026-09-09 11:36:01 +08:00
co-authored by multica-agent
parent cb45d742da
commit abee8306be
5 changed files with 27 additions and 9 deletions
+2 -2
View File
@@ -158,10 +158,10 @@ def _tencent_symbol(code: str) -> str:
symbol = raw.split(".")[0]
if not symbol.isdigit() or len(symbol) != 6:
return ""
if raw.endswith(".BJ") or symbol.startswith(("4", "8", "92")):
return f"bj{symbol}"
if raw.endswith(".SH") or symbol.startswith(("5", "6", "9")):
return f"sh{symbol}"
if raw.endswith(".BJ") or symbol.startswith(("4", "8")):
return f"bj{symbol}"
return f"sz{symbol}"