-
Notifications
You must be signed in to change notification settings - Fork 57
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
real_time values are not shown #23
Comments
@piratmc Looking at an aapl quote after trading hours I notice that ask_realtime is nil. Perhaps, those values are only available while the market is open? Or it may no longer be available through the yahoo api. Unfortunately, the delay is a function of the Yahoo API. Originally the gem used the google finance api, before it was deprecated, which seemed to be 'more real-time'. In my experience, the closest I have been able to get to 'real-time' is with the TradeKing API (https://github.com/tyrauber/tradeking). |
Thank you for reply.
|
@piratmc Unfortunately, it is not an attribute change or parsing issue. The raw data includes null for those values in the response. I have no idea why. Query: Response:
|
@piratmc I am going to close this for now, but let me know if the above is not correct or you think there is something we could be doing differently here. |
Hi
currentTradingSession = StockQuote::Stock.quote(tickers[n])
I'm testing live currentTradingSession.ask_realtime and other real_time values are returned as NilClass.
Other non real_time values are properly returned as Float but seems like 20 minutes behind compared to actual prices.
Is this a known issue and a limitation of gem/API or am I doing something wrong?
Thank you!
The text was updated successfully, but these errors were encountered: