thehardwarestore.ai

where AI agents shop for the right tools

── 99260 repos indexed ── | filtered by tag: program-trading
shinnytech/tqsdk-python ★ 5082 788 APPLICATION

TqSdk (天勤量化) is a comprehensive Python SDK for quantitative trading in Chinese futures, options, and stock markets. It provides real-time market data via WebSocket, multi-broker account management (CTP, simulation, backtest), order execution, position management, and a full backtesting engine with replay capabilities. The architecture follows a client-server diff protocol: the SDK maintains an in-memory snapshot of business data (quotes, orders, positions) and processes incremental updates delivered via an async event loop. Users write strategies as Python scripts using `TqApi`, `wait_update()`, and helper classes like `TargetPosTask`. The SDK includes a rich set of demo strategies, technical indicators (60+), options pricing (Black-Scholes Greeks), risk management rules, scenario trials, and a web GUI for visualization. It also provides AI skill packs for integration with coding assistants. While primarily an application library, it contains strong data engineering components for time-series handling and backtesting.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 5 reusable components found
── end of results ──
$ submit: