Fix BuildPriceFromSections.

This commit is contained in:
2025-01-14 08:51:30 -05:00
parent 970c74e22a
commit 0ff89650f9

View File

@@ -4892,7 +4892,11 @@ namespace MarketData.Helper
if(dataSections.Count>0)
{
dataSections = Sections.GetSections(dataSections[0]);
if(null!=dataSections && dataSections.Count>0)
if(null!=dataSections && dataSections.Count==1)
{
price.Close=price.AdjClose=FeedParser.ParseValue(dataSections[0]);
}
else if(null!=dataSections && dataSections.Count>0)
{
price.Close=price.AdjClose=FeedParser.ParseValue(dataSections[1]);
}