pgrimaud / lametric-cryptocurrencies

The ultimate cryptocurrencies app for LaMetric : More than 5000 currencies available!
https://apps.lametric.com/apps/cryptocurrencies/5497
MIT License
38 stars 16 forks source link

Duplicate cryptocurrency codes #63

Closed david-build closed 9 months ago

david-build commented 1 year ago

Hello,

I am reaching out to report an issue that I encountered while using your plugin. Specifically, I noticed that there is an issue with specifying the currency code as there are multiple cryptocurrencies on Coinmarketcap that have duplicate codes. For example, a search for TON returns three different cryptocurrencies, but the plugin appears to be selecting the incorrect one.

Like this:

All of these cryptocurrencies and tokens have the currency code TON.

I would suggest that you consider implementing a solution that allows for the use of both the cryptocurrency ID from Coinmarketcap and the code field. In cases where there are multiple cryptocurrencies with the same code, the user could then enter the cryptocurrency ID to select the correct one.

Thank you for your attention to this matter.

pgrimaud commented 9 months ago

Hello, I switch to CCM to fetch crypto prices. So you can now use the "slug" or "token" to fetch price.

e.g. toncoin, tontoken or tokamak-network

david-build commented 9 months ago

Great, thank you!