mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-06-06 05:51:19 +08:00
- 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
19 lines
466 B
Go
19 lines
466 B
Go
package hyperliquid
|
|
|
|
import "testing"
|
|
|
|
func TestConvertSymbolToHyperliquidXYZAliases(t *testing.T) {
|
|
cases := map[string]string{
|
|
"SAMSUNG-USDC": "xyz:SMSN",
|
|
"SK-HYNIX-USDC": "xyz:SKHX",
|
|
"TSLAUSDT": "xyz:TSLA",
|
|
"xyz:SMSN": "xyz:SMSN",
|
|
"HYPEUSDT": "HYPE",
|
|
}
|
|
for input, want := range cases {
|
|
if got := convertSymbolToHyperliquid(input); got != want {
|
|
t.Fatalf("convertSymbolToHyperliquid(%q) = %q, want %q", input, got, want)
|
|
}
|
|
}
|
|
}
|