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

Does the API enable you to distinguish between fiat and crypto currencies? #614

Open
jdx-john opened this issue Jul 21, 2021 · 1 comment
Labels

Comments

@jdx-john
Copy link
Contributor

I'm writing code to analyse different markets and it needs to know which are fiat currencies (USD, GBP,etc). Ideally it would work across any exchange implementation without external knowledge but so far I cannot see this is possible. e.g. for Kraken fiat currencies are prefixed with 'Z' (ZUSD, ZEUR) but I don't think this is a standard.
And neither MarketCurrency nor MarketExchange seem to provide this, at least not reliably/consistently.

There are not very many fiat currencies and they don't change often(!) so it could be easier to hard-code but it's nice to check. I'd probably like to identify both fiat and stable-coins but even then there aren't that many that hard-coding is a huge issue.

Thanks for any knowledge I've missed.

@vslee
Copy link
Collaborator

vslee commented Jul 21, 2021

No universal way that I know of.

@vslee vslee added the question label Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants