Fix Yahoo GetLatestPriceYahoo
This commit is contained in:
@@ -4779,7 +4779,7 @@ namespace MarketData.Helper
|
||||
}
|
||||
catch(Exception exception)
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("Exception: {0}",exception.ToString()));
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("Exception: for {0} -> {1}",price.Symbol,exception.ToString()));
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -4825,6 +4825,7 @@ namespace MarketData.Helper
|
||||
else if(Sections.FindInSections(sections, "Bid",0, ref itemIndex, true))
|
||||
{
|
||||
itemValue = sections[itemIndex+3];
|
||||
if(String.IsNullOrEmpty(itemValue))continue;
|
||||
String[] bidContractSplit = itemValue.Split('x');
|
||||
bid=FeedParser.ParseValue(bidContractSplit[0]);
|
||||
bidContracts=FeedParser.ParseValue(bidContractSplit[1]);
|
||||
@@ -4832,6 +4833,7 @@ namespace MarketData.Helper
|
||||
else if(Sections.FindInSections(sections, "Ask",0, ref itemIndex, true))
|
||||
{
|
||||
itemValue = sections[itemIndex+3];
|
||||
if(String.IsNullOrEmpty(itemValue))continue;
|
||||
String[] askContractSplit = itemValue.Split('x');
|
||||
ask = FeedParser.ParseValue(askContractSplit[0]);
|
||||
askContracts = FeedParser.ParseValue(askContractSplit[1]);
|
||||
@@ -4886,7 +4888,7 @@ namespace MarketData.Helper
|
||||
}
|
||||
catch(Exception exception)
|
||||
{
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("Exception: {0}",exception.ToString()));
|
||||
MDTrace.WriteLine(LogLevel.DEBUG,String.Format("Exception: for {0} -> {1}",price.Symbol,exception.ToString()));
|
||||
return null;
|
||||
}
|
||||
finally
|
||||
|
||||
Reference in New Issue
Block a user