I am experiencing an issue with exchange rates which was working fine in the past but now not working correclty.
Expected result – cryptocoin price updated from coingecko – Usually shows in the exchange rates shortcode and coins price in wallets shortcodes.
Actual Result – cryptocoin price not updated from coingecko resulting in no price shown in any of the shortcodes.
It seems like coingecko have updated their api or changed something with the api results.
In file wallets/includes/rates.php on line 1108 $url = ‘https://api.coingecko.com/api/v3/coins/markets?vs_currency=btc’;
Coingecko is only returning 1st 100 top coins, so if my coin is not in the top 100 at the time then current_price is not returned/found resulting in no rates to display the coins price in the frontend.
Thank you for reporting this. I am already aware of the issue.
As you say, the CoinMarketCap and CoinGecko APIs have changed. I believe the idea is that they now give the top 100 coins for free, then you need to pay for the entire feed. This can be circumvented by querying the specific coins needed.
I will need to develop a solution for this. Hopefully this will be out in one of the next updates.