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

ValueError: Not able to find the options for equities #1

Closed
ALee008 opened this issue Feb 4, 2021 · 3 comments
Closed

ValueError: Not able to find the options for equities #1

ALee008 opened this issue Feb 4, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@ALee008
Copy link

ALee008 commented Feb 4, 2021

Describe the bug
Was trying to view all available equities, but I am getting a ValueError which follows a JSONDecodeError (see screenshot).

To Reproduce
Steps to reproduce the behavior:
`
import FinanceDatabase as fd

equities = fd.show_options('equities')
print(equities)
`

Expected behavior
show all available equities

Screenshots
grafik

Desktop (please complete the following information):

  • OS: OSX El Capitan
@JerBouma
Copy link
Owner

JerBouma commented Feb 4, 2021

The point of show options is to give you information on things like countries, sectors, industries, categories and such.

In this case you need to include either 'countries', 'sectors' or 'industries' as second variable to the function. The fact it doesn't work with just equities is a bug I will fix later.

If you want all equities symbols you should use the function fd.select_equities() without any input.

@JerBouma JerBouma added the bug Something isn't working label Feb 4, 2021
@JerBouma JerBouma closed this as completed Feb 4, 2021
@JerBouma JerBouma reopened this Feb 4, 2021
@ALee008
Copy link
Author

ALee008 commented Feb 4, 2021

Thank you for the quick response. I tried etfs, which worked. I tested show 'something' because I was curious about the message if an option was not available. It returned a ValueError and printing all available options, equity was one of them. That's why I tried this option.

@JerBouma
Copy link
Owner

JerBouma commented Feb 5, 2021

Fixed this issue, if you now enter 'equities' you get countries, sectors and industries, see image below. Please update to version 0.1.6 by doing the following:
pip install FinanceDatabase --upgrade

image

By the way, I have Docstrings in all my functions so you can always call help(fd.show_options) to get more information what is possible.

@JerBouma JerBouma closed this as completed Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants