alvarobartt / investpy

Financial Data Extraction from Investing.com with Python
https://investpy.readthedocs.io/
MIT License
1.59k stars 375 forks source link

Several improvements and bug fixes in `investpy.search_quotes` #397

Closed alvarobartt closed 3 years ago

alvarobartt commented 3 years ago

During this PR I've completed some issues that were listed in the current milestone https://github.com/alvarobartt/investpy/milestone/2, since investpy.search_quotes is one of the most useful investpy functions, which means that we should make it as consistent as possible.

Somethings were failing such as the information retrieval for stocks since Investing.com did some HTML updates just for the stocks, the currency data was not being provided and it was needed, the technical indicators couldn't be retrieved from a SearchObj (and neither from the static files if the stock didn't exist), the search results were not type-consistent since sometimes a single class instance was returned when n_results was higher than 1, there was no error trigger whenever the function did not find any results, and some minor changes more.

Also the documentation was pretty outdated, so I've done my best to clean it up a little bit and prepared a better documentation using Furo as the main ReadTheDocs theme.

Thanks a lot to all the people that reported this issues! :fire: