defi-trading-engine
DeFi Trading Engine - Autonomous DeFi trading bot with self-improving review system for OpenClaw agents. Use when setting up DeFi trading, crypto trading bot, automated trading, Base chain trading, Bankr integration, trading engine, self-improving bot, or trading strategy execution.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/avmw2025/defi-trading-engineWhat This Skill Does
The defi-trading-engine is a sophisticated, autonomous trading framework designed for OpenClaw agents to navigate decentralized finance (DeFi) markets. At its core, it features a self-improving loop that integrates token scanning, risk management, trade execution, and performance analysis. By leveraging the Bankr CLI, the agent can interact with EVM-compatible chains like Base to identify high-potential assets based on liquidity, volume spikes, and price momentum. The engine is unique because it logs every trade outcome and utilizes a daily review script to refine its own configuration parameters, effectively learning from past successes and failures.
Installation
To install this skill, use the ClawHub command: clawhub install openclaw/skills/skills/avmw2025/defi-trading-engine. Once installed, create a dedicated directory structure: mkdir -p ~/trading-bot/{trades,reviews}. Copy the core scripts from the installation path and initialize your trading-config.json file. Ensure that you have the Bankr CLI configured correctly, as this is the primary engine used for transaction relaying on the blockchain.
Use Cases
- Automated DeFi Portfolio Management: Execute systematic DCA (Dollar Cost Averaging) strategies or momentum-based swing trades on Base chain.
- Self-Improving Algorithmic Trading: Use the engine to auto-patch trading parameters based on daily PnL performance metrics.
- Trend Discovery: Scan emerging crypto assets by filtering for specific liquidity and volume thresholds across CoinGecko and DexScreener data sources.
- Risk-Managed Execution: Enforce strict drawdowns, maximum position sizing, and stop-loss rules to prevent capital erosion in volatile markets.
Example Prompts
- "Check for new momentum opportunities on Base using the defi-trading-engine and report back any tokens with over 50k liquidity."
- "Review today's trading logs for the defi-trading-engine and suggest parameter adjustments to improve the win rate for the next 24 hours."
- "Set up a new trading loop that targets tokens with volume spikes and executes a 40 USD trade if they meet my risk criteria."
Tips & Limitations
- Limitations: This bot relies on external APIs (CoinGecko/DexScreener) and the Bankr CLI. API rate limits or downtime may impact performance. Always verify transactions on-chain.
- Tips: Start with small position sizes (e.g., 10-20 USD) while testing. Regularly audit the
trading-config.jsonto ensure your slippage tolerance matches current market volatility. Do not leave the agent running indefinitely without reviewing thedaily-review.pyoutputs, as the self-improving loop requires human oversight to validate the auto-patched parameters.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-avmw2025-defi-trading-engine": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api, code-execution
Related Skills
Amazon Fee Calculator
Skill by avmw2025
Amazon Listing Optimizer
Skill by avmw2025
Dex Agent
Skill by avmw2025
shopify-theme-pro
Shopify Theme Development Pro - Complete theme development, deployment, and design system management for OpenClaw agents. Use when building Shopify themes, writing Liquid templates, pushing theme changes, deploying to stores, or managing design systems. Triggers on Shopify theme, Liquid templating, theme development, theme deployment, push theme, Shopify design system, Online Store 2.0, theme sections.
crypto-market-intel
Crypto Market Intelligence - Free market data pipeline for any OpenClaw agent. Zero API keys needed. Fetch real-time crypto prices, market metrics, Fear & Greed index, DeFi TVL, stock indices, and macro indicators. Use when you need crypto prices, market data, market analysis, fear and greed, DeFi TVL, stock prices, macro data, market intelligence, or trading signals.