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

Easier mapping of countries to currency #5

Open
mcarans opened this issue Jul 22, 2021 · 2 comments
Open

Easier mapping of countries to currency #5

mcarans opened this issue Jul 22, 2021 · 2 comments

Comments

@mcarans
Copy link

mcarans commented Jul 22, 2021

Since you are using ISO2 country codes to get data from the IMF, you could use this mapping to get the 3 letter currency code from the ISO2 code: http://country.io/currency.json

@markbrough
Copy link
Member

Apologies @mcarans, I only just discovered this issue! My first thought was whether this was updated recently enough -- the website says (c) 2014. It appears that the ISO Standard ISO 4217 was last updated in 2015, so maybe it could be OK.

However, I just checked and this version (which despite the strange URL is actually from the organisation responsible for maintaining this ISO Standard, states that it was last updated on 1st October 2021:
https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list_one.xml

So think this might require a bit more digging to work out what is best to use...

@markbrough
Copy link
Member

NB the source origin file changed URL, it appears due to a website reorganisation.

The Last-Modified header for the currency.json file above is as follows:

Last-Modified: Wed, 03 Sep 2014 03:23:10 GMT

So I think we can't rely on that file exclusively, but perhaps we can look at it in line with #3

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

No branches or pull requests

2 participants