Fix: Freqtrade Proxy Not Working
When using Freqtrade, to bypass specific network restrictions, you often need to configure a proxy for exchange connections. However, you might find that even after adding the proxy parameters, the program still fails to communicate through the proxy network.
This situation usually happens for two reasons: First, the proxy configuration level or key name in your config.json is incorrect. Second, certain Freqtrade versions installed via pip have compatibility issues or lose context when underlying dependencies (like CCXT) handle proxy passing.
✅ Solution: Ensure you use the standard ccxt_config proxy format. If the format is correct but the proxy is still ignored, uninstall the pip version and instead pull the source code via git to run it.
Here are the complete steps to fix it:
1. Use the standard proxy configuration format
Open your config.json file and ensure the proxy parameters are strictly defined under the exchange.ccxt_config node:
{
"exchange": {
"ccxt_config": {
"httpsProxy": "http://addr:port",
"wsProxy": "http://addr:port"
}
}
}
2. Uninstall the ineffective pip version If the configuration is confirmed to be correct but the proxy still doesn't work, uninstall Freqtrade from your current environment in the terminal:
pip uninstall freqtrade
3. Pull the source code using Git and reconfigure the environment Pull the latest code directly from the official repository and use the provided script to reinitialize the environment. This typically resolves proxy network anomalies caused by solidified pip package dependencies:
git clone https://github.com/freqtrade/freqtrade.git
cd freqtrade
./setup.sh -i