download data from Yahoo

Home 21090308 Forums download data from Yahoo


Also, could you make sure that you are using the latest Java runtime (JRE)?

“G0906594” wrote:
Well, i had difficulties in downloading yahoo time series data while running demo010.

At first an host name not found exception was thrown. After replacing “ichart.finance.yahoo.com” with IP the following exception occurred:

16:55:07.191 [main] INFO  c.n.a.d.cache.source.yahoo.YahooEOD Рreading Yahoo! data from the Internet
Exception in thread “main” java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)

at com.numericalmethod.algoquant.data.cache.source.yahoo.YahooEODWebDownloader.(YahooEODWebDownloader.java:75)
at com.numericalmethod.algoquant.data.cache.source.yahoo.YahooEOD.(YahooEOD.java:77)
at com.numericalmethod.algoquant.demo.macrossover.Demo010.main(Demo010.java:43)

Strangely the file could be downloaded in web browsers using the url generated, but failed in JAVA.