Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A comprehensive suite of LangChain-compatible tools for integrating Token Metrics AI API capabilities into your AI agents and applications. This library provides 21+ specialized tools for cryptocurrency analysis, market intelligence, and trading insights that seamlessly integrate with LangChain's agent framework.
🚀 Features
📦 Installation
Dependencies
🔧 Quick Start
1. Setup API Key
2. Initialize Client and Tools
3. Basic Usage
🤖 LangChain Agent Integration
Simple Agent Example
Advanced Agent Example
🛠️ Available Tools
Market Data Tools
price
token_id
tokens
symbol
,token_name
,category
top_tokens
top_k
daily_ohlcv
token_id
,symbol
,start_date
,end_date
hourly_ohlcv
token_id
,symbol
,start_date
,end_date
Trading & Analysis Tools
trading_signals
token_id
,symbol
,signal
,start_date
,end_date
trader_grades
token_id
,symbol
,trader_grade
investor_grades
token_id
,symbol
,investor_grade
resistance_support
token_id
,symbol
correlation
token_id
,symbol
,category
quantmetrics
token_id
,symbol
,marketcap
,volume
Market Intelligence Tools
market_metrics
start_date
,end_date
sentiment
limit
,page
ai_reports
token_id
,symbol
scenario_analysis
token_id
,symbol
crypto_investors
limit
,page
Index & Portfolio Tools
indices
indicesType
,limit
,page
sector_indices_holdings
id
sector_indices_performance
id
,start_date
,end_date
trader_indices
index_type
,strategy
,risk_profile
AI Tools
ai_agent
user_query
📖 Tool Reference Guide
Price Tool
Trading Signals Tool
AI Agent Tool
Market Metrics Tool
🎯 Common Agent Use Cases
1. Portfolio Analysis Agent
2. Trading Signal Agent
3. Market Research Agent
🔍 Error Handling
All tools include comprehensive error handling:
⚙️ Configuration
Environment Variables
Client Configuration
📚 Best Practices
1. Tool Selection for Agents
Choose tools based on your agent's purpose:
trading_signals
,trader_grades
,resistance_support
investor_grades
,ai_reports
,scenario_analysis
market_metrics
,sentiment
,correlation
correlation
,quantmetrics
,indices
2. Rate Limiting
3. Error Recovery
🤝 Contributing
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Related Projects
Disclaimer: This library provides tools for accessing Token Metrics AI API. Please refer to Token Metrics' terms of service and API documentation for usage guidelines and limitations. Always conduct your own research before making investment decisions.