Table of Contents
- Introduction
- Features
- Requirements
- Installation & Setup
- Usage
- Interpreting Results
- Configuration
- Screenshots
- Troubleshooting & Tips
- License
The Crypto Recommendation Tool is an interactive CLI application that analyzes multiple cryptocurrencies, fetching real-time market data, relevant news, and performing sentiment analysis. It then uses a local Large Language Model (LLM) via Ollama to provide buy/sell recommendations tailored to your risk tolerance.
- Market Data Integration: Real-time crypto market data retrieval including prices and percentage changes.
- News & Sentiment Analysis: Aggregates recent crypto news articles and evaluates sentiment.
- LLM-Based Recommendations: Uses a LLaMA-based model (via Ollama) to generate buy/sell recommendations and reasoning.
- Historical Context & Global Data: Displays short historical price trends and global market stats.
- Customizable Inputs: Choose which tokens to analyze and set your preferred risk level.
- Interactive UI: Built with
blessed, displaying progress, charts, and results in an easy-to-navigate terminal interface.
- Node.js: Version 14+ recommended.
- npm: To install dependencies.
- Ollama installed:
Tested with Llama 3.2 3B model. Should work with other LLaMA-based models by changing the.envconfig.
Follow the instructions at https://ollama.com/ to install Ollama on your system.
Once installed, test it by running:
ollama list
ollama run llama3.2-
Clone the repository:
git clone https://github.com/sanath1599/crypto-recommendation-tool.git cd crypto-recommendation-tool -
Install Node dependencies:
npm install
Copy and edit the .env file as necessary:
cp .env.example .envOpen .env and update the LLAMA_MODEL variable if you’re using a different model than llama:
LLAMA_MODEL=llamaRun the tool:
node cryptoTool.jsYou’ll be prompted for:
- Tokens to follow: Comma-separated tokens (e.g.,
BTC,ETH) or leave blank for top 50 by market cap. - Risk tolerance: Choose from
Low,Medium, orHigh.
Navigation:
- Press
rto re-run the analysis after completion. - Press
qorCtrl+Cto exit.
After processing:
- Market Data & Price Changes
- Sentiment Analysis: Shows positive/negative article counts.
- News Summaries: Aggregated from crypto-related sources.
- LLM Recommendations: Buy/Sell suggestions and a confidence score, including reasoning.
- Historical Data & Charts: ASCII-based charts for quick trend overview.
Example Flow:
- Start the program, input desired tokens and risk tolerance.
- Wait while it fetches market data, news, and runs predictions.
- Review the list of analyzed coins, sentiment summaries, and recommendations displayed in the terminal UI.
- Model Name: Set
LLAMA_MODELin.env(e.g.,llama,my-custom-llama-model). - Max Coins: Modify
MAX_COINSincryptoTool.jsif you want to analyze more or fewer coins. - API Keys (if needed): Place any API keys in
.envas required by your data sources.
Running Analysis and Generating Recommendations:

Final Output with Recommendations:

-
No Results Found:
If no data is returned, the UI will show "No results found." Pressrto retry with the same parameters. -
Error Logs:
Checkerror.logfor runtime errors. It appends error messages with timestamps. -
Performance Considerations:
Analyzing multiple coins and articles may take time. Reduce the number of coins if it’s slow. -
Changing Models:
Make sure your chosen model is installed in Ollama and update.envaccordingly.
This project is licensed under the MIT License.
Happy analyzing!
