small medium large xlarge

Generic-user-small
28 Nov 2017, 15:28
Alex Baker (1 post)

Yahoo shut down their finance API so the stock quote and currency conversion APIs are broken. There is another Yahoo API that can be used with some modification to stock_quote.rb. I posted a gist with the changes: https://gist.github.com/abaker/fe38053314149140d3e91aa570bb1ddc

I’m on day 0 so I don’t know if these changes cause any issues down the road, e.g. key names changed and a couple of the keys aren’t available in this API. I also haven’t looked into fixing currency_conversion.rb

Mypicture_pragsmall
28 Nov 2017, 17:13
Tony Hillerson (39 posts)

Awesome, thank you for posting that.

As a note, I designed there to be the local API in the middle of the apps and the “external” dependencies so that in a pinch, the Rails API could be modified to return the test data, or any other data you want, as an attempt at cushioning readers from changes.

You must be logged in to comment