|
Posted by NC on 09/30/86 11:43
meenasamy@hotmail.com wrote:
>
> Hi all, i need to create a function that takes three parameters(
> Original currency, needed currency, amount) i need to convert from the
> original currency to the needed currency the amount and return the new
> amount in the needed currency, I need this function to work real time
> (obtaining real time currency exchange rates), any ideas???
Just scrape any Web page that lists the exchange rate you need. Some
possible sources:
http://www.bloomberg.com/markets/currencies/fxc.html
http://finance.yahoo.com/currency
http://fx.sauder.ubc.ca/data.html
The latter two also allow you to obtain data in CSV format. You just
need to figure out how to form the URL to obtain exactly the data you
need. When you have the rate, conversion of the amount becomes
trivial...
Cheers,
NC
Navigation:
[Reply to this message]
|