用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/algoderiv/agent-skills --skill wtpy命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | wtpy |
| description | WonderTrader/wtpy 量化交易开发综合指南,整合官方文档、社区笔记与实践案例。涵盖 wtpy Python 框架与 WonderTrader C++ 核心的策略开发、回测、仿真、实盘、数据管理、监控运维全流程。 |
综合 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/ |