Currency Exchange by Google Finance
- Simple Java Project for currency exchange by Google Finance
- Projeto Java simples para câmbio (cotação) de moedas através do Google Finance
- Simple Java Proyecto para la conversión de moneda por Google Finance
//execute Google Finance simple request
CurrencyQuoteRS quote = ConsultGoogleFinance.exchangeCurrency(Currency.USD, Currency.BRL);
Print Simple Quote (default amount = 1.0)
PrintCurrencyQuote.print(quote);
/*
Result...
BRL 3.3092
USD 1.0
EXCHANGE RATE: 3.3092
QUOTE DATE: 14/11/2017 17:51
*/
//execute Google Finance amount request
CurrencyQuoteRS amountQuote = ConsultGoogleFinance.exchangeCurrency(Currency.USD, Currency.BRL, 10.00);
PrintCurrencyQuote.print(amountQuote);
/*
Result...
BRL 30.3092
USD 10.0
EXCHANGE RATE: 3.3092
QUOTE DATE: 14/11/2017 17:51
*/