Professional-grade crypto market data, AI insights, and trading signals for ElizaOS agents
The TokenMetrics plugin provides complete integration with the TokenMetrics API, offering 21 comprehensive endpoints for cryptocurrency analysis, trading signals, and AI-powered market insights. Built specifically for ElizaOS agents with natural language processing capabilities.
๐ฏ Perfect for: Trading bots, portfolio management agents, research assistants, and crypto analysis tools.
# 1๏ธโฃ Install the plugin
npm install @elizaos/plugin-tokenmetrics
# 2๏ธโฃ Get your TokenMetrics API key from https://app.tokenmetrics.com/en/api?tab=api
# 3๏ธโฃ Set up environment variables
# Create a .env file in your project root:
echo "TOKENMETRICS_API_KEY=your_api_key_here" >> .env
# 4๏ธโฃ Add to your ElizaOS character config
{
"plugins": ["@elizaos/plugin-tokenmetrics"],
"settings": {
"secrets": {
"TOKENMETRICS_API_KEY": process.env.TOKENMETRICS_API_KEY
}
}
}
# 5๏ธโฃ Start asking questions!
"What's Bitcoin's price and trading signals?"
"Show me crypto indices data"
"What are the holdings of index 1?"
Feature | Benefit | Icon |
---|---|---|
Most Comprehensive | 21 endpoints vs typical 3-5 in other crypto plugins | ๐ฅ |
AI-Powered | Natural language understanding + TokenMetrics AI integration | ๐ง |
Professional Grade | Investment-grade analysis, not just raw data | ๐ |
Zero Learning Curve | Natural language queries, no API knowledge needed | โก |
Context Aware | Remembers conversations and user preferences | ๐ |
Production Ready | Enterprise-level error handling and reliability | ๐ก๏ธ |
- ๐ช Token Discovery: Search and filter 5000+ cryptocurrencies
- ๐ฐ Real-time Prices: Live cryptocurrency price data with 24h changes
- ๐ Market Cap Rankings: Top cryptocurrencies by market capitalization
- ๐ก Trading Signals: AI-generated BUY/SELL/HOLD recommendations with confidence scores
- ๐ Market Metrics: Overall market sentiment, volume, and trend analysis
- ๐ Technical Analysis: Resistance/support levels, OHLCV data (hourly/daily)
- ๐ฏ Investment Grades: Long-term investment recommendations (percentage-based scoring)
โ ๏ธ Risk Assessment: Quantitative risk metrics, volatility analysis, and risk scores- ๐ Sentiment Analysis: Social media and news sentiment from Twitter, Reddit, News
- ๐ Correlation Analysis: Portfolio diversification insights and correlation matrices
- ๐ Hourly Trading Signals: Frequent AI signals for active trading and scalping
- ๐ข Quantmetrics: Risk metrics (Sharpe ratio, volatility, max drawdown)
- ๐ Market Metrics: Overall market sentiment and dominance data
- ๐ Technical Analysis: Resistance/support levels, OHLCV data (hourly/daily)
- ๐ฏ Investment Grades: Long-term investment recommendations (percentage-based scoring)
โ ๏ธ Risk Assessment: Quantitative risk metrics, volatility analysis, and risk scores- ๐ Sentiment Analysis: Social media and news sentiment from Twitter, Reddit, News
- ๐ Correlation Analysis: Portfolio diversification insights and correlation matrices
- ๐ Crypto Indices: Access to active and passive crypto index funds
- ๐ฆ Index Holdings: Detailed composition and allocation weights for each index
- ๐ Index Performance: Historical performance data, returns, and volatility metrics
- ๐ AI Reports: Comprehensive AI-generated market analysis and recommendations
- ๐ฎ Scenario Analysis: Price predictions under bullish/bearish/base scenarios
- ๐ฃ๏ธ Natural Language Processing: Understands complex crypto queries in plain English
- ๐ง Context Memory: Remembers conversation history and user preferences
- ๐ Multi-token Support: Handle queries about multiple cryptocurrencies simultaneously
- ๐ญ Follow-up Queries: Contextual conversations like "What about its trading signals?"
Category | Endpoint | Action | Description |
---|---|---|---|
๐ฐ Core Market Data | /price |
getPriceAction |
Real-time cryptocurrency prices |
/tokens |
getTokensAction |
Token database and search | |
/top-market-cap |
getTopMarketCapAction |
Top cryptocurrencies by market cap | |
๐ Trading & Signals | /trading-signals |
getTradingSignalsAction |
AI-powered buy/sell/hold recommendations |
/hourly-trading-signals |
getHourlyTradingSignalsAction |
Frequent trading signals for active trading | |
/trader-grades |
getTraderGradesAction |
Short-term trading grades (A-F scale) | |
๐ฏ Investment Analysis | /investor-grades |
getInvestorGradesAction |
Long-term investment grades |
/quantmetrics |
getQuantmetricsAction |
Risk metrics (Sharpe ratio, volatility, drawdown) | |
๐ Technical Analysis | /daily-ohlcv |
getDailyOhlcvAction |
Daily OHLCV price data |
/hourly-ohlcv |
getHourlyOhlcvAction |
Hourly OHLCV price data | |
/resistance-support |
getResistanceSupportAction |
Technical support/resistance levels | |
๐ฆ Market & Indices | /market-metrics |
getMarketMetricsAction |
Overall market sentiment and metrics |
/indices |
getIndicesAction |
Crypto market indices | |
/indices-holdings |
getIndicesHoldingsAction |
Index composition and holdings | |
/indices-performance |
getIndicesPerformanceAction |
Historical index performance | |
๐ค AI & Analytics | /ai-reports |
getAiReportsAction |
AI-generated comprehensive reports |
/tmai |
getTmaiAction |
TokenMetrics AI assistant | |
/scenario-analysis |
getScenarioAnalysisAction |
Price prediction scenarios | |
๐ฐ Market Intelligence | /sentiment |
getSentimentAction |
Social media and news sentiment |
/crypto-investors |
getCryptoInvestorsAction |
Influential crypto investors data | |
๐ Portfolio Analysis | /correlation |
getCorrelationAction |
Token correlation for diversification |
Each endpoint supports intelligent natural language processing:
// Price Queries
"What's Bitcoin's current price?"
"Show me ETH price with 24h change"
// Trading Signals
"Should I buy Solana? Show me trading signals"
"Get hourly signals for BTC"
// Investment Analysis
"What are the investment grades for top DeFi tokens?"
"Show me risk metrics for my portfolio tokens"
// Technical Analysis
"Show me Bitcoin's support and resistance levels"
"Get daily OHLCV data for Ethereum"
// Market Intelligence
"What's the overall crypto market sentiment?"
"Show me AI analysis for the current market"
plugin-tokenmetrics/
โโโ ๐ README.md # Comprehensive documentation
โโโ ๐ LICENSE # MIT License
โโโ ๐ package.json # Package configuration & dependencies
โโโ ๐ tsconfig.json # TypeScript configuration
โโโ ๐ .gitignore # Git ignore rules
โโโ ๐ ELIZAOS_INTEGRATION_GUIDE.md # ElizaOS integration guide
โโโ ๐ TOKENMETRICS_TEST_PROMPTS.md # Testing prompts and examples
โโโ ๐ manual-endpoint-tests.md # Manual testing procedures
โ
โโโ ๐ src/ # Source code
โ โโโ ๐ index.ts # Main plugin entry point
โ โโโ ๐ types.ts # TypeScript type definitions
โ โ
โ โโโ ๐ actions/ # Action implementations (21 endpoints)
โ โ โโโ ๐ aiActionHelper.ts # Shared AI helper functions
โ โ โโโ ๐ getPriceAction.ts # Real-time price data
โ โ โโโ ๐ getTradingSignalsAction.ts # Trading signals
โ โ โโโ ๐ getTraderGradesAction.ts # Short-term grades
โ โ โโโ ๐ getInvestorGradesAction.ts # Long-term grades
โ โ โโโ ๐ getQuantmetricsAction.ts # Risk metrics
โ โ โโโ ๐ getMarketMetricsAction.ts # Market overview
โ โ โโโ ๐ getIndicesAction.ts # Market indices
โ โ โโโ ๐ getIndicesHoldingsAction.ts # Index holdings
โ โ โโโ ๐ getIndicesPerformanceAction.ts # Index performance
โ โ โโโ ๐ getAiReportsAction.ts # AI-generated reports
โ โ โโโ ๐ getSentimentAction.ts # Sentiment analysis
โ โ โโโ ๐ getCorrelationAction.ts # Correlation analysis
โ โ โโโ ๐ getDailyOhlcvAction.ts # Daily OHLCV data
โ โ โโโ ๐ getHourlyOhlcvAction.ts # Hourly OHLCV data
โ โ โโโ ๐ getHourlyTradingSignalsAction.ts # Hourly signals
โ โ โโโ ๐ getResistanceSupportAction.ts # Technical levels
โ โ โโโ ๐ getScenarioAnalysisAction.ts # Price scenarios
โ โ โโโ ๐ getCryptoInvestorsAction.ts # Investor data
โ โ โโโ ๐ getTmaiAction.ts # TokenMetrics AI
โ โ โโโ ๐ getTokensAction.ts # Token database
โ โ โโโ ๐ getTopMarketCapAction.ts # Top tokens
โ โ
โ โโโ ๐ core/ # Core functionality
โ โ โโโ ๐ enhanced-action-handler.ts # Advanced action handling
โ โ โโโ ๐ memory-manager.ts # Context & memory management
โ โ โโโ ๐ nlp-processor.ts # Natural language processing
โ โ
โ โโโ ๐ tests/ # Test suites
โ โโโ ๐ manual/ # Manual testing scripts
โ โโโ ๐ ui/ # UI testing components
โ
โโโ ๐ dist/ # Compiled output (generated)
โ โโโ ๐ index.js # Compiled JavaScript
โ โโโ ๐ index.d.ts # TypeScript declarations
โ
โโโ ๐ node_modules/ # Dependencies (generated)
src/index.ts
: Main plugin export with all 21 actionssrc/types.ts
: Comprehensive TypeScript definitionssrc/actions/
: Individual action implementations for each TokenMetrics endpointsrc/core/
: Advanced features like NLP processing and memory management
Each action follows a consistent pattern:
- Natural Language Processing: Understands user queries in plain English
- Smart Token Resolution: Resolves token names/symbols intelligently
- API Integration: Calls TokenMetrics API with proper error handling
- Response Formatting: Returns structured, user-friendly responses
- ๐ง AI-Powered: Uses shared
aiActionHelper.ts
for intelligent request processing - ๐ Context Aware: Memory management system tracks conversation context
- ๐ก๏ธ Error Resilient: Comprehensive error handling with retry mechanisms
- ๐ Type Safe: Full TypeScript coverage with detailed type definitions
- ๐ Free Tier: Limited requests (check TokenMetrics for current limits)
- ๐ณ Paid Plans: Starting from $99.99/month for extended access
โ ๏ธ Note: This plugin requires a TokenMetrics API key
- ๐ข Node.js: 16.0.0 or higher
- ๐ง ElizaOS: Compatible with v0.25.9+
- ๐พ Memory: Minimum 512MB RAM for optimal performance
- ๐ Network: Stable internet connection for API calls
- TokenMetrics API: Varies by subscription tier
- Plugin Handling: Automatic retry with exponential backoff
- Price Data: Real-time (updated every 5-10 minutes)
- Trading Signals: Updated multiple times daily
- AI Reports: Generated on-demand
- Market Metrics: Updated every 15 minutes
npm install @elizaos/plugin-tokenmetrics
Or add to package.json:
{
"dependencies": {
"@elizaos/plugin-tokenmetrics": "latest"
}
}
- ๐ Sign up at TokenMetrics API Portal
- ๐ณ Choose a plan that fits your usage needs
- ๐ Navigate to API section in your dashboard
- ๐ Generate your API key
- ๐ Copy your API key for configuration
Option A: Using .env file (Recommended)
# Create .env file in your project root
TOKENMETRICS_API_KEY=your_tokenmetrics_api_key
Option B: Using system environment variables
# Linux/Mac
export TOKENMETRICS_API_KEY=your_tokenmetrics_api_key
# Windows
set TOKENMETRICS_API_KEY=your_tokenmetrics_api_key
Method 1: Using environment variables (Recommended)
// character.ts
import { Character, ModelProviderName } from "@elizaos/core";
export const character: Character = {
name: "CryptoAnalyst",
plugins: ["@elizaos/plugin-tokenmetrics"],
modelProvider: ModelProviderName.OPENAI,
settings: {
secrets: {
OPENAI_API_KEY: process.env.OPENAI_API_KEY,
TOKENMETRICS_API_KEY: process.env.TOKENMETRICS_API_KEY, // ๐ This loads from .env
}
},
system: "You are a crypto analysis assistant with access to real-time TokenMetrics data.",
// ... rest of your character config
};
Method 2: Direct configuration (Not recommended for production)
// character.ts - Only for development/testing
export const character: Character = {
name: "CryptoAnalyst",
plugins: ["@elizaos/plugin-tokenmetrics"],
settings: {
secrets: {
TOKENMETRICS_API_KEY: "your_api_key_here", // โ ๏ธ Not secure for production
}
},
// ... rest of your character config
};
Method 3: JSON character file
{
"name": "CryptoAnalyst",
"plugins": ["@elizaos/plugin-tokenmetrics"],
"modelProvider": "openai",
"settings": {
"secrets": {
"OPENAI_API_KEY": "your_openai_key",
"TOKENMETRICS_API_KEY": "your_tokenmetrics_key"
},
"tokenmetrics": {
"defaultAnalysisDepth": "detailed",
"preferredTimeframe": "daily",
"riskTolerance": "medium",
"favoriteTokens": ["BTC", "ETH", "SOL"]
}
},
"system": "You are a crypto analysis assistant with access to real-time TokenMetrics data."
}
Create a simple test to verify the plugin is working:
// test-tokenmetrics.ts
import { createAgent } from "./src/index.ts";
import { character } from "./src/character.ts";
async function testTokenMetrics() {
console.log("๐งช Testing TokenMetrics plugin...");
// Check if API key is configured
if (!character.settings?.secrets?.TOKENMETRICS_API_KEY) {
console.error("โ TOKENMETRICS_API_KEY not configured!");
return;
}
console.log("โ
API key configured");
console.log("๐ Plugin should be ready to use!");
console.log("๐ฌ Try asking: 'What's the price of Bitcoin?'");
}
testTokenMetrics();
Plugin not loading in ElizaOS:
// Check if plugin is properly exported
import { tokenmetricsPlugin } from "@elizaos/plugin-tokenmetrics";
console.log("Plugin:", tokenmetricsPlugin);
console.log("Actions:", Object.keys(tokenmetricsPlugin.actions || {}));
TypeScript compilation errors:
# Check TypeScript configuration
npx tsc --showConfig
# Verify ElizaOS types are installed
npm list @elizaos/core
API key not being recognized:
// Debug environment variables
console.log("API Key present:", !!process.env.TOKENMETRICS_API_KEY);
console.log("Character secrets:", character.settings?.secrets);
Build failures:
# Clear build cache and rebuild
rm -rf dist/ node_modules/
npm install
npm run build
- ๐ Sign up at TokenMetrics API Portal
- ๐ณ Choose a plan that fits your usage needs
- ๐ Navigate to API section in your dashboard
- ๐ Generate your API key
- โ๏ธ Add it to your environment variables or character settings
Your ElizaOS agent can now understand and respond to queries like:
๐ฐ "What's the current price of Bitcoin?"
๐ "Should I buy Ethereum? Show me the trading signals"
โฐ "Get hourly trading signals for Bitcoin"
โ ๏ธ "How risky is Solana? Show me the volatility metrics"
๐ "What's the overall crypto market sentiment today?"
๐ "Compare Bitcoin and Ethereum correlation"
๐ "Show me resistance and support levels for BTC"
๐ "Generate an AI report for Bitcoin analysis"
๐ "What are the top 10 cryptocurrencies by market cap?"
๐ "Analyze the hourly OHLCV data for Bitcoin"
๐ฎ "Show me scenario analysis for Ethereum price predictions"
๐ผ "Which crypto investors are buying Bitcoin?"
๐ "What's the sentiment around Dogecoin on social media?"
๐ "Show me available crypto indices"
๐ฆ "What are the holdings of crypto index 1?"
๐ "Show me the performance history of index 2"
๐ "Compare the correlation between BTC, ETH, and SOL for portfolio diversification"
๐ "Show me the resistance and support levels for the top 5 cryptocurrencies"
๐ "Generate a comprehensive AI report for Layer 1 blockchain tokens"
๐ฏ "What are the trading signals for tokens with High Score?"
โฐ "Show me hourly buy signals for cryptocurrencies with High Score"
๐ "Analyze the hourly OHLCV data for Bitcoin over the last 7 days"
๐ฎ "Show me scenario analysis for Ethereum under different market conditions"
๐ "Compare active vs passive crypto indices performance"
๐ฆ "Show me the top holdings in the best performing crypto index"
๐ "Analyze the risk-adjusted returns of crypto index funds"
import { tokenmetricsPlugin } from "@elizaos/plugin-tokenmetrics";
// The plugin automatically handles:
// - Intent recognition from natural language
// - Parameter extraction and validation
// - API calls to TokenMetrics
// - Response formatting and analysis
// - Error handling and retries
// - Context management and memory
# | Endpoint | Category | Description | Use Case | Icon |
---|---|---|---|---|---|
1 | getTokens | Core | Token database search | Token discovery | ๐ช |
2 | getTopMarketCap | Core | Top cryptocurrencies | Market overview | ๐ |
3 | getPrice | Core | Real-time prices | Price tracking | ๐ฐ |
4 | getTraderGrades | Core | Short-term grades | Day trading | ๐ |
5 | getInvestorGrades | Investment | Long-term grades | Portfolio building | ๐ฏ |
6 | getTradingSignals | Core | BUY/SELL/HOLD signals | Trading decisions | ๐ก |
7 | getHourlyTradingSignals | Core | Hourly AI signals | Active trading | โฐ |
8 | getMarketMetrics | Core | Market sentiment | Market timing | ๐ |
9 | getQuantmetrics | Risk | Risk assessment | Risk management | |
10 | getHourlyOhlcv | Technical | Hourly price data | Technical analysis | โฐ |
11 | getDailyOhlcv | Technical | Daily price data | Swing trading | ๐ |
12 | getAiReports | AI | AI-generated reports | Research | ๐ |
13 | getCryptoInvestors | Investment | Investor insights | Market intelligence | ๐ผ |
14 | getResistanceSupport | Technical | Key price levels | Technical trading | ๐ |
15 | getSentiment | AI | Social sentiment | Sentiment analysis | ๐ |
16 | getScenarioAnalysis | AI | Price predictions | Forecasting | ๐ฎ |
17 | getCorrelation | Investment | Token correlations | Portfolio optimization | ๐ |
18 | getIndices | Indices | Crypto indices data | Index discovery | ๐ |
19 | getIndicesHoldings | Indices | Index composition | Portfolio analysis | ๐ฆ |
20 | getIndicesPerformance | Indices | Index performance | Performance tracking | ๐ |
21 | getTMAI | AI | TMAI AI insights | Advanced AI analysis | ๐ค |
๐ฏ Total: 21 comprehensive endpoints covering every aspect of cryptocurrency analysis.
# Required for TokenMetrics plugin
TOKENMETRICS_API_KEY=your_tokenmetrics_api_key
# Required for AI model (choose one)
OPENAI_API_KEY=your_openai_key
ANTHROPIC_API_KEY=your_anthropic_key
Configure through your character settings:
{
"settings": {
"secrets": {
"TOKENMETRICS_API_KEY": process.env.TOKENMETRICS_API_KEY
},
"tokenmetrics": {
"defaultAnalysisDepth": "detailed", // "basic" | "detailed" | "comprehensive"
"preferredTimeframe": "daily", // "hourly" | "daily" | "weekly"
"riskTolerance": "medium", // "low" | "medium" | "high"
"favoriteTokens": ["BTC", "ETH", "SOL"], // Array of preferred tokens
"autoFollowUp": true, // Enable automatic follow-up suggestions
"includeEducation": true, // Include educational explanations
"maxTokensPerQuery": 10, // Limit tokens in multi-token queries
"cacheResults": true, // Cache results for faster responses
"cacheDuration": 300 // Cache duration in seconds
}
}
}
The plugin automatically loads when:
- โ
API Key Present:
TOKENMETRICS_API_KEY
is configured in character settings - โ Plugin Listed: Plugin is included in the character's plugins array
- โ Dependencies Met: All required dependencies are installed
// The plugin loading logic (handled automatically)
if (character.settings?.secrets?.TOKENMETRICS_API_KEY) {
plugins.push(tokenmetricsPlugin);
console.log("โ
TokenMetrics plugin loaded");
} else {
console.log("โ ๏ธ TokenMetrics plugin skipped (no API key)");
}
- ๐ค User Preferences: Tracks favorite tokens, risk tolerance, and analysis preferences
- ๐ญ Conversation Context: Remembers recent queries and tokens discussed
- ๐ Smart Follow-ups: Supports contextual questions without repeating token names
- ๐ฏ Personalized Responses: Adapts analysis depth and style to user preferences
- ๐พ Session Persistence: Maintains context across conversation sessions
- ๐ฆ API Rate Limiting: Automatic retry with exponential backoff (2s, 4s, 8s delays)
- ๐ Network Issues: Graceful degradation with informative error messages
- โ Invalid Queries: Helpful suggestions for malformed or unclear requests
- โ Missing Data: Clear explanations when specific data is unavailable
- โฑ๏ธ Timeout Handling: 30-second timeout with retry mechanisms
- ๐ Fallback Responses: Alternative data sources when primary endpoints fail
- ๐จ Color-coded Grades: ๐ข High Score (80-100%) ๐ก Medium Score (50-79%) ๐ด Low Score (0-49%)
- ๐ Structured Data: Clean tables, bullet points, and organized information
- ๐ก Actionable Insights: Professional analysis with clear recommendations
- ๐ Educational Content: Explanations of metrics, grades, and market concepts
- ๐ Visual Indicators: Emojis and symbols for quick visual parsing
- ๐ Progressive Disclosure: Summary first, details on request
# Install dependencies
npm install
# Build the plugin (required for development)
npm run build
# Verify build output
ls -la dist/
# Should show: index.js and index.d.ts
# Test plugin loading (create this test file)
node -e "
const plugin = require('./dist/index.js');
console.log('โ
Plugin loaded successfully');
console.log('๐ Available actions:', Object.keys(plugin.default?.actions || {}));
"
# 1. Fork and clone the repository
git clone https://github.com/[your-username]/plugin-tokenmetrics
cd plugin-tokenmetrics
# 2. Install dependencies
npm install
# 3. Set up environment variables
cp .env.example .env
echo "TOKENMETRICS_API_KEY=your_api_key_here" >> .env
# 4. Build the plugin
npm run build
# 5. Test integration with ElizaOS
# Create a test ElizaOS project and add this plugin
mkdir test-eliza && cd test-eliza
npm init -y
npm install @elizaos/core @elizaos/agent
# Copy your built plugin: cp -r ../dist ./node_modules/@elizaos/plugin-tokenmetrics/
# 6. Create test character and verify plugin loads
Follow the comprehensive testing guide in manual-endpoint-tests.md
to verify all 21 endpoints:
# Test basic functionality
"What's Bitcoin's price?"
"Show me trading signals for Ethereum"
"Get market sentiment data"
# Test advanced features
"Compare BTC and ETH correlation"
"Show me crypto indices performance"
"Generate AI report for Solana"
- โ
Build Success:
npm run build
completes without errors - โ Plugin Loading: Plugin loads in ElizaOS without errors
- โ API Connectivity: Can make successful TokenMetrics API calls
- โ Natural Language: Understands and responds to crypto queries
- โ Error Handling: Gracefully handles invalid queries and API errors
- โ Memory Management: Maintains conversation context properly
# Watch mode for development (if you add this script to package.json)
npm run dev
# Check TypeScript types
npx tsc --noEmit
# Lint code (if you add ESLint)
npm run lint
# Format code (if you add Prettier)
npm run format
- โฐ Hourly OHLCV data for technical analysis and chart patterns
- ๐ก Real-time trading signals with confidence scores
- โฐ Hourly trading signals for active trading and scalping strategies
- ๐ Resistance and support levels for entry/exit points
- ๐ Market sentiment tracking for timing decisions
- ๐ฏ Investment grades for long-term holdings assessment
- ๐ Correlation analysis for diversification strategies
- ๐ข Market performance analysis for allocation decisions
โ ๏ธ Risk assessment metrics for portfolio optimization
- ๐ AI-generated comprehensive reports for market research
- ๐ฎ Scenario analysis and predictions for forecasting
- ๐ผ Crypto investor insights for market intelligence
- ๐ Market trend analysis for strategic planning
- ๐ฐ Simple price queries in natural language
- ๐ก Easy-to-understand recommendations with explanations
- ๐ Market overview and sentiment for general awareness
- ๐ Educational explanations for learning about crypto metrics
- ๐ Plug-and-play integration with zero configuration
- ๐ฌ Natural language interface requiring no API knowledge
- ๐ Comprehensive documentation and examples
- ๐ก๏ธ Production-ready reliability for commercial applications
- ๐ API Keys: Securely stored in character settings or environment variables
- ๐ซ No Data Storage: Plugin doesn't store user queries or API responses
- ๐ HTTPS Only: All API communications use secure HTTPS
- ๐ฆ Rate Limiting: Prevents abuse and protects API quotas
- ๐ TokenMetrics Privacy: Subject to TokenMetrics privacy policy
- ๐ป Local Processing: NLP and context management happen locally
- ๐ซ No Tracking: Plugin doesn't track user behavior or analytics
- โ๏ธ Configurable: Users control what data is requested and how it's used
- TokenMetrics API Docs - Complete API reference
- Plugin Integration Guide - Detailed setup instructions
- Manual Testing Guide - Endpoint testing procedures
- TokenMetrics Academy - Learn about crypto metrics
- ElizaOS Documentation - ElizaOS plugin development
- Crypto Trading Basics - Understanding trading signals
- ๐ Check the Integration Guide for setup issues
- ๐ Review Manual Testing Guide for functionality verification
- ๐ง Run diagnostic tests:
npm run verify
to verify API connectivity - ๐ Check TokenMetrics status at their official status page
- ๐ Open an issue on GitHub with detailed error information
# Error: "Invalid API key"
# Solution: Verify your API key is correct and active.
npm run verify
# Error: "Rate limit exceeded"
# Solution: Plugin handles this automatically, but check your TokenMetrics plan limits
# Error: "Network timeout"
# Solution: Check internet connection and TokenMetrics API status
curl -I https://api.tokenmetrics.com/v2/health
# Error: "Plugin not found"
# Solution: Ensure plugin is properly installed and configured
npm list @elizaos/plugin-tokenmetrics
- ๐พ Use caching for frequently requested data
- ๐ฆ Batch queries when possible to reduce API calls
- โฐ Configure appropriate timeframes for your use case
- ๐ Monitor API usage to stay within rate limits
We welcome contributions! Here's how to get involved:
# Clone the repository
git clone https://github.com/[your-username]/plugin-tokenmetrics
cd plugin-tokenmetrics
# Install dependencies
npm install
# Set up environment
cp .env.example .env
# Add your TOKENMETRICS_API_KEY to .env
# Run tests
npm run test:all
# Start development
npm run dev
- ๐ด Fork the repository and create a feature branch
- ๐งช Write tests for new functionality
- ๐ท Follow TypeScript best practices and existing code style
- ๐ Update documentation for any new features
- โ Test thoroughly with real API calls
- ๐ค Submit a pull request with clear description
- ๐ New endpoint integrations as TokenMetrics adds APIs
- ๐ง Enhanced NLP processing for better query understanding
- ๐ Additional analysis features and insights
- โก Performance optimizations and caching improvements
- ๐ Documentation improvements and examples
MIT License - see LICENSE file for details.
- TokenMetrics API: Subject to TokenMetrics Terms of Service
- ElizaOS: MIT License
- Dependencies: Various open-source licenses (see package.json)
- ๐ค ElizaOS Team for the excellent plugin architecture
- ๐ The crypto community for feedback, testing, and feature requests
- ๐ค Contributors who help improve and maintain this plugin
- ๐ผ Portfolio tracking integration with multiple exchanges
- ๐จ Alert system for price targets and signal changes
- ๐ Advanced charting data for technical analysis
- ๐ Multi-language support for international users
- ๐ฑ Mobile optimization for mobile ElizaOS clients
- v1.0.0: Initial release with 21 TokenMetrics endpoints
- v0.9.0: Beta release with core functionality
- v0.8.0: Alpha release for testing
Built with โค๏ธ for the ElizaOS and crypto community
TokenMetrics โข ElizaOS โข Plugin Registry
โญ Star this repo if it helps your crypto analysis! โญ