修复腾讯财经接口代码大小写问题:改为大写

This commit is contained in:
claw_bot 2026-03-12 04:33:08 +00:00
parent ece055fc10
commit ff102f70da

View File

@ -49,8 +49,8 @@ public class MarketDataService : IMarketDataService
{
_logger.LogInformation($"Requesting stock price for symbol: {symbol} (腾讯财经接口)");
// 腾讯财经美股接口前缀us写代码
var url = $"http://qt.gtimg.cn/q=us{symbol.ToLower()}";
// 腾讯财经美股接口前缀us写代码
var url = $"http://qt.gtimg.cn/q=us{symbol.ToUpper()}";
var response = await _httpClient.GetStringAsync(url);
if (string.IsNullOrEmpty(response) || !response.Contains("~"))