通达信量化数据获取技能。当用户提及 tdxquant、通达信、TdxQuant、tqcenter,并且需要获取A股数据(行情快照、K线、财务、板块、可转债、新股、交易数据等)、查询交易日历、执行通达信公式、订阅行情、交易下单时使用
npx skills add https://github.com/lzwme/finance-quant-skills --skill tdxquant
PYPlugins\user\tqcenter.py。脚本通过 _tdx_init.py 自动检测安装目录并将路径加入 sys.path。用户也可以通过设置环境变量 TDX_ROOT 指定安装目录。600519.SH(上海)、000001.SZ(深圳)、430047.BJ(北交所)1m/5m/15m/30m/1h/1d/1w/1mon/1q/1y/ticknone 不复权、front 前复权、back 后复权.SH上海 .SZ深圳 .BJ北交所 .HK港股 .US美股 .CSI中证指数 .CNI国证指数 .CFF中金期货 等安装目录结构:
通达信安装目录\
├── TdxW.exe # 主程序
├── PYPlugins\
│ ├── TPyth.dll # 通信DLL
│ ├── TPythClient.dll # 通信DLL
│ ├── user\
│ │ └── tqcenter.py # TdxQuant 核心模块
│ ├── data\ # 下载数据目录
│ └── file\ # 发送文件目录
| 用户提问 | 对应功能模块 | 调用参数 |
|---|---|---|
| "贵州茅台实时股价" | market_data.py snapshot | --code 600519.sh |
| "平安银行K线数据" | market_data.py kline | --code 000001.sz --period 1d |
| "招商银行基本信息" | market_data.py stock_info | --code 600036.sh |
| "招商银行财务指标" | financial_data.py financial | --code 600036.sh --fields fn193,fn197 |
| "半导体板块成分股" | sector_data.py sector_stocks | --block_name 半导体 |
| "今日新股申购" | etf_bond_data.py ipo_info | --ipo_type 2 --ipo_date 1 |
| "市场融资融券数据" | trading_data.py scjy | --fields sc1,sc25 |
| "MACD指标" | formula.py zb | --name MACD --arg 12,26,9 |
| "连涨3天选股" | formula.py xg | --name UPN --arg 3 |
python scripts/market_data.py snapshot --code 600519.shpython scripts/market_data.py kline --code 000001.sz --period 1d --count 100python scripts/financial_data.py financial --code 600036.sh --fields fn193,fn194 --start 20240101python scripts/market_data.py snapshot --code 600519.shpython scripts/market_data.py kline --code 600519.sh --period 1d --count 100python scripts/market_data.py stock_info --code 600519.shpython scripts/market_data.py more_info --code 600519.shpython scripts/market_data.py divid_factors --code 600519.shpython scripts/market_data.py gb_info --code 600519.sh --dates 20250101,20250601python scripts/financial_data.py financial --code 600519.sh --fields fn193,fn194,fn197 --start 20250101python scripts/financial_data.py financial_by_date --code 600519.sh --fields fn193,fn197 --year 0 --mmdd 0python scripts/financial_data.py gp_one_data --code 600519.sh --fields go1,go3,go5python scripts/trading_data.py gpjy --code 600519.sh --fields gp1,gp2,gp3 --start 20250101python scripts/trading_data.py bkjy --code 880660.sh --fields bk5,bk6,bk9 --start 20250101python scripts/trading_data.py scjy --fields sc1,sc2,sc3 --start 20250101python scripts/sector_data.py stock_list --list_type 5python scripts/sector_data.py sector_list --with_namepython scripts/sector_data.py sector_stocks --block_code 880081.shpython scripts/sector_data.py stock_relation --code 688318.shpython scripts/sector_data.py user_sector --action listpython scripts/etf_bond_data.py kzz_info --code 123039.szpython scripts/etf_bond_data.py trackzs_etf --zs_code 950162.csipython scripts/etf_bond_data.py ipo_info --ipo_type 2 --ipo_date 1python scripts/calendar.py --start 20250101 --end 20250601python scripts/formula.py zb --name MACD --arg 12,26,9 --code 688318.sh --period 1d --count 100python scripts/formula.py xg --name UPN --arg 3 --code 688318.sh --period 1d --count 100python scripts/formula.py mul_xg --name UPN --arg 3 --codes 688318.sh,600519.sh --period 1d --count 20tqcenter.py,说明当前客户端不支持TQ策略,需升级通达信终端.SH、.SZ、.BJ),大小写均可,但不可省略sys.path.insert(0, ...) 而非 append(),确保优先加载通达信安装目录的 tqcenter.pyAutomatically organizes invoices and receipts for tax preparation by reading messy files, extracting key information, renaming them consistently, and sorting them into logical folders. Turns hours of manual bookkeeping into minutes of automated organization.
Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.
This skill calculates key financial ratios and metrics from financial statement data for investment analysis
This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions
This skill retrieves upcoming earnings announcements for US stocks using the Financial Modeling Prep (FMP) API. Use this when the user requests earnings calendar data, wants to know which companies are reporting earnings in the upcoming week, or needs a weekly earnings review. The skill focuses on mid-cap and above companies (over $2B market cap) that have significant market impact, organizing the data by date and timing in a clean markdown table format. Supports multiple environments (CLI, Desktop, Web) with flexible API key management.
Crypto wallet operations via the awal CLI — sign in, check balances, send USDC/ETH/POL/SOL, trade tokens, fund the wallet, and use the x402 payment protocol to discover paid services, pay for API calls, monetize an API, or query onchain data. Use whenever the user mentions signing in, login, authentication, wallet status, balance, address, sending money, paying someone, transferring tokens, ENS names, swapping/trading/converting tokens, funding/topping up/onramp, USDC, ETH, POL, SOL, the x402 bazaar, paid APIs, monetizing an endpoint, or querying onchain data on Base.
Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the Alpha Vantage API. Use when fetching stock prices (OHLCV), company fundamentals (income statement, balance sheet, cash flow), earnings, options data, market news/sentiment, insider transactions, GDP, CPI, treasury yields, gold/silver/oil prices, Bitcoin/crypto prices, forex exchange rates, or calculating technical indicators (SMA, EMA, MACD, RSI, Bollinger Bands). Requires a free API key from alphavantage.co.
Braintree Automation: manage payment processing via Stripe-compatible tools for customers, subscriptions, payment methods, and transactions
Take lzwme/tdxquant from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.