The historical function returns an empty array [] on any kind of error (network error, symbol not found, etc). While investigating I found there is an undocumented option error that can be set to true to get errors thrown.
I believe it is better to remove this option and just throw the errors so the user of the module can handle the errors the way they like.
Same applies to companyNews and yahoo-finance.historical.
If you agree I can make a PR request for it.
The
historicalfunction returns an empty array[]on any kind of error (network error, symbol not found, etc). While investigating I found there is an undocumented optionerrorthat can be set totrueto get errors thrown.I believe it is better to remove this option and just throw the errors so the user of the module can handle the errors the way they like.
Same applies to
companyNewsandyahoo-finance.historical.If you agree I can make a PR request for it.