fix(HEL-356): support Beijing exchange realtime quotes
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user