Forum OpenACS Development: Re: ref-currency package

Collapse
4: Re: ref-currency package (response to 3)
Posted by Torben Brosten on
Hi Iuri,

Yes, ecommerce package has limited use for this.

There is tcl code handling currency conversion on this page:

https://github.com/eggtcl/eggtcl/blob/master/development/ucc.tcl

I haven't tried it, but it appears to connect with a Yahoo API.

cheers,

Collapse
5: Re: ref-currency package (response to 4)
Posted by Antonio Pisano on
I had posted some toughts about this very subject not much time ago, but I can't find any reference in the forum... really, could it have been lost?

Anyway... thumbs up for development on this. In that post I offered myself for analysis and coding, but I won't have time until March, so...

Ah! I have some working code for retrieving exchange rates from the euroforex!

Collapse
6: Re: ref-currency package (response to 5)
Posted by Gustaf Neumann on
Collapse
7: Re: ref-currency package (response to 6)
Posted by Antonio Pisano on
There it is! Thanks!
Collapse
8: Re: ref-currency package (response to 7)
Posted by Iuri Sampaio on
Pisano I'll read your thread.

I couldn't help it and coded a bit.
Here it's html version of it.

It basically consume a xml from ECB http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml

And do conversions. EUR's currency pivot.

1) http://ecommerce.natopia.com/get-exp-price?value=13.10&currency=BRL

2) http://ecommerce.natopia.com/get-exp-price?value=6.20&currency=USD

The object's to build a WS.

Best wishes