Fee Optimization
Fee Optimization
Every grid trade incurs fees twice: once when buying and once when selling. Se vocer grid spacing is too tight, fees consume all seu lucro 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 se sua ordem adds liquidity (maker) or removes it (taker).
- Maker orders are ordem limites that sit on the livro de ordens 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 ordem limites for ambos entries and take-profits. Isso significa most of sua ordems should qualify for maker fees. No entanto, during fast market moves or when using ordem de mercados 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 ambos fees, called the round-trip fee.
Round-trip fee = Entry fee + Exit fee
Se vocer maker fee is 0.02% for ambos 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 nivel de grids) 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 voce esta paying o 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
Exemplo: 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. O objetivo 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 o 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 ordem limites exclusively. O bot places limit ordem de compras below market and limit sell (TP) orders above market. Both should fill as maker orders in normal conditions.
Avoid unnecessary bootstrap ordem de mercados. Market orders for missed nivel de grids during startup pay taker fees. Se vocer grid is not time-sensitive, consider placing ordem limites and waiting for fills instead.
Check fee tiers. Many exchanges offer volume-based fee discounts. Altaer 30-day trading volume can reduce your fees significantly, which directly improves grid profitability.
Account for taxa de financiamentos. On futuros perpetuos, 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.
Resumo
- Every grid trade pays fees twice (compra e venda), so your spacing must exceed the round-trip fee plus a slippage buffer.
- Calculate your actual spacing percentage and verify e at least 2-3x your round-trip fee for comfortable profitability.
- Use maker (limit) orders for ambos entries and exits para minimizar fee costs.
Proximo Passo
Learn how leverage affects your grid profitability and risk in the Leverage Selection Guide.
✨ Este artigo foi util?
Faca suas perguntas no Discord →