This is a simple command-line program in Rust that allows you to check the current price of any cryptocurrency. It uses the CoinGecko API to retrieve the price information.
Clone the repository to your local machine. Make sure you have Rust installed on your system. If not, you can download and install it from the official Rust website. Open a terminal window and navigate to the directory where the code is saved. Run the program by typing cargo run in the terminal. Enter the name of the cryptocurrency you want to check. You can enter the name in any case, and you can also use spaces instead of hyphens (e.g., "bitcoin cash" instead of "bitcoin-cash"). The program will retrieve the price information from the API and display it on the screen.
Escribe el nombre de la criptomoneda que quieres buscar o escribe 'exit' para salir
----------------------------------------------------
Ejemplo de solicitud: ✅bitcoin, ✅ethereum, ✅dogecoin, etc.
puedes buscar con espacios, por ejemplo: ✅bitcoin cash
----------------------------------------------------
⌛ Buscando información sobre bitcoin cash ⌛
----------****************************--------------
El precio de bitcoin cash es $123.46 USD 💰
----------****************************--------------
Escribe el nombre de la criptomoneda que quieres buscar o escribe 'exit' para salir
----------------------------------------------------
Ejemplo de solicitud: ✅bitcoin, ✅ethereum, ✅dogecoin, etc.
puedes buscar con espacios, por ejemplo: ✅bitcoin cash
----------------------------------------------------
exit
¡Hasta luego! 🚀