fix(HEL-356): support Beijing exchange realtime quotes
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -616,6 +616,8 @@ def _guess_ts_code(code: str) -> str | None:
|
||||
if "." in raw:
|
||||
return raw
|
||||
if len(raw) == 6 and raw.isdigit():
|
||||
if raw.startswith(("4", "8", "92")):
|
||||
return f"{raw}.BJ"
|
||||
if raw.startswith(("5", "6", "9")):
|
||||
return f"{raw}.SH"
|
||||
return f"{raw}.SZ"
|
||||
|
||||
Reference in New Issue
Block a user