Binance grid trading bot

ScriptTrading & CryptoPython

A grid bot that places a ladder of buy and sell orders around a price range and profits from the chop. Written for people who want to understand what their bot is doing, not a black box with a login screen. What it does: • Places and maintains a full grid of limit orders, re-filling each level as it executes • Enforces hard risk limits — max position size, daily loss cap, and an emergency flatten • Survives restarts: open orders and grid state are persisted to disk, not held in memory • Logs every fill to CSV so you can audit the strategy against your own numbers • Runs on testnet with one config flag, so you can watch it for a week before risking anything Perfect for: • Traders who already know the strategy and want a clean implementation to build on • Anyone tired of paying $40/month for a hosted bot they cannot inspect • Sideways markets where a grid earns while buy-and-hold sits flat

What you need

Python 3.10 or newer. A Binance account with API keys (spot trading enabled, withdrawals disabled — the script never needs them). Roughly $200 of working capital to make a grid meaningful. Tested on macOS, Linux and Windows.