-
Notifications
You must be signed in to change notification settings - Fork 124
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
No matter what, always ends in error #17
Comments
I am assuming you are trying something like: fx.convert(12.99, {from: "GBP", to: "HKD"}); and it is resulting in "fx error" If you try something simple like: fx(10000); you should get a value back. If you do, then the issue is you probably need to set up the exchange rates: http://openexchangerates.github.io/money.js/#fx.rates |
Thanks, I'll give that a try. |
I had the same error, so I put the rates in as stated in http://openexchangerates.github.io/money.js/#fx.rates Can you tell me if its possible to do this? |
@artworkjpm - If I were in your position, I would utilize the default fx.rates on initialization and then update them with this api request you make. This will prevent any fx errors occurring with trying to use the library without setting up the rates, the underlying issue reported here. The only caveat is that, in between the initialization and the api success, if you are utilizing the library, your values will be inaccurate and you will have to update them after the api success. There are a dozen ways to get around that issue, but I don't know enough about your environment to comment. Hope that helps. |
I still have the same error |
Trying various functions, they all return an error. Tried in client, and in a Node app. Error only says "fx error".
The text was updated successfully, but these errors were encountered: