Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there are way to manually add a new CurrencyUnit in V 0.6? #9

Closed
timmolter opened this issue Dec 31, 2012 · 2 comments
Closed

Is there are way to manually add a new CurrencyUnit in V 0.6? #9

timmolter opened this issue Dec 31, 2012 · 2 comments

Comments

@timmolter
Copy link
Contributor

Given a org.joda.money.IllegalCurrencyException: Unknown currency 'RUR' exeption, could I catch it and manually add it during runtime?? Thanks!

@jodastephen
Copy link
Member

The provider separates the data file from the rest of the code, so you could implement a provider. In most cases its better to hassle me to release...

@timmolter
Copy link
Contributor Author

Yes, we at XChange just put our heads together and realized we could include our own *.cvs file in our own jar and JodaMoney would pick that one up.

https://github.com/timmolter/XChange/blob/develop/xchange-core/src/main/resources/org/joda/money/MoneyData.csv

We also added the following currencies:
BTC,-1,-1,
NMC,-1,-1,
LTC,-1,-1,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants