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

it's pulling all the stats instead of just one #1

Open
theashleyy opened this issue Sep 1, 2020 · 1 comment
Open

it's pulling all the stats instead of just one #1

theashleyy opened this issue Sep 1, 2020 · 1 comment

Comments

@theashleyy
Copy link

theashleyy commented Sep 1, 2020

I am trying to do the same thing just with getting market cap in there instead. I'm using the latest version of Python. So far I have:

resp = requests.get('https://cloud.iexapis.com/stable/stock/IBM/stats/"marketCap"?token=xxxxxx')
resp.raise_for_status()
print(resp.json())

It is printing all the data in stats for some reason and not just market cap. Would you know how to fix this? Thanks for the help!

@PythonForForex
Copy link
Owner

If you make a small change to your URL it should work. Quotations are not required around marketcap and the 'C' in marketcap should not be capitalized.

https://cloud.iexapis.com/stable/stock/IBM/stats/marketcap?token=

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

2 participants