Page 1 of 1
How do you collect the feed from a stock exchange?
Posted: Fri May 23, 2014 5:21 am
by Callan S.
Halls made a stocks game awhile back. I'm wondering how you collect the feed with a language like PHP or such like, so as to be able to write a program to further analyse the numbers?
Mostly in regard to the Australian stock exchange.
Re: How do you collect the feed from a stock exchange?
Posted: Fri May 23, 2014 6:17 pm
by tourmaline
I'd like to know where you you can get access to a stock market feed without paying the hundreds to thousands of dollars a month.
I've used MT4 trading software to gather historical data for analysis, but anything realtime I have not found anything free, or even reasonably affordable.
Re: How do you collect the feed from a stock exchange?
Posted: Fri May 23, 2014 7:56 pm
by hallsofvallhalla
I used the Yahoo Stock API. I believed it has all been brought under the finance API. I believe it is "near real time" not truly real time. But for a game it works great. I also might have the source code somewhere.
https://code.google.com/p/yahoo-finance ... inanceAPIs
http://www.blogbyben.com/2009/01/truly- ... k-api.html
http://www.gummy-stuff.org/Yahoo-data.htm
http://www.jarloo.com/get-near-real-tim ... o-finance/
I found my old version of the money game and put it back up to show the stock part working
http://thegamesguildstudios.com/moneygame/index.php
Re: How do you collect the feed from a stock exchange?
Posted: Fri May 23, 2014 8:02 pm
by hallsofvallhalla
Re: How do you collect the feed from a stock exchange?
Posted: Sat May 24, 2014 4:57 am
by Callan S.
Cool! Thanks Halls! I will look into that source code!

Re: How do you collect the feed from a stock exchange?
Posted: Sat May 24, 2014 11:46 am
by vitinho444
I watched a tutorials some time ago, by the guy TheNewBoston, he made a stock analyzer, that gets all the history from the stock market you want, and whatever stock item you want, like GOOG for Google Nasdaq i guess. He also teaches you how to use that information, and analyze it, to see the UP's and DOWN's of the price and trade value.
Here's the link:
http://thenewboston.org/list.php?cat=48
Good luck

Re: How do you collect the feed from a stock exchange?
Posted: Sat May 24, 2014 6:32 pm
by Jackolantern
As Halls' code demonstrates, it isn't that hard to get near real-time stock data. The tricky part is in the analysis; making sense of all those piles of data and turning it into to something useful and actionable. If you can demonstrate that your analysis can give an edge over others who don't have your analysis, you can make a fortune.
Re: How do you collect the feed from a stock exchange?
Posted: Sat May 24, 2014 8:19 pm
by vitinho444
Jackolantern wrote:As Halls' code demonstrates, it isn't that hard to get near real-time stock data. The tricky part is in the analysis; making sense of all those piles of data and turning it into to something useful and actionable. If you can demonstrate that your analysis can give an edge over others who don't have your analysis, you can make a fortune.
Well Jacko if stock market analysis were easy, everyone would be rich ahaha
TheNewBoston's tutorial helps to gather 10 years history on a stock and use basic analysis on that history to check how much it went up, and what percentage, and how much it went down, and what percentage.
But it's a really cool project to do

Re: How do you collect the feed from a stock exchange?
Posted: Wed May 28, 2014 2:49 am
by Callan S.
Wow, I managed to figure out which part of the code was doing the call and it works in wamp...
Very nifty!
Re: How do you collect the feed from a stock exchange?
Posted: Wed May 28, 2014 7:13 am
by Callan S.
Hmm, their
historical quotes feed seems to have changed from what they have listed or something - it's not working.
Edit: Wait, the example they go through seems not to work, nor the download link at the bottom - but the very first example (with it's badly formated link status) does work...weird...
Edit 2: Actually maybe my fault - I had the thing running three times and the original code calls the data into $symbol - which has double quotes around it. And maybe that was screwing it up.