Library / SDK
pst-group/pysystemtrade avatar
pst-group/pysystemtrade

pysystemtrade ships two dependency lists and no package index

Systematic Trading in python

3,637 stars1,103 forksPythonGPL-3.0

At a glance

What is it?
pysystemtrade is Rob Carver's open source futures trading and backtesting engine. It is not on a package index, its manifest and its deprecated requirements file disagree on dependency floors, and its README names two owners as a continuity plan.
Who is it for?
pysystemtrade fits a Python developer who has read the framework it implements and wants a starting point for a system of their own, and who is prepared to clone it and manage its dependencies. Check four things before starting: that you meet the project's own definition of its audience, which is people already comfortable writing Python and installing dependencies, and that you accept its answer if you need more support than that, which is to use a different project.
Can I use it commercially?
Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
Is it still maintained?
Yes. The repository last received commits 21 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.

From daily snapshots

Star history

  • pst-group/pysystemtrade3,637 ★ · +112
Star history
Repository2026-09-242026-11-22
pst-group/pysystemtrade3.5k3.6k

112 Stars in the last 59 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Not on an index, so you clone it

The installation section opens by saying the package is not hosted on the public package index, and that the easiest way to get the code is to use git. The documented sequence is four commands:

code
# clone the repo to your local filesystem
$ git clone https://github.com/pst-group/pysystemtrade.git

# navigate to the project directory
$ cd pysystemtrade

# either install pysystemtrade normally
$ python -m pip install .

# or install in editable mode, with development dependencies
$ python -m pip install --editable '.[dev]'

That is a deliberate choice rather than an omission. The repository is described as being for people who want a head start on implementing a system of their own, so the audience is a developer who intends to read and change the code, and cloning is the step that puts them in a position to do both. A longer installation guide exists in the documentation for the cases the four commands do not cover.

Two dependency lists that disagree

The manifest is named as the source of truth for dependencies, and it pins some packages exactly while leaving others as ranges: a data frame library at one exact version, a YAML parser at one exact version, a document store client at an older exact version, a timezone library at a dated exact version, a columnar file library bounded on both ends, and the maths, plotting and web libraries as minimums. Alongside it sits a requirements file carrying a banner comment that says the method is deprecated, that dependencies are defined in the manifest, and that the file will be removed in a future release. The two lists do not match. The columnar file library has a higher floor in the manifest than in the older file, the test runner appears in the older file but is a development extra in the manifest, and the timezone library is missing from the older file altogether. The manifest is what a fresh install will use, and the file people find first is the one that has drifted.

The Python floor is 3.10, except in one file

The manifest declares that the project needs Python 3.10 or later. The legacy installation script in the same repository enforces the same boundary one release more strictly: it compares the running interpreter version and exits with a message if the version is at or below 3.10.0. So a machine on exactly 3.10.0 satisfies the declared requirement and is still rejected by the script that is on its way out. That is the kind of detail nobody fixes for a year and then everybody hits once, and it is only visible because the deprecated file was kept rather than deleted, which the banner says is deliberate.

A directory called private ships inside the wheel

The packaging configuration lists which files travel with the installed package, and the list is worth reading as a map of the configuration surface. Several packages ship comma-separated data files, several ship YAML files, one ships both, and one of them is a directory named private, whose YAML files are declared as package data alongside everything else. The list also includes the provided systems directory, which is where the strategy definitions live. So a wheel built from this project carries configuration, broker settings and the provided trading systems, not just code. For most users that is what makes the thing runnable out of the box; for anyone redistributing it, it is a licensing question the GPL v3 file answers for the code and leaves for the data.

The test suite runs the documentation examples

The test configuration is three settings that describe the project's testing philosophy. Collection skips the examples directory, so the shipped example scripts are not treated as tests. The default options enable doctest collection across modules, which means the examples embedded in docstrings are executed as part of the suite, and they also name one file to ignore: a temporary module inside a subdirectory of the provided systems, a path that tells you the systems are organised as one directory per system. Logging is switched on for the test run at a verbose level, with a format that includes timestamps. Running documentation as tests is the mechanism that keeps a research codebase's stated examples true, and the ignored file is the crack in it.

A dozen sys-prefixed packages and a dashboard

The layout is the architecture. Twelve directories share a common prefix and split by concern: core, data, objects, execution, brokers, control, initialisation, production, quant, logging and log diagnostics. Around them sit the provided systems, a data directory of comma-separated files, a dashboard directory, a directory of private YAML, an examples tree with its own data, introduction, logging and production subdirectories, and the documentation and test directories. The dashboard is not incidental: the dependency list includes a web framework and its toolkit, so a monitoring or control interface is part of what gets installed. For a codebase that implements a book, that arrangement is the point, since the packages map onto the layers a trading system is argued to have.

Support means a minimal example in an issue

There is a section on support that is really a section on fit. The project describes itself as aimed at people already comfortable using and writing Python, capable of installing the dependencies, who want a head start on their own system, and then says that anyone needing a higher level of support would be better off with another project. The most efficient support channel is named next: open an issue. What goes in it is specified precisely, including the full script with its imports or a pointer to a standard example, ideally the shortest possible reproduction, the versions of the libraries involved, and the complete trace with error messages. Questions about whether to do something go to the discussions board instead of the issue tracker, and contributions are invited.

Two owners, and nobody is regulated

The history paragraph contains the most unusual sentence in the file. The project moved to a new GitHub organisation in January 2026, the organisation is owned by the original author and the current maintainer, and the stated intention is that it will always have at least two owners so the project survives the author's death or the loss of his account token. That is a continuity plan written into a readme, and it says something about how the maintainers think about risk. The legal section is equally plain: no warranty, use at your own risk, no guarantee of profit, leveraged futures trading can leave you owing money after losing it all, backtested results promise nothing about the future, and the owners are not currently registered or authorised by any financial regulator. There is also a joke about the possibility of deleting every file on your computer, immediately followed by reassurance that it is not supposed to.

Editorial conclusion

pysystemtrade fits a Python developer who has read the framework it implements and wants a starting point for a system of their own, and who is prepared to clone it and manage its dependencies. Check four things before starting: that you meet the project's own definition of its audience, which is people already comfortable writing Python and installing dependencies, and that you accept its answer if you need more support than that, which is to use a different project. Then check which dependency list you trust, since two exist and their floors differ, that a directory called private is shipped as package data and understand what you are putting in your wheel, and that the owners state plainly they are not authorised by any financial regulator and that nothing here is a promise about money. Read the legal paragraph before the code.

Frequently asked questions

What is pysystemtrade?

The open source version of Rob Carver's own backtesting and trading engine for systematic futures trading, implementing the framework from his book Systematic Trading. It is both the environment he uses to test the strategies in his books and a fully automated trading system for Interactive Brokers.

How do you install pysystemtrade?

It is not hosted on a package index, so the documented route is to clone the repository and install from the checkout, either normally or in editable mode with the development extras. A more complete installation guide is in the project's documentation.

Which broker does pysystemtrade connect to?

Interactive Brokers, through the ib_async library, which the manifest requires within a bounded version range. Broker-specific configuration lives in the broker package, whose YAML and CSV files are listed as shipped package data.

Is pysystemtrade regulated, and is it profitable?

The README says the owners are not currently registered or authorised by any financial regulator, that no warranty is implied, and that backtested results are no guarantee of future performance. It also notes that leveraged futures trading can lose all of your money and still leave you owing more.

Who maintains pysystemtrade?

Rob Carver developed and open sourced it in December 2015, Andy Geach took over as primary maintainer in 2024, and in January 2026 the project moved to a GitHub organisation owned by both of them, with the stated intention that the organisation always has at least two owners.

Does pysystemtrade support brokers other than Interactive Brokers?

The README describes the system as a fully automated futures trading system for Interactive Brokers and names the library used to connect. Configuration for the broker lives in its own package with shipped files, but no alternative broker is named in the file.

Official sources

  1. Issues
  2. License: GPL-3.0
  3. pst-group/pysystemtrade on GitHub
  4. README
  5. Releases
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.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/pst-group-pysystemtrade.svg)](https://hysenlabs.com/projects/pst-group-pysystemtrade)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/pst-group-pysystemtrade.svg)](https://hysenlabs.com/projects/pst-group-pysystemtrade)

Was this useful?