- Home
- DevOps & Monitoring
- Grid Trading Bot
Grid Trading Bot
π€ Open-source cryptocurrency trading bot designed to perform grid trading strategies using historic
Rating
Votes
0
score
Downloads
0
total
Price
Free
Access token required
Works With
About
Grid Trading Bot
Backtest. Paper trade. Go live. A modular Python engine for crypto grid trading with real-time Grafana monitoring.
Documentation • Quick Start • Configuration • Grid Trading Concepts • Monitoring • Contributing
How It Works
Define a price range and number of grid levels. The bot places layered buy and sell orders across the range, capturing profit from every price oscillation β no prediction needed.
- 1.Configure your grid (pair, range, levels, spacing) in a single JSON file
- 2.Backtest against historical data to validate the strategy
- 3.Paper trade on exchange sandboxes with real market data
- 4.Go live with crash recovery, real-time monitoring, and alerts
Features
| Backtesting | Simulate strategies on historical OHLCV data (CSV or fetched via CCXT) |
| Paper Trading | Test against real market data using exchange sandbox APIs |
| Live Trading | Execute real trades with retry logic, exponential backoff, and circuit breakers |
| Grid Strategies | Simple grid and hedged grid with arithmetic or geometric spacing |
| Risk Management | Configurable take-profit, stop-loss, and slippage controls |
| Performance Analytics | ROI, max drawdown, Sharpe ratio, interactive Plotly charts |
| Crash Recovery | SQLite state persistence with exchange reconciliation on restart |
| Monitoring | Grafana dashboards with Loki log aggregation via Docker Compose |
| Notifications | Alerts via Apprise (Telegram, Discord, Slack, email, and 80+ services) |
| Multi-Exchange | Any exchange supported by CCXT (Binance, Kraken, Bybit, ...) |
Tech Stack
- Python 3.12+ with
asyncioβ async-first event-driven architecture - CCXT / CCXT Pro β unified exchange API with WebSocket support
- SQLite (WAL mode) β lightweight crash-recovery persistence
- Plotly β interactive backtest result visualization
- Grafana + Loki + Alloy β real-time log monitoring stack
- uv β fast Python package management
Quick Start
Prerequisites
- Python 3.12+
- uv package manager
Setup
# Clone and install
git clone https://github.com/jordantete/grid_trading_bot.git
cd grid_trading_bot
uv sync --all-extras --dev
# Run a backtest
uv run grid_trading_bot run --config config/config.jsonDocker Monitoring (optional)
Don't lose this
Three weeks from now, you'll want Grid Trading Bot again. Will you remember where to find it?
Save it to your library and the next time you need Grid Trading Bot, itβs one tap away β from any AI app you use. Group it into a bench with the rest of the team for that kind of task and you can pull the whole stack at once.
β‘ Pro tip for geeks: add a-gnt π€΅π»ββοΈ as a custom connector in Claude or a custom GPT in ChatGPT β one click and your library is right there in the chat. Or, if youβre in an editor, install the a-gnt MCP server and say βuse my [bench name]β in Claude Code, Cursor, VS Code, or Windsurf.
a-gnt's Take
Our honest review
This plugs directly into your AI and gives it new abilities it didn't have before. π€ Open-source cryptocurrency trading bot designed to perform grid trading strategies using historic. Once connected, just ask your AI to use it. It's completely free and works across most major AI apps. This one just landed in the catalog β worth trying while it's fresh.
Tips for getting started
Tap "Get" above, pick your AI app, and follow the steps. Most installs take under 30 seconds.
What's New
Imported from GitHub
Ratings & Reviews
0.0
out of 5
0 ratings
No reviews yet. Be the first to share your experience.