Trading Fees, Slippage and Funding: The Hidden Costs of Trading Bots
Costs are the main reason trading bots that look profitable lose money live. A bot that trades often pays them on every trade.
Fees
Exchanges charge a taker fee when you take liquidity (market orders, stops) and a lower maker fee when your resting limit order fills. A typical perp taker fee is around 0.035% to 0.06% per side. A round trip (entry and exit) costs double.
Slippage
Your fill is usually a little worse than the last traded price. The gap grows with order size and with thinner, more volatile coins. We model slippage per side and add extra impact for small, illiquid markets.
Funding
Perpetual futures have no expiry, so longs and shorts pay each other a funding rate, usually every 1 to 8 hours. When the market leans long, longs pay shorts. Held for days, funding can cost more than fees. Our backtester charges or credits the actual historical funding rates where the exchange publishes them.
A worked example
Take a bot that makes 200 round trips a month with 0.045% taker fees and 0.05% slippage per side. Each round trip costs about 0.19% of the position. Across 200 trades that is roughly 38% of one position's size every month in costs, before the strategy has made anything. That's why we always show results after costs.