π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_whitelistandpair_blacklistmechanisms, 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
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"
]
}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
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
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)
Regular Review
Check lists weekly or monthly to ensure they match current market conditions
Combine with Position Limits
If whitelist is broad, use
max_open_tradesto control open positions
Multi-Strategy Isolation
Each strategy can have its own coin range to avoid interference (recommend separate config.json files)
π§ Summary Checklist
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