添加腾讯财经接口价格日志,方便排查当日盈亏为0问题

This commit is contained in:
claw_bot 2026-03-12 04:38:39 +00:00
parent ff102f70da
commit f7626b1113

View File

@ -75,6 +75,9 @@ public class MarketDataService : IMarketDataService
{ {
prevClose = currentPrice; // 解析失败用当前价当昨收 prevClose = currentPrice; // 解析失败用当前价当昨收
} }
_logger.LogDebug("腾讯财经接口返回 {Symbol}:最新价 {CurrentPrice},昨收价 {PrevClose},涨跌额 {Change}",
symbol, currentPrice, prevClose, currentPrice - prevClose);
return new MarketPriceResponse return new MarketPriceResponse
{ {