โš”๏ธSpot vs Futures: Trading Modes and Leverage Configuration

This article was produced by the Quantitative Trading Lab at https://www.itrade.icu. Visit for more benefits. When using Freqtrade, the choice of trading mode directly affects your strategy logic, risk management, and order behavior. You can choose spot trading or futures trading with leverage. Different modes require different configuration parameters, such as margin_mode, leverage, and liquidation_buffer.

This guide explains the purpose, use cases, and practical considerations for these settings to help you build a sound risk management system.


๐Ÿ’ฑ trading_mode โ€” Trading Mode

"trading_mode": "spot"
  • Determines whether Freqtrade operates on the spot or futures market.

  • Options:

    • "spot": Spot mode; buy and hold, cannot short.

    • "futures": Futures mode; supports leverage, long and short positions, more flexibility but higher risk.

๐ŸŸข Spot Mode Features

  • Only supports buying low and selling high; suitable for bullish markets.

  • Simple trading logic; no leverage management needed.

  • Recommended for beginners or stable strategies.

๐Ÿ”ด Futures Mode Features

  • Supports long and short positions; suitable for sideways or bearish markets.

  • Leverage amplifies gains and losses.

  • Requires additional risk management: position sizing, liquidation buffers, isolated/cross margin, etc.

โœ… Practical Tip:

  • Beginners should start with "spot".

  • Once familiar, switch to "futures" and enable risk management parameters.


๐Ÿงฎ margin_mode โ€” Futures Margin Type

margin_mode only applies when trading_mode: "futures". It has no effect in spot mode and will be ignored there. It sets the margin type per position.

Options:

Value
Meaning
Notes

"isolated"

Isolated Margin

Each positionโ€™s risk is independent; liquidation in one position does not affect others. Recommended for beginners.

"cross"

Cross Margin

All positions share account balance; mismanagement may liquidate the entire account.

โœ… Recommended:

  • Use "isolated" for safer position management.


๐Ÿ’ฅ leverage โ€” Leverage Setting

Freqtrade supports dynamic leverage in strategies, and you can set different leverage for different pairs.

๐Ÿ“Œ Example Strategy:

โš ๏ธ Notes

  • Leverage is only applicable in "futures" mode.

  • Must return a float.

  • If leverage() is not implemented, Freqtrade will use the exchange accountโ€™s default settings.

  • Some exchanges limit maximum leverage (e.g., Binance 20โ€“125x).

โœ… Practical Tip:

  • Start with 2โ€“5x leverage.

  • Leverage amplifies both gains and losses, so combine with stop-loss and buffer mechanisms.


๐Ÿ›ก๏ธ liquidation_buffer โ€” Liquidation Buffer

  • Only for "futures" mode.

  • Reduces usable balance to avoid full exposure, lowering liquidation risk.

  • 5% buffer means 5% of account balance is reserved.

๐Ÿ“Œ Example:

Total Account Balance
liquidation_buffer
Max Usable Balance

1000 USDT

0.05 (5%)

950 USDT

1000 USDT

0.2 (20%)

800 USDT

โœ… Recommended:

  • Beginners: 0.05โ€“0.1

  • High-leverage strategies: 0.2


๐Ÿ“Œ Pair with strategy leverage:


๐Ÿ“Š Mode Comparison

Setting
Spot Mode
Futures Mode

Shorting Supported

โŒ No

โœ… Yes

Leverage Supported

โŒ No

โœ… Yes

Risk Management Requirements

Low

High (stop-loss, position control)

Recommended Margin Type

-

"isolated"

Leverage Logic Required

โŒ No

โœ… Recommended dynamic

Supports liquidation_buffer

โŒ No

โœ… Strongly recommended


๐Ÿ” Live Trading Risk Management Recommendations

Control
Suggested Practice

margin_mode

"isolated" to prevent one liquidation affecting entire account

leverage

Start with 2โ€“3x; increase after backtesting

liquidation_buffer

0.05โ€“0.2 to reduce full exposure risk

Stop-loss Configuration

Use stoploss or custom_stoploss

Position Limits

Use max_open_trades to control open positions


๐Ÿง  Summary

Parameter
Description
Recommended Range

trading_mode

Trading mode (spot/futures)

"spot" or "futures"

margin_mode

Margin type (futures only)

"isolated"

liquidation_buffer

Reserved account balance for futures

0.05โ€“0.2

leverage()

Dynamic leverage in strategy

2.0โ€“5.0

Last updated