fix: preserve futures token identity in canonical cache
Keep futureToken2Symbol keyed by raw futures token and use explicit spot-to-future alias mapping during resolver fallback lookups. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -18,10 +18,7 @@ func Token2FutureSymbols(token string) []string {
|
||||
return []string{mapped}
|
||||
}
|
||||
|
||||
for futureToken, spotToken := range binance.FutureToken2SpotTokenMap {
|
||||
if strings.ToUpper(spotToken) != token {
|
||||
continue
|
||||
}
|
||||
if futureToken, ok := binance.SpotToken2FutureTokenMap[token]; ok {
|
||||
if mapped, ok := data.Market.GetFutureSymbolByToken(strings.ToUpper(futureToken)); ok {
|
||||
return []string{mapped}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user