Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method get_stock_list is not working 'Could not get stock list')[ TypeError: string indices must be integers #65

Open
vtf180 opened this issue Sep 19, 2024 · 3 comments

Comments

@vtf180
Copy link

vtf180 commented Sep 19, 2024

Hi guys :-)

Following the examples:

daxsymbols = [] products = degiro.get_stock_list(6, 906) for product in products: daxsymbols.append(Product(product).symbol)

I am having the following error:

File "C:\Users\victor\AppData\Local\Programs\Python\Python38\lib\site-packages\degiroapi_init_.py", line 359, in get_stock_list
self.__request(DeGiro.__GET_STOCKS_URL, None, stock_list_params, error_message='Could not get stock list')[
TypeError: string indices must be integers

@github-staff github-staff deleted a comment from nhatlaso1 Sep 23, 2024
@mesosbrodleto
Copy link

same issue here. The request is returning a "No Data" string, instead of a list of products

@Jakub-CZ
Copy link

Jakub-CZ commented Dec 31, 2024

It's a simple fix, one URL just needed to be updated.

Fix is in my fork: Jakub-CZ@e3f0b3c

The package with this and many other fixes can be installed easily like so:

pip install -U git+https://github.com/Jakub-CZ/DegiroAPI.git

@mesosbrodleto
Copy link

thanks, I made the same change in my local code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants