Quant2Ptrader

Converts Ju Quant strategies to Ptrade format, with auto-save and detailed conversion reports.
  • typescript

11

GitHub Stars

typescript

Language

5 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs

You can run Quant2Ptrader-MCP to automatically convert Ju Quant (JQData) strategies into Ptrade format, enabling seamless integration with the Ptrade platform. This MCP server supports both local stdio execution and HTTP-based access, saves converted strategies, and provides detailed reports to help you review changes.

How to use

Use an MCP client to convert Ju Quant strategies to Ptrade format. You can provide raw strategy code or point to a file path. The server will return an output file containing the Ptrade-equivalent code, a conversion report detailing all changes, and any compatibility notes.

If you prefer to pass long or complex strategies, supply a file path and the server will process the file and save the converted result to the same directory or to a specified output directory. The output file will be named by appending _ptrade to the original name.

How to install

Prerequisites: you need a modern Node.js runtime installed on your machine.

Install dependencies for the MCP server, build, and start in one of the supported modes. Use the commands below exactly as shown.

Install dependencies and build the project

Additional sections

Configuration and runtime details are provided for both stdio and HTTP modes. The MCP server can be run locally in stdio mode or accessed over HTTP.

Configuration overview

{
  "mcpServers": {
    "quant2ptrader": {
      "type": "stdio",
      "command": "npm",
      "args": ["run", "start:stdio"]
    }
  },
  "envVars": []
}

Troubleshooting and notes

If you encounter issues with API compatibility, review the transformation report which highlights changes and any parts that may require manual adjustment. Ensure you are using the appropriate mode (stdio for local execution or http for remote access) according to your workflow.

Tips for best results

For long or complex strategies, pass the file path to avoid truncation. The server will automatically save the converted strategy as a .py file with a name derived from the input, such as my_strategy.py → my_strategy_ptrade.py.

Available tools

convertStrategy

Core transformation engine that converts Ju Quant strategy code to Ptrade format, auto-detecting API usage and applying mapping rules.

generateReport

Produces a detailed report of all changes, compatibility notes, and potential manual adjustments.

startServer

Launches the MCP server in the selected mode (stdio or http) and handles input/output flow.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational