Venice 0.751beta

nz.org.venice.quote
Class GoogleEODQuoteImport

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

public class GoogleEODQuoteImport
extends java.lang.Object

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

Author:
Andrew Leppard
See Also:
FileEODQuoteImport, ImportQuoteModule

Method Summary
static java.util.List importSymbol(Report report, Symbol symbol, java.lang.String prefix, TradingDate startDate, TradingDate endDate)
          Retrieve quotes from Google.
 
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 prefix,
                                          TradingDate startDate,
                                          TradingDate endDate)
                                   throws ImportExportException
Retrieve quotes from Google. Will fire multiple request if the specified period is above the maximum number of quotes google supports.

Parameters:
report - report to log warnings and errors
symbol - symbol to import
prefix - optional prefix to prepend (e.g. "ASX:"). This prefix tells Google 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