Install
openclaw skills install dex-agentExecute zero-fee direct token swaps and manage stop-loss, take-profit, and portfolio tracking on Base chain via Uniswap V3 with self-custodial security.
openclaw skills install dex-agentZero-fee DeFi trading for OpenClaw agents. Bankr alternative.
Direct DEX swap execution on Base chain via Uniswap V3. Self-custodial, open-source, zero middleman fees. Includes real-time price feeds, swap quotes, stop-loss, take-profit, portfolio tracking, and configurable risk management.
pip3 install web3 eth-abipython3 agent.py wallet generatetrading-config.json to override risk defaultscd <skill_dir>/scripts && python3 agent.py price WETH
cd <skill_dir>/scripts && python3 agent.py price BRETT
cd <skill_dir>/scripts && python3 agent.py quote USDC WETH 10.0
cd <skill_dir>/scripts && python3 agent.py swap USDC WETH 5.0
cd <skill_dir>/scripts && python3 agent.py swap ETH USDC 0.01
cd <skill_dir>/scripts && python3 agent.py stop WETH 2000 8.0 0.005
cd <skill_dir>/scripts && python3 agent.py tp WETH 2000 5.0 0.005
cd <skill_dir>/scripts && python3 agent.py monitor
cd <skill_dir>/scripts && python3 agent.py balances
cd <skill_dir>/scripts && python3 agent.py wallet
Configurable risk parameters in config.py (override via trading-config.json):
| Parameter | Default | Description |
|---|---|---|
max_daily_trades | 8 | Max new trades per 24h window |
max_active_positions | 8 | Max concurrent open positions |
trade_size_usd | 20 | Trade size in USD |
take_profit_pct | 5.0 | Auto take-profit trigger |
stop_loss_pct | 8.0 | Auto stop-loss trigger |
max_drawdown_pct | 20.0 | Portfolio-wide drawdown halt |
cooldown_minutes | 60 | Cooldown between same-token trades |
min_liquidity | 50000 | Minimum pool liquidity (USD) |
min_volume_24h | 100000 | Minimum 24h volume filter |
Key design decision: max_daily_trades should match max_active_positions. A mismatch (e.g., 4 daily trades but 8 position slots) means the bot hits its daily cap before filling available positions — leaving capital idle while signals pass. Align both limits for maximum capital efficiency.