CryptoPerks Guide

Home › Guides › Grid bot

OKX Grid Bot (2026)

OKX referral code · 20% fee rebateAffiliate link
Join OKX ↗

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

ItemWhat OKX says
What it doesPlaces buy orders below price and sell orders above it at preset levels in a range, and replaces each order when it fills.
Core settingsPrice range (lower and upper), number of grids, arithmetic or geometric spacing, and investment amount.
Grid countThe manual-setup article says up to 500 grids are supported.
Optional settingsTake profit, stop loss, trailing up and trailing down.
FeesSame as manual trades; no extra bot charge. Rates aren't listed on the help pages we checked.
StoppingAny time. You choose to sell holdings at market price or keep them.
WhereTrade → Trading bots (the Bots tab shows running bots).
Main riskStrong trends, price leaving the range, fees, and possible loss of your entire deployed balance. No outcome is guaranteed.

Checked against OKX help articles on October 22, 2026. Trading bots, and some of their options, aren't available in every region. See OKX trading bots explained for the full bot overview.

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

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

  1. Open Trade → Trading bots and choose Spot grid.
  2. Pick the trading pair.
  3. 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.
  4. Enter the investment amount.
  5. In advanced settings, consider a take-profit and stop-loss, and decide whether to use trailing.
  6. Review the details, select Create, then Confirm.
  7. Monitor it in the Bots tab; open the bot to see orders and history, and use More → Stop to end it.
Start small. Begin with an amount you could lose completely. Editing parameters or adding investment re-initialises the orders and can buy or sell at market price, so decide your settings before you fund 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.

What's not guaranteed

Crypto is volatile and you can lose some or all of your capital. This is educational information, not financial advice.

Official sources

Checked on October 22, 2026: OKX help articles What's the Spot Grid bot and how do I use it?, Spot grid bot FAQ and How do I manually set up spot grid trading bots?

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.

Last reviewed: . OKX changes its products, fees and rules by region and over time. If anything here differs from what OKX shows in your account, OKX is right. See how we check information.

Join OKX