currencylayer-API
currencylayer-API copied to clipboard
Currency rate for base currency seems wrong
I have just noticed that when I am getting a currency list with USD as the base, "USDUSD" is not 1.0 as expected but 1.0002680000. I do not know when this changed but it was brought to my attention recently. Can you explain why this could be? Here is a dump of the response.
{"terms":"https://currencylayer.com/terms","success":true,"privacy":"https://currencylayer.com/privacy","source":"USD","timestamp":1658071264,"quotes":{"USDEUR":0.99138,"USDGBP":0.843562,"USDCNY":6.757404,"USDAUD":1.471887,"USDSGD":1.399565,"USDCLP":1050.750396,"USDUSD":1.000268,"USDNZD":1.622982}}
It looks like the fix to this issue was to remove the USDUSD (and all where source and destination currency was the same) https://github.com/apilayer/currencylayer-API/issues/16