Hello.My name is irfan.i am php programmer.I have working on site of related with shares and bids means traders company site.In This site on the front page i need to fetch live market rates of shares of differnt companies like this site shows given below.
http://www.investorspk.com/tag/live-kse-rates
can anyone help me out how is this possible.can we need to access to kse server or can we do it by using csv file to get data and then store that data to mysql.
Thanks for co-operation.....
Connect Stock Exchange with php code to show live rates
Moderator: General Moderators
Re: Connect Stock Exchange with php code to show live rates
it's possible, but will take quite a bit of work.
also, depending on which country you live in, you may be facing prosecution by scraping the data because those companies probably pay a fortune to get a live feed of the data.
also, depending on which country you live in, you may be facing prosecution by scraping the data because those companies probably pay a fortune to get a live feed of the data.
Re: Connect Stock Exchange with php code to show live rates
stock exchange information is public information so there shouldn't be any repercussions for getting a live feed. I would try to look around and see if there is a public database that has all the values and has them updated automatically
-
internet-solution
- Forum Contributor
- Posts: 220
- Joined: Thu May 27, 2010 6:27 am
- Location: UK
Re: Connect Stock Exchange with php code to show live rates
Stock excahnge information is public, but "live" information is VERY expensive. On the otherhand, its really easy to get information after some "lag" (say 15 minutes or so) time. All stock exchanges provide this data for free after a certain period.
You can try finance.yahoo.com or http://www.google.com/finance to get this information for all the main stock exchanges. There are lot of pages on internet on how to get and parse data from these two sources. Just Google or Yahoo ..
See here for Google's coverage and lag time - http://www.google.co.uk/help/stock_disc ... l#realtime
You can try finance.yahoo.com or http://www.google.com/finance to get this information for all the main stock exchanges. There are lot of pages on internet on how to get and parse data from these two sources. Just Google or Yahoo ..
See here for Google's coverage and lag time - http://www.google.co.uk/help/stock_disc ... l#realtime