Fee Optimization
Fee Optimization
Every grid trade incurs fees twice: once when buying and once when selling. If your grid spacing is too tight, fees consume all your profit or even make each trade a net loss. Understanding fee structures and calculating your minimum profitable spacing is essential for a profitable grid bot.
Maker vs Taker Fees
Exchanges charge different fees depending on whether your order adds liquidity (maker) or removes it (taker).
- Maker orders are limit orders that sit on the order book waiting to be filled. They add liquidity and receive lower fees, typically 0.01-0.05%.
- Taker orders are orders that execute immediately against existing orders. They remove liquidity and pay higher fees, typically 0.05-0.10%.
Grid bots primarily use limit orders for both entries and take-profits. This means most of your orders should qualify for maker fees. However, during fast market moves or when using market orders for bootstrap, you may pay taker fees.
The Round-Trip Fee
Every completed grid trade involves two transactions: a buy and a sell. The total cost is the sum of both fees, called the round-trip fee.
Round-trip fee = Entry fee + Exit fee
If your maker fee is 0.02% for both entry and TP:
- Round-trip fee = 0.02% + 0.02% = 0.04%
If entry is a maker order (0.02%) but your TP fills as taker (0.05%):
- Round-trip fee = 0.02% + 0.05% = 0.07%
Minimum Profitable Spacing Formula
Your grid spacing (the percentage distance between adjacent grid levels) must exceed the round-trip fee for each trade to be profitable.
Minimum spacing = Round-trip fee + Slippage buffer
The slippage buffer accounts for price impact and rounding. A safe value is 0.02-0.05%.
For a typical setup with 0.02% maker fees:
- Minimum spacing = 0.04% + 0.03% = 0.07%
For a setup with mixed maker/taker:
- Minimum spacing = 0.07% + 0.03% = 0.10%
Any grid spacing below this number means you are paying the exchange to trade, not earning profit.
Calculating Your Grid Spacing
Grid spacing as a percentage is:
Spacing % = (Grid high - Grid low) / Grid levels / Mid price x 100
Example: Grid low = $90, Grid high = $110, Levels = 40, Mid price = $100
- Spacing = ($110 - $90) / 40 / $100 x 100 = 0.50%
This 0.50% spacing is well above the 0.07% minimum, leaving 0.43% net profit per trade.
The Fee-Spacing Sweet Spot
Having spacing far above the minimum is not always better. Wider spacing means fewer trades. The goal is to find the sweet spot where:
- Each trade is comfortably profitable (spacing > 2x minimum).
- Trades occur frequently enough to generate meaningful total returns.
- Capital is deployed efficiently across the grid.
A practical target is spacing of 3-5x the round-trip fee. This provides a healthy margin on each trade while keeping frequency reasonable.
| Round-trip Fee | Minimum Spacing | Recommended Spacing |
|---|---|---|
| 0.04% | 0.07% | 0.15-0.25% |
| 0.07% | 0.10% | 0.25-0.40% |
| 0.10% | 0.13% | 0.35-0.50% |
| 0.15% | 0.18% | 0.50-0.75% |
Reducing Fee Impact
Several strategies can reduce fee impact on your grid bot:
Use limit orders exclusively. The bot places limit buy orders below market and limit sell (TP) orders above market. Both should fill as maker orders in normal conditions.
Avoid unnecessary bootstrap market orders. Market orders for missed grid levels during startup pay taker fees. If your grid is not time-sensitive, consider placing limit orders and waiting for fills instead.
Check fee tiers. Many exchanges offer volume-based fee discounts. Higher 30-day trading volume can reduce your fees significantly, which directly improves grid profitability.
Account for funding rates. On perpetual futures, you also pay or receive funding every 8 hours. Sustained negative funding can erode grid profits. Factor this into your cost calculations for positions held longer than a few hours.
Summary
- Every grid trade pays fees twice (buy and sell), so your spacing must exceed the round-trip fee plus a slippage buffer.
- Calculate your actual spacing percentage and verify it is at least 2-3x your round-trip fee for comfortable profitability.
- Use maker (limit) orders for both entries and exits to minimize fee costs.
Next Step
Learn how leverage affects your grid profitability and risk in the Leverage Selection Guide.
✨ Was this article helpful?
Ask your questions on Ask on Discord →