Solved

Real time stock quote feed site

Posted on 2009-05-12
6
1,669 Views
Last Modified: 2012-05-06

I am trying to write a Perl script to  get the stock quotes. Only server I know now is the yahoo server, which has a twenty minutes delay. I would like to know how to connect NY exchange realtime servers or subscribe to if that what I have to do.

Thanks
0
Comment
Question by:zzhang2006
  • 3
  • 2
6 Comments
 
LVL 13

Accepted Solution

by:
Brian Withun earned 50 total points
ID: 24371277
http://www.google.com/help/stock_disclaimer.html#realtime


xchange	                                Delay
 

American Stock Exchange (AMEX)	        20 min

Australian Stock Exchange (ASX)	        20 min

Bank of Canada	                        15 min

Bombay Stock Exchange (BOM)	        10 min

Canadian Venture Exchange (CVE)	        15 min

Commodity Systems, Inc.	                Indices Historical Data

Dow Jones Indices	                Real-time

Euronext: Amsterdam (AMS)	        15 min

Euronext: Brussels (EBR)	        15 min

Euronext: Lisbon (ELI) 	                15 min

Euronext: Paris (EPA) 	                15 min

Frankfurt Stock Exchange	        15 min

FTSE Indices	                        15 min

Hang Seng Indices	                15 min

Hong Kong Stock Exchange (HKG)	        15 min

London Stock Exchange (LON)	        20 min

Milan Stock Exchange (BIT)	        20 min

Morningstar (Mutual Fund)	        End-of-Day

NASDAQ Indices	                        Real-time

NASDAQ Stock Exchange (NASDAQ)	        Real-time*

National Stock Exchange of India (NSE)	Real-time

New York Stock Exchange (NYSE)	        Real-time*

New York Stock Exchange Indices	        Real-time

New Zealand Stock Exchange (NZE)	20 min

S&P Indices	                        Real-time

Shanghai Stock Exchange (SHA)	        Real-time

Shenzhen Stock Exchange (SHE)	        Real-time

Taiwan Stock Exchange (TPE)	        20 min

Telekurs  	                        End-of-Day

Toronto Stock Exchange (TSE)	        15 min

XETRA German Electronic Exchange	15 min

Open in new window

0
 
LVL 13

Expert Comment

by:Brian Withun
ID: 24371287
0
 

Expert Comment

by:jones1618
ID: 24376050
Google offers real-time quotes now. For instance:
http://www.google.com/finance?q=NASDAQ:CSCO

Even though they don't seem to provide a data feed, it would be easy to extract the real-time price from the page because it is always in a span of class "pr":
<span class="pr" id="ref_99624_l">18.33</span>

Pseudo-code:
1. Fetch Google Finance page w/ stock symbol in the URL
2. Search text for class="pr"
3. Extract the value between the next pair of angle brackets like >18.33<

This doesn't even require HTML/DOM parsing, just simple text searches.
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 1

Author Comment

by:zzhang2006
ID: 24380898

Thanks for the response. Well, I need use a program like Perl or PHP to access a real time server, not from a broswer. Some of the severs, though in realtime, have asychronous mechanisms in displaying the quotes in web pages in fancy formats in broswers, but my program  doesn/t know the secret of the transaction and can't simply get a one shot page to parse as jone1619 talked about.  May be I am missing something. Can anyone give me a Perl or Javascript example for accessing a real realtime server?

Thanks again
0
 
LVL 1

Author Closing Comment

by:zzhang2006
ID: 31580830
Thanks for the help
0
 
LVL 1

Author Comment

by:zzhang2006
ID: 24679962
Thank for the help
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DNS, website, godaddy 6 71
MySQL database data submission 7 58
I need help embedding Base64 Images using VB.Net - When image is a .jpg 2 39
tag title an image 13 11
Read about why website design really matters in today's demanding market.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to dynamically set the form action using jQuery.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now