Investpy Versions Save

Financial Data Extraction from Investing.com with Python

1.0.8

2 years ago

✨ Features

  • Update documentation in "Read the Docs" as now we're using Furo template for sphinx.
  • Remove Python 3.6 support for upcoming releases.
  • Clean the project from unused files or files that have been directly removed.
  • Configure pre-commit with black/isort/flake8 so as to respect the Python coding standards.

🐛 Fixes

📌 Notes

You can install the latest version as it follows:

pip install investpy==1.0.8

Or just upgrade the one that you already have:

pip install investpy --upgrade

📖 Contact Information

Anyways, feel free to open as many issues as you think the package needs in order to improve investpy! Any kind of help is appreciated since this is an open-source project.

Contact me via email, via LinkedIn, via Twitter or via GitHub.

1.0.7

2 years ago

This release mainly solves some investpy.search_quotes bugs and also adds more functionality to the data that can be retrieved from the resulting investpy.SearchObj class instances while calling the function. Thanks a lot to all the people that reported this issues! :fire:

:bug: Bug Fixes

  • Some of the investpy static files were not being properly read, as the pd.read_csv function interprets the value 'NA' as the np.nan value, so that it gets automatically substituted. What in this case was a problem since there's a Canadian stock with symbol 'NA' so the pandas function was parsing it as a NaN which was making the Canadian static files useless as that information could not be accessed, as described in https://github.com/alvarobartt/investpy/issues/346.
  • investpy.SearchObj.retrieve_information class method has been fixed, since Investing.com has updated the HTML format just for the stocks/equities, and the generic scraping method that we developed in that function was no longer working. So on, that method has been updated so as to retrieve it assuming the latest HTML format for stocks/equities, while assuming the old format for all the other ones https://github.com/alvarobartt/investpy/issues/395, with the detail that whenever Investing.com applies the new HTML format to all the other financial products the transition will be automatic, since both approaches are being checked before retrieving the information.
  • Raised the same error (IndexError) whenever the data was not available due to an Investing.com error, not related at all with the parsing method, but with the availability of that data in the website (https://github.com/alvarobartt/investpy/issues/212).
  • The results provided by investpy.search_quotes are now consistent, since previously as the n_results parameter was added, it was making the function return a single element not just every time the parameter value was set to 1, which was the intention of that parameter, but also when there was just one search result even if the user specified a greater value or even None (retrieve all). So on, this was causing an inconsistency in the returned type as the n_results=1 restriction was being applied even when the parameter was not set to 1, as reported in https://github.com/alvarobartt/investpy/issues/339.
  • Some other minor fixes!

:balloon: New Features

  • investpy.SearchObj implements a new method to retrieve the technical indicators data from Investing.com for all the financial products, as long as that information is available, just using the method .retrieve_technical_indicators() of each investpy.SearchObj class instance, as requested in #374, #391, and #392.
  • You can also retrieve the default currency of each financial product via the investpy.SearchObj class method .retrieve_currency(), as this feature has been requested a lot lately as it's really important to get to know the currency in which the financial product's data is provided in, as requested in #172, #181, #381, and #390.
  • Since the Investing.com HTML has been updated (currently just for the stocks/equities but we think that this update will come sooner or later for all the other financial products available) we've included some conditions so as to use one data retrieval method or another depending on the HTML version lets say. So on, currently all the information provided by investpy.SearchObj class methods is aligned with the naming and format of the stocks'/equities' HTML, which means that we tried to align everything.
  • Now the .retrieve_recent_data() and .retrieve_historical_data() class methods of investpy.SearchObj have been updated so as to include the Change Percentage (%) value which is now provided by Investing.com, as spotted while going through https://github.com/alvarobartt/investpy/issues/375.
  • The pytest tests for the CI have also been updated since some functions were not being properly tested and some others were not even tested. This new tests, along with the addition of Windows-OS as the new testing OS alognside Linux (#380), is making the tests more consistent and reliable.
  • Finally, the documentation has been also updated, as now it's using the Furo theme rather than the ReadTheDocs theme that it was using before, since I think Furo's theme is way cleaner and that, combined with the updated docs and explanations, will make the documentation much more readable and easy to go through.

:pushpin: Notes

You can install the new version as it follows:

pip install investpy==1.0.7

Or just update the one you already have:

pip install investpy --upgrade

:open_book: Information

Anyways, feel free to open as many issues as you think the package needs in order to improve investpy! Any kind of help is appreciated since this is an open-source project.

Contact me via email, via LinkedIn, via Twitter or via GitHub.

1.0.6

3 years ago

Bug Fixes

This has been a quick bug-fix release as the investpy.search_quotes() function was overwriting the result when calling either retrieve_recent_data or retrieve_historical_data over the SearchObj result. So on, the data could be retrieved but not accessed, but this release already solves that so that the function is working as expected again! :fire:

You can install the new-fixed (hotfix) version as it follows:

pip install investpy==1.0.6

Sorry for the inconvenience, everyone go thank @danilogalisteu as he spotted and solved this issue with investpy.search_quotes! 👍🏻

Information

Anyways, feel free to open as many issues as you think the package needs in order to improve investpy! Any kind of help is appreciated since this is an open-source project.

Contact me via email, via LinkedIn, via Twitter or via GitHub.

1.0.5

3 years ago

Bug Fixes

This has been a quick bug-fix release as all the investpy functionalities that send requests to Investing.com were not working due to an issue in Investing.com as they updated the accepted headers in the requests so that all the requests were failing. Thank you to everyone involved!

You can install the new-fixed version as it follows:

pip install investpy==1.0.5

Sorry for the inconvenience, seems that Investing.com is applying a lot of changes and under maintenance... Everyone thank both @danilogalisteu and @nhlsm for their awesome support! 👍🏻

Information

Anyways, feel free to open as many issues as you think the package needs in order to improve investpy! Any kind of help is appreciated since this is an open-source project.

Contact me via email, via LinkedIn, via Twitter or via GitHub.

1.0.4

3 years ago

Bug Fixes

  • Removed useless print statement in investpy.search_quotes(), as it was a debug message while developing the new unreleased feature investpy.search_events().

  • Now the dicts are updated using key access instead of .update() functions, as those take more computation time to update the dict's value for a certain key.

  • investpy.search_quotes() returns a single value when n_results=1, instead of a list with one single value in it. So that now, we can just:

    import investpy
    search_result = investpy.search_quotes(text='apple`, n_results=1)
    

    instead of:

    import investpy
    search_results = investpy.search_quotes(text='apple`, n_results=1)
    search_result = search_results[0]
    
  • The function investpy.get_stock_information() has been fixed so as to support the latest Investing.com changes in the HTML which were resulting in an error while trying to be parsed with the previous function. This was solved by @alexis :muscle:

  • The static file cryptos.csv has been updated in order to support the latest cryptocurrencies indexed on Investing.com.

  • A bug while trying to retrieve information from financial products with special characters has been solved, so that now all the investpy static information is fully accessible.

  • Sometimes when retrieving the data from a cryptocurrency, you could run into an error while parsing the volume, which has been also fixed. Thanks to @adximize :clap:

  • The README.md has been refactored including emojis and some readability improvements.

  • Some other minor issues or improvements have also been fixed.

Information

Anyways, feel free to open as many issues as you think the package needs in order to improve investpy! Any kind of help is appreciated since this is an open-source project.

Contact me via email, via LinkedIn, via Twitter or via GitHub.

1.0.3

3 years ago

Bug Fixes

  • TODO

Information

Anyways, feel free to open as many issues as you think the package needs in order to improve investpy! Any kind of help is appreciated since this is an open-source project.

Contact me via email, via LinkedIn, via Twitter or via GitHub.

1.0.2

3 years ago

Bug Fixes

  • Merged @imad3v PR #237 to fix data retrieval errors when retrieving date windows higher than 19 years on both pandas.DataFrame and JSON formats.
  • Now interval values can be lowercase as the inputs are properly handled and less restrictive.
  • Fixed date conversion #282 from UTC to GMT so as to avoid issues when retrieving data being in different countries (this issue mainly happens from the USA).
  • The function investpy.economic_calendar() retrieves all the events from all the dates in the date range as previously it was cropping the data as reported in #186
  • Travis CI build has been removed, and just the GitHub Actions have been kept!
  • Also the docs have been updated as the API information was missing due to an error on the docs/index.rst reference #238
  • And some other minor fixes...

Information

Anyways, feel free to open as many issues as you think the package needs in order to improve investpy! Any kind of help is appreciated since this is an open-source project.

Contact me via email, via LinkedIn, via Twitter or via GitHub.

1.0.1

3 years ago

Bug Fixes

  • Included missing 1min interval to all the investpy.technical functions as suggested in #277
  • Included Python 3.9 support and removed Python 3.5 support!
  • Fixed error on investpy.get_stocks_overview() when turnover value is Billion #251
  • Fixed error while parsing float values as int values #205
  • And some other minor fixes...

Information

Anyways, feel free to open as many issues as you think the package needs in order to improve investpy! Any kind of help is appreciated since this is an Open Source project.

Contact me via email, via LinkedIn, via Twitter or via GitHub.

1.0

3 years ago

Release Features:

  • investpy.search_quotes() now retrieves all the available results and not just the top 1000 ones as before, since filters may lead to not found data since it may not be contained in the first 1000 entries, but on the upcoming ones.
  • Removed all useless files and included, if applicable, as static Python dictionaries in utils.constant.py so as to avoid loading unnecessary files over and over.
  • Some URLs were still throwing errors when requests were sent from different regions, which now has been fixed since all the URLs have been moved to .com, as some of them were just applicable for Spain (.es).
  • Now you can retrieve the information from any financial product from the resulting SearchObj of the investpy.search_quotes() function.
  • Fixed Windows installation and included Python3.8 support!
  • All username details moved from @/alvarob96 to @alvarobartt.
  • Since this is a new complete version, README structure and content has been updated so as to "give it a fresh look".
  • Also some bugs have been fixed as reported in the issues!

Information

Anyways, feel free to open as many issues as you think the package needs in order to improve investpy! Any kind of help is appreciated since this is an Open Source project.

Contact me via email, via LinkedIn or via GitHub.

0.9.14

4 years ago

Release Features:

  • Duplicate dates on historical data fixed since when retrieving historical data from any financial product with an interval higher than 19 years interval dates were being overlapped.
  • Included economic calendar which displays the calendar of all the economic and non-economic events that may have any impact on economy as presented by Investing.com. This feature can be used as: investpy.get_calendar().
  • Currently stock_exchange parameter can be specified while retrieving both recent and historical data from ETFs.
  • Technical Indicators (such as moving averages, technical indicators or pivot points) have been included, so that the technical calculations made by Investing.com for every financial product can be easily retrieved using: investpy.moving_averages(), investpy.technical_indicators() and investpy.pivot_points().
  • Also some bugs have been fixed as reported in the issues!

Information

Anyways, feel free to open as many issues as you think the package needs in order to improve investpy! Any kind of help is appreciated since this is an Open Source project.

Contact me via email, via LinkedIn or via GitHub.