ddsnowboard / FantasyStocks

A website where you play a game of fantasy stocks.
http://fantasystocks.herokuapp.com
Apache License 2.0
0 stars 1 forks source link

Fix API calls #56

Closed ddsnowboard closed 7 years ago

ddsnowboard commented 8 years ago

Yahoo changed things, and now the stock price API calls don't work. Fix them.

ex: http://finance.yahoo.com/webservice/v1/symbols/goog/quote?bypass=true&format=json&view=detail

If you try to show the homepage, it'll not show anything (because they are all going to XHR's), but if you try to refresh through the admin, it'll show you an error. Although it really doesn't matter because it's just the API. Fix that, and everything else will cascade. Also, now I'm happy I made the API interface so compartmentalized.

ddsnowboard commented 8 years ago

Here is some more information. I don't know if it's the same thing I had before, but it looks kinda useful. It will either tell you how to fix yahoo or where to find something else. http://stackoverflow.com/a/10040996/2570117

ddsnowboard commented 7 years ago

It works, and I'm going to merge the changes, but the trouble is that sometimes yahoo dies under the pressure. It doesn't happen often enough to really figure it out and take care of it though. I'm sure it'll pop up on a unit test eventually and then I'll fix it. Until then, I'll let it slide.