shinnytech/tqsdk-python

天勤量化开发包, 期货量化, 实时行情/历史数据/实盘交易

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 23 minutes ago
Added to GitGenius on September 13th, 2026
Created on June 8th, 2018
Open Issues & Pull Requests: 5 (+0)
GitHub issues: Enabled
Number of forks: 781
Total Stargazers: 5,040 (+0)
Total Subscribers: 121 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 715.2 days
Mean response time: 1118.8 days
90th percentile: 2397.1 days
Tracked items: 91

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 4
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 188 days
Stale 30+ days: 3
Stale 90+ days: 2

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (5)
  • web_gui (4)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

TqSdk is a Python library for building quantitative trading strategies that provides a complete solution from historical data through live trading across futures, options, and stocks.

The tool addresses the complexity of developing trading systems by offering a unified interface to market data and trading execution. It connects to market gateways and trading relays through a Diff protocol, providing real-time quotes, historical tick and candlestick data, backtesting capabilities, paper trading, and live execution. Users can write strategies with minimal code while accessing full tick-level and candlestick-level backtesting, technical indicators, and support for multiple accounts simultaneously. The in-memory data architecture eliminates database maintenance and access latency.

The project suits traders and developers building strategies for Chinese futures markets, where it supports connections to approximately ninety percent of futures brokers through CTP direct connections and various settlement platforms. It also handles stocks and options. The tool works well for strategies of any complexity level without enforcing a particular framework structure, allowing flexible use of multiple instruments and timeframes within a single program. Integration with pandas and numpy makes it suitable for teams doing quantitative analysis and data-driven development.

Development activity shows consistent engagement with the codebase through regular updates and maintenance. The project maintains active documentation and provides educational resources including a quick-start guide. Community support is supplemented by integration with AI assistants that can help with function explanations, strategy guidance, and error analysis. The tool is distributed as a Python package and runs on Windows, Linux, and macOS with Python 3.9 and later.