DeFi tools for Crypto.com Developer Platform
Project description
cryptocom-tools-defi
DeFi tools for Crypto.com Developer Platform.
Installation
pip install cryptocom-tools-defi
Tools
Read Tools
- GetFarmsTool - Get all farms for a DeFi protocol
- GetFarmDetailsTool - Get details for a specific farm by symbol
- GetWhitelistedTokensTool - Get whitelisted tokens for a protocol
Usage
from cryptocom_tools_defi import GetFarmsTool, GetFarmDetailsTool, GetWhitelistedTokensTool
# Get all farms on VVS
farms_tool = GetFarmsTool()
result = farms_tool.invoke({"protocol": "VVS"})
# Get specific farm details
farm_tool = GetFarmDetailsTool()
result = farm_tool.invoke({"protocol": "VVS", "symbol": "CRO-USDC"})
# Get whitelisted tokens
tokens_tool = GetWhitelistedTokensTool()
result = tokens_tool.invoke({"protocol": "VVS"})
Environment Variables
CRYPTOCOM_DEVELOPER_PLATFORM_API_KEY- Your CDP API key (auto-read by CDPTool)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cryptocom_tools_defi-2.0.0.tar.gz.
File metadata
- Download URL: cryptocom_tools_defi-2.0.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
224a58bbf99be273b8555105fe837fe684cb6e67321ebbe5e12434ccc7cb947d
|
|
| MD5 |
61d8d8a72287e483c9e3570f8ee35a96
|
|
| BLAKE2b-256 |
fad48d0d923b55dfae9bd6b422c6deff098f975707692d196e24ae7b1c28c084
|