Stock Projection API in Ruby on Rails
Stock Projection Application basically used for Stock Markets in which shares of publicly held companies are issued and traded either through exchanges or over the counter markets . Also known as the equity markets, the stock market is one of the most vital components of a free-market economy, as it provides companies with access to capital in exchange for giving investors a slice of ownership in the company.Function and Purpose of Stock Market
The stock market is one of the most important ways for companies to raise money, along with debt markets which are generally more imposing but do not trade publicly. This allows businesses to be publicly traded, and raise additional financial capital for expansion by selling shares of ownership of the company in a public market. The liquidity that an exchange affords the investors enables their holders to quickly and easily sell securities. This is an attractive feature of investing in stocks, compared to other less liquid investments such as property and other immoveable assets. Some companies actively increase liquidity by trading in their own shares.About Stock Projection Application
This application fetches the recent data of all together 2161 companies from Yahoo Finance and after some calculation reffrenced with past 7 days , it will display conditions of “Buy” (i.e whether the company has profit or loss). All company records from last 10 years are saved in database and by continously monitoring these values, next day prediction of condtions are set. One important property of theses application is it shows result of companies in json format or in table form. So user can save particular company data in document for there use.
Firstly, these Application fetches updated previous close price from Yahoo Finance and starts calculating Terms used for calculating conditions. It calculates the following terms to set condition of “Win” or “Loose”
Buy Price – mean(price_array_yearly)- where price_array_yearly is array of last one year prices.
Sell Price - Buy Price + target_increase- where target_increase = percentage change in Average Price with taking 5( user defined) at numerator
Average Price(Past 01Year) – Calculate mean of last 1 year prices.
Standard Deviation Yearly- Calculate standard deviation of prices.
Average Monthly Standard Deviation 3 years- Calculate average of last 3 years standard deviations.
Lifetime Strike Rate- It will monitor 4725 records of trend and check whether the trend >10 or =10, and decides the conditions for “win” or “loose”.
Yearly Strike Rate- It will monitor 365 records of trend and check whether the trend >10 or =10, and decides the conditions for “win” or “loose”.
Gain Momentum In Percentage - Calculate percentage of Average price with 5 (user defined) at numerator.
Target In Percentage - Calculate percentage of Average price with 10 (user defined) at numerator.
Conditions – display result of win as “Buy” or loose as blank.Conclusion
This application is very useful for people who are investing in stock market and it help people to understand and predict stocks, find the possibility of win or loose by monitoring history of companies prices.
Message: how to get this api?