feat: crypto compare api integration skill set #172
+524
−0
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.
Description
Please include a summary of the changes and the related issue.
Type of Change
Checklist
Related Issue
Add CryptoCompare Skills Module
Description
This PR introduces a new CryptoCompare skills module that integrates with the CryptoCompare API. The module expands our platform’s capabilities by providing tools to fetch various cryptocurrency-related data, including:
The module is structured similarly to our existing Twitter and Moralis skills modules to ensure consistency across our codebase.
Changes
New Directory and Files:
skills/cryptocompare/
__init__.py
: Contains the factory functionget_cryptocompare_skill
which maps skill names to their respective tool classes.api.py
: Houses API configuration (base URL, API key), shared input schemas, API functions, and prompt strings.base.py
: Implements theCryptoCompareBaseTool
with common functionalities such as rate limiting.fetch_news.py
fetch_price.py
fetch_trading_signals.py
fetch_top_market_cap.py
fetch_top_exchanges.py
fetch_top_volume.py
API Integration:
CRYPTO_COMPARE_API_KEY
environment variable for authentication.Motivation
Integrating CryptoCompare data will allow our platform to source robust and comprehensive cryptocurrency insights, enhancing our analytical capabilities and providing richer data to our users.
Testing
Closes #171