plinakos / yahoo-finance-managed

Automatically exported from code.google.com/p/yahoo-finance-managed
0 stars 0 forks source link

QuotesData.Volume always returns zero #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
class QuotesData

in : 
    case QuoteProperty.Volume:
       if (value is long)
       {
          long t = 0;
          if (long.TryParse(value.ToString(), out t))
           base.Volume = t;
       }
       break;

value datatype is double not long, i dont see the point in checking datatype 
since you are using tryparse instead of parse but i leave it up to you.

Fix sugestion to accomodate both situations: 
 if (value is long || value is double)

Thks for your hard work!!!

Original issue reported on code.google.com by r.guerra...@gmail.com on 21 Apr 2012 at 5:03

GoogleCodeExporter commented 8 years ago

Original comment by Maas...@gmail.com on 30 Apr 2012 at 12:50