Coinbase Grid Bot
A small, readable, maker-only grid trading bot for Coinbase Advanced Trade. Built for $50 accounts where taker fees eat everything. Educational software with the honest math included.
A pip-installable CLI: gridbot init · check ·
run · status · backtest ·
shadow. ~700 lines of readable Python.
Instant download after checkout. Pay by card via Stripe.
What it does
- Splits your balance 50/50 between BTC and USDC
- Rests a post-only SELL +3% above anchor, post-only BUY −3% below
- Re-anchors on every fill; each completed cycle captures ~4.8% of the traded leg after maker fees
- Regime filter: under the 100-day SMA the bot caps exposure and widens buys — backtested to flip the strategy from losing to beating HODL in a 17% drawdown
- Crash-safe: state persisted and reconciled against the exchange every loop
- Single-instance lock, stray-order sweeps, verified cancels, atomic state writes
- Works with view+trade-only API keys — the bot cannot move funds out of your account
What it does NOT do
It does not guarantee profit. Grid strategies harvest sideways chop and lose to simply holding during sustained trends. Our own 90-day backtest during a 17% BTC drawdown showed every grid variant underperforming HODL — the 3% default step lost least. That backtest ships in the README because you deserve to see it before you pay. This is a learning tool and a codebase to build on, not passive income.
What you get
| Command | What it does |
|---|---|
gridbot init | Guided credential setup (view+trade key only, chmod 600) |
gridbot check | Connectivity, balances, your live fee tier |
gridbot backtest | Replay the strategy on 90 days of real candles — prints vs HODL honestly |
gridbot run | The trading loop: bootstrap, grid, recovery, sweeps |
gridbot status | Portfolio value, PnL, open orders, fill history |
gridbot dash | Live full-terminal dashboard: equity sparkline, orders, fills, regime badge |
gridbot shadow | Log SMA100/RSI14 regime signals without trading |
Requirements
- Python 3.10+ on macOS or Linux
- Coinbase Advanced Trade account + free CDP API key (view + trade only)
- $50+ you can afford to lose entirely