jk2addict has asked for the wisdom of the Perl Monks concerning the following question:
Long story longer. I've added currency formatting into some of my stuff (Handel / AxKit::XSP::Currency) and I want to add currency conversion as well. I know there are a few modules on CPAN for this.
First we have Finance::Currency::Convert that uses Finance::Quote. This seems to rely on many difference sources for conversion rates. Not bad, but a little bulky.
Next we have Finance::Currency::Convert::XE which has restrictions by XE.com on the usages/commercial/business/personal, etc.
After that we have Finance::Currency::Convert::Yahoo which relies on scraping Yahoo Finance. That's a little fragile.
So, this leads me to this service on WebserviceX.NET. It looks nice and predictable (SOAP/RPX/GET (RESTish)), free, no restrictions that I can find. There isn't a module on CPAN for this particular converter.
So now I have a few choices. First, I can write yet another currency converter and put it up on CPAN. Next, I could just hack in some quick GET/RegExp code do do this in my app.
If it were you, what would you do?
Update: Of course, the new modules should probably be named Finance::Currency::Convert::WebserviceX, just like it's Yahoo/XE counterparts. For that matter, it could mimic both ::Yahoo and ::XE API to be a drop in replacement. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Yet Another Currency Converter
by RazorbladeBidet (Friar) on Mar 09, 2005 at 23:05 UTC | |
by jk2addict (Chaplain) on Mar 09, 2005 at 23:31 UTC | |
|
Re: Yet Another Currency Converter
by jk2addict (Chaplain) on Mar 10, 2005 at 17:34 UTC |