Analytics Agent
Analytics Agent
The Analytics Agent is ADAS's data analysis specialist for the Aptos blockchain ecosystem. It tracks, analyzes, and visualizes key metrics across the Aptos network and its DeFi protocols, providing comprehensive analytics to help users make informed decisions.

Overview
Primary Role: Data analysis and visualization for Aptos ecosystem
Plugin: @elizaos-plugins/plugin-aptos-analytics
Character File: eliza/characters/analytics-agent.character.json
Knowledge Base: eliza/characters/knowledge/protocols/
Capabilities
The Analytics Agent provides comprehensive data analysis through integrations with multiple data providers:
CoinGecko Integration
Token Prices
Get current price of specific tokens
✅ Implemented
Compare prices of multiple tokens
✅ Implemented
Market Data
Get 24h trading volume
✅ Implemented
Track price changes over time
✅ Implemented
Get market capitalization
✅ Implemented
DeFiLlama Integration
TVL Analysis
Get TVL for Aptos chain
✅ Implemented
Get TVL for specific protocols
✅ Implemented
Compare TVL across chains
✅ Implemented
Compare TVL across protocols
✅ Implemented
Protocol Metrics
Get protocol-specific TVL by chain
✅ Implemented
List top protocols by TVL
✅ Implemented
Get global DeFi statistics
✅ Implemented
GeckoTerminal Integration
Pool Analysis
Get trending liquidity pools
✅ Implemented
Get detailed pool information
✅ Implemented
List top pools by volume/liquidity
✅ Implemented
Token Analysis
Get detailed token information
✅ Implemented
Implementation Details
The Analytics Agent leverages the Aptos Analytics plugin to gather and process data from multiple sources. The plugin provides a comprehensive set of actions that the agent can use to retrieve various metrics.
Data Sources
CoinGecko API: Real-time price data and market information
DeFiLlama API: TVL data across protocols and chains
GeckoTerminal API: DEX trading data and liquidity information
Data Processing
The Analytics Agent processes raw data to provide:
Trend analysis
Comparative metrics
Historical performance
Risk assessments
Yield opportunities
Caching Mechanism
To optimize performance and reduce API calls, the Analytics Agent implements caching:
Token prices: 5-minute TTL
TVL data: 15-minute TTL
Pool information: 10-minute TTL
Testing
Test Prompts
Use these prompts to test the Analytics Agent's capabilities:
CoinGecko Module
DeFiLlama Module
GeckoTerminal Module
Use Cases
The Analytics Agent supports various use cases:
Market Analysis
Track price movements of key tokens
Monitor TVL trends across protocols
Identify emerging protocols by growth rate
Compare performance across different chains
Portfolio Analysis
Analyze asset distribution
Calculate portfolio performance metrics
Identify yield opportunities
Assess risk exposure
Protocol Comparison
Compare APYs across lending protocols
Analyze liquidity depth across DEXs
Track fee generation by protocol
Monitor protocol dominance changes
Yield Optimization
Identify highest yielding opportunities
Compare risk-adjusted returns
Track yield trends over time
Suggest portfolio rebalancing
Integration with Other Agents
The Analytics Agent works closely with other agents in the ADAS system:
DeFi Agent: Provides market data to inform transaction decisions
Aptos Expert Agent: Supplies data to enhance recommendations
Coordinator Agent: Receives analytics requests and delivers insights
Future Development
The Analytics Agent is continuously being enhanced with new capabilities:
Short-term Priorities
Enhanced portfolio tracking
Protocol-specific metrics (e.g., lending utilization, DEX volume)
Advanced visualization options
Historical trend analysis
Long-term Goals
Predictive analytics
Risk scoring system
Automated strategy recommendations
Custom alert system
Resources
Aptos Analytics Plugin Documentation
Last updated