|
| 1 | +# Comprehensive Token Metrics Plugin Test Guide |
| 2 | + |
| 3 | +## 🧪 **Complete Endpoint Testing - All 17 Endpoints** |
| 4 | + |
| 5 | +### **📋 Core Data Endpoints (Direct API Access)** |
| 6 | + |
| 7 | +#### **1. Tokens List** (`getTokens`) |
| 8 | +```bash |
| 9 | +npm run example:tokens |
| 10 | +``` |
| 11 | +**What it does**: Get list of all supported cryptocurrencies with their TOKEN_IDs |
| 12 | +**Use case**: Find token IDs for other API calls |
| 13 | + |
| 14 | +#### **2. Top Market Cap Tokens** (`getTopMarketCapTokens`) |
| 15 | +```bash |
| 16 | +npm run example:top-market-cap |
| 17 | +``` |
| 18 | +**What it does**: Get top cryptocurrencies by market capitalization |
| 19 | +**Use case**: Identify market leaders and trending tokens |
| 20 | + |
| 21 | +#### **3. Price Data** (`getPriceData`) |
| 22 | +```bash |
| 23 | +npm run example:price-data |
| 24 | +``` |
| 25 | +**What it does**: Get current prices for specific token IDs |
| 26 | +**Use case**: Real-time price monitoring |
| 27 | + |
| 28 | +#### **4. Trader Grades** (`getTraderGrades`) |
| 29 | +```bash |
| 30 | +npm run example:trader-grades |
| 31 | +``` |
| 32 | +**What it does**: AI-generated trading scores for tokens |
| 33 | +**Use case**: Short-term trading decisions |
| 34 | + |
| 35 | +#### **5. Investor Grades** (`getInvestorGrades`) |
| 36 | +```bash |
| 37 | +npm run example:investor-grades |
| 38 | +``` |
| 39 | +**What it does**: Long-term investment ratings |
| 40 | +**Use case**: Portfolio building and investment decisions |
| 41 | + |
| 42 | +#### **6. Market Metrics** (`getMarketMetrics`) |
| 43 | +```bash |
| 44 | +npm run example:market-metrics |
| 45 | +``` |
| 46 | +**What it does**: Overall market indicators and trends |
| 47 | +**Use case**: Market timing and macro analysis |
| 48 | + |
| 49 | +#### **7. Quantmetrics** (`getQuantmetrics`) |
| 50 | +```bash |
| 51 | +npm run example:quantmetrics |
| 52 | +``` |
| 53 | +**What it does**: Quantitative analysis and metrics |
| 54 | +**Use case**: Advanced technical analysis |
| 55 | + |
| 56 | +#### **8. Hourly OHLCV** (`getHourlyOhlcv`) |
| 57 | +```bash |
| 58 | +npm run example:hourly-ohlcv |
| 59 | +``` |
| 60 | +**What it does**: Hourly price data (Open, High, Low, Close, Volume) |
| 61 | +**Use case**: Short-term technical analysis |
| 62 | + |
| 63 | +#### **9. Daily OHLCV** (`getDailyOhlcv`) |
| 64 | +```bash |
| 65 | +npm run example:daily-ohlcv |
| 66 | +``` |
| 67 | +**What it does**: Daily price data for longer-term analysis |
| 68 | +**Use case**: Long-term trend analysis |
| 69 | + |
| 70 | +#### **10. AI Reports** (`getAiReports`) |
| 71 | +```bash |
| 72 | +npm run example:ai-reports |
| 73 | +``` |
| 74 | +**What it does**: Comprehensive AI-generated analysis reports |
| 75 | +**Use case**: Deep fundamental analysis |
| 76 | + |
| 77 | +#### **11. Crypto Investors** (`getCryptoInvestors`) |
| 78 | +```bash |
| 79 | +npm run example:crypto-investors |
| 80 | +``` |
| 81 | +**What it does**: Institutional investor data and insights |
| 82 | +**Use case**: Following smart money |
| 83 | + |
| 84 | +#### **12. Resistance/Support** (`getResistanceSupport`) |
| 85 | +```bash |
| 86 | +npm run example:resistance-support |
| 87 | +``` |
| 88 | +**What it does**: Technical analysis support and resistance levels |
| 89 | +**Use case**: Entry/exit point identification |
| 90 | + |
| 91 | +#### **13. Trading Signals** (`getTradingSignals`) |
| 92 | +```bash |
| 93 | +npm run example:trading-signals |
| 94 | +``` |
| 95 | +**What it does**: AI-generated buy/sell recommendations |
| 96 | +**Use case**: Automated trading decisions |
| 97 | + |
| 98 | +--- |
| 99 | + |
| 100 | +### **🚀 New Advanced Endpoints (Chat Interface + Direct)** |
| 101 | + |
| 102 | +#### **14. Token Metrics AI Chat** (`getTokenMetricsAi`) |
| 103 | +```bash |
| 104 | +npm run example:tokenmetrics-ai |
| 105 | +``` |
| 106 | +**Chat prompts**: |
| 107 | +- `"What is the next 100x coin?"` |
| 108 | +- `"How does DeFi work?"` |
| 109 | +- `"Should I invest in Bitcoin?"` |
| 110 | +- `"AI explain blockchain technology"` |
| 111 | + |
| 112 | +#### **15. Sentiment Analysis** (`getSentiments`) |
| 113 | +```bash |
| 114 | +npm run example:sentiments |
| 115 | +``` |
| 116 | +**Chat prompts**: |
| 117 | +- `"market sentiment"` |
| 118 | +- `"sentiment analysis"` |
| 119 | +- `"social media sentiment"` |
| 120 | +- `"twitter sentiment"` |
| 121 | + |
| 122 | +#### **16. Scenario Analysis** (`getScenarioAnalysis`) |
| 123 | +```bash |
| 124 | +npm run example:scenario-analysis |
| 125 | +``` |
| 126 | +**Chat prompts**: |
| 127 | +- `"price prediction"` |
| 128 | +- `"scenario analysis"` |
| 129 | +- `"bitcoin price scenarios"` |
| 130 | +- `"price forecast"` |
| 131 | + |
| 132 | +#### **17. Correlation Analysis** (`getCorrelation`) |
| 133 | +```bash |
| 134 | +npm run example:correlation |
| 135 | +``` |
| 136 | +**Chat prompts**: |
| 137 | +- `"correlations"` |
| 138 | +- `"portfolio correlations"` |
| 139 | +- `"diversification analysis"` |
| 140 | +- `"token relationships"` |
| 141 | + |
| 142 | +--- |
| 143 | + |
| 144 | +## 🎯 **Quick Test Sequence** |
| 145 | + |
| 146 | +### **Method 1: Individual Examples (All 17)** |
| 147 | +```bash |
| 148 | +# Core data endpoints |
| 149 | +npm run example:tokens |
| 150 | +npm run example:top-market-cap |
| 151 | +npm run example:price-data |
| 152 | +npm run example:trader-grades |
| 153 | +npm run example:investor-grades |
| 154 | +npm run example:market-metrics |
| 155 | +npm run example:quantmetrics |
| 156 | +npm run example:hourly-ohlcv |
| 157 | +npm run example:daily-ohlcv |
| 158 | +npm run example:ai-reports |
| 159 | +npm run example:crypto-investors |
| 160 | +npm run example:resistance-support |
| 161 | +npm run example:trading-signals |
| 162 | + |
| 163 | +# New advanced endpoints |
| 164 | +npm run example:tokenmetrics-ai |
| 165 | +npm run example:sentiments |
| 166 | +npm run example:scenario-analysis |
| 167 | +npm run example:correlation |
| 168 | +``` |
| 169 | + |
| 170 | +### **Method 2: Interactive Chat Interface** |
| 171 | +```bash |
| 172 | +npm run chat |
| 173 | +``` |
| 174 | + |
| 175 | +**Then test these prompts in order:** |
| 176 | + |
| 177 | +1. **Basic AI Chat**: `"What is Bitcoin?"` |
| 178 | +2. **Trading Signals**: `"trading signals"` |
| 179 | +3. **Sentiment**: `"market sentiment"` |
| 180 | +4. **Price Prediction**: `"bitcoin price scenarios"` |
| 181 | +5. **Correlations**: `"portfolio correlations"` |
| 182 | +6. **Market Overview**: `"market overview"` |
| 183 | + |
| 184 | +### **Method 3: Automated Test Suite** |
| 185 | +```bash |
| 186 | +# Run all tests |
| 187 | +npm run test:all |
| 188 | + |
| 189 | +# Individual test suites |
| 190 | +npm run test:individual |
| 191 | +npm run test:integration |
| 192 | +``` |
| 193 | + |
| 194 | +### **Method 4: Demo Scenarios** |
| 195 | +```bash |
| 196 | +# Trading bot simulation |
| 197 | +npm run demo:trading-bot |
| 198 | + |
| 199 | +# Research agent simulation |
| 200 | +npm run demo:research-agent |
| 201 | + |
| 202 | +# New endpoints showcase |
| 203 | +npm run demo:new-endpoints |
| 204 | +``` |
| 205 | + |
| 206 | +--- |
| 207 | + |
| 208 | +## 📊 **Expected Results for Each Endpoint** |
| 209 | + |
| 210 | +### **Tokens List**: |
| 211 | +- List of 50+ cryptocurrencies |
| 212 | +- TOKEN_ID, name, symbol, category |
| 213 | +- Used to find IDs for other calls |
| 214 | + |
| 215 | +### **Top Market Cap**: |
| 216 | +- Top 10-100 tokens by market cap |
| 217 | +- Current rankings and values |
| 218 | +- Market leaders identification |
| 219 | + |
| 220 | +### **Price Data**: |
| 221 | +- Real-time prices for specified tokens |
| 222 | +- Current market values |
| 223 | +- Price change indicators |
| 224 | + |
| 225 | +### **Trader/Investor Grades**: |
| 226 | +- AI scores (0-100) |
| 227 | +- Buy/sell/hold recommendations |
| 228 | +- Risk assessments |
| 229 | + |
| 230 | +### **Trading Signals**: |
| 231 | +- Buy/sell signals with strength |
| 232 | +- AI-generated recommendations |
| 233 | +- Signal confidence levels |
| 234 | + |
| 235 | +### **Sentiment Analysis**: |
| 236 | +- Twitter, Reddit, News sentiment |
| 237 | +- Sentiment scores and summaries |
| 238 | +- Social media insights |
| 239 | + |
| 240 | +### **Scenario Analysis**: |
| 241 | +- Multiple timeframe predictions |
| 242 | +- Bear/base/bull scenarios |
| 243 | +- ROI calculations and insights |
| 244 | + |
| 245 | +### **Correlations**: |
| 246 | +- Token relationship analysis |
| 247 | +- Portfolio diversification insights |
| 248 | +- Risk management data |
| 249 | + |
| 250 | +--- |
| 251 | + |
| 252 | +## ✅ **Success Indicators** |
| 253 | + |
| 254 | +For each test, look for: |
| 255 | +- ✅ **No errors** in API calls |
| 256 | +- ✅ **Real-time data** with current timestamps |
| 257 | +- ✅ **Proper formatting** (tables, charts, colors) |
| 258 | +- ✅ **Correct endpoint URLs** in logs |
| 259 | +- ✅ **Rate limiting** working (no 429 errors) |
| 260 | +- ✅ **Data completeness** (all expected fields) |
| 261 | + |
| 262 | +--- |
| 263 | + |
| 264 | +## 🚀 **Quick Start Testing** |
| 265 | + |
| 266 | +**Start here for fastest comprehensive test:** |
| 267 | + |
| 268 | +```bash |
| 269 | +# 1. Test basic functionality |
| 270 | +npm run example:tokens |
| 271 | + |
| 272 | +# 2. Test price data |
| 273 | +npm run example:price-data |
| 274 | + |
| 275 | +# 3. Test trading features |
| 276 | +npm run example:trading-signals |
| 277 | + |
| 278 | +# 4. Test new advanced features |
| 279 | +npm run chat |
| 280 | +# Then type: "trading signals" |
| 281 | +# Then type: "market sentiment" |
| 282 | +# Then type: "bitcoin price scenarios" |
| 283 | +``` |
| 284 | + |
| 285 | +This will verify all core functionality is working correctly! |
0 commit comments