Base Trader
@sp0oby
npx machina-cli add skill @sp0oby/base-trader --openclawBase Trader 📈
Autonomous trading system for Base chain via Bankr API.
Philosophy
"The market is a machine for transferring wealth from the impatient to the patient."
This skill prioritizes capital preservation over aggressive gains. Every trade has defined risk parameters. No YOLO.
Prerequisites
- Bankr API configured at
~/.clawdbot/skills/bankr/config.json - ETH in your Bankr wallet for gas and trading
- Check your wallet address with:
bankr.sh "What is my wallet address?"
Core Principles
1. Risk Management (NON-NEGOTIABLE)
MAX_POSITION_SIZE = 10% of portfolio
MAX_SINGLE_TRADE = $50 USD
STOP_LOSS = -15% from entry
TAKE_PROFIT = +30% minimum target
MAX_DAILY_LOSS = -20% of starting balance
If daily loss limit hit → STOP TRADING FOR 24 HOURS.
2. Entry Criteria (ALL must pass)
Before ANY buy:
- Liquidity > $10k
- Contract verified on Basescan
- No honeypot indicators (can sell)
- Not on known scam list
- Age > 5 minutes (avoid rugs at launch)
- Price action shows accumulation, not dump
3. Exit Rules
Take Profit (scale out):
- 25% at +30%
- 25% at +50%
- 25% at +100%
- Hold 25% moonbag
Stop Loss:
- Hard stop at -15%
- No averaging down on losers
Trading Strategies
Strategy 1: Launch Sniper (HIGH RISK)
Monitor new token launches, enter early with small size.
# Check trending/new tokens
scripts/bankr.sh "What tokens are trending on Base?"
# Research before buying
scripts/bankr.sh "What's the liquidity for TOKEN on Base?"
# Small entry
scripts/bankr.sh "Buy $20 of TOKEN on Base"
Rules:
- Max $20 per snipe
- Sell 50% at 2x, rest at 5x or stop loss
- Max 3 snipes per day
Strategy 2: Momentum Trading (MEDIUM RISK)
Trade established tokens showing strength.
Entry signals:
- Price > 20-period MA
- Volume increasing
- Higher lows forming
# Check momentum
scripts/bankr.sh "Do technical analysis on TOKEN"
# Enter with limit order
scripts/bankr.sh "Buy $30 of TOKEN if price drops to X"
Strategy 3: DCA Blue Chips (LOW RISK)
Steady accumulation of proven tokens.
# Weekly DCA
scripts/bankr.sh "DCA $20 into ETH every week on Base"
scripts/bankr.sh "DCA $10 into USDC every week on Base"
Execution via Bankr
Check Portfolio
~/clawd/skills/bankr/scripts/bankr.sh "Show my portfolio on Base"
Execute Trade
~/clawd/skills/bankr/scripts/bankr.sh "Buy $25 of TOKEN on Base"
Set Stop Loss
~/clawd/skills/bankr/scripts/bankr.sh "Set stop loss for TOKEN at -15%"
Check Price
~/clawd/skills/bankr/scripts/bankr.sh "What's the price of TOKEN on Base?"
Trade Journal
Log every trade to data/trades.json:
{
"timestamp": "2026-01-28T12:00:00Z",
"action": "BUY",
"token": "TOKEN",
"amount_usd": 25,
"price": 0.001,
"reason": "Launch snipe - verified contract, good liquidity",
"tx": "0x..."
}
After each trade, update the journal. Review weekly for pattern analysis.
Daily Routine
Morning (9 AM)
- Check portfolio balance
- Review overnight price action
- Identify opportunities
- Set limit orders for the day
Midday (1 PM)
- Check open positions
- Adjust stop losses if in profit
- Take profits if targets hit
Evening (6 PM)
- Close any day trades
- Log all trades to journal
- Calculate daily PnL
- Review what worked/didn't
Red Flags (DO NOT TRADE)
- Honeypot (can't sell)
- Liquidity < $5k
- Unverified contract
- Team anonymous with no track record
- Promises of guaranteed returns
- Excessive tax (>10%)
- Locked liquidity < 30 days
- Price already 10x+ from launch
Performance Tracking
Track in data/performance.json:
{
"start_date": "2026-01-28",
"starting_balance_usd": 100,
"current_balance_usd": 100,
"total_trades": 0,
"winning_trades": 0,
"losing_trades": 0,
"win_rate": 0,
"total_pnl_usd": 0,
"best_trade": null,
"worst_trade": null
}
Safety Overrides
If ANY of these occur, STOP ALL TRADING:
- Daily loss > 20%
- 3 consecutive losing trades
- Portfolio down > 30% from ATH
- Unexpected error in execution
- Market-wide crash (ETH -20% in 24h)
Wait 24 hours, reassess, then resume with smaller size.
Autonomous Trading Mode
When running autonomously (via cron or heartbeat):
Morning Scan (9 AM)
- Check portfolio balance
- Review overnight price action on holdings
- Scan for new opportunities
- Set limit orders for the day
Midday Check (1 PM)
- Monitor open positions
- Adjust trailing stops on winners
- Take profits if targets hit
- Log any executed trades
Evening Review (6 PM)
- Close day trades if any
- Calculate daily PnL
- Update performance.json
- Generate summary for user
Execution Commands
# Morning
~/clawd/skills/bankr/scripts/bankr.sh "Show my portfolio on Base"
~/clawd/skills/bankr/scripts/bankr.sh "What tokens are trending on Base?"
# Execute trade
~/clawd/skills/bankr/scripts/bankr.sh "Buy $25 of TOKEN on Base"
# Set protection
~/clawd/skills/bankr/scripts/bankr.sh "Set stop loss for TOKEN at -15%"
# Take profit
~/clawd/skills/bankr/scripts/bankr.sh "Sell 25% of my TOKEN on Base"
References
Core Trading
- references/strategies.md - Detailed strategy breakdowns
- references/token-analysis.md - How to analyze tokens
- references/risk-management.md - Position sizing formulas
Market & Research
- references/market-analysis.md - Reading market conditions
- references/market-research-bankr.md - Bankr research commands
Execution
- references/execution.md - Order types and execution
- references/automation-strategies.md - Automated trading setups
- references/launch-sniping.md - New token launch guide
Advanced
- references/leverage-guide.md - Leveraged trading (high risk)
"The goal is not to make money on every trade. The goal is to be profitable over time."
Overview
Base Trader is an autonomous trading system that operates on the Base chain through the Bankr API. It emphasizes capital preservation with clearly defined risk parameters and supports trading tokens, monitoring launches, executing strategies, and managing a portfolio, triggered by actions like trade, buy, sell, launch, snipe, profit, and PnL.
How This Skill Works
The skill enforces core principles including strict risk management (MAX_POSITION_SIZE = 10% of portfolio; MAX_SINGLE_TRADE = $50 USD; STOP_LOSS = -15% from entry; TAKE_PROFIT = +30% minimum; MAX_DAILY_LOSS = -20% of starting balance). Before any buy, it checks liquidity (> $10k), contract verified on Basescan, no honeypot, not on known scam lists, age > 5 minutes, and that price action shows accumulation rather than a dump. Exits follow a staged take profit ladder and a hard stop loss, while trades are executed via Bankr scripts and logged to data/trades.json. Daily routines support portfolio checks, position reviews, and PnL calculations to guide decisions.
When to Use It
- Sniping new token launches on Base with small entries to catch early momentum.
- Momentum trading on established tokens showing strength (price > 20-period MA, rising volume, higher lows).
- DCA blue chips to steadily accumulate proven tokens over time.
- Setting and adjusting stop losses after entry to protect downside and manage risk.
- Daily portfolio review and journaling to monitor PnL and refine strategy.
Quick Start
- Step 1: Ensure Bankr API is configured at ~/.clawdbot/skills/bankr/config.json and that ETH is funded in your Bankr wallet.
- Step 2: Run a small launch snipe using Bankr scripts: check trending tokens, research liquidity, and place a $20 entry (e.g., scripts/bankr.sh 'What tokens are trending on Base?'; scripts/bankr.sh 'What is liquidity for TOKEN on Base?'; scripts/bankr.sh 'Buy $20 of TOKEN on Base').
- Step 3: Verify your position and protections: show portfolio on Base, set stop loss for TOKEN at -15%, and check price on Base (e.g., ~/clawd/skills/bankr/scripts/bankr.sh 'Show my portfolio on Base'; ~/clawd/skills/bankr/scripts/bankr.sh 'Set stop loss for TOKEN at -15%'; ~/clawd/skills/bankr/scripts/bankr.sh 'What is the price of TOKEN on Base?').
Best Practices
- Before buying, verify liquidity > $10k, contract verification on Basescan, no honeypot indicators, not on scam lists, token age > 5 minutes, and favorable price action indicating accumulation.
- Strictly enforce risk limits: MAX_POSITION_SIZE 10% of portfolio; MAX_SINGLE_TRADE $50; STOP_LOSS -15%; TAKE_PROFIT +30%; MAX_DAILY_LOSS -20% of starting balance; daily loss stops trading for 24 hours.
- Use the take-profit ladder and avoid averaging down on losers to protect capital.
- Keep Bankr API config up to date and ensure ETH is available in the Bankr wallet for gas and trading.
- Log every trade to data/trades.json and perform a weekly review to identify patterns and improve strategy.
Example Use Cases
- Strategy 1 Launch Sniper: snipe a new token with max $20 per entry and exit 50% at 2x, remainder at 5x or stop loss.
- Strategy 2 Momentum Trading: buy $30 of a token when price breaks above a 20-period MA with rising volume.
- Strategy 3 DCA Blue Chips: weekly DCA of ETH $20 and USDC $10 on Base.
- Execution: Show portfolio on Base, buy a token, and set a stop loss at -15% after entry.
- Daily Routine: check portfolio balance, review overnight price action, log trades to the journal, and calculate daily PnL.