KTX Perpetual Contract Grid Bot can automatically execute long and short contract orders 24/7, helping users seize investment opportunities in volatile markets and maximize returns.
A grid bot is a classic automated trading strategy that executes long and short trades at preset grid intervals within a predefined price range. It fully leverages price fluctuations to buy low and sell high, delivering substantial returns for users in ranging markets.
How does the KTX Perpetual Contract Grid Bot work?
KTX Perpetual Contract Grid Bot supports 3 trading modes: Long, Short and Neutral. The operating mechanism of each mode is explained in detail below.
Long
The Long mode is suitable for ranging uptrend markets. The long grid strategy will open long positions at the current market price, and sell to close long positions when the price rises, earning spread profits from the trades.
Example
Assume Trader A creates a Perpetual Contract Grid Bot strategy with the following parameters:
- Derivatives Trading Pair: BTCUSDT
- Market Price: 19,000 USDT
- Highest Price: 30,000 USDT
- Lowest Price: 10,000 USDT
- Number of Grids: 5
- Grid Mode: Geometric
- Leverage: 2x
- Price Interval: 24.57% ≈ (30,000/10,000)^(1/5) – 1
Tip
Geometric: The price ratio between adjacent grids is constant. For example, if the price interval is 24.57%, the price of the next order will be 24.57% higher than the previous order.
The system will automatically calculate the corresponding price of each grid and place orders with 2x leverage. Once the Perpetual Contract Grid Bot strategy is successfully activated, orders will be placed according to the following parameters:
| Price (USDT) | Order Type |
| 30,000 | Limit Sell (Close Long) |
| 24,082 | Limit Sell (Close Long) |
| 19,331 | No Order Will Be Placed |
| Market Price: 19,000 USDT | |
| 18,000 | Limit Buy (Open Long) |
| 14,000 | Limit Buy (Open Long) |
| 10,000 | Limit Buy (Open Long) |
When the price of BTC rises to 19,331 USDT, no orders will be triggered. In a one-sided market, if the price of BTC rises to 24,082 USDT, the bot will fill the sell order at 24,082 USDT and place a buy order at 19,331 USDT.
If the price continues to rise and reaches 30,000 USDT, the bot will fill the sell order at 30,000 USDT and place a buy order at 24,082 USDT. However, if the price falls back to 19,331 USDT, the bot will fill the buy order at 19,331 USDT and place a sell order at 24,082 USDT.
The grid bot only operates within the preset upper and lower price range. When the price of BTC rises above 30,000 USDT or falls below 10,000 USDT, the grid bot will not place new orders until the price returns to the range.
If the market price exceeds the preset range, you can choose to close the contract grid bot, or wait for the price to return to the range, at which point the grid strategy will automatically resume. After closing the bot, all your pending orders will be canceled, and positions will be closed at the current market price. Your assets will be automatically deposited into your funding account.
Short
Short mode is suitable for ranging downtrend markets. The short grid strategy will open short positions at the market price, then buy to close short positions when the price falls, earning spread profits from the trades.
Example
Assume Trader A creates a Contract Grid Bot strategy with the following parameters:
- Derivatives Trading Pair: BTCUSDT
- Market Price: 20,000 USDT
- Highest Price: 30,000 USDT
- Lowest Price: 10,000 USDT
- Number of Grids: 5
- Grid Mode: Arithmetic
- Leverage: 2x
- Price Interval: 4,000 = (30,000 − 10,000)/5
Tip
Arithmetic: The price difference between adjacent grids is constant. For example, if the price interval is 4,000 USDT, the price of the next order will be 4,000 USDT higher than the previous order.
The system will automatically calculate the corresponding price of each grid and place orders with 2x leverage. Once the Contract Grid Bot strategy is successfully activated, orders will be placed according to the following parameters:
| Price (USDT) | Order Type |
| 30,000 | Limit Sell (Open Short) |
| 26,000 | Limit Sell (Open Short) |
| 22,000 | Limit Sell (Open Short) |
| Market Price: 20,000 USDT | |
| 18,000 | No Order Will Be Placed |
| 14,000 | Limit Buy (Close Short) |
| 10,000 | Limit Buy (Close Short) |
When the price of BTC falls to 18,000 USDT, no orders will be triggered. In a one-sided market, if the price of BTC drops to 14,000 USDT, the bot will fill the buy order at 14,000 USDT and place a sell order at 18,000 USDT.
If the price continues to fall and reaches 10,000 USDT, the bot will fill the buy order at 10,000 USDT and place a sell order at 14,000 USDT. However, if the price rises back to 18,000 USDT, the bot will fill the sell order at 18,000 USDT and place a buy order at 14,000 USDT.
The grid bot only operates within the preset upper and lower price range. When the price of BTC rises above 30,000 USDT or falls below 10,000 USDT, the grid bot will not place new orders until the price returns to the range.
If the market price exceeds the preset range, you can choose to close the contract grid bot, or wait for the price to return to the range, at which point the grid strategy will automatically resume. After closing the bot, all your pending orders will be canceled, and positions will be closed at the current market price. Your assets will be automatically deposited into your funding account.
Neutral
In Neutral mode, the bot will not open any initial positions. The bot will place long orders when the price is below the base price, and place short orders when the price is above the base price. When the market price reaches the preset price, the bot will open long/short positions according to the direction of the filled order.
Example
Assume Trader A creates a Contract Grid Bot strategy with the following parameters:
- Derivatives Trading Pair: BTCUSDT
- Market Price: 20,000 USDT
- Highest Price: 30,000 USDT
- Lowest Price: 10,000 USDT
- Number of Grids: 5
- Grid Mode: Arithmetic
- Leverage: 2x
- Price Interval: 4,000 = (30,000 − 10,000)/5
Tip
Arithmetic: The price difference between adjacent grids is constant. For example, if the price interval is 4,000 USDT, the price of the next order will be 4,000 USDT higher than the previous order.
The system will automatically calculate the corresponding price of each grid and place orders with 2x leverage. Once the Contract Grid Bot strategy is successfully activated, orders will be placed according to the following parameters:
| Price (USDT) | Order Type |
| 30,000 | Short |
| 26,000 | Short |
| 22,000 | No initial position will be opened |
| Market Price: 20,000 USDT | |
| 18,000 | Long |
| 14,000 | Long |
| 10,000 | Long |
When the price of BTC reaches 18,000 USDT, the bot will execute the long order, and place a short order at the next grid (22,000 USDT). When the price rises to 22,000 USDT, the bot will execute the short order, then sell to close the long position, and place a long order at 18,000 USDT, thus completing a full grid trading cycle and earning profits from the price spread.
The grid bot only operates within the preset upper and lower price range. When the price of BTC rises above 30,000 USDT or falls below 10,000 USDT, the grid bot will not place new orders until the price returns to the range.
If the market price exceeds the preset range, you can choose to close the contract grid bot, or wait for the price to return to the range, at which point the grid strategy will automatically resume. After closing the bot, all your pending orders will be canceled, positions will be closed at the current market price, and your assets will be automatically deposited into your funding account.
Risk Warning
In contract trading, when the mark price reaches the liquidation price, your positions will face the risk of forced liquidation. We recommend that you set a stop-loss ratio to control potential losses.
Note
The contract grid strategy will use the assets in your KTX wallet account. After the strategy is successfully created, it will be enabled in the quant account.