grid_trading_bot
π€ Open-source cryptocurrency trading bot designed to perform grid trading strategies using historical data for backtesting
System Structure
μ μ₯μλ³ μ λ΅/μ€ν 쑰건 νμΈ νμ
κ±°λμ API κΈ°λ° μλ μ£Όλ¬Έ μ€ν
Editor Summaryμ μ₯μ μ€λͺ κ³Ό κ³΅κ° λ©νλ°μ΄ν° κΈ°μ€μΌλ‘ Python κΈ°λ° κ΅¬ν, μνΈνν κ±°λ λ΄, κ±°λμ API/νλ μμν¬, λ°±ν μ€νΈ μ±κ²©μ νλ‘μ νΈλ‘ νμ νμ΅λλ€. νμΈ κ·Όκ±°λ README, μ μ₯μ ν ν½, μ μ₯μ μ€λͺ , GitHub μ§ν, νμ΄νλΌμΈ νλμ΄λ©°, μ£Όμ λ°μ΄ν°λ Binance, Bybit, Kraken, ccxt μ§μ κ±°λμ, OHLCV/νΈκ°/체결 λ°μ΄ν°μ λλ€. μ λ΅/μ€ν 쑰건μ μ μ₯μλ³ λ¬Έμμ μ½λ νμΈμ΄ νμνλ©°, μ€ν λ°©μμ "κ±°λμ API κΈ°λ° μλ μ£Όλ¬Έ μ€ν"λΌκ³ 보μμ μΌλ‘ κΈ°λ‘νμ΅λλ€. GitHub μ§νλ λ³ 138κ°, ν¬ν¬ 57κ°μ λλ€.
| Repository | jordantete/grid_trading_bot |
|---|---|
| Creator | jordantete |
| Stars / Forks | β 138 / 57 |
| License | MIT |
| Last Updated | 2026-07-07 |
| Snapshot Date | 2026-07-08 (README below is a copy from this date) |
This is third-party open-source code. QuantField does not guarantee its behavior or safety. Review the code before installing or running it.
README
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.
- Configure your grid (pair, range, levels, spacing) in a single JSON file
- Backtest against historical data to validate the strategy
- Paper trade on exchange sandboxes with real market data
- 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 |