Wrong API URL in CS50 Finance
TenType opened this issue · 1 comments
TenType commented
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 commented
Thanks for bringing this to our attention.
https://github.com/cs50/harvard/commit/16d2df48239b96c0aa055ef24ac1a58b03c3e252