Skip to main content
0
G

Grid Trading Bot

πŸ€– Open-source cryptocurrency trading bot designed to perform grid trading strategies using historic

Rating

0.0

Votes

0

score

Downloads

0

total

Price

Free

Access token required

Works With

Claude CodeCursorWindsurfVS CodeDeveloper tool

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. 1.Configure your grid (pair, range, levels, spacing) in a single JSON file
  2. 2.Backtest against historical data to validate the strategy
  3. 3.Paper trade on exchange sandboxes with real market data
  4. 4.Go live with crash recovery, real-time monitoring, and alerts

Features

BacktestingSimulate strategies on historical OHLCV data (CSV or fetched via CCXT)
Paper TradingTest against real market data using exchange sandbox APIs
Live TradingExecute real trades with retry logic, exponential backoff, and circuit breakers
Grid StrategiesSimple grid and hedged grid with arithmetic or geometric spacing
Risk ManagementConfigurable take-profit, stop-loss, and slippage controls
Performance AnalyticsROI, max drawdown, Sharpe ratio, interactive Plotly charts
Crash RecoverySQLite state persistence with exchange reconciliation on restart
MonitoringGrafana dashboards with Loki log aggregation via Docker Compose
NotificationsAlerts via Apprise (Telegram, Discord, Slack, email, and 80+ services)
Multi-ExchangeAny 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

bash
# 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.json

Docker 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

1

Tap "Get" above, pick your AI app, and follow the steps. Most installs take under 30 seconds.

What's New

Version 1.0.06 days ago

Imported from GitHub

Ratings & Reviews

0.0

out of 5

0 ratings

No reviews yet. Be the first to share your experience.