ExchangeSharp icon indicating copy to clipboard operation
ExchangeSharp copied to clipboard

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

Open jdx-john opened this issue 4 years ago • 1 comments
trafficstars

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.

jdx-john avatar Jul 21 '21 22:07 jdx-john

No universal way that I know of.

vslee avatar Jul 21 '21 23:07 vslee