kingb00zer Posted May 29, 2016 Share Posted May 29, 2016 Hi I have recently been playing around with a script I found on a website recently which retrieves stock market information from yahoo finance and have found that some of the important information I require the most is only providing me with N/A. I did notice that this post on the website is quite old and I'm thinking that maybe the way I retrieve the information from yahoo finance may be out dated. Instead of pasting the code I will provide a link (below this post) to the page I learned this from. For the most part it works just fine however I cant get the real time price which is what I need the most leaving me with 2 options. 1 do I find a way to get what I need from yahoo finance still? or 2 do I find a way to get the same data from the nasdaq website (is that even possible?) LINK: http://blog.chapagain.com.np/php-how-to-get-stock-quote-data-from-yahoo-finance-complete-code-and-tutorial/ Link to comment Share on other sites More sharing options...
justsomeguy Posted May 31, 2016 Share Posted May 31, 2016 Yahoo has awful or nonexistent documentation, but it looks like you probably want to use a URL like this one: http://finance.yahoo.com/webservice/v1/symbols/AAPL/quote?format=json&view=detail Link to comment Share on other sites More sharing options...
kingb00zer Posted June 1, 2016 Author Share Posted June 1, 2016 Thank you, I managed to get it to work out in the end even though there is a 15 minute delay but for the purpose of my project it doesnt need to be real time (for now.) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now