karlwancl / YahooFinanceApi

A handy Yahoo! Finance api wrapper, based on .NET Standard 2.0
MIT License
159 stars 58 forks source link

How to detect when yahoo data returns $0 price error #32

Open dotnetshadow opened 6 years ago

dotnetshadow commented 6 years ago

Hi there,

This is a question more than a bug, I'm wondering how I would detect when yahoo data is pretty much returning the wrong data, $0 price for multiple stocks.

I.e. I recently noticed that when I requested 100 stocks, the stock price was 0 on yahoo's end, is there something in the API that tells me if the data being requested isn't right? or do I just have to loop through each stock and check if the value is 0?

karlwancl commented 6 years ago

@dotnetshadow sorry for the late reply. We just reflect what Yahoo gives us, we don't try to modify the source data. It's better to handle the check logic by yourself.