FREQTRADE INTEGRATION
Send Freqtrade backtest and Walk-Forward Analysis (WFA) results to Kiploks. No patches, no plugins - run your backtests as usual, then run the script to upload.
What you get
- Robustness analysis from your latest backtests
- WFA (Walk-Forward) generated automatically or from existing results
- Analyze links in Kiploks - no research_id needed
Get from GitHub
Clone the repo, copy kiploks-freqtrade into your Freqtrade root folder ft_userdata, remove .git from the copy if you do not need version control there, then set execute permission on the scripts (Mac/Linux only).
Mac
Windows
Folder structure:
Configuration
Required
api_url- Kiploks base URL (e.g.kiploks.com).api_token- API key. Get it in Kiploks: Header - API Keys; generate and copy. Without it, upload is skipped.
Optional
top_n- Number of results by date (default 3).wfaPeriods,wfaISSize,wfaOOSSize- WFA window settings.skip_already_uploaded- Skip results inuploaded.json(default true).
How to run
Docker
From project root (directory with docker-compose.yml, user_data/, kiploks-freqtrade/):
- Linux / macOS:
./kiploks-freqtrade/run-in-docker.shorbash kiploks-freqtrade/run-in-docker.sh - Windows (cmd):
kiploks-freqtrade\run-in-docker.bat
To run the script inside the container: ./kiploks-freqtrade/run-in-docker.sh (Linux/macOS) or kiploks-freqtrade\run-in-docker.bat (Windows).
After upload, the script prints analyze links (e.g. kiploks.com/analyze/xxx). You can also see all results on the Data page when logged in.
Troubleshooting
API errors (POST /api/integration/results) – as returned by the server
- 401
Missing Authorization header (Bearer API key required)(Next.js when no header)Missing or invalid Authorization header (Bearer API key required)(Nest when no Bearer token)Invalid or expired API token(Nest when token not found)
- 403
results must be a non-empty arrayMaximum number of stored tests reached. Delete some tests to save new ones.
- 400
Result at index N is missing required data for analysis. Do not send until all validations pass.(validation can fail e.g. Payload must be an object; Missing backtestResult or backtest; backtestResult.config/results required; Symbol missing or invalid; Missing walkForwardAnalysis or .periods; Period N: validationReturn must be a number; parameters.strategy must be a string)Benchmark is required for integration. Payload must have date range and timeframe (e.g. backtestResult.config.startDate/endDate and config.timeframe).Cannot compute benchmark: market data for this timeframe and date range is not available. Try a different period or timeframe.Benchmark computation failed for this result. Check payload has valid backtest data and date range.
- 429
Only one analyze request per minute is allowed.
- 502
Failed to submit results(Next.js when proxy request to Nest fails)
Other
Script exits with "Run this script from the Freqtrade environment" – run it via Docker (run-in-docker.sh or run-in-docker.bat on Windows) as in How to run above.