Venice 0.751beta

nz.org.venice.quote
Class YahooEODQuoteImport

java.lang.Object
  extended bynz.org.venice.quote.YahooEODQuoteImport

public class YahooEODQuoteImport
extends java.lang.Object

Import end-of-day quotes from finance.yahoo.com into Venice.

Author:
Andrew Leppard
See Also:
FileEODQuoteImport, ImportQuoteModule

Method Summary
static java.util.List importSymbol(Report report, Symbol symbol, java.lang.String suffix, TradingDate startDate, TradingDate endDate)
          Retrieve quotes from Yahoo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

importSymbol

public static java.util.List importSymbol(Report report,
                                          Symbol symbol,
                                          java.lang.String suffix,
                                          TradingDate startDate,
                                          TradingDate endDate)
                                   throws ImportExportException
Retrieve quotes from Yahoo. Will fire multiple request if the specified period is above the maximum number of quotes yahoo supports.

Parameters:
report - report to log warnings and errors
symbol - symbol to import
suffix - optional suffix to append (e.g. ".AX"). This suffix tells Yahoo which exchange the symbol belongs to.
startDate - start of date range to import
endDate - end of date range to import
Returns:
list of quotes
Throws:
ImportExportException - if there was an error retrieving the quotes

Venice 0.751beta