mirror of
https://github.com/VGEAREN/Stockbar.git
synced 2026-10-06 15:04:05 +08:00
When user types a 6-digit code like '000660', Tencent returns A股 sz000660 (*ST 南华) while the same code is also a valid Korean ticker (000660.KS SK hynix). Previous logic only fell back to Yahoo when Tencent returned empty, hiding the Korean match. Now: fetchSuggestions runs tencentSearch and yahooKoreanSearch concurrently and merges results with dedup. Yahoo is queried whenever the input is plausibly Korean: 6-digit number, ≥3 letters, Hangul, .ks/.kq suffix, kr_ prefix. Short numeric inputs skip Yahoo to save a request.