Venice 0.751beta

nz.org.venice.quote
Class YahooExchangeRateImport

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

public class YahooExchangeRateImport
extends java.lang.Object

Import exchange rate quotes from Yahoo into Venice.

Author:
Andrew Leppard
See Also:
YahooExchangeRateFilter

Method Summary
static ExchangeRate importExchangeRate(Currency sourceCurrency, Currency destinationCurrency)
          Retrieve a sinlge exchange rate from Yahoo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

importExchangeRate

public static ExchangeRate importExchangeRate(Currency sourceCurrency,
                                              Currency destinationCurrency)
                                       throws ImportExportException
Retrieve a sinlge exchange rate from Yahoo.

Parameters:
sourceCurrency - the currency to convert from
destinationCurrency - the currency to convert to
Returns:
exchange rate
Throws:
ImportExportException - if there was an error retrieving the exchange rate

Venice 0.751beta