OKX Grid Bot (2026)
You get 20% of your trading fees back with this code; the site owner earns a commission at no extra cost to you. Not for residents of restricted regions (incl. U.S., Canada). Rewards vary by region and are not guaranteed. Independent guide, not an official OKX site.
Short answer: the OKX spot grid bot buys low and sells high automatically inside a price range you set, placing buy orders below the current price and sell orders above it and replacing each order when it fills. It tends to work best when price moves sideways inside your range. In a strong trend, or if price leaves the range, it can sit with unfilled orders or hold coins bought higher, and OKX says you can lose your whole deployed balance. Nothing is guaranteed, and the "grid profit" on screen isn't the same as your real result.
OKX spot grid bot at a glance
| Item | What OKX says |
|---|---|
| What it does | Places buy orders below price and sell orders above it at preset levels in a range, and replaces each order when it fills. |
| Core settings | Price range (lower and upper), number of grids, arithmetic or geometric spacing, and investment amount. |
| Grid count | The manual-setup article says up to 500 grids are supported. |
| Optional settings | Take profit, stop loss, trailing up and trailing down. |
| Fees | Same as manual trades; no extra bot charge. Rates aren't listed on the help pages we checked. |
| Stopping | Any time. You choose to sell holdings at market price or keep them. |
| Where | Trade → Trading bots (the Bots tab shows running bots). |
| Main risk | Strong trends, price leaving the range, fees, and possible loss of your entire deployed balance. No outcome is guaranteed. |
How a grid bot works, step by step
You pick a lower and an upper price and split the range into levels. The bot places buy orders below the current price and sell orders above it. When a buy fills, it places a sell one level up; when a sell fills, it places a buy one level down. Each completed buy-and-sell pair earns roughly the gap between two levels, before fees.
OKX gives a worked example for BTC/USDC with a range of 90,000 to 120,000, 6 grids and 10,000 USDC invested. In arithmetic mode the gap is 5,000 per level; in geometric mode the ratio between levels is about 1.049. OKX's per-level return formula is (upper level − lower level) ÷ lower level, which comes to about 5.56% down to 4.35% in the arithmetic case. These are OKX's illustration of the mechanics, not a promise of what you will earn, and OKX notes its sample cycle ignores fees and slippage.
The settings that matter
- Price range. If it's too narrow, price leaves it quickly and the bot stops trading. If it's too wide, each grid is spread thin and capital sits idle. Choose a range you have a reason to believe price will stay inside, and accept that you may be wrong.
- Number of grids. More grids make smaller orders and more frequent trades; fewer grids mean bigger gaps. OKX warns that too many grids or a narrow range can reduce efficiency and tie up funds.
- Arithmetic vs geometric. Arithmetic uses equal price gaps. Geometric uses an equal percentage between levels, so gaps widen higher up.
- Investment. It can't exceed your available balance in the selected currency, and the reserved funds aren't available for other uses while the bot runs.
- Take profit and stop loss. Optional. When triggered, the bot stops and, as configured, sells at market price. They can be edited while the bot runs.
- Trailing up and down. Trailing up moves the grid higher when price passes the upper limit. Trailing down extends the grid lower and needs extra funds from your main account.
Check that the gap beats the fees
Illustrative numbers only. Suppose the gap between two grid levels is 0.4% and you pay 0.1% on each side of a cycle, 0.2% in fees. The cycle then nets about 0.2%, half the gap. If the gap were only 0.2%, fees would eat all of it. Many closely spaced grids can look busy and profitable on screen while fees and tiny net margins add up. Check your own tier on the OKX fees guide and estimate with the fee calculator; the 20% rebate with code 33746534 applies to trading fees, so it can reduce the fee side but doesn't remove the risk.
How to set up an OKX spot grid bot
- Open Trade → Trading bots and choose Spot grid.
- Pick the trading pair.
- Enter the lower and upper price, the number of grids and arithmetic or geometric spacing. OKX also offers preset Smart Strategies built from backtests over 7, 20 or 90 days; OKX notes past backtest results don't predict future performance.
- Enter the investment amount.
- In advanced settings, consider a take-profit and stop-loss, and decide whether to use trailing.
- Review the details, select Create, then Confirm.
- Monitor it in the Bots tab; open the bot to see orders and history, and use More → Stop to end it.
When a grid bot loses money
Illustrative example, not a forecast. A coin trades at $100 and you run a grid from $80 to $120. If price slides to $70, the bot has bought all the way down, then stops placing orders because price is below the range. You're left holding coins bought at various prices above $70 while the market sits lower. The small profits from completed cycles along the way offset only part of that, and your Total PnL can be negative even though the grid shows profit. If instead price shoots above $120, the bot has sold everything at the grid levels and you miss the rest of the rise.
- Strong trends. OKX says they can leave orders unfilled or cause losses on filled buys.
- Price leaving the range. The bot stops placing orders outside it.
- High volatility. OKX says it can raise trading costs.
- Forced stops. The bot can end for insufficient funds, market conditions or events such as the pair being delisted.
- Misleading numbers. OKX says Total PnL is the real measure; grid profit is only a part of it.
What's not guaranteed
- Profit. OKX states the bot has no guaranteed outcome and that you can lose your entire deployed balance.
- Fills and prices. Execution, fills and prices aren't guaranteed.
- Backtests. Past results don't predict future ones.
- Availability. Trading bots and some features vary by region, and some products aren't available in places such as the UK or Australia. See Is OKX available in my country?.
Crypto is volatile and you can lose some or all of your capital. This is educational information, not financial advice.
Official sources
FAQ
What is the OKX spot grid bot?
A bot that places buy orders below the current price and sell orders above it at preset levels inside a price range you choose. When an order fills, it places a new one on the opposite side, trying to buy low and sell high repeatedly.
Does the OKX grid bot guarantee profit?
No. OKX says the bot has no guaranteed outcome and only follows the parameters you set. In a strong trend it can leave orders unfilled or hold coins bought at higher prices, and OKX warns you can lose your entire deployed balance.
What happens if the price leaves my grid range?
The bot stops placing orders outside the range. If price falls below it, you keep holding the coins you bought. If price rises above it, you've sold the coins at the grid levels and miss any further rise. Trailing up and trailing down can move the grid, and take-profit and stop-loss settings can close the bot.
How many grids should I use on OKX?
There's no universally right number. OKX says more grids mean smaller individual orders, while too many grids or a narrow range can reduce efficiency and tie up funds. Check that the gap per grid is comfortably bigger than the fees you'll pay.
Arithmetic or geometric grid on OKX?
Arithmetic puts grid lines at fixed price gaps. Geometric uses a fixed percentage between lines, so the gaps widen at higher prices. Geometric keeps the percentage return per level roughly equal; arithmetic gives smaller percentage returns at higher levels.
Does the OKX grid bot charge extra fees?
OKX says bot trades pay the same fees as manual trades, with no extra bot charge. The help pages we checked don't list rates, so check your own fee tier. Fee drag adds up with many small trades.
Can I stop the OKX grid bot any time?
Yes. Pending orders are cancelled and you choose to sell the holdings at market price or keep them. You can also set take-profit and stop-loss, and the bot can stop automatically, for example if the pair is delisted.
What does Total PnL mean for an OKX grid bot?
OKX says Total PnL is the true measure of performance: current equity compared with initial equity, adjusted for top-ups and withdrawals. Grid profit is only a breakdown of it, so a bot can show grid profits while Total PnL is negative.