What problem does it solve?
This Skill helps you integrate Tongdaxin’s TQ quant platform into your workflow by guiding how to locate the correct Tdx installation, initialize the tqcenter interface, and then query market, stock, sector, and professional financial datasets through the tq API.
Core Features & Use Cases
- TdxQuant (tqcenter.py) Initialization & Connection Management: Detects running TdxW.exe processes (or prompts you if none exists), validates that tqcenter.py is supported, configures sys.path correctly, and initializes the tq client with the required initialize/close lifecycle.
- Market & Instrument Data Retrieval: Pull historical K-lines and real-time snapshots (e.g., get_market_data, get_market_snapshot), plus stock metadata and relationships (get_stock_info, get_relation, get_more_info).
- Professional Finance & Trading Analytics Access: Fetches professional financial statements and trading/sector/macro datasets through dedicated tq interfaces (e.g., get_financial_data, get_gpjy_value, get_bkjy_value, get_scjy_value) for research and decision support.
Quick Start
Ask the AI to initialize Tongdaxin TQ and provide example calls to fetch K-line data and a real-time snapshot for a given stock code.