openctp is a technical service platform built around the CTP trading ecosystem that provides CTP compatible interfaces for a wide range of brokerage backends and markets. Its core idea is to wrap heterogeneous stock and derivatives trading gateways such as Zhongtai XTP, Huaxin Qidian TORA, and others with CTPAPI compatible interfaces, so existing CTP programs can connect simply by swapping dynamic libraries rather than rewriting code. The project offers a comprehensive simulation environment similar to SimNow that supports futures, options, A share stocks, funds, bonds, and stock options, and even extends to Hong Kong and US markets. In addition to the core library, openctp supplies Python bindings for CTPAPI and stock options APIs, making it easier to build strategies, tools, and analytics in Python. It also develops full featured and lightweight trading clients like TickTrader, TickTraderMini, and ViTrader, which support multiple desks and markets.
Features
- CTPAPI compatible interfaces for many stock and derivatives gateways
- Multi market simulation environment covering futures, options, and equities
- Official Python interfaces for CTP and stock option APIs via SWIG
- Graphical and command line trading clients for multiple brokers and markets
- Lightweight CTP strategy trading framework with tick based design
- Monitoring and training services for simulation and live trading environments