Best for
- Quant traders using both JoinQuant and Ptrade who need to migrate strategies
- Developers who want fast automated API-difference replacements plus clear notes on what still needs manual work
A focused migration tool: it leverages API similarity between JoinQuant and Ptrade to auto-handle imports, logging, position access, and history-data calls, producing a risk-annotated report and a directly usable .py file. Practical, but rules are pattern-based, so complex strategies still require human review and backtesting. The repository metadata shows NOASSERTION for license (README states Apache 2.0), so verify licensing before use.
Quant2Ptrader-MCP is a Model Context Protocol server that automatically converts JoinQuant quantitative strategy code into Ptrade platform format. It accepts code directly or file paths (.py/.txt/.text/.code/.strategy), detects and rewrites differing APIs (imports, logging functions, position access, history data calls, etc.), produces a detailed conversion report with risk notes, and auto-saves the result as a _ptrade.py file. Developed by Xingyu Chen, published on npm as quant2ptrader-mcp, and supports both stdio and HTTP modes.
{"mcpServers":{"quant2ptrader":{"command":"npx","args":["-y","quant2ptrader-mcp"]}}}