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

Wrong API URL in CS50 Finance #394

Closed
TenType opened this issue Aug 21, 2022 · 1 comment
Closed

Wrong API URL in CS50 Finance #394

TenType opened this issue Aug 21, 2022 · 1 comment

Comments

@TenType
Copy link

TenType commented Aug 21, 2022

In the CS50 Finance problem, following the API URL example with a valid API key leads to an error:

Indeed, IEX lets you download stock quotes via their API (application programming interface) using URLs like https://cloud-sse.iexapis.com/stable/stock/nflx/quote?token=API_KEY.

Looking at the documentation on IEX, the SSE endpoint is only available for paid users. I believe the correct URL should be https://cloud.iexapis.com/stable/stock/nflx/quote?token=API_KEY (cloud-sse -> cloud), which is used in the problem distribution code.

@rongxin-liu
Copy link

Thanks for bringing this to our attention.

https://github.com/cs50/harvard/commit/16d2df48239b96c0aa055ef24ac1a58b03c3e252

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