Commit Graph

8 Commits

Author SHA1 Message Date
Bortlesboat 02a3a68267
fix: add international exchange mappings for TradingView widgets
Expand formatSymbolForTradingView to map 40+ Finnhub exchange suffixes
to their TradingView prefix equivalents. Previously only .SS, .SZ, and
.HK were handled, causing international symbols like 2330.TW to fail
on the stock details page.

Add comprehensive test suite for utility functions including
formatSymbolForTradingView, formatMarketCapValue, formatChangePercent,
getChangeColorClass, and calculateNewsDistribution.

Closes #24
2026-03-28 15:28:12 -04:00
wenliang c227679ccf Fix: Address Copilot review (use slice for suffix removal, remove unused import) 2026-02-13 16:34:51 +08:00
wenliang 960044eb2d Fix: Return empty string for invalid symbol in formatSymbolForTradingView (CodeRabbit feedback) 2026-02-12 12:44:54 +08:00
wenliang 294d0b98e9 Fix: Add symbol format conversion for A-Share/HK stocks in TradingView widgets 2026-02-12 12:37:02 +08:00
Mr. Algorithm bc56a585af feat: Integrate Siray.ai fallback, modernize docs, and migrate users 2026-01-30 00:10:35 +05:30
Mr. Algorithm 7c965b022d
Update lib/utils.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-04 19:48:41 +05:30
Mr. Algorithm 30aa5d48e8 implemented search 2025-10-04 18:46:22 +05:30
Mr. Algorithm 0693aad9a7 initial commit 2025-09-28 23:52:33 +05:30