Mar 26, 2015; 10:40
Jolle Carlestam
Thread object for grabbing exchange rates
Hello and welcome to Thursday!
I=92ve created a thread object that will help you grab current exchange rates to use as you please in your projects.
Example usage
kin_exchangerates -> get('AUD')
kin_exchangerates -> get('DKK')
kin_exchangerates -> get('EUR')
It calls an api supplied by www.openexchangerates.org
Attempts to update the rates are limited to no more than once an hour.
Call to update rates will be triggered by the first call for a rate. Not when the thread is initialized.
NB. This has been written with the aim to give correct rates for a Swedish usage. For usage within the US it should probably be written in another fashion. For any other country it is only a matter of changing SEK to whatever fits your needs.
The code can be found and downloaded from here:
https://gist.github.com/jolle-c/a93a8c5a1288dd9746e9
Enjoy
HDB
Jolle
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>