org.encog.app.quant.loader.yahoo
public class YahooDownload extends Object implements MarketLoader, QuantTask
Modifier and Type | Field and Description |
---|---|
static String |
INDEX_DJIA
The Dow Jones Industrial Average.
|
static String |
INDEX_NASDAQ
The NASDAQ.
|
static String |
INDEX_SP500
The S&P 500.
|
Constructor and Description |
---|
YahooDownload()
Construct the object with default precision.
|
Modifier and Type | Method and Description |
---|---|
int |
getPrecision() |
void |
loadAllData(String ticker,
File output,
CSVFormat outputFormat,
Date from,
Date to)
Load all data.
|
void |
requestStop()
Request to stop.
|
void |
setPercision(int thePrecision) |
boolean |
shouldStop() |
public static final String INDEX_DJIA
public static final String INDEX_SP500
public static final String INDEX_NASDAQ
public YahooDownload()
public final int getPrecision()
public final void loadAllData(String ticker, File output, CSVFormat outputFormat, Date from, Date to)
ticker
- The ticker.output
- The output file.outputFormat
- The format of the output file.from
- Starting date.to
- Ending date.public final void requestStop()
requestStop
in interface QuantTask
public final void setPercision(int thePrecision)
thePrecision
- the precision to setpublic final boolean shouldStop()
shouldStop
in interface QuantTask
Copyright © 2014. All Rights Reserved.