Currently, when we create an account we use the following:
https://github.com/lasconic/finary/blob/0097c080a6da0f181594a05cc3407e298d0c93c9/finary_api/holdings_accounts.py#L30
"currency" : {"code": "EUR"}
It works (even with "USD" for example) but the Web UI currently uses:
where id is the id of the currency as returned by the currency API.
We need to provide a way to search a currency by code, get the ID and use it. The command line should get an argument with a code (and we do the lookup) or an id (and we check if it's a numeric value ?).