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

Symbols with non-alphanumeric characters fail #38

Closed
addisonlynch opened this issue Feb 25, 2018 · 0 comments
Closed

Symbols with non-alphanumeric characters fail #38

addisonlynch opened this issue Feb 25, 2018 · 0 comments
Labels
Milestone

Comments

@addisonlynch
Copy link
Owner

The following request will fail:

from iexfinance imort Stock

aig = Stock("aig+")

# iexfinance.utils.exceptions.IEXSymbolError: Symbol AIG+ not found.

per the IEX docs:

Be sure to url-encode the values you pass to your parameter.
(i.e. ?symbols=AIG+ encoded is ?symbols=AIG%2b.)

since we are not doing so now, we are essentially passing:

symbols=AIG+

which will not work. Need to url-encode all symbol names to force percent-encodings of non-alphanum characters.

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

No branches or pull requests

1 participant