feat(hyperliquid): add stock symbol market data support

- Add Hyperliquid/XYZ symbol normalization tests and backend coverage

- Extend kline and market data lookup paths for US stock symbols

- Wire frontend data API types for stock-oriented market requests
This commit is contained in:
tinklefund
2026-05-25 01:24:49 +08:00
parent 908fc09aca
commit f37fc9f887
12 changed files with 551 additions and 109 deletions

View File

@@ -159,6 +159,10 @@ func TestNormalizeCoin(t *testing.T) {
{"BTCUSDT", "BTC"},
{"BTCUSD", "BTC"},
{"TSLA-USDC", "TSLA"},
{"TESLA-USDC", "TSLA"},
{"SMSN-USDC", "SMSN"},
{"SAMSUNG-USDC", "SMSN"},
{"xyz:SMSN", "SMSN"},
{"AAPL-USDC", "AAPL"},
{"ETH", "ETH"},
{"ETHUSDT", "ETH"},
@@ -204,6 +208,10 @@ func TestFormatCoinForAPI(t *testing.T) {
{"ETH", "ETH"},
{"TSLA", "xyz:TSLA"},
{"TSLA-USDC", "xyz:TSLA"},
{"TESLA-USDC", "xyz:TSLA"},
{"SMSN-USDC", "xyz:SMSN"},
{"SAMSUNG-USDC", "xyz:SMSN"},
{"xyz:SMSN", "xyz:SMSN"},
{"xyz:TSLA", "xyz:TSLA"},
{"NVDA", "xyz:NVDA"},
{"GOLD", "xyz:GOLD"},