ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 2/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/avmw2025/defi-trading-engine
Or

What 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

  1. "Check for new momentum opportunities on Base using the defi-trading-engine and report back any tokens with over 50k liquidity."
  2. "Review today's trading logs for the defi-trading-engine and suggest parameter adjustments to improve the win rate for the next 24 hours."
  3. "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.json to ensure your slippage tolerance matches current market volatility. Do not leave the agent running indefinitely without reviewing the daily-review.py outputs, as the self-improving loop requires human oversight to validate the auto-patched parameters.

Metadata

Author@avmw2025
Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-avmw2025-defi-trading-engine": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#defi#trading#crypto#base#automation
Safety Score: 2/5

Flags: network-access, file-write, file-read, external-api, code-execution