alvarobartt / investpy

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

Missing certificates #167

Open typhoon71 opened 4 years ago

typhoon71 commented 4 years ago

I can't seem to find a certificate using investpy, but it is available on investing.com. https://www.investing.com/certificates/leo-basket-27jun23-ch0419581431

I used:

df = investpy.get_certificate_information(certificate='Leonteq Securities AG ZT Basket 27Jun23', country='italy')

Searching ussing the ISIN also gives the same error:

RuntimeError("ERR#0101: certificate " + certificate + " not found, check if it is correct.")

Listing all certificates for all available countries doesn't show it.

Any idea what's happening?

alvarobartt commented 4 years ago

Hi again @typhoon71! As I told you before, the issue with the missing data is highly dependant on the Investing.com listings and it is a quite hard task to retrieve and store all of them into a CSV file, but you can use the investpy.search_quotes() function from the developer version which should work, since it uses the Investing.com Search Engine.

To install the developer version of investpy you can use the following command:

pip install git+https://github.com/alvarobartt/investpy.git@developer

Thank you! Remember to star the repo if you found it useful and follow me at GitHub so as to get notified of all the updates!

alvarobartt commented 4 years ago

Here I attach you the referencing Wiki => [investpy.search_quotes](https://github.com/alvarobartt/investpy/wiki/investpy.search_quotes())

Hope it helps you understand investpy.search_quotes() function usage!

typhoon71 commented 4 years ago

The investpy.search_quotes() seem interesting, I'll check the dev version (or wait for an updated release one).

Also, thanks for and writing useful documentation!

typhoon71 commented 4 years ago

Currently got around installing the dev branch to test investpy.search_quotes().

I was installing it in a venv and I got some issues, had to download the zip and use easyinstall.

I noticed a little issue:

import investpy

gives an error, complaining about investpy-1.0-py3.7.egg\investpy\utils\aux.py not being there.

I found out that the file aux.py was named _aux.py instead, so a quich rename solved all.