org.encog.app.quant.loader.yahoo
Class YahooDownload
- java.lang.Object
-
- org.encog.app.quant.loader.yahoo.YahooDownload
-
- All Implemented Interfaces:
- MarketLoader, QuantTask
public class YahooDownload extends java.lang.Object implements MarketLoader, QuantTask
Download financial data from Yahoo.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringINDEX_DJIAThe Dow Jones Industrial Average.static java.lang.StringINDEX_NASDAQThe NASDAQ.static java.lang.StringINDEX_SP500The S&P 500.
-
Constructor Summary
Constructors Constructor and Description YahooDownload()Construct the object with default precision.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetPrecision()voidloadAllData(java.lang.String ticker, java.io.File output, CSVFormat outputFormat, java.util.Date from, java.util.Date to)Load all data.voidrequestStop()Request to stop.voidsetPercision(int thePrecision)booleanshouldStop()
-
-
-
Field Detail
-
INDEX_DJIA
public static final java.lang.String INDEX_DJIA
The Dow Jones Industrial Average.- See Also:
- Constant Field Values
-
INDEX_SP500
public static final java.lang.String INDEX_SP500
The S&P 500.- See Also:
- Constant Field Values
-
INDEX_NASDAQ
public static final java.lang.String INDEX_NASDAQ
The NASDAQ.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
YahooDownload
public YahooDownload()
Construct the object with default precision.
-
-
Method Detail
-
getPrecision
public final int getPrecision()
- Returns:
- the precision.
-
loadAllData
public final void loadAllData(java.lang.String ticker, java.io.File output, CSVFormat outputFormat, java.util.Date from, java.util.Date to)Load all data.- Parameters:
ticker- The ticker.output- The output file.outputFormat- The format of the output file.from- Starting date.to- Ending date.
-
requestStop
public final void requestStop()
Request to stop.- Specified by:
requestStopin interfaceQuantTask
-
setPercision
public final void setPercision(int thePrecision)
- Parameters:
thePrecision- the precision to set
-
shouldStop
public final boolean shouldStop()
- Specified by:
shouldStopin interfaceQuantTask- Returns:
- True, if we should stop.
-
-
DMelt 3.0 © DataMelt by jWork.ORG