ZVT quant framework: one record and query interface per market schema, two UIs, and no backward compatibility promise
modular quant framework.
At a glance
- What is it?
- ZVT is an MIT-licensed Python framework that records market data into schemas, queries it through one interface, and shows results in a Dash UI or a FastAPI plus Next.js stack. The author states plainly that upgrades may break your code.
- Who is it for?
- ZVT fits a Python user who wants market data capture, factor research and a local Dash UI in one framework, and who will pin the version and accept breaking changes. It does not fit anyone who needs a stable API across upgrades or real-time trading from the Dash screen.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 144 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- zvtvz/zvt4,338 ★ · +38
| Repository | 2026-09-11 | 2026-11-22 |
|---|---|---|
| zvtvz/zvt | 4.3k | 4.3k |
38 Stars in the last 72 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The author refuses to promise backward compatibility
The project opens with a declaration that it does not currently guarantee any backward compatibility and that you should upgrade with caution. The author adds that as their thinking evolves, features once thought important may stop being maintained, and that you must judge for yourself whether new additions are useful to you.
The consequence is concrete. A strategy written against one release can stop working on the next, so pin the version you tested. The setup file labels the package Production/Stable, which sits oddly beside that declaration, and the declaration is the one to trust when planning upgrades. The latest tagged release is v0.13.5 from 2026-01-18, and the setup file also says 0.13.5, even though that release's title on GitHub reads release v0.1.5.
Every market is a schema with the same record_data and query_data pair
The data layer treats each tradable entity type as a schema, and the context exposes a map of them: stockus, stockhk, index, etf, stock, block and fund. For every schema the system provides unified record_data and query_data methods. China stocks are recorded with a provider argument.
>>> from zvt.domain import *
>>> Stock.record_data(provider="em")
>>> df = Stock.query_data(provider="em", index='code')
>>> print(df)US and Hong Kong stocks call record_data without a provider and query with index set to code. Entity ids follow a readable pattern such as stock_sz_000001, stockus_nyse_A and stockhk_hk_00001. The printed samples show timestamp as NaT for US and Hong Kong rows, while China rows carry listing dates, so the schemas do not fill the same columns. One index example filters with Index.exchange='sh' written with a single equals sign inside the list, which is not valid Python comparison syntax, so use == when you copy it.
The Dash UI is for research and backtests, and the author says it is wrong for live data
After installation the main UI starts from the command line.
python3 -m pip install -U zvtzvtYou then open http://127.0.0.1:8050/. The note attached to this UI is blunt: it is good for backtest and research but not applicable to real-time market data and user interaction. The interface names correspond one to one with the core concepts of data, factor and trader, and the intended workflow is to write and run a strategy in your own IDE and then view targets, factors, signals and performance on the screen. If you were hoping to watch live quotes and click to act, this UI is not designed for that, and the second stack below exists for it.
The REST server and standalone UI take several manual steps across two repositories
The more flexible option, said to suit real-time data and interaction, starts by running four scripts from src/zvt/tasks: init_tag_system.py, stock_pool_runner.py, qmt_data_runner.py and qmt_tick_runner.py. The tag system is what the project ties to a trading approach combining AI with human intervention. Then uvicorn is installed and the server is started.
pip install uvicornzvt_serverThe API documentation is at http://127.0.0.1:8090/docs. The front end lives in a separate repository, zvt_ui, whose .env file must set the server address.
NEXT_PUBLIC_SERVER = {your server IP}After following that repository's own README the interface appears at http://127.0.0.1:3000/trade. The cost is operational: two codebases, a Next.js service, and runner scripts whose names reference QMT data, which you must be able to supply.
A short block covers capture, training and plotting, but only for the sample stocks
The showcase example records the stock list, records daily adjusted prices for three entity ids with a one second sleep between requests, trains a moving average machine learning model for one stock, predicts and draws the result.
>>> from zvt.domain import Stock, Stock1dHfqKdata
>>> from zvt.ml import MaStockMLMachine
>>> Stock.record_data(provider="em")
>>> entity_ids = ["stock_sz_000001", "stock_sz_000338", "stock_sh_601318"]
>>> Stock1dHfqKdata.record_data(provider="em", entity_ids=entity_ids, sleeping_time=1)
>>> machine = MaStockMLMachine(entity_ids=["stock_sz_000001"], data_provider="em")
>>> machine.train()
>>> machine.predict()
>>> machine.draw_result(entity_id="stock_sz_000001")The project says this performs data capture, persistence, incremental update, machine learning, prediction and display. It publishes no accuracy figures for the model, so treat the output as a demonstration of the pipeline, not evidence of a usable signal. The sleeping_time argument is the throttle on remote requests, which tells you data recording is a network job that takes time at scale.
Pinned dependency versions will collide with an existing environment
The requirements file pins exact versions rather than ranges: requests 2.32.0, SQLAlchemy 2.0.36, pandas 2.2.3, pydantic 2.6.4, arrow 1.3.0, openpyxl 3.1.1, demjson3 3.0.6, plotly 5.13.0, dash 2.18.2, jqdatapy 0.1.8, dash-bootstrap-components 1.3.1, dash_daq 0.5.0, scikit-learn 1.5.2, fastapi 0.110.0, fastapi-pagination 0.12.23, apscheduler 3.10.4, eastmoneypy 0.2.0, orjson 3.10.3 and numpy 2.1.3.
Installing into a shared environment can therefore downgrade or upgrade packages that other projects rely on, so use a virtual environment. Python must be at least 3.9 and below 4, and the classifiers list 3.9 through 3.12. Nothing in the setup file declares support for newer interpreters, so a newer Python is your own experiment.
The last push was in July 2026, and the documentation sits on Read the Docs
The repository is not archived. The last push was 2026-07-01, while the newest release, v0.13.5, was published on 2026-01-18. The release before it, v0.13.4, is dated 2025-09-07 and v0.13.3 is dated 2025-08-03, which gives a pace of a release every few months.
Full documentation is hosted at zvt.readthedocs.io, and the repository includes an examples directory with data runners, factors, ML, research, trader scripts and tag JSON files, plus an api-tests directory and a sql directory. A Chinese README is also provided. The licence is MIT. For a framework that declines to promise compatibility, the examples directory is the most reliable way to see how current code is meant to call the API.
Editorial conclusion
ZVT fits a Python user who wants market data capture, factor research and a local Dash UI in one framework, and who will pin the version and accept breaking changes. It does not fit anyone who needs a stable API across upgrades or real-time trading from the Dash screen. Before depending on it, check which data providers still serve the schemas you need.
Frequently asked questions
What is ZVT?
ZVT is a modular Python quant framework under the MIT licence. It records market data into schemas such as stock, index, etf and fund, queries them through one interface, and offers a Dash UI and a REST server.
How do I install ZVT and open its UI?
Run python3 -m pip install -U zvt, then type zvt on the command line and open http://127.0.0.1:8050/ in a browser. That Dash UI is meant for backtest and research.
Does ZVT guarantee backward compatibility between versions?
No. The author states it does not currently guarantee any backward compatibility and tells users to upgrade with caution, so pin the version you have tested.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/zvtvz-zvt)Star history chart for your README
[](https://hysenlabs.com/projects/zvtvz-zvt)Was this useful?