Home

OKX Grid Bot Guide 2026: Spot Grid Setup, Grid Calculations, TP/SL, and Risks

The OKX Grid Bot (Spot Grid) is a trading bot that automatically places buy and sell orders within a price range and grid intervals set by the user. You can set the price range, number of grids, investment amount, arithmetic or geometric mode, and take-profit (TP) or stop-loss (SL) levels yourself, or choose an AI strategy provided by OKX based on backtesting. However, it does not guarantee profits, and strong upward or downward trends can result in unfilled orders, unrealized losses, or higher-than-expected trading costs.

OKX Spot Grid: Key Points

Item What you set What to watch out for
Price range Lower and upper limits New orders may stop outside the range
Number of grids Number of steps into which the range is divided More grids can mean smaller, more frequent orders and higher fees
Grid mode Arithmetic or geometric Arithmetic uses a fixed price difference; geometric uses a fixed ratio
Investment amount Currencies and total amount allocated to the bot Funds allocated to the bot are reserved for that strategy
TP/SL Automatic stop criteria A market sell order may execute when the conditions are met

The key point is that the price range and number of grids jointly determine order frequency and risk exposure. Increasing the number of grids does not increase profits; it only changes the number of fills and trading costs.

How does the OKX Grid Bot work?

Spot Grid divides the specified lower and upper price limits into multiple levels, placing buy orders below the current price and sell orders above it. When an order at one level is filled, the bot places an opposing order again within the configured range. This method is designed for markets where prices fluctuate within a range; it is not a feature that automatically generates profits in every market.

OKX's official help documentation explains that in strong trends or periods of sharp volatility, orders may not be filled; in a downtrend, filled buy orders may remain at a loss; and a large number of orders may lead to higher-than-expected trading costs. This document does not describe grid bots as products that guarantee investment returns.

What to check before configuring

1. Trading pair and spot status

This article focuses on Spot Grid. Select a spot trading pair, such as BTC/USDC, and distinguish it from futures grids, which have separate leverage, margin, and liquidation mechanics. For beginner steps on futures, see OKX Futures Trading: Beginner's Guide.

2. Price range

The lower limit is the lowest price at which the bot will operate, and the upper limit is the highest. If the market price falls below the lower limit or exceeds the upper limit, new orders may no longer be placed. Therefore, do not set a narrow range based only on recent prices; first decide what position you will leave open if the price moves outside the range.

3. Number of grids and mode

The number of grids is the number of steps into which the price range is divided. In arithmetic mode, the price difference between each step is fixed; in geometric mode, the price ratio between each step is fixed. Setting a larger number of grids can result in more frequent trading, but each order may be smaller and fees may increase.

4. Investment amount and emergency funds

The investment amount is the total amount used by the bot. Do not use living expenses, loan funds, or money you need immediately. Allocate only an amount you can afford to lose, assuming the bot could incur losses. Immediately after creating the bot, check the actual balance and bot details screen so you do not confuse the amount allocated to the bot with the separate account balance.

Official help documentation categorizes initial investment methods as quote currency, base asset, or a combination of the two. For BTC/USDC, BTC is the base asset and USDC is the quote currency. The initial buy and sell order setup varies depending on the method selected and the price when you start, so check the actual allocated assets and orders on the confirmation screen before creating the bot. Funds reserved for the bot should be distinguished from balances available for immediate use elsewhere.

Fixed ranges and trailing settings should be distinguished. According to the official description, Trailing Up moves the entire grid upward; the price-based TP remains fixed, while the SL moves up with the grid. Trailing Down extends the lower limit downward while keeping the upper limit in place, and may require additional funds; price-based TP and SL remain fixed. If you enable this feature, check not only the initial investment but also reserved funds and any additional available balance. The range may not expand if funds are insufficient, and buying as the price falls can increase your exposure. Check which features are actually available for your account, region, and settings.

Example of calculating the number of grids

As in OKX's official example, if you set the price range to 90,000–120,000 USDC and the number of grids to 6, the price difference between levels in arithmetic mode is as follows.

Grid interval = (upper limit − lower limit) ÷ number of grids = (120,000 − 90,000) ÷ 6 = 5,000 USDC

This calculation is only an example showing the interval between order levels; it does not represent a rate of return. Actual results depend on whether orders are filled, trading fees, spreads, price movements, and when you stop the bot. Geometric mode divides levels by a fixed ratio rather than the same price difference, so do not use the arithmetic formula for it.

Compare boundary prices and gaps by changing the lower price, upper price, interval count and arithmetic/geometric mode in the Spot Grid price-level preview. This is an illustrative calculation using hypothetical inputs, not real order placement, an account-settings check or a return forecast.

How to create a Spot Grid bot on OKX

  1. Log in to the OKX app or website.
  2. Go to Trade → Trading bot mode, then select Spot grid.
  3. Select a trading pair and either manual settings or an AI strategy based on backtesting.
  4. Enter the lower and upper price limits, number of grids, arithmetic or geometric mode, and investment amount.
  5. If needed, add TP and SL prices.
  6. Review the estimated number of orders, investment amount, fees, and risk notices, then create the bot.
  7. After creating it, check the bot's running status, unfilled orders, cumulative Grid Profit, and total unrealized profit and loss separately on the Bots screen.

OKX's official overview document instructs users to go to Trade → Trading bot mode → Spot grid on the web, where they can choose manual inputs or backtested AI parameters. An AI strategy is only a recommendation based on historical results, not a signal that guarantees future returns.

Grid profit and total profit and loss are different

Even if profit from completed buy-and-sell pairs is shown as Grid Profit, total profit and loss may be negative after accounting for unrealized losses on remaining base assets and other transaction costs. Official help documentation also distinguishes the number of filled orders from trades consisting of paired buys and sells. On the bot details screen, check grid profit, total profit and loss, holdings, fees, and fund movements separately. Do not assume that withdrawing some profits eliminates the risk associated with the remaining assets.

AKEYX hypothetical calculation: Buy 0.01 BTC at 100000 USDC/BTC, then sell all of it at 105000 USDC/BTC. Assuming a 0.1% fee on each buy and sell and converting everything to USDC, the purchase amount is 1000 USDC and the sale amount is 1050 USDC. Subtracting fees of 1 + 1.05 = 2.05 USDC from the 50 USDC price gain leaves 47.95 USDC. If unrealized losses on other holdings are 80 USDC, the combined total for these two items is −32.05 USDC. This does not claim to reflect your account's rates or OKX's profit-and-loss calculation. Check the actual fee currency, rate, fills, and deposits or withdrawals separately. This example excludes other trades, spreads, slippage, and withdrawal costs. As a spot example, it also excludes futures funding fees.

TP/SL and points to note when stopping

Official help documentation explains that when a price-based TP or SL is reached, the bot stops trading and sells the base asset at market price. Manual termination should be checked separately. The management section of the same document says you can choose to cancel unfilled orders and then sell at market or hold the assets, while the termination description also includes wording that refers to market liquidation. Therefore, do not assume that manual termination always sells or always holds. Check the actual termination confirmation screen for order cancellation, the sell/hold selection, and whether assets are returned to the trading account. If the options differ or their meaning is unclear, it is safer to confirm with official customer support before proceeding. When closing at market, the displayed price may differ from the actual fill price; if you hold the assets, price risk remains.

  • Setting TP/SL does not fix losses at a certain level.
  • If the price moves outside the range, the bot may not continue trading in the same way.
  • Closing at market may incur spreads and execution costs.
  • Before restarting the bot, check that existing orders and remaining assets have been handled.

Fees, funding fees, and the difference between spot and futures

Spot Grid is affected by spot trading fees and spreads. Check your fee tier and actual rates on your account screen, and refer to OKX Fee Check Guide for the steps. Futures grids also involve leverage, margin, funding fees, and liquidation, so they should not be calculated in the same way as Spot Grid. See OKX Funding Fee Guide for information on how funding fees are calculated and when they are paid.

Settings that can easily go wrong and risk checks

  • Setting the upper and lower limits too narrowly based only on recent prices
  • Assuming that increasing the number of grids automatically increases profits
  • Calculating only the grid interval while excluding fees and spreads
  • Ignoring the risk of buy fills accumulating during a downtrend
  • Failing to check the difference between the market price used to close at TP/SL and the actual fill price
  • Confusing the leverage and liquidation risks of futures grids with those of spot bots

Cryptocurrency trading involves risks of loss of principal, price volatility, network issues, liquidity, and liquidation. A grid bot is only an automated order tool; it is not a loss-prevention mechanism or a guarantee of profits.

Frequently asked questions

Are profits guaranteed with the OKX Grid Bot?

No. OKX's official help documentation also warns of losses and the possibility of unfilled orders during strong trends, sharp market moves, and downtrends. Do not interpret historical backtests or recommended parameters as future returns.

Are Spot Grid and Futures Grid the same?

No. Spot Grid is based on spot orders, while Futures Grid also involves position direction, margin, leverage, funding fees, and liquidation. Check the separate official FAQ for futures settings.

Is it better to set a larger number of grids?

Not necessarily. More grids can divide orders into smaller increments and increase the number of fills, but the size of each order may decrease and trading costs may rise.

What happens if the price moves outside the range?

According to OKX, new orders may stop outside the configured range. Check remaining assets and unfilled orders on the bot details screen, then decide whether to adjust the range or stop the bot.

When should I stop the OKX Grid Bot?

There is no one-size-fits-all answer. If the market persistently moves outside the configured range, or your investment goals, loss limits, or cash needs change, review the bot's realized and unrealized profit and loss, remaining assets, and fees together before considering whether to stop it.

Why is my overall P&L negative when my grid profit is positive?

This is because profits from completed buy and sell trades are different from the unrealized P&L on your remaining assets. Even if some trades are profitable, your overall P&L may be negative if losses on the value of your holdings and costs are greater. Check the profit items, holdings, fees, and fund movements together on the bot details screen.

Partial review: October 29, 2026. We cross-checked the initial investment method, tracking range, distinction between grid profit and overall P&L, and explanations of manual termination and price-based TP/SL against the official Spot Grid Help. Quantities, prices, and rates in the calculations are illustrative assumptions; this does not mean the entire existing article was reviewed anew. Check the terms actually available and termination options in your account and with official customer support. OKX Help

Official sources and review date

Final review date: September 19, 2026. Product availability, screen paths, fees, and regional conditions may vary by account and location, so check the actual OKX interface first.

Risk notice: This article explains the structure of OKX trading bots and what to check; it is not investment advice. Cryptocurrency trading and automated orders involve risks of loss of principal, volatility, liquidity, fees, networks, and liquidation.

Read in another language: 한국어
Scroll to Top