I am looking for an algorithm that will calculate the intrinsic value of a stock based on the number of people buying /selling it and additionally consider the calls/puts to fluctuate the value of the stock.
Essentially:
Current Price = Function(Stock Price, Number of Sellers, Number of Buyers)
Essentially I want to know how the stock exchange server backends work and the algorithms involved in calculating the stock prices.
Any guides/help or documentation in this regard would be extremely helpful. I tried looking around using google but the information is very sparse, inaccurate and I don't even know what keywords to use for efficient search.
Also, are there any existing Java code that I can look at to get an idea?
Also, I found API close to what I was looking for at http://jessx.ec-lille.fr/index.php. Would still in interested to learn about the technology/algorithm behind it.