πŸ“˜Chapter 7: Whitelist and Blacklist Mechanism β€” Trade Only the Coins You Want

This article was produced by the Quantitative Trading Lab at https://www.itrade.icu. Visit for more benefits. In the crypto market, trading pairs are abundant, but their quality varies greatly. Freqtrade provides the pair_whitelist and pair_blacklist mechanisms, allowing you to precisely select the coins you want to trade. This helps avoid trading β€œlow-quality” or low-liquidity coins and improves strategy stability and safety.

These two parameters are flexible and practical, making them essential tools for every quantitative trader.


🎯 One-Sentence Principle

Parameter
Function

pair_whitelist

Only allow trading of these pairs; all others are ignored

pair_blacklist

Prohibit trading of these pairs; all others are allowed (unless excluded by whitelist)

βœ… If both are configured: Tradable pairs = pair_whitelist βˆ’ pair_blacklist ❗ Ensure the pair format matches the exchange (e.g., "BTC/USDT").


🧩 Configuration Structure

"exchange": {
  "pair_whitelist": [
    "BTC/USDT",
    "ETH/USDT",
    "SOL/USDT"
  ],
  "pair_blacklist": [
    "DOGE/USDT",
    "LUNC/USDT"
  ]
}
Field
Type
Description

pair_whitelist

Array

List of allowed trading pairs

pair_blacklist

Array

List of prohibited trading pairs; can be combined with whitelist


βœ… Common Use Cases

βœ… 1. Precisely Control Trading Pairs (Trade Only Core Coins)

If you only want to trade major coins like Bitcoin or Ethereum:

πŸ”’ All other pairs will be ignored, ensuring the strategy focuses on highly liquid and widely accepted assets.


βœ… 2. Exclude Specific High-Risk Pairs

If you want to trade multiple coins but exclude volatile or problematic ones:

βœ… This prevents accidental exposure to high-risk coins.


βœ… 3. Dynamic Management with Automated Filtering

You can dynamically generate the whitelist or blacklist via external scripts based on:

  • 24-hour trading volume ranking

  • Market capitalization ranking

  • Time since listing

  • Regulatory risk, etc.

This enables smart coin selection + blacklist exclusion as a combined risk-control approach.


πŸ” Whitelist vs Blacklist: Detailed Comparison

Feature
pair_whitelist
pair_blacklist

Control Method

Only allow listed pairs

Exclude listed pairs; others are tradable

Purpose

Select high-quality targets, limit strategy scope

Broad trading while excluding risky coins

Flexibility

Low; must manually list all pairs

High; only maintain pairs to exclude

Recommended Scenario

Conservative strategies; backtesting aligned with live trading

Automated selection strategies or momentum strategies needing wide coverage


πŸ“Œ Combined Usage Recommendation

You can use both whitelist and blacklist for finer control:

πŸ‘† Final tradable pairs: BTC/USDT, ETH/USDT ❗ Coins in the blacklist (XRP/USDT) are excluded even if they appear in the whitelist.


πŸ’‘ Practical Tips & Techniques

  1. Combine Dynamic Management

    • Whitelist: Use automated scripts to fetch top N coins by volume for trading

    • Blacklist: Manually maintain long-term problem coins (e.g., low liquidity, abandoned projects)

  2. Regular Review

    • Check lists weekly or monthly to ensure they match current market conditions

  3. Combine with Position Limits

    • If whitelist is broad, use max_open_trades to control open positions

  4. Multi-Strategy Isolation

    • Each strategy can have its own coin range to avoid interference (recommend separate config.json files)


🧠 Summary Checklist

Parameter
Description
Recommended Practice

pair_whitelist

Clearly allow specific trading pairs

Select high-quality pairs consistent with strategy targets

pair_blacklist

Clearly prohibit specific trading pairs

Exclude risky, volatile, or low-liquidity coins

Combined Use

whitelist βˆ’ blacklist

Precisely control core targets while avoiding temporary high-risk coins


By combining pair_whitelist and pair_blacklist, Freqtrade allows precise coin-level trading control, improving strategy stability and preventing losses due to low-quality pairs.

πŸ“Œ Next time, no more excuses like β€œthe strategy lost because it traded a weird coin.” Start with proper configuration!

Last updated