Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quantskillsGPL-3.0In 1 marketplace
Calibrates commission, spread, slippage, and market-impact assumptions from execution and market data.
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
📌 定位:执行成本研究与回测假设校准,不从成本数据推断 alpha、交易建议或券商质量。
| 能力 | 结果 |
|---|---|
| 成交归因 | 逐笔参考价、滑点、点差与手续费 |
| 盘口优先 | 优先使用成交时刻及之前的 quote mid |
| K 线回退 | 缺少盘口时使用成交前的 bar close |
| 冲击诊断 | 在观测参与率范围内拟合透明曲线 |
pip install -r requirements.txt
python scripts/calibrate_costs.py --demo --output-dir out
真实数据运行示例:
python scripts/calibrate_costs.py \
--executions fills.csv \
--quotes quotes.csv \
--bars bars.csv \
--commission-bps 2.5 \
--output-dir cost_out
| 数据 | 必需字段 | 说明 |
|---|---|---|
executions.csv | timestamp,symbol,side,quantity,price | side 为 buy 或 sell |
quotes.csv | timestamp,symbol,bid,ask | 可选,优先作为参考价 |
bars.csv | timestamp,symbol,close,volume | 可选,用于回退和参与率 |
输出文件:
execution_costs.csv:逐笔滑点、点差、参与率、手续费和总成本。cost_curve.csv:按参与率分箱的成本中位数和 95 分位数。summary.json:覆盖率、成本分布、冲击系数和警告。输入契约 → UTC 时间解析 → 成交前 as-of 对齐 → 成本拆解 → 参与率曲线 → 覆盖率审阅
有符号滑点与绝对成本必须分开解释;冲击曲线不得超出最大观测参与率外推,除非明确写出敏感性假设。
references/source_boundary.md。SKILL.md # Agent 工作流
scripts/calibrate_costs.py # 确定性校准脚本
references/input_contract.md # 输入字段与时间约束
references/source_boundary.md # 资料边界
agents/openai.yaml # Agent UI 元数据
agents/cursor-rule.mdc # Cursor 运行时入口
agents/portable-loader.md # Hermes/便携运行时入口
requirements.txt # Python 依赖
node scripts/validate-qsh-form.mjs SKILL.md
python scripts/calibrate_costs.py --demo --output-dir out
本仓库仅作研究方法层面的整理,非官方、不隶属任何被研究对象,不验证任何收益声明,不构成任何投资建议。
GNU General Public License v3.0,见 LICENSE。
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
transaction-cost-calibration@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin transaction-cost-calibration