The Coinbase trading bot built for Python developers.
Automate trades on Coinbase Advanced Trade in pure Python. WatchDog Bot handles the API connection via CCXT, runs your bot in an isolated environment, streams logs live, and offers AI-powered debugging when things break. US-friendly. Free trial.
Why Coinbase?
Coinbase is the most trusted regulated crypto exchange for US-based traders. The Advanced Trade API gives you the same execution surface as the institutional Coinbase Prime — limit/market orders, real-time orderbook data, full position lifecycle — without leaving a regulated US venue.
Compared to Binance, Coinbase typically has slightly higher fees and thinner orderbooks on long-tail pairs. In exchange, you get rock-solid regulatory standing, USD on/off ramps that actually work, and tax reporting built in.
What you actually get
Advanced Trade API ready
Add Coinbase API key + secret in Settings. Bot pulls them via wd.connection("Coinbase"). Encrypted store, never in source.
Standard library, standard methods
Use ccxt.coinbase or ccxt.coinbasepro — same fetch_ticker / create_order patterns you'd use on Binance.
Auto-installs dependencies
Add import ccxt at 2 AM, deploy, walk away. Platform installs ccxt on first run automatically.
Real-time cloud logs
Watch your Coinbase bot's decisions stream live from any browser. Filter by level, search by text.
One-click debugging
Coinbase API quirks (ratelimit headers, account permission errors) handled by Claude. Most common errors fixed in a single click.
Compliant by default
Coinbase is the regulated US venue. WatchDog Bot is a software subscription — no fund custody, no broker license. Your trades, your records, your taxes.
Strategies that work on Coinbase
Cost averaging into BTC/ETH
The boring strategy that quietly outperforms most active retail. Schedule daily/weekly buys, persist cumulative cost basis, ignore market noise. Copy the DCA example.
Mean-reversion on stablecoin pairs
USDT/USDC and similar pairs drift around 1.000 by tens of bps. A simple bot that buys below 0.998 and sells above 1.002 captures the wobble.
News-driven momentum
Coinbase's listings page is a real signal — when a new altcoin gets listed, it usually rallies. A bot that watches the listings RSS and reacts in seconds has edge over manual traders.
Cross-venue arbitrage
BTC/USD on Coinbase vs BTC/USDT on Binance — when the implied USD/USDT spread widens, there's a closeable gap. See the arbitrage scanner.
Tax-loss harvesting automation
End of year, automate the realize-loss / re-buy pattern across your altcoin positions. The 30-day wash-sale rule doesn't currently apply to crypto.
A simple Coinbase bot in 15 lines
DCA bot — buys $25 of BTC every 24 hours, tracks cumulative average cost in a persistent state file.
import time, json
import wd
import ccxt
SYMBOL = "BTC/USD"
AMOUNT_USD = 25
conn = wd.connection("Coinbase")
ex = ccxt.coinbase({"apiKey": conn.api_key, "secret": conn.api_secret, "enableRateLimit": True})
state_file = wd.bot_dir() / "dca_state.json"
state = json.loads(state_file.read_text()) if state_file.exists() else {"spent": 0, "btc": 0.0}
while True:
try:
price = float(ex.fetch_ticker(SYMBOL)["last"])
qty = AMOUNT_USD / price
wd.log.info("Buying $%d → %.6f BTC at $%.2f", AMOUNT_USD, qty, price)
if not wd.is_demo():
ex.create_market_buy_order(SYMBOL, qty)
state["spent"] += AMOUNT_USD
state["btc"] += qty
wd.log.info("Lifetime: $%.2f → %.6f BTC (avg $%.2f)",
state["spent"], state["btc"], state["spent"]/state["btc"])
state_file.write_text(json.dumps(state))
except Exception as e:
wd.log.error("DCA buy failed: %s", e)
time.sleep(24 * 3600)
Coinbase bot FAQ
Which Coinbase API does this use?
Coinbase Advanced Trade (formerly Coinbase Pro). Coinbase deprecated the old Pro API and consolidated everything under Advanced Trade — CCXT's ccxt.coinbase targets this latest version. Both retail and Advanced Trade accounts work.
Is it US-compliant?
WatchDog Bot doesn't take custody of funds, doesn't route orders, and doesn't act as a broker. Your bot trades through your Coinbase account using your own API key. Coinbase remains the regulated venue; we're a software subscription.
What about taxes?
Coinbase generates 1099 forms for US users. Your bot's trades go through Coinbase, so they're captured in standard Coinbase reporting. We don't track P&L for tax purposes; your Coinbase account does.
Can I trade Coinbase futures or options?
Coinbase Derivatives operates as a separate venue (CFTC-regulated). CCXT has some support but it's less mature than spot. You can also add a custom HTTP connection for the derivatives endpoints.
API rate limits?
Coinbase Advanced Trade allows up to 30 requests/second per IP for public endpoints, lower for private. CCXT's built-in rate limiter handles this for normal trading volumes.
What if I'm outside the US?
Coinbase serves many countries. If your Coinbase account is active and you have an API key, the WatchDog Bot integration works the same way regardless of region.
Run your Coinbase bot today
Free trial, no credit card. US-friendly. Strategy live in 10 minutes.
Start Free Trial →
WatchDog Bot