finance.eod
Class YahooEODQuotes

java.lang.Object
  extended by finance.eod.YahooEODQuotes

public class YahooEODQuotes
extends java.lang.Object


Method Summary
static java.lang.String constructURL(java.lang.String symbol, java.util.Calendar start, java.util.Calendar end)
          Construct the URL necessary to retrieve all the quotes for the given symbol between the given dates from Yahoo.
static java.lang.String getEodCSVData(java.lang.String symbol, java.util.Date date1)
           
static java.lang.String[] getEodCSVData(java.lang.String symbol, java.util.GregorianCalendar gc2, java.util.GregorianCalendar gc)
           
static java.lang.String getEodCSVData(java.lang.String symbol, java.lang.String date)
          Return the first EOD price between the date and 4 days from the date.
static EODQuote getEodQuote(java.lang.String symbol, java.lang.String date)
           
static void main(java.lang.String[] args)
           
static void testGetEodCSVData()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEodQuote

public static EODQuote getEodQuote(java.lang.String symbol,
                                   java.lang.String date)
                            throws java.lang.Exception
Throws:
java.lang.Exception

testGetEodCSVData

public static void testGetEodCSVData()
                              throws java.text.ParseException,
                                     java.io.IOException
Throws:
java.text.ParseException
java.io.IOException

getEodCSVData

public static java.lang.String getEodCSVData(java.lang.String symbol,
                                             java.lang.String date)
                                      throws java.lang.Exception
Return the first EOD price between the date and 4 days from the date.

Parameters:
symbol -
date -
Returns:
CSVData with the close information.
Throws:
java.lang.Exception

getEodCSVData

public static java.lang.String getEodCSVData(java.lang.String symbol,
                                             java.util.Date date1)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getEodCSVData

public static java.lang.String[] getEodCSVData(java.lang.String symbol,
                                               java.util.GregorianCalendar gc2,
                                               java.util.GregorianCalendar gc)
                                        throws java.io.IOException
Throws:
java.io.IOException

constructURL

public static java.lang.String constructURL(java.lang.String symbol,
                                            java.util.Calendar start,
                                            java.util.Calendar end)
Construct the URL necessary to retrieve all the quotes for the given symbol between the given dates from Yahoo.

Parameters:
symbol - the symbol to retrieve
start - the start date to retrieve
end - the end date to retrieve
Returns:
URL string

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception