openctp
Provides CTP stock options and Zhongtai Securities XTP
...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.