exchangerate.host
                                
                                 exchangerate.host copied to clipboard
                                
                                    exchangerate.host copied to clipboard
                            
                            
                            
                        DGB currency is inverted.. and it is not the only one
Goodmorning, I'm using your fantastic API and I noticed an uncomfortable thing ... if you try for example to look for the curencies of 2021-06 you can see that the DGB currency is reversed: 0.04029 instead of 24.84 Why is there this discrepancy? The other traditional currencies are treated correctly, it would seem that some Cryptocurrencies are treated in reverse ... is it possible to have a column that discriminates this inversion? This is the link of reference: https://api.exchangerate.host/2021-06-30?base=EUR&source=crypto
Thank you, best regards
I've noticed this too. Discovered this API a couple of days ago, so I wrote a currency converter service and an exchange rate client for this API this morning and then discovered during testing that half the currencies are inverted, many quotes are way off and probably half the crypto currencies are missing. Sure I can do a "volume * (1 - price)", but which ones are inverted and which ones aren't?! I can tell, but I'm not going to hard-code them into my application.
For instance, calling: https://api.exchangerate.host/latest?base=GBP&source=crypto&symbols=USD,EUR,BTC,BCH,ALG
...returns the timestamp 20221121204621 with these rates (obvs not my comments):
  "rates": {
    "BTC": 0.000074,    <--- WRONG: 1 BTC is not worth £13,513 today!
    "EUR": 1.150472,   <--- Correctamundo, £1 is worth 1.15EUR today!
    "USD": 1.187036,   <--- Correctamundo, £1 is worth $1.18 today!
    "ALG": 0.045167,    <---- Close, but no Cigar!! 1 ALG is £0.03 today, so this should be about 33.333.
    "BCH": 115.461732   <---- WRONG!  BCH is about £87 today - Low: 85.29 High: 90.47, so this should be about 0.01149.
  }
I'll continue to try this API out for my GBPEUR conversions, but will just have to use Coinbase for the rest of the prices I need - at least they're guaranteed to have all the coins I want to price in GBP!