AI4FinanceFoundation/coinbase-trading-bot
AI4FinanceFoundation/coinbase-trading-botcoinbase coinbase-api coinbase-bot advanced-trade cdp-api coinbase-pro trading-bot ema-crossover atr trend-filter paper-trading market-ioc typescript btc eth sol crypto algorithmic-trading automated-trading automated-crypto quant fintech risk-sizing zod nodejs esm open-source institutional retail spot hft api-keys portfolio tracker legacy-hmac
From the README
Coinbase Advanced Trade — Systematic EMA Bot
Repository (clone / issues / PRs): github.com/AI4FinanceFoundation/coinbase-trading-bot
Keywords: coinbase coinbase-api coinbase-bot advanced-trade cdp-api trading-bot ema-crossover atr trend-filter paper-trading market-ioc typescript btc eth sol crypto algorithmic-trading automated-trading automated-crypto quant fintech risk-sizing zod nodejs open-source institutional retail spot hft retail-pro api-keys portfolio tracker usd coinbase-pro legacy-hmac cdp-keys rest-client fill-or-kill ioc market-order cloud-api developer-platform
Related: binance-trading-bot · bybit-trading-bot · ai-trading-agent
Jump to: At a glance · Your journey · Who this is for · Quick start · npm scripts & dependencies · Configuration · Coinbase API notes · Project layout · Go live · Troubleshooting · Related projects (same workspace) · Your next move
Related projects (same workspace)
| Project | Venue | Focus | |---------|--------|--------| | Binance Spot bot | Binance Spot (CCXT) | SuperTrend / EMA+RSI, long-only spot | | Bybit trend bot | Bybit V5 linear USDT perps | EMA + ADX + ATR, SL/TP via trading-stop | | AI trading agent | Lighter + OpenRouter | LLM tool-calling, PostgreSQL audit trail |
The pitch — why people stick around
Most trading tools ask you to trust a logo. This one asks you to read the code.
- Clarity you can build on — One loop, one strategy module, and configuration that is validated at startup (so bad env vars fail fast, not in production).
- Discipline, baked in — Paper trading is the default. You opt in to live orders with a single flag—on purpose.
- Risk you define — Size entries with a per-trade risk fraction and an optional hard cap per order in your quote currency. The bot does not “guess” your tolerance.
- A strategy people actually recognize — EMA cross + long-term EMA filter and ATR logging mirror ideas you will find in books, courses, and prop-style playbooks: trend follow when the market agrees, step aside when the cross says to exit.
- Serious stack — TypeScript 5, Node 20+, and coinbase-advanced-node talking to the real Advanced Trade API—the same class of building blocks used by developers who treat execution as software engineering.
Ideal if you want to automate a rule you understand, learn systematic trading on real infrastructure, or ship a v1 you can later upgrade with your own risk engine—without starting from a fragile script you found in a forum thread.
At a glance
| You want to… | What this gives you | |--------------|--------