Connect Stock Exchange with php code to show live rates

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
irfan_sw
Forum Newbie
Posts: 8
Joined: Tue Aug 31, 2010 4:59 am

Connect Stock Exchange with php code to show live rates

Post by irfan_sw »

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.....
Gargoyle
Forum Contributor
Posts: 130
Joined: Wed Jul 14, 2010 12:25 am

Re: Connect Stock Exchange with php code to show live rates

Post by Gargoyle »

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.
User avatar
bradbury
Forum Commoner
Posts: 40
Joined: Wed Aug 25, 2010 11:21 am
Location: Eugene, OR

Re: Connect Stock Exchange with php code to show live rates

Post by bradbury »

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

Post by internet-solution »

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
Post Reply