← All tools · Guides

How to choose between QMT and PTrade: MiniQMT, fees, and a model API

A choosing guide. You have decided a program should send orders. QMT or PTrade?

Short answer: QMT and PTrade differ by where the code runs. If you want Python libraries you installed, outside data, or a model API, choose QMT and write with MiniQMT plus xtquant: tick minimal mode at login, and the strategy runs in your own Python. The full client uses its built-in Python 3.6. If you do not want a computer left on, and the strategy uses only the platform's built-in data and libraries, choose PTrade, which hosts the strategy in the broker's machine room. Open an account at a broker that offers it, paper-trade first, then go live.

How to choose: If you want your own Python libraries, outside data, or a model API, choose QMT and write the strategy with MiniQMT plus xtquant. If you do not want a computer left on, and the strategy uses only the platform's built-in data and libraries, choose PTrade. If you are still learning and only want a backtest, start with a hosted site such as JoinQuant or RiceQuant. If you want the data, the backtest, and the orders on machines you control, use an open-source framework such as vn.py. Neither terminal is sold as a download. The first step is an account at a broker that offers it. Thresholds and fees follow that broker's own disclosures. Paper-trade first, then a live account. This page compares QMT and PTrade only. It is not the six-platform overview, not the tool-order guide, and not the site FAQ.

Who it is for: Someone who has already decided a program should send orders on their own stock account, and is choosing between QMT and PTrade. What you need is where the code runs, whether you can install libraries and call a model API, what MiniQMT is, how to apply, whether there is a fee, and the programmatic-trading report in force from July 2025.

Who it is not for: Someone still comparing JoinQuant, RiceQuant, MyQuant, and BigQuant, or who wants the order of data, then a backtest, then paper trading. Thresholds and fees differ by broker, and this page does not publish a number for them. Opening a cloud server and connecting over SSH is a different article, and that walkthrough uses Ubuntu. QMT needs a Windows image. This page is not the six-platform overview and not the site FAQ.

The same guide in Chinese is how to choose between QMT and PTrade. The wider comparison of broker terminals and hosted sites is how to choose a quant trading platform. That comparison is not this article. An open-source backtesting framework on a machine you control is how to choose a backtesting framework. After a backtest passes, the two-week ledger is paper trading. A lightweight Ubuntu desk for crawlers and cron is the cloud quant desk. That desk does not run QMT.

This site has no commercial relationship with ThinkTrader, Hundsun, or any broker, and it does not offer account-opening links. Facts below follow the Chinese guide. They were checked on 21 Oct 2026 against the ThinkTrader knowledge base, the Shanghai Stock Exchange texts, and a third-party compilation of the PTrade docs. Opening conditions and fees follow the broker. This is not investment advice. Programmatic trading can lose money. A backtest is not a future return.

01 · One table

QMTPTrade
Who makes itThinkTraderHundsun
Where the code runsYour own computerThe broker's machine room (hosted)
Must the computer stay on?YesNo
What you write inMiniQMT + xtquant (your own Python), or the client's built-in Python 3.6The platform's built-in Python, in a style close to JoinQuant
Can you install third-party libraries?Yes, with xtquant. The built-in Python may be limited by a broker whitelistOnly libraries on the built-in list (third-party compilation)
Can you call a model API?Yes, with xtquant, in your own environment. The built-in Python follows the broker's limitsFollow the broker's own disclosures
Paper tradingThe ThinkTrader community can grant a 7x24 simulationFollow the broker's own disclosures
How you get itOpen an account at a broker that offers QMT, then applyOpen an account at a broker that offers PTrade, then apply

02 · QMT, MiniQMT, and the research terminal

The ThinkTrader beginner guide describes two products. Broker QMT is for trading, and you apply through a broker. The research terminal is for strategy research, and you register and buy it on ThinkTrader's research site. An individual who wants a program to send orders on their own stock account uses broker QMT.

Checking "minimal mode" at login enters MiniQMT. It is not mainly a charting app. It gives xtquant a connection. xtquant is ThinkTrader's Python library on top of MiniQMT. It has two modules, market data (xtdata) and trading (xttrader): place an order, cancel, query assets, and query positions. The docs say you must start the MiniQMT client before a program that uses xtquant. You install xtquant from a zip on the ThinkTrader knowledge base, not with pip. It supports 64-bit Python 3.6 through 3.12. The May 2025 release notes also list Python 3.13.

Leave minimal mode off and you get the full QMT client, often called big QMT. It embeds Python 3.6 and runs the strategy inside the client. NumPy and Pandas are included. Every strategy runs on the same thread. Multithreading and multiprocessing are not available.

People writing Python strategies mostly use MiniQMT plus xtquant. The strategy is an ordinary Python program. You choose the version, the libraries, and the debugger.

03 · PTrade's hosted mode: what you gain and what you give up

PTrade is Hundsun's quant trading terminal. Hundsun's site does not publish a manual. The points below come from a third-party compilation, the PTrade API docs. The version your broker runs controls:

The cost: the code lives in the broker's machine room, and the data is what the platform provides. We did not find a public note we could check on whether that room can reach the public internet. Follow the broker's own disclosures.

04 · How to apply

The two flows are roughly the same:

  1. Open an account at a broker that offers QMT or PTrade. If you already have an account, ask that broker first.
  2. Apply to the broker. Sign the supplemental agreement on programmatic trading and fill in the report, as in section 07.
  3. Download the client from the channel the broker gives you, and log in with the account the broker issues.

Thresholds: whether there is an asset threshold, and how high it is, differs by broker and sometimes by branch. Follow the broker. The ThinkTrader community keeps a list of which brokers support QMT, in high, medium, and low tiers (edited April 2025). Use it to see who offers the terminal, then ask for the actual conditions. Claims on the web of the form "this broker opens it at this asset level" were not checked broker by broker, and they are not copied here.

No similar public list was found for PTrade. Follow the broker there too.

05 · Fees

We did not find a public broker page that states a fee schedule for QMT or PTrade. Before you apply, ask three things: whether the software itself costs money; whether there is a monthly or yearly fee; and whether opening it is tied to the commission rate, assets, or volume. Follow the broker's own disclosures.

06 · A model API, or an AI strategy: which one

If the strategy should call an API such as DeepSeek or Qwen, or run a research agent such as TradingAgents-CN, the question is whether the code can reach the public internet and whether you can install the libraries it needs. The Docker deploy note is Chinese only.

In short: if you want AI, prefer MiniQMT plus xtquant.

07 · The programmatic-trading report

The CSRC published the Securities Market Programmatic Trading Management Provisions (Trial) on 15 May 2024. The Shanghai Stock Exchange Programmatic Trading Management Implementation Rules took effect on 7 July 2025. Three points matter most for an individual:

The points above are the SSE rules. Trading on the Shenzhen Stock Exchange follows the SZSE rules. The broker tells you which set applies.

08 · The computer has to stay on

A QMT program runs on your own computer. During the session both the computer and MiniQMT have to stay on. The ThinkTrader install notes are written for Windows. Do not put the install directory on the C drive, or you may have to run as administrator. Two common setups follow: a Windows computer at home that stays on, or a cloud server with a Windows image.

The cloud-server note on this site, opening a server and connecting over SSH (Chinese), uses Ubuntu. It fits data collection, backtests, and a research agent. The English edition of that desk, which is a different article, is the cloud quant desk. To run QMT, choose a Windows image instead. PTrade is hosted in the broker's machine room, so this problem does not apply.

09 · Pitfalls

10 · How to choose

Frequently asked questions

How to choose between QMT and PTrade?

If you want your own Python libraries, outside data, or a model API, choose QMT and write the strategy with MiniQMT plus xtquant. If you do not want a computer left on, and the strategy uses only the platform's built-in data and libraries, choose PTrade. If you are still learning and only want a backtest, start with a hosted site such as JoinQuant or RiceQuant. If you want the data, the backtest, and the orders on machines you control, use an open-source framework such as vn.py. Neither terminal is sold as a download. The first step is an account at a broker that offers it. Thresholds and fees follow that broker's own disclosures. Paper-trade first, then a live account. This page compares QMT and PTrade only. It is not the six-platform overview, not the tool-order guide, and not the site FAQ.

Who it is for?

Someone who has already decided a program should send orders on their own stock account, and is choosing between QMT and PTrade. What you need is where the code runs, whether you can install libraries and call a model API, what MiniQMT is, how to apply, whether there is a fee, and the programmatic-trading report in force from July 2025.

Who it is not for?

Someone still comparing JoinQuant, RiceQuant, MyQuant, and BigQuant, or who wants the order of data, then a backtest, then paper trading. Thresholds and fees differ by broker, and this page does not publish a number for them. Opening a cloud server and connecting over SSH is a different article, and that walkthrough uses Ubuntu. QMT needs a Windows image. This page is not the six-platform overview and not the site FAQ.

Which is better, QMT or PTrade?

It depends on whether you need your own Python environment. If you want libraries you installed, outside data, or a model API, choose QMT and write the code with MiniQMT plus xtquant. If you do not want a computer left on, and the strategy uses only the platform's built-in data and libraries, choose PTrade. Both require an account at a broker that offers the terminal, and then an application.

What is the difference between QMT and PTrade?

The largest difference is where the program runs. QMT runs on your own computer. A PTrade strategy is hosted in the broker's machine room. QMT needs the computer left on. PTrade keeps running when the computer is off. MiniQMT plus xtquant can use the Python you installed and third-party libraries. PTrade can use only the platform's built-in libraries, according to a third-party compilation of the PTrade docs. The version your broker runs controls.

What is the difference between QMT and MiniQMT?

MiniQMT is the form you enter by checking minimal mode when you log in to QMT. It gives the xtquant Python library its market-data and trading connection, and the strategy is written in your own Python. The full QMT client, often called big QMT, runs strategies inside the client on its built-in Python 3.6. The ThinkTrader docs say you must start the MiniQMT client before a program that uses xtquant.

How much capital do you need to open QMT or PTrade?

It differs by broker, and sometimes by branch of the same broker. Follow the broker where you open the account. The ThinkTrader community keeps a list of which brokers support QMT and a high, medium, and low tier of thresholds. Read that, then ask the broker. This page does not copy unverified asset numbers from the web.

Do QMT and PTrade charge a fee?

We did not find a public broker page that states a fee. Whether you pay, and whether the fee is tied to commission, follows the broker's own disclosures. Ask before you apply.

Can QMT run on a Mac?

The ThinkTrader install notes are written for Windows, including not putting the install directory on the C drive and setting environment variables. People on a Mac generally need a Windows computer or a Windows cloud server. The client the broker provides controls.

Can PTrade pip-install third-party libraries?

According to a third-party compilation of the PTrade docs, the platform provides a fixed list of third-party libraries. The list changes with the version. You cannot install other libraries yourself. The version your broker runs controls.

Does an individual have to report programmatic trading to the exchange?

Yes. Under the Shanghai Stock Exchange notice, an investor who conducts programmatic stock trading on the SSE must report to the broker that accepts the orders before doing so for the first time. The broker checks the report and files it with the exchange. An investor who has not reported must not conduct programmatic trading. When you open QMT or PTrade, the broker usually asks you to sign a supplemental agreement and fill in the report.

This is not investment advice. Programmatic trading can lose money, and a backtest is not a future return. Features, fees, and opening conditions for QMT and PTrade follow the vendor and the broker.