skills/wtpy/SKILL.md
WonderTrader/wtpy 量化交易开发综合指南,整合官方文档、社区笔记与实践案例。涵盖 wtpy Python 框架与 WonderTrader C++ 核心的策略开发、回测、仿真、实盘、数据管理、监控运维全流程。
npx skillsauth add algoderiv/agent-skills wtpyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
综合 WonderTrader 官方文档(Read the Docs)、社区学习笔记(WonderTrader-Learning-Notes)和非官方整理文档(docs_wondertrader)三大来源,为 wtpy/WonderTrader 量化交易开发提供一站式参考。
This skill should be triggered when:
pip install wtpy --upgrade
from wtpy import WtBtEngine, EngineType
from wtpy.apps import WtBtAnalyst
engine = WtBtEngine(EngineType.ET_CTA)
engine.init('../common/', "configbt.yaml")
engine.configBacktest(202201100930, 202202011500)
engine.commitBTConfig()
straInfo = StraDualThrust(name='pydt_cu', code="SHFE.cu.HOT",
barCnt=50, period="m5", days=30, k1=0.1, k2=0.1, isForStk=False)
engine.set_cta_strategy(straInfo)
engine.run_backtest()
analyst = WtBtAnalyst()
analyst.add_strategy("pydt_cu", folder="./outputs_bt/pydt_cu/",
init_capital=500000, rf=0.02, annual_trading_days=240)
analyst.run()
engine.release_backtest()
from wtpy import WtEngine, EngineType
env = WtEngine(EngineType.ET_CTA)
env.init('../common/', "config.yaml")
straInfo = StraDualThrust(name='pydt_au', code="SHFE.au.HOT",
barCnt=50, period="m5", days=30, k1=0.2, k2=0.2, isForStk=False)
env.add_cta_strategy(straInfo)
env.run()
CFFEX.IF.2306CFFEX.IF.HOTCFFEX.IO2007.C.4000SSE.STK.600000SSE.ETFO.10003961| 引擎 | 适用场景 | 驱动方式 | 延迟 | |------|---------|---------|------| | CTA | 少标的择时/套利 | 事件+时间 | ~70μs (Python) | | SEL | 多因子选股 | 时间(异步) | - | | HFT | 高频交易 | 事件 | 1-2μs | | UFT | 超高频(仅C++) | 事件 | <200ns |
This skill includes comprehensive documentation in references/:
| Source | Type | Pages | URL | |--------|------|-------|-----| | WonderTrader 官方文档 | Official (RTD) | 53 | https://wtdocs.readthedocs.io/zh/latest/ | | WonderTrader 学习笔记 | Community | 75 | https://zzzzhej.github.io/WonderTrader-Learning-Notes/ | | WonderTrader 非官方文档 | Unofficial | 27 | https://dumengru.github.io/docs_wondertrader/ |
development
TianQin SDK (tqsdk) - Python量化交易框架,用于期货/期权/股票交易策略开发、回测与实盘交易
development
Stripe payment platform integration guide covering API authentication, webhooks, error handling, testing, Connect platforms/marketplaces, SDKs, and development best practices. This skill should be used when building payment integrations with Stripe, implementing checkout flows, managing subscriptions, handling webhooks, creating Connect platforms, processing payouts, or debugging Stripe API errors.
development
Seedance 1.5/1.0 系列视频生成 API 文档(火山方舟平台)。用于通过 API 调用 Seedance 模型实现文生视频、图生视频(首帧/首尾帧/参考图)、有声视频生成等功能,包含完整的请求参数、SDK 示例、提示词技巧和错误码参考。
development
RiceQuant RQData Python API - 米筐金融数据Python接口,用于获取中国A股、港股、期货、期权、基金、债券、宏观经济和另类数据。当使用rqdatac编写量化交易和金融分析Python代码时使用此skill。